<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8089</bug_id>
          
          <creation_ts>2015-08-03 02:47:01 +0000</creation_ts>
          <short_desc>lib32 sdk is broken</short_desc>
          <delta_ts>2015-10-23 15:00:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>huimin.she</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>52767</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-08-03 02:47:01 +0000</bug_when>
    <thetext>local.conf:

MACHINE ?= &quot;qemux86-64&quot;

require conf/multilib.conf
MULTILIBS = &quot;multilib:lib32&quot;
DEFAULTTUNE_virtclass-multilib-lib32 = &quot;x86&quot;

$ bitbake lib32-core-image-minimal -cpopulate_sdk

$ ./tmp/deploy/sdk/poky-glibc-x86_64-lib32-core-image-minimal-core2-64-toolchain-1.8+snapshot.sh

Install it to ../sdk

$ cd ../sdk

$ source environment-setup-core2-64-poky-linux 
Or environment-setup-x86-pokymllib32-linux&apos;

While hello.c is:
main(){}

We can see that both of them are broken:

$CC hello.c
/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.9.3/real-ld: cannot find crt1.o: No such file or directory
/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.9.3/real-ld: cannot find crti.o: No such file or directory
/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.9.3/real-ld: cannot find crtbegin.o: No such file or directory
/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.9.3/real-ld: cannot find -lgcc
/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.9.3/real-ld: cannot find -lgcc_s
/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.9.3/real-ld: cannot find -lc
/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.9.3/real-ld: cannot find -lgcc
/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.9.3/real-ld: cannot find -lgcc_s
/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.9.3/real-ld: cannot find crtend.o: No such file or directory
/buildarea/lyang1/sdk/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.9.3/real-ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status


If we build core-image-minimal -cpopulate_sdk, the 64bit TC works well, but 32bit doesn&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54047</commentid>
    <comment_count>1</comment_count>
    <who name="Huimin She">huimin.she</who>
    <bug_when>2015-09-15 07:56:10 +0000</bug_when>
    <thetext>Hi,

I have met the same problem. 
image -c populate_sdk, the 64bit TC works well, but 32bit doesn&apos;t.

Is there any progress on this issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54052</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-09-15 09:11:23 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Hi,
&gt; 
&gt; I have met the same problem. 
&gt; image -c populate_sdk, the 64bit TC works well, but 32bit doesn&apos;t.
&gt; 
&gt; Is there any progress on this issue?
There are a few problems of multilib SDK, I&apos;m working on it, will send out patches this week.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54069</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-09-15 10:12:59 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Hi,
&gt; 
&gt; I have met the same problem. 
&gt; image -c populate_sdk, the 64bit TC works well, but 32bit doesn&apos;t.
&gt; 
&gt; Is there any progress on this issue?

It would be great if you can help test these patches:

  git://git.openembedded.org/openembedded-core-contrib rbt/sdk
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/sdk

Robert Yang (6):
  toolchain-shar-extract.sh: remove checkbashism
  oe-pkgdata-util: avoid returning skipped packages
  package_manager.py: make rpm install mutilib pkgs corectly
  multilib.bbclass: install all bits toochains when populate mlprefix
    SDK 
  populate_sdk_base.bbclass: fix SDKTARGETSYSROOT when populate
    mlprefix SDK 
  meta-environment.bb: fix environment-setup* when populate mlprefix
    SDK 

 meta/classes/multilib.bbclass              |   15 +++++
 meta/classes/populate_sdk_base.bbclass     |    6 +-
 meta/files/toolchain-shar-extract.sh       |    4 +-
 meta/lib/oe/package_manager.py             |   83 +++++++++++++++++++++++++++-
 meta/recipes-core/meta/meta-environment.bb |    4 ++
 scripts/oe-pkgdata-util                    |    5 +-
 6 files changed, 111 insertions(+), 6 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54138</commentid>
    <comment_count>4</comment_count>
    <who name="Huimin She">huimin.she</who>
    <bug_when>2015-09-16 09:16:04 +0000</bug_when>
    <thetext>Hi Robert,

Thanks for the patches. I adapted them to the dizzy branch and built the TC.
The problems still exist: complained about missing files when cross-compile 32 bit applications

/Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54139</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-09-16 09:25:13 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Hi Robert,
&gt; 
&gt; Thanks for the patches. I adapted them to the dizzy branch and built the TC.

Thanks, these patches are based on master branch, we need do more work to backport them to dizzy. I will send a patch for dizzy after this is merged into master.

// Robert

&gt; The problems still exist: complained about missing files when cross-compile
&gt; 32 bit applications
&gt; 
&gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54258</commentid>
    <comment_count>6</comment_count>
    <who name="Huimin She">huimin.she</who>
    <bug_when>2015-09-18 11:40:55 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; Hi Robert,
&gt; &gt; 
&gt; &gt; Thanks for the patches. I adapted them to the dizzy branch and built the TC.
&gt; 
&gt; Thanks, these patches are based on master branch, we need do more work to
&gt; backport them to dizzy. I will send a patch for dizzy after this is merged
&gt; into master.
&gt; 

Do you have a rough idea when you will provide a patch for dizzy? Thanks.


&gt; 
&gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; 32 bit applications
&gt; &gt; 
&gt; &gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54726</commentid>
    <comment_count>7</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-09-28 14:06:36 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; Hi Robert,
&gt; &gt; &gt; 
&gt; &gt; &gt; Thanks for the patches. I adapted them to the dizzy branch and built the TC.
&gt; &gt; 
&gt; &gt; Thanks, these patches are based on master branch, we need do more work to
&gt; &gt; backport them to dizzy. I will send a patch for dizzy after this is merged
&gt; &gt; into master.
&gt; &gt; 
&gt; 
&gt; Do you have a rough idea when you will provide a patch for dizzy? Thanks.

Hello, it has been fixed on master branch, part of the work are done by Richard, I will talk with him on how to backport them.


&gt; 
&gt; 
&gt; &gt; 
&gt; &gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; &gt; 32 bit applications
&gt; &gt; &gt; 
&gt; &gt; &gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54728</commentid>
    <comment_count>8</comment_count>
    <who name="Huimin She">huimin.she</who>
    <bug_when>2015-09-28 14:18:56 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; Hi Robert,
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Thanks for the patches. I adapted them to the dizzy branch and built the TC.
&gt; &gt; &gt; 
&gt; &gt; &gt; Thanks, these patches are based on master branch, we need do more work to
&gt; &gt; &gt; backport them to dizzy. I will send a patch for dizzy after this is merged
&gt; &gt; &gt; into master.
&gt; &gt; &gt; 
&gt; &gt; 
&gt; &gt; Do you have a rough idea when you will provide a patch for dizzy? Thanks.
&gt; 
&gt; Hello, it has been fixed on master branch, part of the work are done by
&gt; Richard, I will talk with him on how to backport them.

Thanks for the information, Robert.
Great it&apos;s fixed on master.

&gt; 
&gt; &gt; 
&gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; &gt; &gt; 32 bit applications
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54730</commentid>
    <comment_count>9</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-09-28 14:31:42 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; (In reply to comment #6)
&gt; &gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; &gt; Hi Robert,
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Thanks for the patches. I adapted them to the dizzy branch and built the TC.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Thanks, these patches are based on master branch, we need do more work to
&gt; &gt; &gt; &gt; backport them to dizzy. I will send a patch for dizzy after this is merged
&gt; &gt; &gt; &gt; into master.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; Do you have a rough idea when you will provide a patch for dizzy? Thanks.
&gt; &gt; 
&gt; &gt; Hello, it has been fixed on master branch, part of the work are done by
&gt; &gt; Richard, I will talk with him on how to backport them.
&gt; 
&gt; Thanks for the information, Robert.
&gt; Great it&apos;s fixed on master.

Hello Huimin She,

After talked with Richard, I&apos;m sorry to say that we can&apos;t or too difficult to backport this to dizzy, the problem is that bitbake&apos;s datastore changes in master are needed so its too difficult.

Here are the part of oe-core:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=eb7b1a58ceaab7fde4dc954eb4df4247d6c7c6d8


&gt; 
&gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; &gt; &gt; &gt; 32 bit applications
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54733</commentid>
    <comment_count>10</comment_count>
    <who name="Huimin She">huimin.she</who>
    <bug_when>2015-09-28 14:48:03 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; (In reply to comment #7)
&gt; &gt; &gt; (In reply to comment #6)
&gt; &gt; &gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; &gt; &gt; Hi Robert,
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; Thanks for the patches. I adapted them to the dizzy branch and built the TC.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Thanks, these patches are based on master branch, we need do more work to
&gt; &gt; &gt; &gt; &gt; backport them to dizzy. I will send a patch for dizzy after this is merged
&gt; &gt; &gt; &gt; &gt; into master.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Do you have a rough idea when you will provide a patch for dizzy? Thanks.
&gt; &gt; &gt; 
&gt; &gt; &gt; Hello, it has been fixed on master branch, part of the work are done by
&gt; &gt; &gt; Richard, I will talk with him on how to backport them.
&gt; &gt; 
&gt; &gt; Thanks for the information, Robert.
&gt; &gt; Great it&apos;s fixed on master.
&gt; 
&gt; Hello Huimin She,
&gt; 
&gt; After talked with Richard, I&apos;m sorry to say that we can&apos;t or too difficult
&gt; to backport this to dizzy, the problem is that bitbake&apos;s datastore changes
&gt; in master are needed so its too difficult.
&gt; 

Do you have suggestions for work-around? 

I tried with manually copying the missing files to the correponding SDK folders, and managed to cross-compile a 32-bit c hello_world, and it runs fine on the target. However, it failed with compiling c++. 
I did not try further, since I am not sure how many more packages are missing.

Do you know which packages are NOT correctly installed?


&gt; Here are the part of oe-core:
&gt; 
&gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/
&gt; ?id=eb7b1a58ceaab7fde4dc954eb4df4247d6c7c6d8
&gt; 

In the comment of the patch, you mentioned &quot;Use bitbake to expand the RDEPENDS will fix the problem since bitbake knows mlprefix and handle it well, but rpm doesn&apos;t.&quot;

Can you explain more on this? For example, where should I put the RDEPENDS?


Thanks.

/Huimin

&gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; &gt; &gt; &gt; &gt; 32 bit applications
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54737</commentid>
    <comment_count>11</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-09-28 15:11:19 +0000</bug_when>
    <thetext>    (In reply to comment #10)
&gt; (In reply to comment #9)
&gt; &gt; (In reply to comment #8)
&gt; &gt; &gt; (In reply to comment #7)
&gt; &gt; &gt; &gt; (In reply to comment #6)
&gt; &gt; &gt; &gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Hi Robert,
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks for the patches. I adapted them to the dizzy branch and built the TC.
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; Thanks, these patches are based on master branch, we need do more work to
&gt; &gt; &gt; &gt; &gt; &gt; backport them to dizzy. I will send a patch for dizzy after this is merged
&gt; &gt; &gt; &gt; &gt; &gt; into master.
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Do you have a rough idea when you will provide a patch for dizzy? Thanks.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Hello, it has been fixed on master branch, part of the work are done by
&gt; &gt; &gt; &gt; Richard, I will talk with him on how to backport them.
&gt; &gt; &gt; 
&gt; &gt; &gt; Thanks for the information, Robert.
&gt; &gt; &gt; Great it&apos;s fixed on master.
&gt; &gt; 
&gt; &gt; Hello Huimin She,
&gt; &gt; 
&gt; &gt; After talked with Richard, I&apos;m sorry to say that we can&apos;t or too difficult
&gt; &gt; to backport this to dizzy, the problem is that bitbake&apos;s datastore changes
&gt; &gt; in master are needed so its too difficult.
&gt; &gt; 
&gt; 
&gt; Do you have suggestions for work-around? 
&gt; 
&gt; I tried with manually copying the missing files to the correponding SDK
&gt; folders, and managed to cross-compile a 32-bit c hello_world, and it runs
&gt; fine on the target. However, it failed with compiling c++. 
&gt; I did not try further, since I am not sure how many more packages are
&gt; missing.
&gt; 
&gt; Do you know which packages are NOT correctly installed?

Hello,

Here is the package list from master&apos;s bitbake lib32-core-image-minimal -cpopulate_sdk:

glibc-gconv core2-64
glibc-gconv-cp1252 core2-64
glibc-gconv-ibm850 core2-64
glibc-gconv-iso8859-1 core2-64
glibc-gconv-iso8859-15 core2-64
glibc-localedata-i18n core2-64
glibc-localedata-iso14651-t1 core2-64
glibc-localedata-iso14651-t1-common core2-64
glibc-localedata-translit-circle core2-64
glibc-localedata-translit-cjk-compat core2-64
glibc-localedata-translit-compat core2-64
glibc-localedata-translit-font core2-64
glibc-localedata-translit-fraction core2-64
glibc-localedata-translit-narrow core2-64
glibc-localedata-translit-neutral core2-64
glibc-localedata-translit-small core2-64
glibc-localedata-translit-wide core2-64
kernel-4.1.6-yocto-standard qemux86_64
kernel-module-uvesafb qemux86_64
lib32-base-files qemux86_64
lib32-base-passwd x86 
lib32-busybox x86 
lib32-busybox-hwclock x86 
lib32-busybox-syslog x86 
lib32-busybox-udhcpc x86 
lib32-glibc-gconv x86 
lib32-glibc-gconv-cp1252 x86 
lib32-glibc-gconv-ibm850 x86 
lib32-glibc-gconv-iso8859-1 x86 
lib32-glibc-gconv-iso8859-15 x86 
lib32-glibc-localedata-i18n x86 
lib32-glibc-localedata-iso14651-t1 x86 
lib32-glibc-localedata-iso14651-t1-common x86 
lib32-glibc-localedata-translit-circle x86 
lib32-glibc-localedata-translit-cjk-compat x86 
lib32-glibc-localedata-translit-compat x86 
lib32-glibc-localedata-translit-font x86 
lib32-glibc-localedata-translit-fraction x86 
lib32-glibc-localedata-translit-narrow x86 
lib32-glibc-localedata-translit-neutral x86 
lib32-glibc-localedata-translit-small x86
lib32-glibc-localedata-translit-wide x86
lib32-init-ifupdown qemux86_64
lib32-initscripts x86
lib32-initscripts-functions x86
lib32-libatomic-dev x86
lib32-libatomic1 x86
lib32-libblkid1 x86
lib32-libc6 x86
lib32-libc6-dbg x86
lib32-libc6-dev x86
lib32-libc6-extra-nss x86
lib32-libc6-thread-db x86
lib32-libc6-utils x86
lib32-libcidn1 x86
lib32-libgcc-s-dbg x86
lib32-libgcc-s-dev x86
lib32-libgcc1 x86
lib32-libkmod2 x86
lib32-libsegfault x86
lib32-libstdc++-dev x86
lib32-libstdc++6 x86
lib32-libuuid1 x86
lib32-libz1 x86
lib32-linux-libc-headers-dev x86
lib32-modutils-initscripts x86
lib32-netbase x86
lib32-packagegroup-core-boot qemux86_64
lib32-sysvinit x86
lib32-sysvinit-inittab qemux86_64
lib32-sysvinit-pidof x86
lib32-udev x86
lib32-udev-cache x86
lib32-update-alternatives-opkg x86
lib32-v86d qemux86_64
libatomic-dev core2-64
libatomic1 core2-64
libc6 core2-64
libc6-dbg core2-64
libc6-dev core2-64
libc6-extra-nss core2-64
libc6-thread-db core2-64
libc6-utils core2-64
libcidn1 core2-64
libgcc-s-dev core2-64
libgcc1 core2-64
libsegfault core2-64
libstdc++-dev core2-64
libstdc++6 core2-64
packagegroup-core-standalone-sdk-target all
packagegroup-core-standalone-sdk-target-dbg all
run-postinsts all
update-rc.d all

So you have to install lib32-xx packages if you want to make 32 sdk work, and the same to 64.

&gt; 
&gt; 
&gt; &gt; Here are the part of oe-core:
&gt; &gt; 
&gt; &gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/
&gt; &gt; ?id=eb7b1a58ceaab7fde4dc954eb4df4247d6c7c6d8
&gt; &gt; 
&gt; 
&gt; In the comment of the patch, you mentioned &quot;Use bitbake to expand the
&gt; RDEPENDS will fix the problem since bitbake knows mlprefix and handle it
&gt; well, but rpm doesn&apos;t.&quot;
&gt; 
&gt; Can you explain more on this? For example, where should I put the RDEPENDS?

For example, make sure that that lib32-foo RDEPENDS lib32-fxx rather than fxx.

Basically, if this oe-core&apos;s patch works for denzil branch, then you can get the packages installed correctly, and what you have to do is update SDKTARGETSYSROOT in the environment-setup-foo files.

// Robert

&gt; 
&gt; 
&gt; Thanks.
&gt; 
&gt; /Huimin
&gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 32 bit applications
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54769</commentid>
    <comment_count>12</comment_count>
    <who name="Huimin She">huimin.she</who>
    <bug_when>2015-09-29 07:43:16 +0000</bug_when>
    <thetext>(In reply to comment #11)
&gt;     (In reply to comment #10)
&gt; &gt; (In reply to comment #9)
&gt; &gt; &gt; (In reply to comment #8)
&gt; &gt; &gt; &gt; (In reply to comment #7)
&gt; &gt; &gt; &gt; &gt; (In reply to comment #6)
&gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Hi Robert,
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks for the patches. I adapted them to the dizzy branch and built the TC.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks, these patches are based on master branch, we need do more work to
&gt; &gt; &gt; &gt; &gt; &gt; &gt; backport them to dizzy. I will send a patch for dizzy after this is merged
&gt; &gt; &gt; &gt; &gt; &gt; &gt; into master.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; Do you have a rough idea when you will provide a patch for dizzy? Thanks.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Hello, it has been fixed on master branch, part of the work are done by
&gt; &gt; &gt; &gt; &gt; Richard, I will talk with him on how to backport them.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Thanks for the information, Robert.
&gt; &gt; &gt; &gt; Great it&apos;s fixed on master.
&gt; &gt; &gt; 
&gt; &gt; &gt; Hello Huimin She,
&gt; &gt; &gt; 
&gt; &gt; &gt; After talked with Richard, I&apos;m sorry to say that we can&apos;t or too difficult
&gt; &gt; &gt; to backport this to dizzy, the problem is that bitbake&apos;s datastore changes
&gt; &gt; &gt; in master are needed so its too difficult.
&gt; &gt; &gt; 
&gt; &gt; 
&gt; &gt; Do you have suggestions for work-around? 
&gt; &gt; 
&gt; &gt; I tried with manually copying the missing files to the correponding SDK
&gt; &gt; folders, and managed to cross-compile a 32-bit c hello_world, and it runs
&gt; &gt; fine on the target. However, it failed with compiling c++. 
&gt; &gt; I did not try further, since I am not sure how many more packages are
&gt; &gt; missing.
&gt; &gt; 
&gt; &gt; Do you know which packages are NOT correctly installed?
&gt; 
&gt; Hello,
&gt; 
&gt; Here is the package list from master&apos;s bitbake lib32-core-image-minimal
&gt; -cpopulate_sdk:
&gt; 
&gt; glibc-gconv core2-64
&gt; glibc-gconv-cp1252 core2-64
&gt; glibc-gconv-ibm850 core2-64
&gt; glibc-gconv-iso8859-1 core2-64
&gt; glibc-gconv-iso8859-15 core2-64
&gt; glibc-localedata-i18n core2-64
&gt; glibc-localedata-iso14651-t1 core2-64
&gt; glibc-localedata-iso14651-t1-common core2-64
&gt; glibc-localedata-translit-circle core2-64
&gt; glibc-localedata-translit-cjk-compat core2-64
&gt; glibc-localedata-translit-compat core2-64
&gt; glibc-localedata-translit-font core2-64
&gt; glibc-localedata-translit-fraction core2-64
&gt; glibc-localedata-translit-narrow core2-64
&gt; glibc-localedata-translit-neutral core2-64
&gt; glibc-localedata-translit-small core2-64
&gt; glibc-localedata-translit-wide core2-64
&gt; kernel-4.1.6-yocto-standard qemux86_64
&gt; kernel-module-uvesafb qemux86_64
&gt; lib32-base-files qemux86_64
&gt; lib32-base-passwd x86 
&gt; lib32-busybox x86 
&gt; lib32-busybox-hwclock x86 
&gt; lib32-busybox-syslog x86 
&gt; lib32-busybox-udhcpc x86 
&gt; lib32-glibc-gconv x86 
&gt; lib32-glibc-gconv-cp1252 x86 
&gt; lib32-glibc-gconv-ibm850 x86 
&gt; lib32-glibc-gconv-iso8859-1 x86 
&gt; lib32-glibc-gconv-iso8859-15 x86 
&gt; lib32-glibc-localedata-i18n x86 
&gt; lib32-glibc-localedata-iso14651-t1 x86 
&gt; lib32-glibc-localedata-iso14651-t1-common x86 
&gt; lib32-glibc-localedata-translit-circle x86 
&gt; lib32-glibc-localedata-translit-cjk-compat x86 
&gt; lib32-glibc-localedata-translit-compat x86 
&gt; lib32-glibc-localedata-translit-font x86 
&gt; lib32-glibc-localedata-translit-fraction x86 
&gt; lib32-glibc-localedata-translit-narrow x86 
&gt; lib32-glibc-localedata-translit-neutral x86 
&gt; lib32-glibc-localedata-translit-small x86
&gt; lib32-glibc-localedata-translit-wide x86
&gt; lib32-init-ifupdown qemux86_64
&gt; lib32-initscripts x86
&gt; lib32-initscripts-functions x86
&gt; lib32-libatomic-dev x86
&gt; lib32-libatomic1 x86
&gt; lib32-libblkid1 x86
&gt; lib32-libc6 x86
&gt; lib32-libc6-dbg x86
&gt; lib32-libc6-dev x86
&gt; lib32-libc6-extra-nss x86
&gt; lib32-libc6-thread-db x86
&gt; lib32-libc6-utils x86
&gt; lib32-libcidn1 x86
&gt; lib32-libgcc-s-dbg x86
&gt; lib32-libgcc-s-dev x86
&gt; lib32-libgcc1 x86
&gt; lib32-libkmod2 x86
&gt; lib32-libsegfault x86
&gt; lib32-libstdc++-dev x86
&gt; lib32-libstdc++6 x86
&gt; lib32-libuuid1 x86
&gt; lib32-libz1 x86
&gt; lib32-linux-libc-headers-dev x86
&gt; lib32-modutils-initscripts x86
&gt; lib32-netbase x86
&gt; lib32-packagegroup-core-boot qemux86_64
&gt; lib32-sysvinit x86
&gt; lib32-sysvinit-inittab qemux86_64
&gt; lib32-sysvinit-pidof x86
&gt; lib32-udev x86
&gt; lib32-udev-cache x86
&gt; lib32-update-alternatives-opkg x86
&gt; lib32-v86d qemux86_64
&gt; libatomic-dev core2-64
&gt; libatomic1 core2-64
&gt; libc6 core2-64
&gt; libc6-dbg core2-64
&gt; libc6-dev core2-64
&gt; libc6-extra-nss core2-64
&gt; libc6-thread-db core2-64
&gt; libc6-utils core2-64
&gt; libcidn1 core2-64
&gt; libgcc-s-dev core2-64
&gt; libgcc1 core2-64
&gt; libsegfault core2-64
&gt; libstdc++-dev core2-64
&gt; libstdc++6 core2-64
&gt; packagegroup-core-standalone-sdk-target all
&gt; packagegroup-core-standalone-sdk-target-dbg all
&gt; run-postinsts all
&gt; update-rc.d all
&gt; 
&gt; So you have to install lib32-xx packages if you want to make 32 sdk work,
&gt; and the same to 64.
&gt; 
&gt; &gt; 
&gt; &gt; 
&gt; &gt; &gt; Here are the part of oe-core:
&gt; &gt; &gt; 
&gt; &gt; &gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/
&gt; &gt; &gt; ?id=eb7b1a58ceaab7fde4dc954eb4df4247d6c7c6d8
&gt; &gt; &gt; 
&gt; &gt; 
&gt; &gt; In the comment of the patch, you mentioned &quot;Use bitbake to expand the
&gt; &gt; RDEPENDS will fix the problem since bitbake knows mlprefix and handle it
&gt; &gt; well, but rpm doesn&apos;t.&quot;
&gt; &gt; 
&gt; &gt; Can you explain more on this? For example, where should I put the RDEPENDS?
&gt; 
&gt; For example, make sure that that lib32-foo RDEPENDS lib32-fxx rather than
&gt; fxx.
&gt; 
&gt; Basically, if this oe-core&apos;s patch works for denzil branch, then you can get
&gt; the packages installed correctly, and what you have to do is update
&gt; SDKTARGETSYSROOT in the environment-setup-foo files.

I tried with this patch on dizzy, and added packagegroup-core-standalone-sdk-target and lib32-packagegroup-core-standalone-sdk-target to &lt;image.bb&gt;, 
then bitbake &lt;image.bb&gt; -c populate_sdk. It seems rpm correclty installs lib32-* packages to the rootfs, but not SDK.


&gt; // Robert
&gt; 
&gt; &gt; 
&gt; &gt; 
&gt; &gt; Thanks.
&gt; &gt; 
&gt; &gt; /Huimin
&gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 32 bit applications
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54770</commentid>
    <comment_count>13</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-09-29 07:56:39 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; (In reply to comment #11)
&gt; &gt;     (In reply to comment #10)
&gt; &gt; &gt; (In reply to comment #9)
&gt; &gt; &gt; &gt; (In reply to comment #8)
&gt; &gt; &gt; &gt; &gt; (In reply to comment #7)
&gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #6)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Hi Robert,
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks for the patches. I adapted them to the dizzy branch and built the TC.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks, these patches are based on master branch, we need do more work to
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; backport them to dizzy. I will send a patch for dizzy after this is merged
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; into master.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Do you have a rough idea when you will provide a patch for dizzy? Thanks.
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; Hello, it has been fixed on master branch, part of the work are done by
&gt; &gt; &gt; &gt; &gt; &gt; Richard, I will talk with him on how to backport them.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Thanks for the information, Robert.
&gt; &gt; &gt; &gt; &gt; Great it&apos;s fixed on master.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Hello Huimin She,
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; After talked with Richard, I&apos;m sorry to say that we can&apos;t or too difficult
&gt; &gt; &gt; &gt; to backport this to dizzy, the problem is that bitbake&apos;s datastore changes
&gt; &gt; &gt; &gt; in master are needed so its too difficult.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; Do you have suggestions for work-around? 
&gt; &gt; &gt; 
&gt; &gt; &gt; I tried with manually copying the missing files to the correponding SDK
&gt; &gt; &gt; folders, and managed to cross-compile a 32-bit c hello_world, and it runs
&gt; &gt; &gt; fine on the target. However, it failed with compiling c++. 
&gt; &gt; &gt; I did not try further, since I am not sure how many more packages are
&gt; &gt; &gt; missing.
&gt; &gt; &gt; 
&gt; &gt; &gt; Do you know which packages are NOT correctly installed?
&gt; &gt; 
&gt; &gt; Hello,
&gt; &gt; 
&gt; &gt; Here is the package list from master&apos;s bitbake lib32-core-image-minimal
&gt; &gt; -cpopulate_sdk:
&gt; &gt; 
&gt; &gt; glibc-gconv core2-64
&gt; &gt; glibc-gconv-cp1252 core2-64
&gt; &gt; glibc-gconv-ibm850 core2-64
&gt; &gt; glibc-gconv-iso8859-1 core2-64
&gt; &gt; glibc-gconv-iso8859-15 core2-64
&gt; &gt; glibc-localedata-i18n core2-64
&gt; &gt; glibc-localedata-iso14651-t1 core2-64
&gt; &gt; glibc-localedata-iso14651-t1-common core2-64
&gt; &gt; glibc-localedata-translit-circle core2-64
&gt; &gt; glibc-localedata-translit-cjk-compat core2-64
&gt; &gt; glibc-localedata-translit-compat core2-64
&gt; &gt; glibc-localedata-translit-font core2-64
&gt; &gt; glibc-localedata-translit-fraction core2-64
&gt; &gt; glibc-localedata-translit-narrow core2-64
&gt; &gt; glibc-localedata-translit-neutral core2-64
&gt; &gt; glibc-localedata-translit-small core2-64
&gt; &gt; glibc-localedata-translit-wide core2-64
&gt; &gt; kernel-4.1.6-yocto-standard qemux86_64
&gt; &gt; kernel-module-uvesafb qemux86_64
&gt; &gt; lib32-base-files qemux86_64
&gt; &gt; lib32-base-passwd x86 
&gt; &gt; lib32-busybox x86 
&gt; &gt; lib32-busybox-hwclock x86 
&gt; &gt; lib32-busybox-syslog x86 
&gt; &gt; lib32-busybox-udhcpc x86 
&gt; &gt; lib32-glibc-gconv x86 
&gt; &gt; lib32-glibc-gconv-cp1252 x86 
&gt; &gt; lib32-glibc-gconv-ibm850 x86 
&gt; &gt; lib32-glibc-gconv-iso8859-1 x86 
&gt; &gt; lib32-glibc-gconv-iso8859-15 x86 
&gt; &gt; lib32-glibc-localedata-i18n x86 
&gt; &gt; lib32-glibc-localedata-iso14651-t1 x86 
&gt; &gt; lib32-glibc-localedata-iso14651-t1-common x86 
&gt; &gt; lib32-glibc-localedata-translit-circle x86 
&gt; &gt; lib32-glibc-localedata-translit-cjk-compat x86 
&gt; &gt; lib32-glibc-localedata-translit-compat x86 
&gt; &gt; lib32-glibc-localedata-translit-font x86 
&gt; &gt; lib32-glibc-localedata-translit-fraction x86 
&gt; &gt; lib32-glibc-localedata-translit-narrow x86 
&gt; &gt; lib32-glibc-localedata-translit-neutral x86 
&gt; &gt; lib32-glibc-localedata-translit-small x86
&gt; &gt; lib32-glibc-localedata-translit-wide x86
&gt; &gt; lib32-init-ifupdown qemux86_64
&gt; &gt; lib32-initscripts x86
&gt; &gt; lib32-initscripts-functions x86
&gt; &gt; lib32-libatomic-dev x86
&gt; &gt; lib32-libatomic1 x86
&gt; &gt; lib32-libblkid1 x86
&gt; &gt; lib32-libc6 x86
&gt; &gt; lib32-libc6-dbg x86
&gt; &gt; lib32-libc6-dev x86
&gt; &gt; lib32-libc6-extra-nss x86
&gt; &gt; lib32-libc6-thread-db x86
&gt; &gt; lib32-libc6-utils x86
&gt; &gt; lib32-libcidn1 x86
&gt; &gt; lib32-libgcc-s-dbg x86
&gt; &gt; lib32-libgcc-s-dev x86
&gt; &gt; lib32-libgcc1 x86
&gt; &gt; lib32-libkmod2 x86
&gt; &gt; lib32-libsegfault x86
&gt; &gt; lib32-libstdc++-dev x86
&gt; &gt; lib32-libstdc++6 x86
&gt; &gt; lib32-libuuid1 x86
&gt; &gt; lib32-libz1 x86
&gt; &gt; lib32-linux-libc-headers-dev x86
&gt; &gt; lib32-modutils-initscripts x86
&gt; &gt; lib32-netbase x86
&gt; &gt; lib32-packagegroup-core-boot qemux86_64
&gt; &gt; lib32-sysvinit x86
&gt; &gt; lib32-sysvinit-inittab qemux86_64
&gt; &gt; lib32-sysvinit-pidof x86
&gt; &gt; lib32-udev x86
&gt; &gt; lib32-udev-cache x86
&gt; &gt; lib32-update-alternatives-opkg x86
&gt; &gt; lib32-v86d qemux86_64
&gt; &gt; libatomic-dev core2-64
&gt; &gt; libatomic1 core2-64
&gt; &gt; libc6 core2-64
&gt; &gt; libc6-dbg core2-64
&gt; &gt; libc6-dev core2-64
&gt; &gt; libc6-extra-nss core2-64
&gt; &gt; libc6-thread-db core2-64
&gt; &gt; libc6-utils core2-64
&gt; &gt; libcidn1 core2-64
&gt; &gt; libgcc-s-dev core2-64
&gt; &gt; libgcc1 core2-64
&gt; &gt; libsegfault core2-64
&gt; &gt; libstdc++-dev core2-64
&gt; &gt; libstdc++6 core2-64
&gt; &gt; packagegroup-core-standalone-sdk-target all
&gt; &gt; packagegroup-core-standalone-sdk-target-dbg all
&gt; &gt; run-postinsts all
&gt; &gt; update-rc.d all
&gt; &gt; 
&gt; &gt; So you have to install lib32-xx packages if you want to make 32 sdk work,
&gt; &gt; and the same to 64.
&gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Here are the part of oe-core:
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/
&gt; &gt; &gt; &gt; ?id=eb7b1a58ceaab7fde4dc954eb4df4247d6c7c6d8
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; In the comment of the patch, you mentioned &quot;Use bitbake to expand the
&gt; &gt; &gt; RDEPENDS will fix the problem since bitbake knows mlprefix and handle it
&gt; &gt; &gt; well, but rpm doesn&apos;t.&quot;
&gt; &gt; &gt; 
&gt; &gt; &gt; Can you explain more on this? For example, where should I put the RDEPENDS?
&gt; &gt; 
&gt; &gt; For example, make sure that that lib32-foo RDEPENDS lib32-fxx rather than
&gt; &gt; fxx.
&gt; &gt; 
&gt; &gt; Basically, if this oe-core&apos;s patch works for denzil branch, then you can get
&gt; &gt; the packages installed correctly, and what you have to do is update
&gt; &gt; SDKTARGETSYSROOT in the environment-setup-foo files.
&gt; 
&gt; I tried with this patch on dizzy, and added
&gt; packagegroup-core-standalone-sdk-target and
&gt; lib32-packagegroup-core-standalone-sdk-target to &lt;image.bb&gt;, 
&gt; then bitbake &lt;image.bb&gt; -c populate_sdk. It seems rpm correclty installs
&gt; lib32-* packages to the rootfs, but not SDK.

If you run &lt;image.bb&gt; -c populate_sdk, then only SDK is generated, no rootfs.

// Robert

&gt; 
&gt; 
&gt; &gt; // Robert
&gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; Thanks.
&gt; &gt; &gt; 
&gt; &gt; &gt; /Huimin
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 32 bit applications
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54771</commentid>
    <comment_count>14</comment_count>
    <who name="Huimin She">huimin.she</who>
    <bug_when>2015-09-29 07:59:11 +0000</bug_when>
    <thetext>(In reply to comment #13)
&gt; (In reply to comment #12)
&gt; &gt; (In reply to comment #11)
&gt; &gt; &gt;     (In reply to comment #10)
&gt; &gt; &gt; &gt; (In reply to comment #9)
&gt; &gt; &gt; &gt; &gt; (In reply to comment #8)
&gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #7)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #6)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Hi Robert,
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks for the patches. I adapted them to the dizzy branch and built the TC.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks, these patches are based on master branch, we need do more work to
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; backport them to dizzy. I will send a patch for dizzy after this is merged
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; into master.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Do you have a rough idea when you will provide a patch for dizzy? Thanks.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Hello, it has been fixed on master branch, part of the work are done by
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Richard, I will talk with him on how to backport them.
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; Thanks for the information, Robert.
&gt; &gt; &gt; &gt; &gt; &gt; Great it&apos;s fixed on master.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Hello Huimin She,
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; After talked with Richard, I&apos;m sorry to say that we can&apos;t or too difficult
&gt; &gt; &gt; &gt; &gt; to backport this to dizzy, the problem is that bitbake&apos;s datastore changes
&gt; &gt; &gt; &gt; &gt; in master are needed so its too difficult.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Do you have suggestions for work-around? 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; I tried with manually copying the missing files to the correponding SDK
&gt; &gt; &gt; &gt; folders, and managed to cross-compile a 32-bit c hello_world, and it runs
&gt; &gt; &gt; &gt; fine on the target. However, it failed with compiling c++. 
&gt; &gt; &gt; &gt; I did not try further, since I am not sure how many more packages are
&gt; &gt; &gt; &gt; missing.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Do you know which packages are NOT correctly installed?
&gt; &gt; &gt; 
&gt; &gt; &gt; Hello,
&gt; &gt; &gt; 
&gt; &gt; &gt; Here is the package list from master&apos;s bitbake lib32-core-image-minimal
&gt; &gt; &gt; -cpopulate_sdk:
&gt; &gt; &gt; 
&gt; &gt; &gt; glibc-gconv core2-64
&gt; &gt; &gt; glibc-gconv-cp1252 core2-64
&gt; &gt; &gt; glibc-gconv-ibm850 core2-64
&gt; &gt; &gt; glibc-gconv-iso8859-1 core2-64
&gt; &gt; &gt; glibc-gconv-iso8859-15 core2-64
&gt; &gt; &gt; glibc-localedata-i18n core2-64
&gt; &gt; &gt; glibc-localedata-iso14651-t1 core2-64
&gt; &gt; &gt; glibc-localedata-iso14651-t1-common core2-64
&gt; &gt; &gt; glibc-localedata-translit-circle core2-64
&gt; &gt; &gt; glibc-localedata-translit-cjk-compat core2-64
&gt; &gt; &gt; glibc-localedata-translit-compat core2-64
&gt; &gt; &gt; glibc-localedata-translit-font core2-64
&gt; &gt; &gt; glibc-localedata-translit-fraction core2-64
&gt; &gt; &gt; glibc-localedata-translit-narrow core2-64
&gt; &gt; &gt; glibc-localedata-translit-neutral core2-64
&gt; &gt; &gt; glibc-localedata-translit-small core2-64
&gt; &gt; &gt; glibc-localedata-translit-wide core2-64
&gt; &gt; &gt; kernel-4.1.6-yocto-standard qemux86_64
&gt; &gt; &gt; kernel-module-uvesafb qemux86_64
&gt; &gt; &gt; lib32-base-files qemux86_64
&gt; &gt; &gt; lib32-base-passwd x86 
&gt; &gt; &gt; lib32-busybox x86 
&gt; &gt; &gt; lib32-busybox-hwclock x86 
&gt; &gt; &gt; lib32-busybox-syslog x86 
&gt; &gt; &gt; lib32-busybox-udhcpc x86 
&gt; &gt; &gt; lib32-glibc-gconv x86 
&gt; &gt; &gt; lib32-glibc-gconv-cp1252 x86 
&gt; &gt; &gt; lib32-glibc-gconv-ibm850 x86 
&gt; &gt; &gt; lib32-glibc-gconv-iso8859-1 x86 
&gt; &gt; &gt; lib32-glibc-gconv-iso8859-15 x86 
&gt; &gt; &gt; lib32-glibc-localedata-i18n x86 
&gt; &gt; &gt; lib32-glibc-localedata-iso14651-t1 x86 
&gt; &gt; &gt; lib32-glibc-localedata-iso14651-t1-common x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-circle x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-cjk-compat x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-compat x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-font x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-fraction x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-narrow x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-neutral x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-small x86
&gt; &gt; &gt; lib32-glibc-localedata-translit-wide x86
&gt; &gt; &gt; lib32-init-ifupdown qemux86_64
&gt; &gt; &gt; lib32-initscripts x86
&gt; &gt; &gt; lib32-initscripts-functions x86
&gt; &gt; &gt; lib32-libatomic-dev x86
&gt; &gt; &gt; lib32-libatomic1 x86
&gt; &gt; &gt; lib32-libblkid1 x86
&gt; &gt; &gt; lib32-libc6 x86
&gt; &gt; &gt; lib32-libc6-dbg x86
&gt; &gt; &gt; lib32-libc6-dev x86
&gt; &gt; &gt; lib32-libc6-extra-nss x86
&gt; &gt; &gt; lib32-libc6-thread-db x86
&gt; &gt; &gt; lib32-libc6-utils x86
&gt; &gt; &gt; lib32-libcidn1 x86
&gt; &gt; &gt; lib32-libgcc-s-dbg x86
&gt; &gt; &gt; lib32-libgcc-s-dev x86
&gt; &gt; &gt; lib32-libgcc1 x86
&gt; &gt; &gt; lib32-libkmod2 x86
&gt; &gt; &gt; lib32-libsegfault x86
&gt; &gt; &gt; lib32-libstdc++-dev x86
&gt; &gt; &gt; lib32-libstdc++6 x86
&gt; &gt; &gt; lib32-libuuid1 x86
&gt; &gt; &gt; lib32-libz1 x86
&gt; &gt; &gt; lib32-linux-libc-headers-dev x86
&gt; &gt; &gt; lib32-modutils-initscripts x86
&gt; &gt; &gt; lib32-netbase x86
&gt; &gt; &gt; lib32-packagegroup-core-boot qemux86_64
&gt; &gt; &gt; lib32-sysvinit x86
&gt; &gt; &gt; lib32-sysvinit-inittab qemux86_64
&gt; &gt; &gt; lib32-sysvinit-pidof x86
&gt; &gt; &gt; lib32-udev x86
&gt; &gt; &gt; lib32-udev-cache x86
&gt; &gt; &gt; lib32-update-alternatives-opkg x86
&gt; &gt; &gt; lib32-v86d qemux86_64
&gt; &gt; &gt; libatomic-dev core2-64
&gt; &gt; &gt; libatomic1 core2-64
&gt; &gt; &gt; libc6 core2-64
&gt; &gt; &gt; libc6-dbg core2-64
&gt; &gt; &gt; libc6-dev core2-64
&gt; &gt; &gt; libc6-extra-nss core2-64
&gt; &gt; &gt; libc6-thread-db core2-64
&gt; &gt; &gt; libc6-utils core2-64
&gt; &gt; &gt; libcidn1 core2-64
&gt; &gt; &gt; libgcc-s-dev core2-64
&gt; &gt; &gt; libgcc1 core2-64
&gt; &gt; &gt; libsegfault core2-64
&gt; &gt; &gt; libstdc++-dev core2-64
&gt; &gt; &gt; libstdc++6 core2-64
&gt; &gt; &gt; packagegroup-core-standalone-sdk-target all
&gt; &gt; &gt; packagegroup-core-standalone-sdk-target-dbg all
&gt; &gt; &gt; run-postinsts all
&gt; &gt; &gt; update-rc.d all
&gt; &gt; &gt; 
&gt; &gt; &gt; So you have to install lib32-xx packages if you want to make 32 sdk work,
&gt; &gt; &gt; and the same to 64.
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Here are the part of oe-core:
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/
&gt; &gt; &gt; &gt; &gt; ?id=eb7b1a58ceaab7fde4dc954eb4df4247d6c7c6d8
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; In the comment of the patch, you mentioned &quot;Use bitbake to expand the
&gt; &gt; &gt; &gt; RDEPENDS will fix the problem since bitbake knows mlprefix and handle it
&gt; &gt; &gt; &gt; well, but rpm doesn&apos;t.&quot;
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Can you explain more on this? For example, where should I put the RDEPENDS?
&gt; &gt; &gt; 
&gt; &gt; &gt; For example, make sure that that lib32-foo RDEPENDS lib32-fxx rather than
&gt; &gt; &gt; fxx.
&gt; &gt; &gt; 
&gt; &gt; &gt; Basically, if this oe-core&apos;s patch works for denzil branch, then you can get
&gt; &gt; &gt; the packages installed correctly, and what you have to do is update
&gt; &gt; &gt; SDKTARGETSYSROOT in the environment-setup-foo files.
&gt; &gt; 
&gt; &gt; I tried with this patch on dizzy, and added
&gt; &gt; packagegroup-core-standalone-sdk-target and
&gt; &gt; lib32-packagegroup-core-standalone-sdk-target to &lt;image.bb&gt;, 
&gt; &gt; then bitbake &lt;image.bb&gt; -c populate_sdk. It seems rpm correclty installs
&gt; &gt; lib32-* packages to the rootfs, but not SDK.
&gt; 
&gt; If you run &lt;image.bb&gt; -c populate_sdk, then only SDK is generated, no rootfs.
&gt; 
&gt; // Robert
&gt; 
&gt; &gt; 
&gt; &gt; 
&gt; &gt; &gt; // Robert
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Thanks.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; /Huimin
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 32 bit applications
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; /Huimin

(In reply to comment #13)
&gt; (In reply to comment #12)
&gt; &gt; (In reply to comment #11)
&gt; &gt; &gt;     (In reply to comment #10)
&gt; &gt; &gt; &gt; (In reply to comment #9)
&gt; &gt; &gt; &gt; &gt; (In reply to comment #8)
&gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #7)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #6)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Hi Robert,
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks for the patches. I adapted them to the dizzy branch and built the TC.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks, these patches are based on master branch, we need do more work to
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; backport them to dizzy. I will send a patch for dizzy after this is merged
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; into master.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Do you have a rough idea when you will provide a patch for dizzy? Thanks.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Hello, it has been fixed on master branch, part of the work are done by
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Richard, I will talk with him on how to backport them.
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; Thanks for the information, Robert.
&gt; &gt; &gt; &gt; &gt; &gt; Great it&apos;s fixed on master.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Hello Huimin She,
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; After talked with Richard, I&apos;m sorry to say that we can&apos;t or too difficult
&gt; &gt; &gt; &gt; &gt; to backport this to dizzy, the problem is that bitbake&apos;s datastore changes
&gt; &gt; &gt; &gt; &gt; in master are needed so its too difficult.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Do you have suggestions for work-around? 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; I tried with manually copying the missing files to the correponding SDK
&gt; &gt; &gt; &gt; folders, and managed to cross-compile a 32-bit c hello_world, and it runs
&gt; &gt; &gt; &gt; fine on the target. However, it failed with compiling c++. 
&gt; &gt; &gt; &gt; I did not try further, since I am not sure how many more packages are
&gt; &gt; &gt; &gt; missing.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Do you know which packages are NOT correctly installed?
&gt; &gt; &gt; 
&gt; &gt; &gt; Hello,
&gt; &gt; &gt; 
&gt; &gt; &gt; Here is the package list from master&apos;s bitbake lib32-core-image-minimal
&gt; &gt; &gt; -cpopulate_sdk:
&gt; &gt; &gt; 
&gt; &gt; &gt; glibc-gconv core2-64
&gt; &gt; &gt; glibc-gconv-cp1252 core2-64
&gt; &gt; &gt; glibc-gconv-ibm850 core2-64
&gt; &gt; &gt; glibc-gconv-iso8859-1 core2-64
&gt; &gt; &gt; glibc-gconv-iso8859-15 core2-64
&gt; &gt; &gt; glibc-localedata-i18n core2-64
&gt; &gt; &gt; glibc-localedata-iso14651-t1 core2-64
&gt; &gt; &gt; glibc-localedata-iso14651-t1-common core2-64
&gt; &gt; &gt; glibc-localedata-translit-circle core2-64
&gt; &gt; &gt; glibc-localedata-translit-cjk-compat core2-64
&gt; &gt; &gt; glibc-localedata-translit-compat core2-64
&gt; &gt; &gt; glibc-localedata-translit-font core2-64
&gt; &gt; &gt; glibc-localedata-translit-fraction core2-64
&gt; &gt; &gt; glibc-localedata-translit-narrow core2-64
&gt; &gt; &gt; glibc-localedata-translit-neutral core2-64
&gt; &gt; &gt; glibc-localedata-translit-small core2-64
&gt; &gt; &gt; glibc-localedata-translit-wide core2-64
&gt; &gt; &gt; kernel-4.1.6-yocto-standard qemux86_64
&gt; &gt; &gt; kernel-module-uvesafb qemux86_64
&gt; &gt; &gt; lib32-base-files qemux86_64
&gt; &gt; &gt; lib32-base-passwd x86 
&gt; &gt; &gt; lib32-busybox x86 
&gt; &gt; &gt; lib32-busybox-hwclock x86 
&gt; &gt; &gt; lib32-busybox-syslog x86 
&gt; &gt; &gt; lib32-busybox-udhcpc x86 
&gt; &gt; &gt; lib32-glibc-gconv x86 
&gt; &gt; &gt; lib32-glibc-gconv-cp1252 x86 
&gt; &gt; &gt; lib32-glibc-gconv-ibm850 x86 
&gt; &gt; &gt; lib32-glibc-gconv-iso8859-1 x86 
&gt; &gt; &gt; lib32-glibc-gconv-iso8859-15 x86 
&gt; &gt; &gt; lib32-glibc-localedata-i18n x86 
&gt; &gt; &gt; lib32-glibc-localedata-iso14651-t1 x86 
&gt; &gt; &gt; lib32-glibc-localedata-iso14651-t1-common x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-circle x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-cjk-compat x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-compat x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-font x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-fraction x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-narrow x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-neutral x86 
&gt; &gt; &gt; lib32-glibc-localedata-translit-small x86
&gt; &gt; &gt; lib32-glibc-localedata-translit-wide x86
&gt; &gt; &gt; lib32-init-ifupdown qemux86_64
&gt; &gt; &gt; lib32-initscripts x86
&gt; &gt; &gt; lib32-initscripts-functions x86
&gt; &gt; &gt; lib32-libatomic-dev x86
&gt; &gt; &gt; lib32-libatomic1 x86
&gt; &gt; &gt; lib32-libblkid1 x86
&gt; &gt; &gt; lib32-libc6 x86
&gt; &gt; &gt; lib32-libc6-dbg x86
&gt; &gt; &gt; lib32-libc6-dev x86
&gt; &gt; &gt; lib32-libc6-extra-nss x86
&gt; &gt; &gt; lib32-libc6-thread-db x86
&gt; &gt; &gt; lib32-libc6-utils x86
&gt; &gt; &gt; lib32-libcidn1 x86
&gt; &gt; &gt; lib32-libgcc-s-dbg x86
&gt; &gt; &gt; lib32-libgcc-s-dev x86
&gt; &gt; &gt; lib32-libgcc1 x86
&gt; &gt; &gt; lib32-libkmod2 x86
&gt; &gt; &gt; lib32-libsegfault x86
&gt; &gt; &gt; lib32-libstdc++-dev x86
&gt; &gt; &gt; lib32-libstdc++6 x86
&gt; &gt; &gt; lib32-libuuid1 x86
&gt; &gt; &gt; lib32-libz1 x86
&gt; &gt; &gt; lib32-linux-libc-headers-dev x86
&gt; &gt; &gt; lib32-modutils-initscripts x86
&gt; &gt; &gt; lib32-netbase x86
&gt; &gt; &gt; lib32-packagegroup-core-boot qemux86_64
&gt; &gt; &gt; lib32-sysvinit x86
&gt; &gt; &gt; lib32-sysvinit-inittab qemux86_64
&gt; &gt; &gt; lib32-sysvinit-pidof x86
&gt; &gt; &gt; lib32-udev x86
&gt; &gt; &gt; lib32-udev-cache x86
&gt; &gt; &gt; lib32-update-alternatives-opkg x86
&gt; &gt; &gt; lib32-v86d qemux86_64
&gt; &gt; &gt; libatomic-dev core2-64
&gt; &gt; &gt; libatomic1 core2-64
&gt; &gt; &gt; libc6 core2-64
&gt; &gt; &gt; libc6-dbg core2-64
&gt; &gt; &gt; libc6-dev core2-64
&gt; &gt; &gt; libc6-extra-nss core2-64
&gt; &gt; &gt; libc6-thread-db core2-64
&gt; &gt; &gt; libc6-utils core2-64
&gt; &gt; &gt; libcidn1 core2-64
&gt; &gt; &gt; libgcc-s-dev core2-64
&gt; &gt; &gt; libgcc1 core2-64
&gt; &gt; &gt; libsegfault core2-64
&gt; &gt; &gt; libstdc++-dev core2-64
&gt; &gt; &gt; libstdc++6 core2-64
&gt; &gt; &gt; packagegroup-core-standalone-sdk-target all
&gt; &gt; &gt; packagegroup-core-standalone-sdk-target-dbg all
&gt; &gt; &gt; run-postinsts all
&gt; &gt; &gt; update-rc.d all
&gt; &gt; &gt; 
&gt; &gt; &gt; So you have to install lib32-xx packages if you want to make 32 sdk work,
&gt; &gt; &gt; and the same to 64.
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Here are the part of oe-core:
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/
&gt; &gt; &gt; &gt; &gt; ?id=eb7b1a58ceaab7fde4dc954eb4df4247d6c7c6d8
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; In the comment of the patch, you mentioned &quot;Use bitbake to expand the
&gt; &gt; &gt; &gt; RDEPENDS will fix the problem since bitbake knows mlprefix and handle it
&gt; &gt; &gt; &gt; well, but rpm doesn&apos;t.&quot;
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Can you explain more on this? For example, where should I put the RDEPENDS?
&gt; &gt; &gt; 
&gt; &gt; &gt; For example, make sure that that lib32-foo RDEPENDS lib32-fxx rather than
&gt; &gt; &gt; fxx.
&gt; &gt; &gt; 
&gt; &gt; &gt; Basically, if this oe-core&apos;s patch works for denzil branch, then you can get
&gt; &gt; &gt; the packages installed correctly, and what you have to do is update
&gt; &gt; &gt; SDKTARGETSYSROOT in the environment-setup-foo files.
&gt; &gt; 
&gt; &gt; I tried with this patch on dizzy, and added
&gt; &gt; packagegroup-core-standalone-sdk-target and
&gt; &gt; lib32-packagegroup-core-standalone-sdk-target to &lt;image.bb&gt;, 
&gt; &gt; then bitbake &lt;image.bb&gt; -c populate_sdk. It seems rpm correclty installs
&gt; &gt; lib32-* packages to the rootfs, but not SDK.
&gt; 
&gt; If you run &lt;image.bb&gt; -c populate_sdk, then only SDK is generated, no rootfs.
&gt; 

Sorry, forgot to mention, i run bitbake &lt;image.bb&gt; before populate_sdk

/Huimin

&gt; // Robert
&gt; 
&gt; &gt; 
&gt; &gt; 
&gt; &gt; &gt; // Robert
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Thanks.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; /Huimin
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 32 bit applications
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54772</commentid>
    <comment_count>15</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-09-29 08:03:17 +0000</bug_when>
    <thetext>
&gt; &gt; &gt; &gt; &gt; Can you explain more on this? For example, where should I put the RDEPENDS?
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; For example, make sure that that lib32-foo RDEPENDS lib32-fxx rather than
&gt; &gt; &gt; &gt; fxx.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Basically, if this oe-core&apos;s patch works for denzil branch, then you can get
&gt; &gt; &gt; &gt; the packages installed correctly, and what you have to do is update
&gt; &gt; &gt; &gt; SDKTARGETSYSROOT in the environment-setup-foo files.
&gt; &gt; &gt; 
&gt; &gt; &gt; I tried with this patch on dizzy, and added
&gt; &gt; &gt; packagegroup-core-standalone-sdk-target and
&gt; &gt; &gt; lib32-packagegroup-core-standalone-sdk-target to &lt;image.bb&gt;, 
&gt; &gt; &gt; then bitbake &lt;image.bb&gt; -c populate_sdk. It seems rpm correclty installs
&gt; &gt; &gt; lib32-* packages to the rootfs, but not SDK.
&gt; &gt; 
&gt; &gt; If you run &lt;image.bb&gt; -c populate_sdk, then only SDK is generated, no rootfs.
&gt; &gt; 
&gt; 
&gt; Sorry, forgot to mention, i run bitbake &lt;image.bb&gt; before populate_sdk

You can check the file like the following to see whether they are installed or not:

tmp/work/qemux86_64-pokymllib32-linux/lib32-core-image-minimal/1.0-r0/installed_pkgs.txt

after bitbake -c populate_sdk

// Robert

&gt; 
&gt; /Huimin
&gt; 
&gt; &gt; // Robert
&gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; // Robert
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Thanks.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; /Huimin
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 32 bit applications
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54780</commentid>
    <comment_count>16</comment_count>
    <who name="Huimin She">huimin.she</who>
    <bug_when>2015-09-29 11:44:42 +0000</bug_when>
    <thetext>(In reply to comment #15)
&gt; &gt; &gt; &gt; &gt; &gt; Can you explain more on this? For example, where should I put the RDEPENDS?
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; For example, make sure that that lib32-foo RDEPENDS lib32-fxx rather than
&gt; &gt; &gt; &gt; &gt; fxx.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Basically, if this oe-core&apos;s patch works for denzil branch, then you can get
&gt; &gt; &gt; &gt; &gt; the packages installed correctly, and what you have to do is update
&gt; &gt; &gt; &gt; &gt; SDKTARGETSYSROOT in the environment-setup-foo files.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; I tried with this patch on dizzy, and added
&gt; &gt; &gt; &gt; packagegroup-core-standalone-sdk-target and
&gt; &gt; &gt; &gt; lib32-packagegroup-core-standalone-sdk-target to &lt;image.bb&gt;, 
&gt; &gt; &gt; &gt; then bitbake &lt;image.bb&gt; -c populate_sdk. It seems rpm correclty installs
&gt; &gt; &gt; &gt; lib32-* packages to the rootfs, but not SDK.
&gt; &gt; &gt; 
&gt; &gt; &gt; If you run &lt;image.bb&gt; -c populate_sdk, then only SDK is generated, no rootfs.
&gt; &gt; &gt; 
&gt; &gt; 
&gt; &gt; Sorry, forgot to mention, i run bitbake &lt;image.bb&gt; before populate_sdk
&gt; 
&gt; You can check the file like the following to see whether they are installed
&gt; or not:
&gt; 
&gt; tmp/work/qemux86_64-pokymllib32-linux/lib32-core-image-minimal/1.0-r0/
&gt; installed_pkgs.txt
&gt; 
&gt; after bitbake -c populate_sdk


These are 32bit packages installed. As I can see, 32bit libraries are installed
to rootfs (for example, 1.0-r0/rootfs/lib and 1.0-r0/rootfs/usr/lib). But they are NOT installed to the SDK folder(for example, the files are not available here: sysroots/ppc64-*/lib and sysroots/ppc64-*/usr/lib)

lib32-glibc-gconv 
lib32-glibc-gconv-cp1252
lib32-glibc-gconv-ibm850
lib32-glibc-gconv-iso8859-1 
lib32-glibc-gconv-iso8859-15
lib32-glibc-localedata-i18n 
lib32-glibc-localedata-iso14651-t1
lib32-glibc-localedata-iso14651-t1-common  
lib32-glibc-localedata-translit-circle  
lib32-glibc-localedata-translit-cjk-compat  
lib32-glibc-localedata-translit-compat  
lib32-glibc-localedata-translit-font  
lib32-glibc-localedata-translit-fraction  
lib32-glibc-localedata-translit-narrow  
lib32-glibc-localedata-translit-neutral  
lib32-glibc-localedata-translit-small  
lib32-glibc-localedata-translit-wide  
lib32-libc6  
lib32-libc6-dbg  
lib32-libc6-dev  
lib32-libc6-extra-nss  
lib32-libc6-staticdev  
lib32-libc6-thread-db  
lib32-libc6-utils  
lib32-libcidn1  
lib32-libgcc-s-dev  
lib32-libgcc1  
lib32-libgcov-dev  
lib32-libsegfault  
lib32-libstdc++-dev  
lib32-libstdc++-staticdev  
lib32-libstdc++6  
lib32-qemuwrapper-cross 


&gt; // Robert
&gt; 
&gt; &gt; 
&gt; &gt; /Huimin
&gt; &gt; 
&gt; &gt; &gt; // Robert
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; // Robert
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; Thanks.
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; /Huimin
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 32 bit applications
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54786</commentid>
    <comment_count>17</comment_count>
    <who name="Huimin She">huimin.she</who>
    <bug_when>2015-09-29 14:53:41 +0000</bug_when>
    <thetext>(In reply to comment #16)
&gt; (In reply to comment #15)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Can you explain more on this? For example, where should I put the RDEPENDS?
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; For example, make sure that that lib32-foo RDEPENDS lib32-fxx rather than
&gt; &gt; &gt; &gt; &gt; &gt; fxx.
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; Basically, if this oe-core&apos;s patch works for denzil branch, then you can get
&gt; &gt; &gt; &gt; &gt; &gt; the packages installed correctly, and what you have to do is update
&gt; &gt; &gt; &gt; &gt; &gt; SDKTARGETSYSROOT in the environment-setup-foo files.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; I tried with this patch on dizzy, and added
&gt; &gt; &gt; &gt; &gt; packagegroup-core-standalone-sdk-target and
&gt; &gt; &gt; &gt; &gt; lib32-packagegroup-core-standalone-sdk-target to &lt;image.bb&gt;, 
&gt; &gt; &gt; &gt; &gt; then bitbake &lt;image.bb&gt; -c populate_sdk. It seems rpm correclty installs
&gt; &gt; &gt; &gt; &gt; lib32-* packages to the rootfs, but not SDK.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; If you run &lt;image.bb&gt; -c populate_sdk, then only SDK is generated, no rootfs.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; Sorry, forgot to mention, i run bitbake &lt;image.bb&gt; before populate_sdk
&gt; &gt; 
&gt; &gt; You can check the file like the following to see whether they are installed
&gt; &gt; or not:
&gt; &gt; 
&gt; &gt; tmp/work/qemux86_64-pokymllib32-linux/lib32-core-image-minimal/1.0-r0/
&gt; &gt; installed_pkgs.txt
&gt; &gt; 
&gt; &gt; after bitbake -c populate_sdk
&gt; 
&gt; 


&gt; These are 32bit packages installed. As I can see, 32bit libraries are
&gt; installed
&gt; to rootfs (for example, 1.0-r0/rootfs/lib and 1.0-r0/rootfs/usr/lib). But
&gt; they are NOT installed to the SDK folder(for example, the files are not
&gt; available here: sysroots/ppc64-*/lib and sysroots/ppc64-*/usr/lib)
&gt; 
&gt; lib32-glibc-gconv 
&gt; lib32-glibc-gconv-cp1252
&gt; lib32-glibc-gconv-ibm850
&gt; lib32-glibc-gconv-iso8859-1 
&gt; lib32-glibc-gconv-iso8859-15
&gt; lib32-glibc-localedata-i18n 
&gt; lib32-glibc-localedata-iso14651-t1
&gt; lib32-glibc-localedata-iso14651-t1-common  
&gt; lib32-glibc-localedata-translit-circle  
&gt; lib32-glibc-localedata-translit-cjk-compat  
&gt; lib32-glibc-localedata-translit-compat  
&gt; lib32-glibc-localedata-translit-font  
&gt; lib32-glibc-localedata-translit-fraction  
&gt; lib32-glibc-localedata-translit-narrow  
&gt; lib32-glibc-localedata-translit-neutral  
&gt; lib32-glibc-localedata-translit-small  
&gt; lib32-glibc-localedata-translit-wide  
&gt; lib32-libc6  
&gt; lib32-libc6-dbg  
&gt; lib32-libc6-dev  
&gt; lib32-libc6-extra-nss  
&gt; lib32-libc6-staticdev  
&gt; lib32-libc6-thread-db  
&gt; lib32-libc6-utils  
&gt; lib32-libcidn1  
&gt; lib32-libgcc-s-dev  
&gt; lib32-libgcc1  
&gt; lib32-libgcov-dev  
&gt; lib32-libsegfault  
&gt; lib32-libstdc++-dev  
&gt; lib32-libstdc++-staticdev  
&gt; lib32-libstdc++6  
&gt; lib32-qemuwrapper-cross 
&gt; 

The above lib32-* packages are listed in installed_pkgs.txt, after &quot;bitbake &lt;image_bb&gt;&quot;. But they are gone after &quot;bitbake &lt;image_bb&gt; -c populate_sdk&quot;, which means no lib32-* packages are installed to SDK.

/Huimin

&gt; &gt; // Robert
&gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; /Huimin
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; // Robert
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; // Robert
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; /Huimin
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; The problems still exist: complained about missing files when cross-compile
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 32 bit applications
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; /Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54934</commentid>
    <comment_count>18</comment_count>
    <who name="Huimin She">huimin.she</who>
    <bug_when>2015-10-02 12:44:06 +0000</bug_when>
    <thetext>Hi Robert,

I spent quite some time trying to backport this in dizzy branch, but did not succeed. With some work-around, I have successfully cross-compiled 32 bit applications, in dizzy branch. 

Here are the steps I did: 1) applying your oe-core patch, and 2) add: packagegroup-core-standalone-sdk-target lib32-packagegroup-core-standalone-sdk-target to &lt;image_bb&gt;. It installs all the required 32bit files to rootfs. However, they are still not installed to the SDK. So i manually copied them to the SDK.

Thanks a lot for your time on answering my questions.

Best regards,
Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54949</commentid>
    <comment_count>19</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-10-03 02:18:16 +0000</bug_when>
    <thetext>(In reply to comment #18)
&gt; Hi Robert,
&gt; 
&gt; I spent quite some time trying to backport this in dizzy branch, but did not
&gt; succeed. With some work-around, I have successfully cross-compiled 32 bit
&gt; applications, in dizzy branch. 
&gt; 
&gt; Here are the steps I did: 1) applying your oe-core patch, and 2) add:
&gt; packagegroup-core-standalone-sdk-target
&gt; lib32-packagegroup-core-standalone-sdk-target to &lt;image_bb&gt;. It installs all
&gt; the required 32bit files to rootfs. However, they are still not installed to
&gt; the SDK. So i manually copied them to the SDK.

Sounds good, I think that it doesn&apos;t work is because we lack the part of code in datasmart, and it&apos;s too difficult to backport it.

// Robert

&gt; 
&gt; Thanks a lot for your time on answering my questions.
&gt; 
&gt; Best regards,
&gt; Huimin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55684</commentid>
    <comment_count>20</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-10-23 15:00:42 +0000</bug_when>
    <thetext>Verified on master 505a82673ac2487df5ea343a6422c2fc47018831
using source environment-setup-core2-64-poky-linux

 $CC hello.c
hello.c:1:1: warning: return type defaults to &apos;int&apos; [-Wimplicit-int]
 main(){}
 ^</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>