When I try to emerge glibc-2.3.2-r9 I get the following error ... bla bla .... gcc -shared -static-libgcc -Wl,-dynamic-linker=/lib/ld-linux.so.2 -Wl,-z,defs -B/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/ -Wl,--version-script=gconv.map -Wl,-z,combreloc -L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere -L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/math -L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/elf -L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/dlfcn -L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nss -L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nis -L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/rt -L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/resolv -L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/crypt -L/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/linuxthreads -Wl,-rpath-link=/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/math:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/elf:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/dlfcn:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nss:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/nis:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/rt:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/resolv:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/crypt:/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/linuxthreads -o /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconvdata/GBK.so -T /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/shlib.lds /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/csu/abi-note.o /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconvdata/gbk.os /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc.so /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/libc_nonshared.a /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconvdata/KOI8-U.so: Not enough room for program headers (allocated 4, need 5) /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[2]: *** [/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/iconvdata/KOI8-U.so] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/iconvdata' make[1]: *** [iconvdata/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.2-r9 failed. !!! Function src_compile, Line 496, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. emerge glibc 2. 3. # emerge info Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-gentoo-r4) ================================================================= System uname: 2.4.22-gentoo-r4 i686 AMD Athlon(tm) XP 1600+ Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -mmmx -m3dnow -msse -fomit-frame-pointer -Wall -funroll-loops" 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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -mmmx -m3dnow -msse -fomit-frame-pointer -Wall -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync8.de.gentoo.org/gentoo-portage" USE="3dnow X aalib apm avi cdr crypt dga directfb emacs encode ffmpeg foomaticdb freetype gdbm gif gpm gtk guile imlib java jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tiff truetype x86 xml xml2 xmms xv zlib"
Here it also fails, but at a different point: wcsrtombs.c: At top level: wcsrtombs.c:39: warning: function declaration isn't a prototype wcsrtombs.c: In function `__wcsrtombs': wcsrtombs.c:58: `__locale_t' undeclared (first use in this function) wcsrtombs.c:58: `__pthread_internal_tsd_get' undeclared (first use in this function) wcsrtombs.c:58: warning: type defaults to `int' in declaration of `_fn' wcsrtombs.c:58: called object is not a function wcsrtombs.c:68: warning: implicit declaration of function `__wcslen' wcsrtombs.c:82: warning: implicit declaration of function `DL_CALL_FCT' wcsrtombs.c:85: warning: left-hand operand of comma expression has no effect wcsrtombs.c:85: warning: left-hand operand of comma expression has no effect wcsrtombs.c:85: warning: left-hand operand of comma expression has no effect wcsrtombs.c:85: warning: left-hand operand of comma expression has no effect wcsrtombs.c:85: warning: left-hand operand of comma expression has no effect wcsrtombs.c:85: warning: left-hand operand of comma expression has no effect wcsrtombs.c:85: warning: left-hand operand of comma expression has no effect wcsrtombs.c:105: warning: implicit declaration of function `__wcsnlen' wcsrtombs.c:114: warning: left-hand operand of comma expression has no effect wcsrtombs.c:114: warning: left-hand operand of comma expression has no effect wcsrtombs.c:114: warning: left-hand operand of comma expression has no effect wcsrtombs.c:114: warning: left-hand operand of comma expression has no effect wcsrtombs.c:114: warning: left-hand operand of comma expression has no effect wcsrtombs.c:114: warning: left-hand operand of comma expression has no effect wcsrtombs.c:114: warning: left-hand operand of comma expression has no effect wcsrtombs.c:125: warning: implicit declaration of function `__mbsinit' wcsrtombs.c:142: warning: implicit declaration of function `__set_errno' wcsrtombs.c: At top level: wcsrtombs.c:148: parse error at end of input make[2]: *** [/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/wcsmbs/wcsrtombs.os] Error 1 make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/wcsmbs' make[1]: *** [wcsmbs/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.2-r9 failed. !!! Function src_compile, Line 496, Exitcode 2 !!! (no error message) Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.24) ================================================================= System uname: 2.4.24 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/backup_data/linux/gentoo/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.inode.at/ http://gentoo.mirror.sdv.fr" MAKEOPTS="-j1" PKGDIR="/data/linux/gentoo/packages/athlon-xp" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="X apm arts avi berkdb bonobo cdr crypt cups directfb encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg ldap libg++ libwww mad mikmod motif mozilla mpeg ncurses oggvorbis opengl oss pam pdflib perl png python quicktime readline ruby sdl slang ssl svga tcpd truetype x86 xml2 xmms xv zlib"
I have reemerged binutils which was binutils-2.14.90.0.7-r4 and my compilation/link error went away. I don't know how it was solved.
Still that version of binutils, or is it .8 you have now?
I have not rsynced portage today or yesterday, I dont know if 0.8 is unmasked but mine is root # emerge -p binutils These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-devel/binutils-2.14.90.0.7-r4
1. Today I started with binutils-2.14.90.0.6-r6 and glibc-2.3.2-r3 2. emerge sync 3. emerge binutils (became 2.14.90.0.7-r4) 4. emerge -B glibc (build package 2.3.2-r9 which failed) I tried step 4 again, trying to reproduce, also with binutils-2.14.90.0.6-r6, also tried some other things which could have been the situation when it failed but could not reproduce. I now built the glibc-2.3.2-r9 package but I think I'm not gonna install it seeing the bugreports regarding r9...
Well OK, the last status, made a backup to be sure and emerged glibc-2.3.2-r9. It runs fine!
Ok, great! I will leave this open if somebody have issues.
looks to be fixed
.