After updating to sys-kernel/linux26-headers-2.6.7-r3 I wanted to re-emerge glibc. I tried with gcc-3.4.1-r1 and then with gcc-3.4.1 both times it failed with GCONV_PATH=/var/tmp/portage/glibc-2.3.4.20040619/work/build/iconvdata LC_ALL=C /var/tmp/portage/glibc-2.3.4.20040619/work/build/elf/ld-linux.so.2 --library-pa th /var/tmp/portage/glibc-2.3.4.20040619/work/build:/var/tmp/portage/glibc-2.3.4 .20040619/work/build/math:/var/tmp/portage/glibc-2.3.4.20040619/work/build/elf:/ var/tmp/portage/glibc-2.3.4.20040619/work/build/dlfcn:/var/tmp/portage/glibc-2.3 .4.20040619/work/build/nss:/var/tmp/portage/glibc-2.3.4.20040619/work/build/nis: /var/tmp/portage/glibc-2.3.4.20040619/work/build/rt:/var/tmp/portage/glibc-2.3.4 .20040619/work/build/resolv:/var/tmp/portage/glibc-2.3.4.20040619/work/build/cry pt:/var/tmp/portage/glibc-2.3.4.20040619/work/build/nptl /var/tmp/portage/glibc- 2.3.4.20040619/work/build/stdio-common/test-fseek > /var/tmp/portage/glibc-2.3. 4.20040619/work/build/stdio-common/test-fseek.out make[2]: *** [/var/tmp/portage/glibc-2.3.4.20040619/work/build/stdio-common/test -fseek.out] Error 139 make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040619/work/glibc-2.3 .2/stdio-common' make[1]: *** [stdio-common/tests] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040619/work/glibc-2.3 .2' make: *** [check] Error 2 !!! ERROR: sys-libs/glibc-2.3.4.20040619 failed. !!! Function do_makecheck, Line 227, Exitcode 2 !!! (no error message) Which is odd sinc I had the same version of glibc emerge fine with the 2.6.6 headers I think (not sure). $ emerge info Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7) ================================================================= System uname: 2.6.7 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-tbird -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox strict userpriv usersandbox" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.tiscali.nl/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X X509 aalib alsa avi berkdb cdr chroot crypt cups dga divx4linux dvd encode expat faad fbcon flac foomaticdb gdbm gif gimpprint gnome gphoto2 gstreamer gtk gtk2 guile imap imlib java jpeg libg++ mad maildir makecheck matroska mbox md5sum mmx mng motif mozilla mpeg ncurses nls nptl objc oggvorbis opengl pam pdflib perl pic png ppds python quicktime readline ruby samba sdl skey slang speex ssl svga tcpd tetex theora truetype unicode x86 xface xml2 xv xvid zlib" Reproducible: Always Steps to Reproduce:
Well like I thought: $ genlop linux26-headers * sys-kernel/linux26-headers Tue Jul 13 00:06:56 2004 --> sys-kernel/linux26-headers-2.6.6-r1 Tue Jul 20 10:31:55 2004 --> sys-kernel/linux26-headers-2.6.7-r3 and $ genlop glibc * sys-libs/glibc [...] Wed Jun 23 01:16:55 2004 --> sys-libs/glibc-2.3.3.20040420 Tue Jul 13 05:25:38 2004 --> sys-libs/glibc-2.3.4.20040619
Compiling with gcc-3.4.1 and FEATURES=-sandbox" failed with gcc -nostdlib -nostartfiles -o /var/tmp/portage/glibc-2.3.4.20040619/work/build/ posix/tst-regex -Wl,-dynamic-linker=/lib/ld-linux.so.2 -Wl,-z,combreloc /var /tmp/portage/glibc-2.3.4.20040619/work/build/csu/crt1.o /var/tmp/portage/glibc-2 .3.4.20040619/work/build/csu/crti.o `gcc --print-file-name=crtbegin.o` /var/tmp/ portage/glibc-2.3.4.20040619/work/build/posix/tst-regex.o /var/tmp/portage/glibc -2.3.4.20040619/work/build/rt/librt.so -Wl,-rpath-link=/var/tmp/portage/glibc-2 .3.4.20040619/work/build:/var/tmp/portage/glibc-2.3.4.20040619/work/build/math:/ var/tmp/portage/glibc-2.3.4.20040619/work/build/elf:/var/tmp/portage/glibc-2.3.4 .20040619/work/build/dlfcn:/var/tmp/portage/glibc-2.3.4.20040619/work/build/nss: /var/tmp/portage/glibc-2.3.4.20040619/work/build/nis:/var/tmp/portage/glibc-2.3. 4.20040619/work/build/rt:/var/tmp/portage/glibc-2.3.4.20040619/work/build/resolv :/var/tmp/portage/glibc-2.3.4.20040619/work/build/crypt:/var/tmp/portage/glibc-2 .3.4.20040619/work/build/nptl /var/tmp/portage/glibc-2.3.4.20040619/work/build/l ibc.so.6 /var/tmp/portage/glibc-2.3.4.20040619/work/build/libc_nonshared.a -lgcc -lgcc_eh `gcc --print-file-name=crtend.o` /var/tmp/portage/glibc-2.3.4.20040619 /work/build/csu/crtn.o /var/tmp/portage/glibc-2.3.4.20040619/work/build/rt/librt.so: undefined referenc e to `pthread_create' /var/tmp/portage/glibc-2.3.4.20040619/work/build/rt/librt.so: undefined referenc e to `pthread_cancel' /var/tmp/portage/glibc-2.3.4.20040619/work/build/rt/librt.so: undefined referenc e to `pthread_detach' /var/tmp/portage/glibc-2.3.4.20040619/work/build/rt/librt.so: undefined referenc e to `pthread_once' /var/tmp/portage/glibc-2.3.4.20040619/work/build/rt/librt.so: undefined referenc e to `pthread_attr_setstacksize' /var/tmp/portage/glibc-2.3.4.20040619/work/build/rt/librt.so: undefined referenc e to `pthread_sigmask' /var/tmp/portage/glibc-2.3.4.20040619/work/build/rt/librt.so: undefined referenc e to `__pthread_unwind' /var/tmp/portage/glibc-2.3.4.20040619/work/build/rt/librt.so: undefined referenc e to `pthread_barrier_init' /var/tmp/portage/glibc-2.3.4.20040619/work/build/rt/librt.so: undefined referenc e to `pthread_barrier_wait' /var/tmp/portage/glibc-2.3.4.20040619/work/build/rt/librt.so: undefined referenc e to `pthread_atfork' collect2: ld returned 1 exit status make[2]: *** [/var/tmp/portage/glibc-2.3.4.20040619/work/build/posix/tst-regex] Error 1 make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040619/work/glibc-2.3 .2/posix' make[1]: *** [posix/tests] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040619/work/glibc-2.3 .2' make: *** [check] Error 2 !!! ERROR: sys-libs/glibc-2.3.4.20040619 failed. !!! Function do_makecheck, Line 234, Exitcode 2 !!! (no error message) I'll now try with USE=-makecheck as I remember to have merged it fine with -makecheck and the 2.6.6 headers before.
It finished successfully with USE=-makecheck.
Rather than file a dup bug, I'll just comment that I also have this problem.
this is with USE=makecheck, linux26-headers-2.6.7-r4 and glibc-2.3.4.20040619-r1 GCONV_PATH=/var/tmp/portage/glibc-2.3.4.20040619-r1/work/build/iconvdata LC_ALL= C /var/tmp/portage/glibc-2.3.4.20040619-r1/work/build/elf/ld-linux.so.2 --libr ary-path /var/tmp/portage/glibc-2.3.4.20040619-r1/work/build:/var/tmp/portage/gl ibc-2.3.4.20040619-r1/work/build/math:/var/tmp/portage/glibc-2.3.4.20040619-r1/w ork/build/elf:/var/tmp/portage/glibc-2.3.4.20040619-r1/work/build/dlfcn:/var/tmp /portage/glibc-2.3.4.20040619-r1/work/build/nss:/var/tmp/portage/glibc-2.3.4.200 40619-r1/work/build/nis:/var/tmp/portage/glibc-2.3.4.20040619-r1/work/build/rt:/ var/tmp/portage/glibc-2.3.4.20040619-r1/work/build/resolv:/var/tmp/portage/glibc -2.3.4.20040619-r1/work/build/crypt:/var/tmp/portage/glibc-2.3.4.20040619-r1/wor k/build/nptl /var/tmp/portage/glibc-2.3.4.20040619-r1/work/build/stdio-common/te st-fseek > /var/tmp/portage/glibc-2.3.4.20040619-r1/work/build/stdio-common/tes t-fseek.out make[2]: *** [/var/tmp/portage/glibc-2.3.4.20040619-r1/work/build/stdio-common/t est-fseek.out] Error 139 make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc- 2.3.2/stdio-common' make[1]: *** [stdio-common/tests] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc- 2.3.2' make: *** [check] Error 2 !!! ERROR: sys-libs/glibc-2.3.4.20040619-r1 failed. !!! Function do_makecheck, Line 235, Exitcode 2 !!! (no error message) appears to be the same error.
glibc will fail makecheck with sandbox enabled when the user has USE=nptl set This seems to be caused by one of the checks doing a vfork() or a vsyscall() with LD_PRELOAD/sandbox. This is all I know for now.. SpanKY should know/have more details on the topic.
*** This bug has been marked as a duplicate of 56898 ***