<?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>338</bug_id>
          
          <creation_ts>2010-09-17 20:50:46 +0000</creation_ts>
          <short_desc>on qemux86-64, &quot;bitbake poky-image-minimal&quot; will fail if eglibc is used.</short_desc>
          <delta_ts>2010-12-21 06:07:15 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dexuan Cui">dexuan.cui</reporter>
          <assigned_to name="Dexuan Cui">dexuan.cui</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9886</commentid>
    <comment_count>0</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-17 20:50:46 +0000</bug_when>
    <thetext>I use the M3 build (commit 14830c80）plus cherry picking the latest Nitin&apos;s eglibc fix (commit d6e8013a8c1c43) and plus my patch fix_Conflicting_PREFERRED_PROVIDER_for_glibc-gconv.patch (see comment 3 of Bug 329)

eglibc is enabled in the following way:
diff meta/conf/distro/poky.conf
-POKYLIBC ?= &quot;glibc&quot;
+POKYLIBC ?= &quot;eglibc&quot;

First, I tried &quot;bitbake poky-image-sdk&quot; and it failed (the log will be attached)
Later, I tried &quot;bitbake poky-image-minimal&quot; and it also failed in the same way:

NOTE: package eglibc-2.12-r6: task do_populate_sysroot: Started
NOTE: package eglibc-2.12-r6: task do_package: Started
NOTE: preparing tree for binary locale generation
ERROR: Task failed: (&apos;function do_siteconfig failed&apos;, &apos;/distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/temp/log.do_siteconfig.26370&apos;)
ERROR: Logfile of failure stored in: /distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/temp/log.do_siteconfig.26370
Log data follows:
| configure: creating cache eglibc_cache
| checking for x86_64-poky-linux-gcc... x86_64-poky-linux-gcc -march=core2 -m64 --sysroot=/distro/dcui/dexuan-qemux86-64/build/tmp/sysroots/x86_64-poky-linux
| checking whether the C compiler works... no
| configure: error: in `/distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/site_config&apos;:
| configure: error: C compiler cannot create executables
| See `config.log&apos; for more details.
NOTE: package eglibc-2.12-r6: task do_populate_sysroot: Failed
ERROR: Task 381 (/distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb, do_populate_sysroot) failed with 1
Waiting for 1 active tasks to finish:
1: eglibc-2.12-r6 do_package (pid 26371)
ERROR: Task failed: (&apos;function do_prep_locale_tree failed&apos;, &apos;/distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/temp/log.do_prep_locale_tree.26371&apos;)
ERROR: Logfile of failure stored in: /distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/temp/log.do_prep_locale_tree.26371
Log data follows:
| cp: cannot stat `/distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/package/lib/*&apos;: No such file or directory
| NOTE: preparing tree for binary locale generation
NOTE: package eglibc-2.12-r6: task do_package: Failed
ERROR: Task 387 (/distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb, do_package) failed with 1
ERROR: &apos;/distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb&apos; failed
ERROR: &apos;/distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb&apos; failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9887</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-17 20:57:17 +0000</bug_when>
    <thetext>The log file&apos;s size is &gt;1000k and the bugzilla doesn&apos;t allow such a big file.

So let me paste the part of error when building sdk.

...
NOTE: package eglibc-2.12-r6: task do_compile: Succeeded
NOTE: Running task 2475 of 4790 (ID: 468, /distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb, do_install)
NOTE: package eglibc-2.12-r6: task do_install: Started
NOTE: package eglibc-2.12-r6: task do_install: Succeeded
NOTE: Running task 2476 of 4790 (ID: 469, /distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb, do_populate_sysroot)
NOTE: Running task 2477 of 4790 (ID: 475, /distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb, do_package)
NOTE: package eglibc-2.12-r6: task do_populate_sysroot: Started
NOTE: package eglibc-2.12-r6: task do_package: Started
NOTE: preparing tree for binary locale generation
ERROR: Task failed: (&apos;function do_prep_locale_tree failed&apos;, &apos;/distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/temp/log.do_prep_locale_tree.23861&apos;)
ERROR: Logfile of failure stored in: /distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/temp/log.do_prep_locale_tree.23861
Log data follows:
| cp: cannot stat `/distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/package/lib/*&apos;: No such file or directory
| NOTE: preparing tree for binary locale generation
NOTE: package eglibc-2.12-r6: task do_package: Failed
ERROR: Task 475 (/distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb, do_package) failed with 1
Waiting for 1 active tasks to finish:
1: eglibc-2.12-r6 do_populate_sysroot (pid 23860)
ERROR: Task failed: (&apos;function do_siteconfig failed&apos;, &apos;/distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/temp/log.do_siteconfig.23860&apos;)
ERROR: Logfile of failure stored in: /distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/temp/log.do_siteconfig.23860
Log data follows:
| configure: creating cache eglibc_cache
| checking for x86_64-poky-linux-gcc... x86_64-poky-linux-gcc -march=core2 -m64 --sysroot=/distro/dcui/dexuan-qemux86-64/build/tmp/sysroots/x86_64-poky-linux
| checking whether the C compiler works... no
| configure: error: in `/distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/site_config&apos;:
| configure: error: C compiler cannot create executables
| See `config.log&apos; for more details.
NOTE: package eglibc-2.12-r6: task do_populate_sysroot: Failed
ERROR: Task 469 (/distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb, do_populate_sysroot) failed with 1
ERROR: &apos;/distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb&apos; failed
ERROR: &apos;/distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb&apos; failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9889</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-09-18 02:58:31 +0000</bug_when>
    <thetext>I suspect the files are in /distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/package/lib64/ and there is a patch we apply to glibc which needs applying to eglibc too for this problem. Can you confirm the lib64 directory exists and contains the expected files?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9907</commentid>
    <comment_count>3</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-20 00:54:33 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I suspect the files are in
&gt; /distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/package/lib64/
Hi Richard, thanks for the suggestion!
Yes, the .../lib64 does exist:

$ ls  /distro/dcui/dexuan-qemux86-64/build/tmp/work/x86_64-poky-linux/eglibc-2.12-r6/package/lib64
ld-2.12.so               libanl.so.1       libdl.so.2      libnss_compat-2.12.so  libnss_hesiod-2.12.so   libpcprofile.so     librt.so.1
ld-linux-x86-64.so.2     libc-2.12.so      libm-2.12.so    libnss_compat.so.2     libnss_hesiod.so.2      libpthread-2.12.so  libthread_db-1.0.so
libBrokenLocale-2.12.so  libc.so.6         libm.so.6       libnss_dns-2.12.so     libnss_nis-2.12.so      libpthread.so.0     libthread_db.so.1
libBrokenLocale.so.1     libcrypt-2.12.so  libmemusage.so  libnss_dns.so.2        libnss_nis.so.2         libresolv-2.12.so   libutil-2.12.so
libSegFault.so           libcrypt.so.1     libnsl-2.12.so  libnss_files-2.12.so   libnss_nisplus-2.12.so  libresolv.so.2      libutil.so.1
libanl-2.12.so           libdl-2.12.so     libnsl.so.1     libnss_files.so.2      libnss_nisplus.so.2     librt-2.12.so


&gt; and there is a patch we apply to glibc which needs applying to eglibc too for
&gt; this problem. Can you confirm the lib64 directory exists and contains the
&gt; expected files?

Could you please explain more info about the patch?
I looked at every file in /distro/dcui/dexuan-qemux86-64/meta/recipes-core/glibc/glibc-2.10.1/, but couldn&apos;t find any file or patch that seems be able to fix the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9910</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-09-20 07:15:59 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Yes, the .../lib64 does exist:

Thanks, this confirms the problem at least.

&gt; &gt; and there is a patch we apply to glibc which needs applying to eglibc too for
&gt; &gt; this problem. Can you confirm the lib64 directory exists and contains the
&gt; &gt; expected files?
&gt; 
&gt; Could you please explain more info about the patch?
&gt; I looked at every file in
&gt; /distro/dcui/dexuan-qemux86-64/meta/recipes-core/glibc/glibc-2.10.1/, but
&gt; couldn&apos;t find any file or patch that seems be able to fix the issue.

My memory isn&apos;t correct and there is no patch we use for this, sorry. There must be some other difference between the glibc and eglibc recipe that is causing this to happen. I think the lib directory is pulled from the gcc multilib configuration but I need to look into this further to find out exactly where.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9911</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-09-20 08:01:39 +0000</bug_when>
    <thetext>I think the difference is the following which is in the glibc recipe but not the eglibc one:

export libc_cv_slibdir = &quot;${base_libdir}&quot;

(this defaults to /lib64 for qemux86-64)

I&apos;m testing this change to see if it resolves the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9914</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-09-20 16:18:52 +0000</bug_when>
    <thetext>I&apos;ve pushed a fix in d8137c014f74d32dcdd2e148523640842a6ac4b1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9915</commentid>
    <comment_count>7</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-20 18:26:40 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; I&apos;ve pushed a fix in d8137c014f74d32dcdd2e148523640842a6ac4b1

Great！It did fix the eglibc build failure in my side, too.

I&apos;m now continuing building qemux86-64.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9925</commentid>
    <comment_count>8</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-21 00:20:45 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; I&apos;ve pushed a fix in d8137c014f74d32dcdd2e148523640842a6ac4b1
&gt; Great！It did fix the eglibc build failure in my side, too.
&gt; I&apos;m now continuing building qemux86-64.
Thanks to Richard&apos;s fix, poky-image-sdk can also build and boot to X on qemux86-64 now.

Since Richard&apos;s patch has been in poky.git&apos;s master, can I mark the bus as VERIFIED?

BTW: Richard&apos;s patch has not been in poky-contrib.git.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9926</commentid>
    <comment_count>9</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2010-09-21 00:27:04 +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; I&apos;ve pushed a fix in d8137c014f74d32dcdd2e148523640842a6ac4b1
&gt; &gt; Great！It did fix the eglibc build failure in my side, too.
&gt; &gt; I&apos;m now continuing building qemux86-64.
&gt; Thanks to Richard&apos;s fix, poky-image-sdk can also build and boot to X on
&gt; qemux86-64 now.
&gt; Since Richard&apos;s patch has been in poky.git&apos;s master, can I mark the bus as
&gt; VERIFIED?
&gt; BTW: Richard&apos;s patch has not been in poky-contrib.git.

If Richard&apos;s patch also fix the issue in your side, you can mark it as verified, since you are the reporter. 

BTW, you can also cherry-pick the patch into your contrib branch dcui/eglibc, so that people can reuse your branch to continue the work.

Regards
Ke</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9932</commentid>
    <comment_count>10</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-21 01:14:00 +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; I&apos;ve pushed a fix in d8137c014f74d32dcdd2e148523640842a6ac4b1
&gt; &gt; &gt; Great！It did fix the eglibc build failure in my side, too.
&gt; &gt; &gt; I&apos;m now continuing building qemux86-64.
&gt; &gt; Thanks to Richard&apos;s fix, poky-image-sdk can also build and boot to X on
&gt; &gt; qemux86-64 now.
&gt; &gt; Since Richard&apos;s patch has been in poky.git&apos;s master, can I mark the bus as
&gt; &gt; VERIFIED?
&gt; &gt; BTW: Richard&apos;s patch has not been in poky-contrib.git.
&gt; If Richard&apos;s patch also fix the issue in your side, you can mark it as
Yes.
&gt; verified, since you are the reporter. 
OK. So let me VERIFY the bug.

&gt; BTW, you can also cherry-pick the patch into your contrib branch dcui/eglibc,
&gt; so that people can reuse your branch to continue the work.
Will do.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>