Bug 1212 - eglibc can't build with only a subset of DISTRO_FEATURES_LIBC
Summary: eglibc can't build with only a subset of DISTRO_FEATURES_LIBC
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1 M3
Assignee: Kai Kang
QA Contact:
URL:
Whiteboard: will be fixed by Aug24/2011
Depends on:
Blocks:
 
Reported: 2011-07-05 08:50 UTC by Gary Thomas
Modified: 2011-09-07 02:01 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Thomas 2011-07-05 08:50:32 UTC
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 'libc-locales libc-locale-code'

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': No such file or directory
ERROR: Function 'do_install_locale' 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)
Comment 1 Kai Kang 2011-08-21 18:51:08 UTC
DISTRO_FEATURES_LIBC should not be an empty list, because some options are needed by other packages that can'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
Comment 2 Yi Zhao 2011-09-07 02:01:35 UTC
Verified with latest master branch.
git info: dbff56238e083d0110eb13c1f5a07716340fdfe4

Try removing 'libc-locales libc-locale-code', the image can be built. 
According to the https://wiki.yoctoproject.org/wiki/Minimal_Image, DISTRO_FEATURES_LIBC should not be an empty.