When I compile glibc-2.3.5 it does not want to compile. My options are now nptl and nptlonly (both needed apparently). I will try posting without nptlonly when I get home but it gives an error too. Reproducible: Always Steps to Reproduce: 1.emerge --sync 2.emerge -u =sys-libs/glibc-2.3.5 Actual Results: x86_64-pc-linux-gnu-gcc ../sysdeps/unix/sysv/linux/fexecve.c -c -std=gnu99 -O2 -O3 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -fPIC -mtune=athlon64 -pipe -mpreferred-stack-boundary=2 -g0 -O99 -fomit-frame-pointer -D__USE_STRING_INLINES -I../include -I. -I/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl/posix -I.. -I../libio -I../nptl -I/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 -I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include -isystem /usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl/posix/fexecve.o -MD -MP -MF /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl/posix/fexecve.o.dt -MT /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl/posix/fexecve.o ../nptl/sysdeps/unix/sysv/linux/i386/../fork.c: In function `__libc_fork': ../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:203: error: can't find a register in class `BREG' while reloading `asm' make[2]: *** [/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl/posix/fork.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5/posix' make[1]: *** [posix/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.5 failed. !!! Function toolchain-glibc_src_compile, Line 248, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Expected Results: compiled glibc correctly so I can compile and test the rest (portage, sandbox) Portage 2.0.51.20-r5 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r7 x86_64) ================================================================= System uname: 2.6.11-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.11 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.3 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-mtune=athlon64 -O3 -m64 -pipe -fomit-frame-pointer -fPIC" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mtune=athlon64 -O3 -m64 -pipe -fomit-frame-pointer -fPIC" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox strict" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.nutsmaas.nl/gentoo/ http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.be.gentoo.org/gentoo-portage" USE="amd64 X Xaw3d a52 aac aalib acpi aim alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bluetooth cdr crypt curl dba dga directfb dv dvb dvd dvdr dvdread emul-linux-x86 encode esd ethereal fam fbcon fftw flac font-server fortran ftp gd gif glut gpm gps gstreamer gtk hal imagemagick imap imlib jabber java javascript jikes joystick jp2 jpeg kde kdeenablefinal lesstif libwww lirc lm_sensors lzw lzw-tiff mad mikmod mmap motif mozilla mp3 mpeg mppe-mppc msn mysql nas ncurses nls nptl nptlonly nvidia ogg oggvorbis openal opengl oscar oss pam pdflib perl php png python qt quicktime readline sdl sndfile snmp speex sqlite ssl svg tcltk tcpd tidy tiff truetype truetype-fonts type1-fonts usb userlocales v4l vcd videos vorbis wifi wmf xine xinerama xml xml2 xmms xosd xpm xrandr xv xvid yahoo zlib userland_GNU kernel_linux libc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS Linux powerserver 2.6.11-gentoo-r7 #1 SMP Mon May 2 11:57:44 CEST 2005 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux MemTotal: 2056824 kB MemFree: 16192 kB Buffers: 266292 kB Cached: 945924 kB SwapCached: 2604 kB Active: 556508 kB Inactive: 822272 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 2056824 kB LowFree: 16192 kB SwapTotal: 4787352 kB SwapFree: 4784748 kB Dirty: 8516 kB Writeback: 0 kB Mapped: 237432 kB Slab: 632148 kB CommitLimit: 5815764 kB Committed_AS: 360928 kB PageTables: 6476 kB VmallocTotal: 34359738367 kB VmallocUsed: 28304 kB VmallocChunk: 34359709803 kB
> CFLAGS="-mtune=athlon64 -O3 -m64 -pipe -fomit-frame-pointer -fPIC" You've got -m64 and -fPIC in your CFLAGS!!! Remove both of those and re-emerge your ENTIRE system!
I tried it and now I have another problem Or do I have to open another bug report for this: /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nis/libnsl.so /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_nonshared.a /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl/libpthread.so: undefined reference to `errno@GLIBC_PRIVATE' /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl/libpthread.so: undefined reference to `__libc_dl_error_tsd@GLIBC_PRIVATE' /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl/libpthread.so: undefined reference to `__resp@GLIBC_PRIVATE' /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl/libpthread.so: undefined reference to `h_errno@GLIBC_PRIVATE' collect2: ld returned 1 exit status make[2]: *** [/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/nscd] Error 1 make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5/nscd' make[1]: *** [nscd/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.5 failed. !!! Function toolchain-glibc_src_compile, Line 248, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.51.21 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r7 x86_64) ================================================================= System uname: 2.6.11-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.11 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-mtune=athlon64 -O3 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mtune=athlon64 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox strict" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.nutsmaas.nl/gentoo/ http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.be.gentoo.org/gentoo-portage" USE="amd64 X Xaw3d a52 aac aalib acpi aim alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bluetooth cdr crypt curl dba dga directfb dv dvb dvd dvdr dvdread emul-linux-x86 encode esd ethereal fam fbcon fftw flac font-server fortran ftp gd gif glut gpm gps gstreamer gtk hal imagemagick imap imlib jabber java javascript jikes joystick jp2 jpeg kde kdeenablefinal lesstif libwww lirc lm_sensors lzw lzw-tiff mad mikmod mmap motif mozilla mp3 mpeg mppe-mppc msn mysql nas ncurses nls nptl nptlonly nvidia ogg oggvorbis openal opengl oscar oss pam pdflib perl php png python qt quicktime readline sdl sndfile snmp speex sqlite ssl svg tcltk tcpd tidy tiff truetype truetype-fonts type1-fonts usb userlocales v4l vcd videos vorbis wifi wmf xine xinerama xml xml2 xmms xosd xpm xrandr xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Got the same problem on amd64 when I try to upgrade my profile from 2004.3 to 2005.0. emerge --info give this output: Portage 2.0.51.21-r1 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.5-r0, 2.6 .11-gentoo-r7 x86_64) ================================================================= System uname: 2.6.11-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.11 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disab led] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.5-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share /config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kd e/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/b ind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig distlocks sandbox strict" GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/ f tp://gentoo.blueyonder.co.uk/mirrors/gentoo http://gentoo.blueyonder.co.uk" LANG="fr_FR.utf8" LC_ALL="fr_FR.utf8" LINGUAS="fr ja" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 X aac acpi aim alsa avi bash-completion berkdb bitmap-fonts bootsplas h bzip2 cdr chroot cjk crypt curl dvd dvdr fam flac font-server fortran gif gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jabber java jp2 jpeg kde lzw lzw-tiff mad mp3 mplayer multilib ncurses nls nvidia ogg opengl oss pam perl png python q t readline samba ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis xinerama xml2 xmms xpm xrandr xv xvid zlib linguas_fr linguas_ja use rland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY I also check If i had duplicate libpthread left other from previous install but not at all drizzt / # find . | grep libpthread ./usr/lib/libpthread.so ./usr/lib/libpthread_nonshared.a ./usr/lib/libpthread.a ./usr/lib/libpthread_g.a ./lib/libpthread.so.0 ./lib/libpthread-2.3.5.so ./emul/linux/x86/lib/libpthread.so.0 ./emul/linux/x86/lib/libpthread-0.10.so ./emul/linux/x86/usr/lib/libpthread.so ./emul/linux/x86/usr/lib/libpthread_nonshared.a ./emul/linux/x86/usr/lib/libpthread.a
I am getting the same compile error. emerge info: qbranch ~ # emerge info Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r9 x86_64) ================================================================= System uname: 2.6.11-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.12 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r2, 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -mtune=athlon64 -O2 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -mtune=athlon64 -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="amd64 X aalib acpi alsa apache2 arts avi bitmap-fonts bonobo cdr crypt cups curl dba dvd dvdr dvdread eds esd fam flac font-server foomaticdb fortran gd gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib innodb ipv6 java jit joystick jp2 jpeg junit kde kdeenablefinal ldap libwww lzw lzw-tiff mad mikmod motif mozilla mp3 mpeg mpm-prefork mysql ncurses nls no-htdocs nptl offensive ogg opengl oss pam pdflib perl png ppds python qt quicktime readline rtc samba sdl session slang sockets softmmu spell ssl svg tcpd tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xine xml xml2 xmms xpm xrandr xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS This box was upgraded from 2004.3, too.
should be fixed now ( system headers issue ) emerge the updated linux-headers and then glibc
(In reply to comment #5) > should be fixed now ( system headers issue ) > > emerge the updated linux-headers and then glibc $ emerge -p linux-headers [ebuild R ] sys-kernel/linux-headers-2.6.11-r1 and still the same compile error... $ emerge info Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r10 x86_64) ================================================================= System uname: 2.6.11-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.12 ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="" ARCH="amd64" AUTOCLEAN="yes" AUTO_SYMLINK="yes" BASH_ENV="/etc/spork/is/not/valid/profile.env" CBUILD="x86_64-pc-linux-gnu" CDEFINE_amd64="__x86_64__" CDEFINE_x86="__i386__" CFLAGS="-march=k8 -O2 -pipe -fstack-protector" CFLAGS_amd64="-m64" CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib" CHOST="x86_64-pc-linux-gnu" CHOST_amd64="x86_64-pc-linux-gnu" CHOST_x86="i686-pc-linux-gnu" CLASSPATH="." CLEAN_DELAY="5" COLORTERM="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control /var/www/localhost/htdocs/phpmyadmin" CONFIG_PROTECT_MASK="/etc/X11/Sessions/ /etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CVS_RSH="ssh" CXXFLAGS="-march=k8 -O2 -pipe -fstack-protector" DEFAULT_ABI="amd64" DESKTOP_SESSION="kde-3.4" DISPLAY=":0" DISTDIR="/usr/portage/distfiles" DM_CONTROL="/var/run/xdmctl" EDITOR="/usr/bin/vim" ELIBC="glibc" EMERGE_WARNING_DELAY="10" FEATURES="autoconfig ccache cvs distlocks fixpackages noinfo sandbox sfperms strict userpriv" FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}" GCC_SPECS="" GDK_USE_XFT="1" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.du.se/pub/os/gentoo" GRP_STAGE23_USE=" ipv6 pam tcpd readline nls ssl gpm perl python berkdb ncurses readline zlib -java" GS_LIB="/home/panard/.fonts" GTK2_RC_FILES="/home/panard/.gtkrc-2.0" GTK_RC_FILES="/etc/gtk/gtkrc:/home/panard/.gtkrc:/home/panard/.kde3.4/share/config/gtkrc" G_BROKEN_FILENAMES="1" HOME="/home/panard" HOSTNAME="banquise" INFOPATH="/usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info" JAVAC="/opt/sun-jdk-1.5.0.03/bin/javac" JAVA_HOME="/opt/sun-jdk-1.5.0.03" JDK_HOME="/opt/sun-jdk-1.5.0.03" KBUILD_OUTPUT_PREFIX="" KDEDIRS="/usr" KDE_FULL_SESSION="true" KDE_MALLOC="1" KDE_MULTIHEAD="false" KERNEL="linux" KONSOLE_DCOP="DCOPRef(konsole-16885,konsole)" KONSOLE_DCOP_SESSION="DCOPRef(konsole-16885,session-2)" LADSPA_PATH="/usr/lib/ladspa" LANG="fr_FR.utf8" LANGUAGE="33" LDFLAGS_amd64="-m elf_x86_64" LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib" LESS="-R" LESSOPEN="|lesspipe.sh %s" LIBDIR_amd64="lib64" LIBDIR_x86="lib32" LINGUAS="fr zh_CN" LINUX_PORTAGE_WRITABLE="no" LOGNAME="panard" MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.16/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man::/opt/sun-jdk-1.5.0.03/man:/usr/qt/3/doc/man:/opt/vmware/man" MULTILIB_ABIS="x86 amd64" MULTILIB_STRICT_DENY="64-bit.*shared object" MULTILIB_STRICT_DIRS="/lib /usr/lib /usr/kde/*/lib /usr/qt/*/lib /usr/X11R6/lib" MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|eclipse-3)" MYROOT="/home/panard/root/" MYROOT4="/home/panard/root4/" OPENGL_PROFILE="nvidia" PAGER="/usr/bin/less" PATH="/home/panard/src/unsermake:/home/panard/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4:/opt/stuffit/bin:/opt/sun-jdk-1.5.0.03/bin:/opt/sun-jdk-1.5.0.03/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/bin:/usr/games/bin:/opt/vmware/bin:/usr/share/karamba/bin:/home/panard/public_html/proliste/plserver/src/bin" PERLIO="stdio" PKGDIR="/usr/portage/packages" PORTAGE_ARCHLIST="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 ppc-macos ppc-od s390 sh sparc x86 x86-fbsd x86-obsd x86-od" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_CALLER="emerge" PORTAGE_GID="250" PORTAGE_MASTER_PID="8615" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" PRELINK_PATH="" PRELINK_PATH_MASK="/usr/lib/gstreamer-0.8" PWD="/home/panard" PYTHONPATH="/usr/lib/portage/pym" QMAKESPEC="linux-g++" QOMICS_DOWNLOAD="/home/panard/Projects/qomics-upload/" QTDIR="/usr/qt/3" RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}" RPMDIR="/usr/portage/rpm" RSYNC_RETRIES="3" RSYNC_TIMEOUT="180" SANE_CONFIG_DIR="/etc/sane.d" SESSION_MANAGER="local/banquise:/tmp/.ICE-unix/14414" SHELL="/bin/bash" SHLVL="3" SYMLINK_LIB="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" TERM="xterm" USE="amd64 X aalib acpi alsa apache2 avi bash-completion berkdb bitmap-fonts bzlib canna cddb cdr cjk crypt cups curl dba dri dvd dvdread encode fam flac font-server gd gdbm gif gimp gimpprint glx gphoto2 gstreamer gtk2 hal imagemagick imlib immqt ipv6 ipv6arpa jabber jce jp2 jpeg kde kdeenablefinal koffice-plugin libwww lzw lzw-tiff mad mikmod ming mng motif mozilla mp3 mpeg mysql nas ncurses nls nptl nvidia ogg oggvorbis opengl oss pam perl php pic png posix postgres povray ppds pslib python qt quicktime readline scanner sdl session simplexml slang ssl symlink tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wmf xfs xine xinerama xml2 xmms xpm xprint xrandr xsl xv xvid zlib linguas_fr linguas_zh_CN userland_GNU kernel_linux elibc_glibc" USER="panard" USERLAND="GNU" USE_EXPAND="FRITZCAPI_CARDS FCDSL_CARDS VIDEO_CARDS INPUT_DEVICES LINGUAS USERLAND KERNEL ELIBC" WINDOWID="54525959" XARGS="xargs -r" XCURSOR_THEME="gentoo-silver" XDG_CONFIG_DIRS="/usr/kde/3.4/etc/xdg" XDG_DATA_DIRS="/usr/kde/3.4/share:/usr/share" XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic" XINITRC="/etc/X11/xinit/xinitrc" _="/usr/bin/emerge"
Did you re-emerge linux headers? There were fixes without revbumps.
yes, I've tried re-emering linux headers, but still the same error... (and linux/unistd.h contains #include <errno.h>)
Let me just second that. Freshly sync'ed and emerged linux-headers. Emerge command (as part of profile update script): FEATURES=-sandbox emerge --oneshot sys-libs/glibc && touch /var/tmp/2005.0_upgrade/step5 Error message: /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so: undefined reference to `errno@GLIBC_PRIVATE' /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so: undefined reference to `__libc_dl_error_tsd@GLIBC_PRIVATE' /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so: undefined reference to `__resp@GLIBC_PRIVATE' /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so: undefined reference to `h_errno@GLIBC_PRIVATE' emerge info: Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r3 x86_64) ================================================================= System uname: 2.6.11-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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="" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://mirror.pudas.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acpi alsa apache2 arts berkdb bitmap-fonts cdr crypt curl dvd dvdread emacs esd fam flac font-server fortran gd gdbm gif gphoto2 gpm gtk gtk2 imagemagick imlib ipv6 java jp2 jpeg junit ldap libwww lzw lzw-tiff mikmod motif mp3 mysql ncurses nls ogg opengl oss pam pdflib png postgres python qt readline ruby sdl simplexml slang snmp spl sqlite ssl tcpd tetex tidy tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xine xml xml2 xmms xpm xrandr xsl xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
The problem is that the upgrade from glibc-2.3.4 to 2.3.5 doesn't work because of one or another bug in 2.3.4 (according to some LFS e-mail list). Due to hardware problems, I had to restart my Gentoo installation from LiveCD and I directly used glibc-2.3.5 and had no problems. I do not know which exact glibc is on the LiveCD but that one works. Maybe you should try downgrading to the previous glibc and then rebuild the new glibc.
Downgrading glibc is never a good idea .. if you really want to try it, first make sure you have an livecd that works, and package the existing glibc: # quickpkg glibc
Please see the 'common problems' section of the amd64 2005.0 upgrade guide.
whoops... meant to close...