<div dir="ltr">Thank you Kevin, <div>I run the script the error seems to have gone away. I have hit another error, which I will rasie separately.</div><div><br></div><div>thanks and regards</div><div>Anoop</div></div><div class="gmail_extra">
<br clear="all"><div><div dir="ltr">Best regards<br>     A.B<br><div><span lang="EN-SG" style="font-size:18pt;font-family:Webdings;color:rgb(0,127,0)">P</span><span lang="EN-SG" style="font-family:arial;font-size:small;color:rgb(36,64,97)"> </span><span lang="EN-SG" style="font-size:7pt;font-family:Verdana,sans-serif;color:rgb(0,127,0)">Please think about the environment before printing this e-mail</span><br>
</div><div><span lang="EN-SG" style="font-size:7pt;font-family:Verdana,sans-serif;color:rgb(0,127,0)"><br></span></div><div><span lang="EN-SG" style="font-size:7pt;font-family:Verdana,sans-serif;color:rgb(0,127,0)"><i style="color:rgb(34,34,34);font-family:'comic sans ms',sans-serif;font-size:small"><p style="margin:0px 0px 12pt;font-family:arial,sans-serif;font-style:normal;display:inline!important">
<b style="font-size:12.727272033691406px"><span lang="EN-GB" style="font-size:24pt;font-family:'Wingdings 3';color:green">7</span></b><span lang="EN-GB" style="color:navy;font-size:11pt;font-family:Calibri,sans-serif"> </span><span lang="EN-GB" style="color:rgb(0,32,96);font-family:Calibri,sans-serif"><font size="1">Switch off as you go |</font></span><span lang="EN-GB" style="color:gray;font-size:11pt;font-family:Calibri,sans-serif"> </span><b style="font-size:12.727272033691406px"><span lang="EN-GB" style="font-size:24pt;font-family:Webdings;color:green">q</span></b><font size="1"><span lang="EN-GB" style="color:rgb(0,32,96);font-family:Calibri,sans-serif">Always recycle |</span><span lang="EN-GB" style="color:gray;font-family:Calibri,sans-serif"> </span></font><b style="font-size:12.727272033691406px"><span lang="EN-GB" style="font-size:24pt;font-family:Webdings;color:green">P</span></b><span lang="EN-GB" style="color:navy;font-size:11pt;font-family:Calibri,sans-serif"> </span><span lang="EN-GB" style="color:rgb(0,32,96);font-size:11pt;font-family:Calibri,sans-serif">Save a tree...please don't print this e-mail unless you really need to.</span></p>
</i><br></span></div></div></div>
<br><br><div class="gmail_quote">On Thu, Aug 7, 2014 at 8:52 PM, Kévin THIERRY <span dir="ltr"><<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.eurogiciel.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Your recipe seems outdated, please update meta-tizen (you can use the script we provide to do that as explained in the wiki).<span class="HOEnZb"><font color="#888888"><br>

<br>
Kévin</font></span><div class=""><br>
<br>
On 07/08/2014 17:03, Anoop Babu wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
Dear Kevin<br>
<br>
I have updated rpm-extraconf.inc with changes as you have mentioned. But unfortunately it has not resolved the issue.<br>
I'm hitting the same issue. I have attached the log files as well as the.inc file for your reference.<br>
In the main log i can see the machine configuration as<br>
TARGET_SYS  = "arm-poky-linux-gnueabi"<br>
MACHINE = "imx6qsabreauto"<br>
<br>
In the run file I see two suspicious steps mainly<br>
unset MACHINE (line no 83) and unset DISTRO( line no 89)<br>
<br>
regards<br>
Anoop<br>
<br>
<br>
Best regards<br>
     A.B<br></div><div class="">
PPlease think about the environment before printing this e-mail<br>
<br>
/<br>
<br>
*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.<br>
<br>
/<br>
<br>
<br></div><div><div class="h5">
On Thu, Aug 7, 2014 at 5:55 PM, Kévin THIERRY <<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a> <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>>> wrote:<br>

<br>
<br>
    On 07/08/2014 14:07, Kévin THIERRY wrote:<br>
<br>
        commit 65bd0041da560c7ba9ede5e53c06b3<u></u>f65d7906f2 is already<br>
        present in your branch, what I meant was that maybe this<br>
        change isn't correct and creates a new issue.<br>
<br>
        Looking at the log you provided I see things that surprise me:<br>
<br>
        * BUILDTARGET="--host=x86_64-<u></u>linux-gnu "<br>
        This an error in the recipe, this value shouldn't be<br>
        hard-coded but set to "--host=${HOST_SYS} " and exported so<br>
        replacing this line with:<br>
        export BUILDTARGET="--host=${HOST_<u></u>SYS} " should be better.<br>
<br>
    Ignore that and try to add:<br>
<br>
    export BUILDTARGET="--target=${<u></u>TARGET_SYS} "<br>
<br>
    in the do_compile_prepend() section of the rpm-extraconf.inc file<br>
    and replace:<br>
<br>
    ./configure --build=${TARGET_SYS} --host=x86_64-linux-gnu<br>
<br>
    with:<br>
<br>
    ./configure --build=${TARGET_SYS} --host=${HOST_SYS}<br>
<br>
    in rpm-extraconf.inc. (Not tested.)<br>
<br>
<br>
    The rpm recipe is a mess, I will try to clean it when I have time.<br>
<br>
    Kevin<br>
<br>
<br>
<br>
        * Are you sure you are building against imx6 (ARM) because I<br>
        see references to i686 everywhere in your log ? Did you set<br>
        the "MACHINE" variable in your conf/local.conf correctly and<br>
        add the required meta in your conf/bblayer.conf ?<br>
<br>
        Kevin<br>
<br>
<br>
        On 07/08/2014 12:31, Anoop Babu wrote:<br>
<br>
            Dear Kevin,<br>
<br>
            Thank you for the inputs. For you reference I have<br>
            attached run.do_compile file.<br>
<br>
            I will lookout for solution time being. On a next level I<br>
            will cherrypick commit<br>
            65bd0041da560c7ba9ede5e53c06b3<u></u>f65d7906f2.<br>
<br>
            Will let you know of any relevant things w.r.t this issue.<br>
<br>
            Best regards<br>
            Anoop<br>
<br>
<br>
<br>
            On Thu, Aug 7, 2014 at 12:50 PM, Kévin THIERRY<br>
            <<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>><br></div></div><div class="">
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>>>> wrote:<br>
<br>
                Hi Anoop,<br>
<br></div><div><div class="h5">
                I can't reproduce this error (but I'm not building for<br>
            imx6). I've<br>
                seen similar error message regarding libcap but can't<br>
            remember<br>
                what we did to correct it. Anyway in your configure<br>
            command line<br>
                you have a $BUILDTARGET which is not expanded, that<br>
            looks suspicious.<br>
<br>
                Another good file to provide when you have an issue is the<br>
                run.do_compile file which contains all the<br>
            instructions executed<br>
                for the compile section.<br>
<br>
                I think looking at the $BUILDTARGET is a good start<br>
            toinvestigate<br>
                this bug. Also, a fix has been made on libcap in<br>
            meta-tizen which<br>
                removes configure options (commit<br>
                65bd0041da560c7ba9ede5e53c06b3<u></u>f65d7906f2), maybe a<br>
            useful option<br>
                has been removed in the process.<br>
<br>
                Let me know if you find anything relevant to this issue.<br>
<br>
                Kevin<br>
<br>
<br>
                On 06/08/2014 17:00, Anoop Babu wrote:<br>
<br>
                    Dear Kevin,<br>
<br>
                    Thank you for your inputs.<br>
                    I had added codes to do_compile_prepend()<br>
<br>
                     export HOST_SYS=${HOST_SYS}<br>
                     export BUILD_SYS=${BUILD_SYS}<br>
                     export STAGING_LIBDIR=${STAGING_<u></u>LIBDIR}<br>
                     export STAGING_INCDIR=${STAGING_<u></u>INCDIR}<br>
<br>
                    Seems I have the same error<br>
                    Checking for cap_set_file in -lcap... no<br>
                    configure: error: --with-msm given, but<br>
            cap_set_file not found<br>
                    in libcap<br>
<br>
                    Attached is the log file please have a look.<br>
<br>
                    Best regards<br>
                     Anoop<br>
<br>
<br>
                    On Wed, Aug 6, 2014 at 6:16 PM, Kévin THIERRY<br>
                    <<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>><br>
                    <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>>><br></div></div><div><div class="h5">
                    <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>><br>
                    <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>>>>> wrote:<br>
<br>
                        As I said the error looks very similar to the<br>
            one I get with<br>
                        ecryptfs-utils. I got it working by exporting<br>
            the apparently<br>
                        missing variables. To do that, just add a<br>
                    'do_compile_prepend()"<br>
                        section in the rpm-extraconf.inc file like<br>
            this one:<br>
<br>
                        do_compile_prepend() {<br>
                            export HOST_SYS=${HOST_SYS}<br>
                            export BUILD_SYS=${BUILD_SYS}<br>
                        }<br>
<br>
                        If you still have unknown variables, just add<br>
            them the<br>
                    same way (I<br>
                        also had to add "STAGING_LIBDIR" and<br>
            "STAGING_INCDIR").<br>
<br>
                        I really don't know where this comes from<br>
            neither why you have<br>
                        this issue with rpm and I don't. I think it is<br>
            strange<br>
                    that such<br>
                        variables are not available. Anyway, it seems<br>
            to work with<br>
                    this<br>
                        correction...<br>
<br>
                        Anoop, please tell me if it works for you.<br>
<br>
                        Also I'd like to know if anyone have the same<br>
            issue with<br>
                    rpm. If<br>
                        it's the case it will probably be necessary to<br>
            add this<br>
                    correction<br>
                        in the recipe.<br>
<br>
                        Regards,<br>
                        Kevin<br>
<br>
<br>
<br>
                        On 06/08/2014 14:18, Anoop Babu wrote:<br>
<br>
                            Dear Kevin,<br>
<br>
                            I did a retry as suggested by you<br>
                            bitbake rpm -c cleanall<br>
                            bitbake rpm<br>
<br>
                            Unfortunately I have hit the same issue.<br>
            Attached is<br>
                    the log<br>
                            file, please have a look.<br>
<br>
                            Regards<br>
                            Anoop<br>
<br>
                            Best regards<br>
                                 A.B<br>
                            PPlease think about the environment before<br>
            printing<br>
                    this e-mail<br>
<br>
                            /<br>
<br>
                            *7*Switch off as you go |*q*Always recycle<br>
            |*P*Save a<br>
                            tree...please don't print this e-mail<br>
            unless you<br>
                    really need to.<br>
<br>
                            /<br>
<br>
<br>
<br>
                            On Wed, Aug 6, 2014 at 12:57 PM, Kévin THIERRY<br>
                            <<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>><br>
                    <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>>><br>
                            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>><br>
                    <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>>>><br>
                            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>><br>
                    <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>>><br>
<br>
                            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a><br>
            <mailto:<a href="mailto:kevin.thierry@open.eurogiciel.org" target="_blank">kevin.thierry@open.<u></u>eurogiciel.org</a>>>>>> wrote:<br>
<br>
                                Hi Anoop,<br>
<br>
<br>
                                On 05/08/2014 18:46, Anoop Babu wrote:<br>
<br>
                                    Building tizen using yocto<br>
<br>
                                    Host OS and architecture  -<br>
            -Ubuntu SMP i686/ i386<br>
                            GNU/Linux<br>
                                    Target architecture/BSP - iMX6 Sabre /<br>
                    meta-fsl-arm<br>
                                    The image you're trying to build -<br>
                                    tizen-common-core-image-<u></u>minimal-dev<br>
<br>
                                    Build procedure followed is from<br>
            <a href="https://wiki.tizen.org/wiki/Build_Tizen_with_Yocto" target="_blank">https://wiki.tizen.org/wiki/<u></u>Build_Tizen_with_Yocto</a><br>
                                    but for imx6<br>
<br>
                                    Fetch latest for all repos today.<br>
<br>
                                    Also updated rpm code based for<br>
            bashism issue<br>
                                    Replaced "export CCFLAGS+=" -fPIC<br>
            "" with<br>
                                    "export CCFLAGS="${CCFLAGS} -fPIC "".<br>
<br>
                                    attached is the rpm .inc files<br>
<br>
                                Looking quickly at the logs you<br>
            provided I suspect the<br>
                            error to be<br>
                                there:<br>
<br>
                                    checking for a Python interpreter<br>
            with version<br>
                    >= 2.6...<br>
                                    python<br>
                                    checking for python...<br>
            /home/sfm/YOCTO/build/tmp/<u></u>sysroots/i686-linux/usr/bin/<u></u>python-native/python<br>
                                    checking for python version...<br>
                                    2.7<br>
                                    checking for python platform...<br>
                                    linux2<br>
<br>
                                    checking for python script<br>
            directory...<br>
                                    Traceback (most recent call last):<br>
<br>
                                      File "<string>", line 22, in<br>
            <module><br>
<br>
                                      File<br>
            "/home/sfm/YOCTO/build/tmp/<u></u>sysroots/i686-linux/usr/lib/<u></u>python2.7/distutils/sysconfig.<u></u>py",<br>
                                    line 22, in <module><br>
<br>
                                    PREFIX =<br>
            os.path.normpath(sys.prefix).<u></u>replace(<br>
                                    os.getenv("BUILD_SYS"),<br>
            os.getenv("HOST_SYS") )<br>
<br>
                                    TypeError<br>
                                    :<br>
                                    expected a character buffer object<br>
<br>
<br>
                                    ${libdir}/python2.7/site-<u></u>packages<br>
                                    checking for python extension<br>
            module directory...<br>
                                    Traceback (most recent call last):<br>
                                      File "<string>", line 22, in<br>
            <module><br>
<br>
                                      File<br>
            "/home/sfm/YOCTO/build/tmp/<u></u>sysroots/i686-linux/usr/lib/<u></u>python2.7/distutils/sysconfig.<u></u>py",<br>
                                    line 22, in <module><br>
                                        PREFIX =<br>
            os.path.normpath(sys.prefix).<u></u>replace(<br>
                                    os.getenv("BUILD_SYS"),<br>
            os.getenv("HOST_SYS") )<br>
                                    TypeError: expected a character<br>
            buffer object<br>
<br>
                                    ${libdir}/python2.7/site-<u></u>packages<br>
<br>
                                That's weird because yesterday I<br>
            encountered a similar<br>
                            issue but<br>
                                with ecryptfs-utils not rpm but didn't<br>
            have time to<br>
                            investigate<br>
                                it. I just rebuilt rpm without issue.<br>
            Anoop, can you<br>
                            please clean<br>
                                retry a clean rpm build ?<br>
<br>
                                bitbake rpm -c cleanall<br>
                                bitbake rpm<br>
<br>
                                Please, let us know if you don't have<br>
            this issue<br>
                    anymore.<br>
<br>
                                Regards,<br>
                                Kevin<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div></div></blockquote>
<br>
</blockquote></div><br></div>