<?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>1212</bug_id>
          
          <creation_ts>2011-07-05 08:50:32 +0000</creation_ts>
          <short_desc>eglibc can&apos;t build with only a subset of DISTRO_FEATURES_LIBC</short_desc>
          <delta_ts>2011-09-07 02:01:35 +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>unspecified</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>will be fixed by Aug24/2011</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Kai Kang">kai.kang</assigned_to>
          <cc>liang.li2</cc>
    
    <cc>liangliang.wang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>Xiaofeng.yan</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>14540</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-07-05 08:50:32 +0000</bug_when>
    <thetext>The new configuration variable DISTRO_FEATURES_LIBC lists a number of features which are designed to control what pieces of eglibc package get built and used.  Building often fails if only a subset of these features is defined.

To see the failures, try removing &apos;libc-locales libc-locale-code&apos;

If DISTRO_FEATURES_LIBC is an empty list, the eglibc build fails with
this error:
cp: cannot stat `/home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/image/usr/bin/localedef&apos;: No such file or directory
ERROR: Function &apos;do_install_locale&apos; failed (see /home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/temp/log.do_install_locale.13725 for further information)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15615</commentid>
    <comment_count>1</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2011-08-21 18:51:08 +0000</bug_when>
    <thetext>DISTRO_FEATURES_LIBC should not be an empty list, because some options are needed by other packages that can&apos;t be droped, such as libc-libm is needed by gcc-runtime, libc-crypt is needed by busybox, and libc-posix-regexp is required by perf, etc.
Please refer to
https://wiki.yoctoproject.org/wiki/Minimal_Image

And build failed with subset of the features is fixed by commit:
ddc01beb5d44940812dcef55b2b0368339620153</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16072</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-09-07 02:01:35 +0000</bug_when>
    <thetext>Verified with latest master branch.
git info: dbff56238e083d0110eb13c1f5a07716340fdfe4

Try removing &apos;libc-locales libc-locale-code&apos;, the image can be built. 
According to the https://wiki.yoctoproject.org/wiki/Minimal_Image, DISTRO_FEATURES_LIBC should not be an empty.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>