Emerging libXt for uclibc target on my glibc host fails. The uclibc has been emerged succesfully before it. And the libc.so.0 is present in the target dir (/usr/i686-gentoo-linux-uclibc/lib). >>> Emerging (1 of 1) x11-libs/libXt-1.0.7-r1 for /usr/i686-gentoo-linux-uclibc/ * libXt-1.0.7.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * CPV: x11-libs/libXt-1.0.7-r1 * REPO: gentoo * USE: kernel_linux userland_GNU x86 >>> Unpacking source... >>> Unpacking libXt-1.0.7.tar.bz2 to /usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.7-r1/work * Applying libXt-1.0.7-fix-cross-compile-again.patch ... [ ok ] * Running eautoreconf in '/usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.7-r1/work/libXt-1.0.7' ... * Running aclocal ... [ ok ] * Running libtoolize --copy --force --install --automake ... [ ok ] * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running autoheader ... [ ok ] * Running automake --add-missing --copy ... [ ok ] * Running elibtoolize in: libXt-1.0.7 * Applying portage-2.2.patch ... * Applying sed-1.5.6.patch ... * Applying cross-link-ROOT.patch ... * Applying as-needed-2.2.6.patch ... >>> Source unpacked in /usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.7-r1/work >>> Compiling source in /usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.7-r1/work/libXt-1.0.7 ... * econf: updating libXt-1.0.7/config.sub with /usr/share/gnuconfig/config.sub * econf: updating libXt-1.0.7/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-gentoo-linux-uclibc --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr --datadir=/usr/share configure: loading site script /usr/share/config.site configure: loading site script /usr/share/crossdev/include/site/linux configure: loading site script /usr/share/crossdev/include/site/linux-uclibc configure: loading site script /usr/share/crossdev/include/site/i686-linux-uclibc checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-gentoo-linux-uclibc-strip... i686-gentoo-linux-uclibc-strip checking whether to enable maintainer-specific portions of Makefiles... no checking for i686-gentoo-linux-uclibc-gcc... i686-gentoo-linux-uclibc-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-gentoo-linux-uclibc-gcc accepts -g... yes checking for i686-gentoo-linux-uclibc-gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of i686-gentoo-linux-uclibc-gcc... gcc3 checking build system type... i686-pc-linux-gnu checking host system type... i686-gentoo-linux-uclibc checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by i686-gentoo-linux-uclibc-gcc... /usr/libexec/gcc/i686-gentoo-linux-uclibc/ld checking if the linker (/usr/libexec/gcc/i686-gentoo-linux-uclibc/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/i686-gentoo-linux-uclibc-nm -B checking the name lister (/usr/bin/i686-gentoo-linux-uclibc-nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/libexec/gcc/i686-gentoo-linux-uclibc/ld option to reload object files... -r checking for i686-gentoo-linux-uclibc-objdump... i686-gentoo-linux-uclibc-objdump checking how to recognize dependent libraries... pass_all checking for i686-gentoo-linux-uclibc-ar... i686-gentoo-linux-uclibc-ar checking for i686-gentoo-linux-uclibc-strip... (cached) i686-gentoo-linux-uclibc-strip checking for i686-gentoo-linux-uclibc-ranlib... i686-gentoo-linux-uclibc-ranlib checking command to parse /usr/bin/i686-gentoo-linux-uclibc-nm -B output from i686-gentoo-linux-uclibc-gcc object... ok checking how to run the C preprocessor... i686-gentoo-linux-uclibc-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if i686-gentoo-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... no checking for i686-gentoo-linux-uclibc-gcc option to produce PIC... -fPIC -DPIC checking if i686-gentoo-linux-uclibc-gcc PIC flag -fPIC -DPIC works... yes checking if i686-gentoo-linux-uclibc-gcc static flag -static works... yes checking if i686-gentoo-linux-uclibc-gcc supports -c -o file.o... yes checking if i686-gentoo-linux-uclibc-gcc supports -c -o file.o... (cached) yes checking whether the i686-gentoo-linux-uclibc-gcc linker (/usr/libexec/gcc/i686-gentoo-linux-uclibc/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether i686-gentoo-linux-uclibc-gcc and cc understand -c and -o together... yes checking for i686-gentoo-linux-uclibc-gcc option to accept ISO C99... -std=gnu99 checking for gcc... gcc checking for i686-gentoo-linux-uclibc-pkg-config... /usr/bin/i686-gentoo-linux-uclibc-pkg-config checking pkg-config is at least version 0.9.0... yes checking for XT... yes checking alloca.h usability... yes checking alloca.h presence... yes checking for alloca.h... yes checking for poll... yes checking for snprintf... yes checking for main in -lws2_32... no checking for cpp... /usr/bin/cpp checking if /usr/bin/cpp requires -undef... yes checking if /usr/bin/cpp requires -traditional... yes checking whether malloc(0) returns NULL... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating util/Makefile config.status: creating include/Makefile config.status: creating man/Makefile config.status: creating xt.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands make -j1 make all-recursive make[1]: Entering directory `/usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.7-r1/work/libXt-1.0.7' Making all in util make[2]: Entering directory `/usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.7-r1/work/libXt-1.0.7/util' i686-gentoo-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/i686-gentoo-linux-uclibc/usr/include -Os -pipe -march=i686 -mmmx -fomit-frame-pointer -I/usr/i686-gentoo-linux-uclibc/usr/include/ -I/usr/i686-gentoo-linux-uclibc/include/ -MT makestrs-makestrs.o -MD -MP -MF .deps/makestrs-makestrs.Tpo -c -o makestrs-makestrs.o `test -f 'makestrs.c' || echo './'`makestrs.c mv -f .deps/makestrs-makestrs.Tpo .deps/makestrs-makestrs.Po /bin/sh ../libtool --tag=CC --mode=link i686-gentoo-linux-uclibc-gcc -std=gnu99 -I/usr/i686-gentoo-linux-uclibc/usr/include -Os -pipe -march=i686 -mmmx -fomit-frame-pointer -I/usr/i686-gentoo-linux-uclibc/usr/include/ -I/usr/i686-gentoo-linux-uclibc/include/ -L/usr/i686-gentoo-linux-uclibc/lib -L/usr/i686-gentoo-linux-uclibc/usr/lib -o makestrs makestrs-makestrs.o libtool: link: i686-gentoo-linux-uclibc-gcc -std=gnu99 -I/usr/i686-gentoo-linux-uclibc/usr/include -Os -pipe -march=i686 -mmmx -fomit-frame-pointer -I/usr/i686-gentoo-linux-uclibc/usr/include/ -I/usr/i686-gentoo-linux-uclibc/include/ -o makestrs makestrs-makestrs.o -L/usr/i686-gentoo-linux-uclibc/lib -L/usr/i686-gentoo-linux-uclibc/usr/lib gcc \ -L/usr/i686-gentoo-linux-uclibc/lib -L/usr/i686-gentoo-linux-uclibc/usr/lib -o xmakestrs makestrs.c /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.0 collect2: ld returned 1 exit status make[2]: *** [xmakestrs] Error 1 make[2]: Leaving directory `/usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.7-r1/work/libXt-1.0.7/util' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.7-r1/work/libXt-1.0.7' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: # i686-gentoo-linux-uclibc-emerge --info Portage 2.1.7.16 (embedded, gcc-4.4.2, uclibc-0.9.30.1-r1, 2.6.31-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Celeron-TM-_CPU_1200MHz-with-gentoo-1.12.13 Timestamp of tree: Sun, 31 Jan 2010 17:00:01 +0000 app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.9-r2 dev-lang/python: 2.6.4 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -pipe -march=i686 -mmmx -fomit-frame-pointer -I/usr/i686-gentoo-linux-uclibc/usr/include/ -I/usr/i686-gentoo-linux-uclibc/include/" CHOST="i686-gentoo-linux-uclibc" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-Os -pipe -march=i686 -mmmx -fomit-frame-pointer -I/usr/i686-gentoo-linux-uclibc/usr/include/ -I/usr/i686-gentoo-linux-uclibc/include/" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests buildpkg distlocks fixpackages news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/ " LDFLAGS="-L/usr/i686-gentoo-linux-uclibc/lib -L/usr/i686-gentoo-linux-uclibc/usr/lib" LINGUAS="en" MAKEOPTS="-j1" PKGDIR="/usr/i686-gentoo-linux-uclibc/packages/" PORTAGE_CONFIGROOT="/usr/i686-gentoo-linux-uclibc/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/usr/i686-gentoo-linux-uclibc/tmp/" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X bindist bitmap-fonts dri kdrive make-symlinks minimal mmx modules multicall ncurses truetype-fonts uclibc unicode x86 xorg zlib" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="mach64" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
gcc -L/usr/i686-gentoo-linux-uclibc/lib -L/usr/i686-gentoo-linux-uclibc/usr/lib -o xmakestrs makestrs.c It should not be calling the native gcc there. Or if it should. Then it should omit the CFLAGS/LDFLAGS.
Fixed in 1.0.8. Thanks
With 1.0.8 I have the same problem: "cannot find /lib/libc.so.0" It is trying to find this libc.so.0 in my /lib instead of /usr/i686-gentoo-linux-uclibc/lib. ----- # cat /usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/temp/build.log * CPV: x11-libs/libXt-1.0.8 * REPO: gentoo * USE: kernel_linux userland_GNU x86 >>> Unpacking source... >>> Unpacking libXt-1.0.8.tar.bz2 to /usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/work >>> Source unpacked in /usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/work >>> Preparing source in /usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/work/libXt-1.0.8 ... * Running elibtoolize in: libXt-1.0.8 * Applying portage-2.2.patch ... * Applying sed-1.5.6.patch ... * Applying cross-link-ROOT.patch ... * Applying as-needed-2.2.6.patch ... >>> Source prepared. >>> Configuring source in /usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/work/libXt-1.0.8 ... * econf: updating libXt-1.0.8/config.sub with /usr/share/gnuconfig/config.sub * econf: updating libXt-1.0.8/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-gentoo-linux-uclibc --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-static configure: loading site script /usr/share/config.site configure: loading site script /usr/share/crossdev/include/site/linux configure: loading site script /usr/share/crossdev/include/site/linux-uclibc configure: loading site script /usr/share/crossdev/include/site/i686-linux-uclibc checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for i686-gentoo-linux-uclibc-strip... i686-gentoo-linux-uclibc-strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for i686-gentoo-linux-uclibc-gcc... i686-gentoo-linux-uclibc-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-gentoo-linux-uclibc-gcc accepts -g... yes checking for i686-gentoo-linux-uclibc-gcc option to accept ISO C89... none needed checking dependency style of i686-gentoo-linux-uclibc-gcc... gcc3 checking how to run the C preprocessor... i686-gentoo-linux-uclibc-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for i686-gentoo-linux-uclibc-gcc option to accept ISO C99... -std=gnu99 checking for i686-gentoo-linux-uclibc-pkg-config... /usr/bin/i686-gentoo-linux-uclibc-pkg-config checking pkg-config is at least version 0.9.0... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-gentoo-linux-uclibc Package xorg-macros was not found in the pkg-config search path. Perhaps you should add the directory containing `xorg-macros.pc' to the PKG_CONFIG_PATH environment variable No package 'xorg-macros' found checking for i686-gentoo-linux-uclibc-gcc... (cached) i686-gentoo-linux-uclibc-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i686-gentoo-linux-uclibc-gcc accepts -g... (cached) yes checking for i686-gentoo-linux-uclibc-gcc option to accept ISO C89... (cached) none needed checking dependency style of i686-gentoo-linux-uclibc-gcc... (cached) gcc3 checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by i686-gentoo-linux-uclibc-gcc... /usr/libexec/gcc/i686-gentoo-linux-uclibc/ld checking if the linker (/usr/libexec/gcc/i686-gentoo-linux-uclibc/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/i686-gentoo-linux-uclibc-nm -B checking the name lister (/usr/bin/i686-gentoo-linux-uclibc-nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/libexec/gcc/i686-gentoo-linux-uclibc/ld option to reload object files... -r checking for i686-gentoo-linux-uclibc-objdump... i686-gentoo-linux-uclibc-objdump checking how to recognize dependent libraries... pass_all checking for i686-gentoo-linux-uclibc-ar... i686-gentoo-linux-uclibc-ar checking for i686-gentoo-linux-uclibc-strip... (cached) i686-gentoo-linux-uclibc-strip checking for i686-gentoo-linux-uclibc-ranlib... i686-gentoo-linux-uclibc-ranlib checking command to parse /usr/bin/i686-gentoo-linux-uclibc-nm -B output from i686-gentoo-linux-uclibc-gcc object... ok checking for dlfcn.h... yes checking for objdir... .libs checking if i686-gentoo-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... no checking for i686-gentoo-linux-uclibc-gcc option to produce PIC... -fPIC -DPIC checking if i686-gentoo-linux-uclibc-gcc PIC flag -fPIC -DPIC works... yes checking if i686-gentoo-linux-uclibc-gcc static flag -static works... yes checking if i686-gentoo-linux-uclibc-gcc supports -c -o file.o... yes checking if i686-gentoo-linux-uclibc-gcc supports -c -o file.o... (cached) yes checking whether the i686-gentoo-linux-uclibc-gcc linker (/usr/libexec/gcc/i686-gentoo-linux-uclibc/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether i686-gentoo-linux-uclibc-gcc and cc understand -c and -o together... yes checking for gcc... gcc checking for XT... yes checking alloca.h usability... yes checking alloca.h presence... yes checking for alloca.h... yes checking for poll... yes checking for snprintf... yes checking for main in -lws2_32... no checking for cpp... /usr/bin/cpp checking if /usr/bin/cpp requires -undef... yes checking if /usr/bin/cpp requires -traditional... yes checking whether malloc(0) returns NULL... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating util/Makefile config.status: creating include/Makefile config.status: creating man/Makefile config.status: creating xt.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands >>> Source configured. >>> Compiling source in /usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/work/libXt-1.0.8 ... make -j1 make all-recursive make[1]: Entering directory `/usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/work/libXt-1.0.8' Making all in util make[2]: Entering directory `/usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/work/libXt-1.0.8/util' CC makestrs-makestrs.o CCLD makestrs /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.0 collect2: ld returned 1 exit status make[2]: *** [makestrs] Error 1 make[2]: Leaving directory `/usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/work/libXt-1.0.8/util' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/work/libXt-1.0.8' make: *** [all] Error 2 * ERROR: x11-libs/libXt-1.0.8 failed: * died running emake, base_src_make:make * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 3298: Called xorg-2_src_compile * environment, line 4072: Called base_src_compile * environment, line 483: Called base_src_make * environment, line 521: Called die * The specific snippet of code: * emake $@ || die "died running emake, $FUNCNAME:make"; * * If you need support, post the output of 'emerge --info =x11-libs/libXt-1.0.8', * the complete build log and the output of 'emerge -pqv =x11-libs/libXt-1.0.8'. * The complete build log is located at '/usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/temp/build.log'. * The ebuild environment file is located at '/usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/temp/environment'. * S: '/usr/i686-gentoo-linux-uclibc/tmp/portage/x11-libs/libXt-1.0.8/work/libXt-1.0.8'
I really cant reproduce this with 1.1.0. Is it still an issue?