As I said the error looks very similar to the one I get with ecryptfs-utils. I got it working by exporting the apparently missing variables. To do that, just add a 'do_compile_prepend()" section in the rpm-extraconf.inc file like this one:

do_compile_prepend() {
    export HOST_SYS=${HOST_SYS}
    export BUILD_SYS=${BUILD_SYS}
}

If you still have unknown variables, just add them the same way (I also had to add "STAGING_LIBDIR" and "STAGING_INCDIR").

I really don't know where this comes from neither why you have this issue with rpm and I don't. I think it is strange that such variables are not available. Anyway, it seems to work with this correction...

Anoop, please tell me if it works for you.

Also I'd like to know if anyone have the same issue with rpm. If it's the case it will probably be necessary to add this correction in the recipe.

Regards,
Kevin


On 06/08/2014 14:18, Anoop Babu wrote:
Dear Kevin,

I did a retry as suggested by you
bitbake rpm -c cleanall
bitbake rpm

Unfortunately I have hit the same issue. Attached is the log file, please have a look.

Regards
Anoop

Best regards
     A.B
PPlease think about the environment before printing this e-mail

/

*7*Switch off as you go |*q*Always recycle |*P*Save a tree...please don't print this e-mail unless you really need to.

/


On Wed, Aug 6, 2014 at 12:57 PM, Kévin THIERRY <[email protected] <mailto:[email protected]>> wrote:

    Hi Anoop,


    On 05/08/2014 18:46, Anoop Babu wrote:

        Building tizen using yocto

        Host OS and architecture  - -Ubuntu SMP i686/ i386 GNU/Linux
        Target architecture/BSP - iMX6 Sabre / meta-fsl-arm
        The image you're trying to build -
        tizen-common-core-image-minimal-dev

        Build procedure followed is from
        https://wiki.tizen.org/wiki/Build_Tizen_with_Yocto
        but for imx6

        Fetch latest for all repos today.

        Also updated rpm code based for bashism issue
        Replaced "export CCFLAGS+=" -fPIC "" with
        "export CCFLAGS="${CCFLAGS} -fPIC "".

        attached is the rpm .inc files

    Looking quickly at the logs you provided I suspect the error to be
    there:

        checking for a Python interpreter with version >= 2.6...
        python
        checking for python...
        
/home/sfm/YOCTO/build/tmp/sysroots/i686-linux/usr/bin/python-native/python
        checking for python version...
        2.7
        checking for python platform...
        linux2

        checking for python script directory...
        Traceback (most recent call last):

          File "<string>", line 22, in <module>

          File
        
"/home/sfm/YOCTO/build/tmp/sysroots/i686-linux/usr/lib/python2.7/distutils/sysconfig.py",
        line 22, in <module>

        PREFIX = os.path.normpath(sys.prefix).replace(
        os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )

        TypeError
        :
        expected a character buffer object


        ${libdir}/python2.7/site-packages
        checking for python extension module directory...
        Traceback (most recent call last):
          File "<string>", line 22, in <module>

          File
        
"/home/sfm/YOCTO/build/tmp/sysroots/i686-linux/usr/lib/python2.7/distutils/sysconfig.py",
        line 22, in <module>
            PREFIX = os.path.normpath(sys.prefix).replace(
        os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
        TypeError: expected a character buffer object

        ${libdir}/python2.7/site-packages

    That's weird because yesterday I encountered a similar issue but
    with ecryptfs-utils not rpm but didn't have time to investigate
    it. I just rebuilt rpm without issue. Anoop, can you please clean
    retry a clean rpm build ?

    bitbake rpm -c cleanall
    bitbake rpm

    Please, let us know if you don't have this issue anymore.

    Regards,
    Kevin



_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to