I was doing emerge -u world, glibc-2.3.1-r2 just got installed. The next package in the queue failed saying gcc doesn't work. If I try to compile any program with gcc I get: jrray@geep jrray $ gcc blah.c /lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol_skip@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_rtld_global@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_start_profile@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_check_map_versions@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_get_origin@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_dst_substitute@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_debug_state@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_init@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_dst_count@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_out_of_memory@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_signal_error@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_debug_printf@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_map_object_deps@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_unload_cache@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_relocate_object@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_argv@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_catch_error@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_lookup_symbol_skip@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_lookup_symbol@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_map_object@GLIBC_PRIVATE' collect2: ld returned 1 exit status Noticing all the _dl_ stuff I tried adding -ldl but it gives me the same output. jrray@geep jrray $ gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/specs Configured with: /var/tmp/portage/gcc-3.2.1/work/gcc-3.2.1/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,ada,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/include/g++-v32 --with-local-prefix=/usr/local --enable-shared --disable-nls Thread model: posix gcc version 3.2.1 jrray@geep jrray $ ld -v GNU ld version 2.13.90.0.16 20021126 geep pkgconfig-0.14.0 # emerge info Portage 2.0.45-r3 (default-x86-1.4, gcc-3.2.1, glibc-2.2.5-r2,2.3.1-r2) ================================================================= System uname: 2.4.19-gentoo-r9 i686 AMD Athlon(tm) MP 1800+ USE="x86 oss 3dnow apm avi crypt encode gif gpm jpeg gnome libg++ mikmod mmx mpeg ncurses pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts tetex bonobo svga java guile X sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla snmp cdr scanner dvd -cups -nls" ARCH="x86" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j3" JDK_HOME="/opt/ibm-jdk-1.3.1" JAVA_HOME="/opt/ibm-jdk-1.3.1" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
# ls -l /lib and paste ...
geep pkgconfig-0.14.0 # ls -l /lib total 4392 lrwxrwxrwx 1 root root 12 Dec 10 08:35 cpp -> /usr/bin/cpp drwxr-xr-x 10 root root 4096 Dec 9 09:38 dev-state drwxr-xr-x 2 root root 4096 Nov 14 07:06 evms drwxr-xr-x 2 root root 4096 Sep 25 22:28 iptables -rwxr-xr-x 1 root root 92589 Dec 10 09:08 ld-2.3.1.so lrwxrwxrwx 1 root root 18 Aug 1 04:24 ld-linux.so.1 -> ld-linux.so.1.9.11 -rwxr-xr-x 1 root root 22388 Apr 7 2002 ld-linux.so.1.9.11 lrwxrwxrwx 1 root root 11 Dec 10 09:08 ld-linux.so.2 -> ld-2.3.1.so -rwxr-xr-x 2 root root 104048 Apr 7 2002 ld.so -rwxr-xr-x 2 root root 104048 Apr 7 2002 ld.so.1.9.11 -rwxr-xr-x 1 root root 4906 Dec 10 09:08 libBrokenLocale-2.3.1.so lrwxrwxrwx 1 root root 24 Dec 10 09:08 libBrokenLocale.so.1 -> libBrokenLocale-2.3.1.so -rwxr-xr-x 1 root root 13698 Dec 10 09:08 libSegFault.so -rwxr-xr-x 1 root root 12710 Dec 10 09:08 libanl-2.3.1.so lrwxrwxrwx 1 root root 15 Dec 10 09:08 libanl.so.1 -> libanl-2.3.1.so -rwxr-xr-x 1 root root 1414696 Dec 10 09:08 libc-2.3.1.so lrwxrwxrwx 1 root root 13 Dec 10 09:08 libc.so.6 -> libc-2.3.1.so lrwxrwxrwx 1 root root 15 Oct 27 17:11 libcom_err.so -> libcom_err.so.2 lrwxrwxrwx 1 root root 17 Oct 27 17:11 libcom_err.so.2 -> libcom_err.so.2.0 -rwxr-xr-x 1 root root 7514 Oct 27 17:11 libcom_err.so.2.0 lrwxrwxrwx 1 root root 15 Aug 1 04:24 libcrack.so -> libcrack.so.2.7 lrwxrwxrwx 1 root root 15 Aug 1 04:24 libcrack.so.2 -> libcrack.so.2.7 -rwxr-xr-x 1 root root 31092 Apr 7 2002 libcrack.so.2.7 -rwxr-xr-x 1 root root 22660 Dec 10 09:08 libcrypt-2.3.1.so lrwxrwxrwx 1 root root 17 Dec 10 09:08 libcrypt.so.1 -> libcrypt-2.3.1.so lrwxrwxrwx 1 root root 17 Dec 10 08:07 libcurses.so -> libncurses.so.5.3 -rwxr-xr-x 1 root root 11820 Dec 10 09:08 libdl-2.3.1.so lrwxrwxrwx 1 root root 15 Aug 1 04:24 libdl.so.1 -> libdl.so.1.9.11 -rwxr-xr-x 1 root root 5756 Apr 7 2002 libdl.so.1.9.11 lrwxrwxrwx 1 root root 14 Dec 10 09:08 libdl.so.2 -> libdl-2.3.1.so -rwxr-xr-x 1 root root 13426 Nov 14 07:06 libdlist-1.0.so lrwxrwxrwx 1 root root 13 Nov 14 07:06 libdlist.so -> libdlist.so.1 lrwxrwxrwx 1 root root 15 Nov 14 07:06 libdlist.so.1 -> libdlist-1.0.so lrwxrwxrwx 1 root root 11 Oct 27 17:11 libe2p.so -> libe2p.so.2 lrwxrwxrwx 1 root root 13 Oct 27 17:11 libe2p.so.2 -> libe2p.so.2.3 -rwxr-xr-x 1 root root 22004 Oct 27 17:11 libe2p.so.2.3 -rwxr-xr-x 1 root root 256457 Nov 14 07:06 libevms-1.2.0.so lrwxrwxrwx 1 root root 12 Nov 14 07:06 libevms.so -> libevms.so.1 lrwxrwxrwx 1 root root 16 Nov 14 07:06 libevms.so.1 -> libevms-1.2.0.so lrwxrwxrwx 1 root root 14 Oct 27 17:11 libext2fs.so -> libext2fs.so.2 lrwxrwxrwx 1 root root 16 Oct 27 17:11 libext2fs.so.2 -> libext2fs.so.2.4 -rwxr-xr-x 1 root root 111820 Oct 27 17:11 libext2fs.so.2.4 lrwxrwxrwx 1 root root 17 Oct 27 17:09 libhistory.so -> libhistory.so.4.2 lrwxrwxrwx 1 root root 21 Oct 27 17:10 libhistory.so.4 -> libhistory.so.4.2.old -rwxr-xr-x 1 root root 23036 Apr 7 2002 libhistory.so.4.1 -rwxr-xr-x 1 root root 27233 Oct 27 17:09 libhistory.so.4.2 -rw-r--r-- 1 root root 27233 Oct 27 17:09 libhistory.so.4.2.old -rwxr-xr-x 1 root root 177394 Dec 10 09:08 libm-2.3.1.so lrwxrwxrwx 1 root root 13 Dec 10 09:08 libm.so.6 -> libm-2.3.1.so -rwxr-xr-x 1 root root 14021 Dec 10 09:08 libmemusage.so lrwxrwxrwx 1 root root 15 Dec 10 08:07 libncurses.so -> libncurses.so.5 lrwxrwxrwx 1 root root 17 Dec 10 08:07 libncurses.so.5 -> libncurses.so.5.3 -rw-r--r-- 1 root root 314618 Dec 10 08:07 libncurses.so.5.3 -rwxr-xr-x 1 root root 87973 Dec 10 09:08 libnsl-2.3.1.so lrwxrwxrwx 1 root root 15 Dec 10 09:08 libnsl.so.1 -> libnsl-2.3.1.so -rwxr-xr-x 1 root root 49843 Dec 10 09:08 libnss_compat-2.3.1.so lrwxrwxrwx 1 root root 22 Dec 10 09:08 libnss_compat.so.2 -> libnss_compat-2.3.1.so -rwxr-xr-x 1 root root 16972 Dec 10 09:08 libnss_dns-2.3.1.so lrwxrwxrwx 1 root root 19 Dec 10 09:08 libnss_dns.so.2 -> libnss_dns-2.3.1.so -rwxr-xr-x 1 root root 43181 Dec 10 09:08 libnss_files-2.3.1.so lrwxrwxrwx 1 root root 21 Dec 10 09:08 libnss_files.so.2 -> libnss_files-2.3.1.so -rwxr-xr-x 1 root root 18309 Dec 10 09:08 libnss_hesiod-2.3.1.so lrwxrwxrwx 1 root root 22 Dec 10 09:08 libnss_hesiod.so.2 -> libnss_hesiod-2.3.1.so -rwxr-xr-x 1 root root 41710 Dec 10 09:08 libnss_nis-2.3.1.so lrwxrwxrwx 1 root root 19 Dec 10 09:08 libnss_nis.so.2 -> libnss_nis-2.3.1.so -rwxr-xr-x 1 root root 47895 Dec 10 09:08 libnss_nisplus-2.3.1.so lrwxrwxrwx 1 root root 23 Dec 10 09:08 libnss_nisplus.so.2 -> libnss_nisplus-2.3.1.so lrwxrwxrwx 1 root root 14 Nov 14 07:52 libpam.so -> libpam.so.0.75 lrwxrwxrwx 1 root root 14 Nov 14 07:52 libpam.so.0 -> libpam.so.0.75 -rwxr-xr-x 1 root root 35867 Nov 14 07:52 libpam.so.0.75 lrwxrwxrwx 1 root root 19 Nov 14 07:52 libpam_misc.so -> libpam_misc.so.0.75 lrwxrwxrwx 1 root root 19 Nov 14 07:52 libpam_misc.so.0 -> libpam_misc.so.0.75 -rwxr-xr-x 1 root root 11661 Nov 14 07:52 libpam_misc.so.0.75 lrwxrwxrwx 1 root root 15 Nov 14 07:52 libpamc.so -> libpamc.so.0.75 lrwxrwxrwx 1 root root 15 Nov 14 07:52 libpamc.so.0 -> libpamc.so.0.75 -rwxr-xr-x 1 root root 12749 Nov 14 07:52 libpamc.so.0.75 -rw-r--r-- 1 root root 27278 Oct 23 13:45 libpci.a -rwxr-xr-x 1 root root 6023 Dec 10 09:08 libpcprofile.so lrwxrwxrwx 1 root root 22 Nov 14 07:00 libproc.so -> /lib/libproc.so.2.0.10 -r-xr-xr-x 1 root root 41248 Nov 14 07:00 libproc.so.2.0.10 -r-xr-xr-x 1 root root 37796 Apr 7 2002 libproc.so.2.0.7 -rwxr-xr-x 1 root root 86435 Dec 10 09:08 libpthread-0.10.so lrwxrwxrwx 1 root root 18 Dec 10 09:08 libpthread.so.0 -> libpthread-0.10.so lrwxrwxrwx 1 root root 15 Oct 27 17:06 libpwdb.so -> libpwdb.so.0.61 lrwxrwxrwx 1 root root 15 Oct 27 17:06 libpwdb.so.0 -> libpwdb.so.0.61 -rwxr-xr-x 1 root root 139154 Oct 27 17:06 libpwdb.so.0.61 lrwxrwxrwx 1 root root 18 Oct 27 17:09 libreadline.so -> libreadline.so.4.2 lrwxrwxrwx 1 root root 22 Oct 27 17:10 libreadline.so.4 -> libreadline.so.4.2.old -rwxr-xr-x 1 root root 158524 Apr 7 2002 libreadline.so.4.1 -rwxr-xr-x 1 root root 201453 Oct 27 17:09 libreadline.so.4.2 -rw-r--r-- 1 root root 201453 Oct 27 17:09 libreadline.so.4.2.old -rwxr-xr-x 1 root root 69952 Dec 10 09:08 libresolv-2.3.1.so lrwxrwxrwx 1 root root 18 Dec 10 09:08 libresolv.so.2 -> libresolv-2.3.1.so -rwxr-xr-x 1 root root 34144 Dec 10 09:08 librt-2.3.1.so lrwxrwxrwx 1 root root 14 Dec 10 09:08 librt.so.1 -> librt-2.3.1.so -rwxr-xr-x 1 root root 23088 Dec 10 08:43 libsandbox.so lrwxrwxrwx 1 root root 10 Oct 27 17:11 libss.so -> libss.so.2 lrwxrwxrwx 1 root root 12 Oct 27 17:11 libss.so.2 -> libss.so.2.0 -rwxr-xr-x 1 root root 20760 Oct 27 17:11 libss.so.2.0 -rwxr-xr-x 1 root root 22054 Dec 10 09:08 libthread_db-1.0.so lrwxrwxrwx 1 root root 19 Dec 10 09:08 libthread_db.so.1 -> libthread_db-1.0.so -rwxr-xr-x 1 root root 10762 Dec 10 09:08 libutil-2.3.1.so lrwxrwxrwx 1 root root 16 Dec 10 09:08 libutil.so.1 -> libutil-2.3.1.so lrwxrwxrwx 1 root root 12 Oct 27 17:11 libuuid.so -> libuuid.so.1 lrwxrwxrwx 1 root root 14 Oct 27 17:11 libuuid.so.1 -> libuuid.so.1.2 -rwxr-xr-x 1 root root 12888 Oct 27 17:11 libuuid.so.1.2 drwxr-xr-x 4 root root 4096 Oct 30 09:51 modules drwxr-xr-x 3 root root 4096 Nov 24 16:02 rcscripts drwxr-xr-x 3 root root 4096 Nov 14 07:52 security
-------------------------- -rwxr-xr-x 1 root root 13098 Dec 4 21:47 libdl-2.3.1.so lrwxrwxrwx 1 root root 14 Dec 4 21:47 libdl.so.2 -> libdl-2.3.1.so --------------------------- That is my libdl.* .... Yours is from ld.so I think ? ----------------------- nosferatu mozilla # ldd /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/* 2>/dev/null |grep libdl libdl.so.2 => /lib/libdl.so.2 (0x444ca000) libdl.so.2 => /lib/libdl.so.2 (0x444ca000) libdl.so.2 => /lib/libdl.so.2 (0x444ca000) nosferatu mozilla # ------------------------ Check what yours is linked to, and if possible, replace /lib/libdl.so.1 with symlink to libdl.so.2 ...
I unmerged ld.so and my libdl* looks like: -rwxr-xr-x 1 root root 11820 Dec 10 09:08 /lib/libdl-2.3.1.so lrwxrwxrwx 1 root root 10 Dec 10 17:18 /lib/libdl.so.1 -> libdl.so.2 lrwxrwxrwx 1 root root 14 Dec 10 09:08 /lib/libdl.so.2 -> libdl-2.3.1.so Still no dice, same errors. With and without the libdl.so.1 symlink. That ldd command had the same output on my box as yours (the address was a little different).
Hrm, wonder why. I did a few bootstraps, and then update to glibc-2.3.1 and then remerge a lot of things (gcc included), and it always went smooth. Can you maybe check if all libs in /lib and the internal gcc dir have all deps they need, etc ?
Try to run: /usr/portage/sys-devel/gcc/files/fix_libtool_files.sh 3.2 if you upgraded from gcc 3.2 to gcc 3.2.1 this should solve the problem... Que
Ok, try the following. Get a stage1 image, do the usual chroot && bootstrap. If finished, create with quickpkg binary packages for gcc and glibc: # /usr/lib/portage/bin/quickpkg /var/db/pkg/sys-devel/gcc-3.2.1/ Exit the chroot, and starting with gcc unpack the binaries, testing which fix the borking. NB: just make sure that gcc-3.2.1 and glibc-3.2.1-r2 are build during bootstrap ..
Hi Robert. Sorry, was already 3am when I ssh'd to your box, and I fell asleep :/ Anyhow, try maybe the following: Add to glibc's ./configure the following line: --enable-oldest-abi=2.2.5 And then remerge glibc in the chroot, and install it again on your live system via binary package .. let me know if it fixed it. NB: btw, seems like its 'ld' borking, and not gcc ...
That seems to make the build fail: ... gcc -shared -static-libgcc -Wl,-O1 -Wl,-dynamic-linker=/lib/ld-linux.so.2 -B/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/csu/ -Wl,--version-script=/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -nostdlib -nostartfiles -e __libc_main -u __register_frame -L/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere -L/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/math -L/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/elf -L/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/dlfcn -L/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/nss -L/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/nis -L/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/rt -L/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/resolv -L/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/crypt -L/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/linuxthreads -Wl,-rpath-link=/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere:/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/math:/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/elf:/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/dlfcn:/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/nss:/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/nis:/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/rt:/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/resolv:/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/crypt:/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/linuxthreads -o /var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/libc.so -T /var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/libc.so.lds /var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/csu/abi-note.o /var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/elf/soinit.os /var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/libc_pic.os /var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/elf/sofini.os /var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/elf/interp.os /var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/elf/ld.so -lgcc /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/ld: /var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/libc.so: undefined versioned symbol name getrlimit@GLIBC_2.0 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/ld: failed to set dynamic section sizes: Bad value collect2: ld returned 1 exit status make[1]: *** [/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1/buildhere/libc.so] Error 1 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.1-r2/work/glibc-2.3.1' make: *** [all] Error 2 "Help me Obi Wan, you're my only hope."
Martin, I got my computer back under control by starting a new chroot, masking glibc-2.3.1-r2, bootstrapping, then making and installing binary packages of gcc, glibc, and binutils. I had to mask glibc in my "real" portage tree before installing the binary package of it so that it would install the version I wanted (if anyone is trying to repeat this process). 2.3.1 seems to work okay when I use it in the chroot, but I'm hesitant to try installing it again.
Ok, great. I will still try to figure out what happned here. Busy doing a emerge system with glibc-2.2.5 and binutils-2.13.90.0.4.
Check comment #9 in http://bugs.gentoo.org/show_bug.cgi?id=11945 Basically, with a bootstrap and emerge system with old binutils and glibc, and then upgrading, I cannot recreate this ....
Robert, have you tried this again ?
My installation also fail at this. Both bootstrap.sh (stage1) and emerge -u (stage3) fail. The computer is sony vaio pcg05fx.
Output of 'emerge info' please ?
Stephan, I dont know if you may have an idea to what can be the cause of this. I did mail Jakub Jelinek to check if he might have an idea, but so far he have not responded ... do not know if you will be more successful ...
Just tried to emerge glibc-2.3.1-r2 again, gcc is broken again. :(
I once got a similar error once when I tired to bootstrat from scratch a sparc64 userland system from a sparc32 userland. But for the life of me I cannot remeber the solution, I think it was for me that /lib/libc.so ws a text file! No help here sorry.
I finally discovered the source of my problem! Apparently it is all my fault. I have no idea where it came from, but I have a /usr/local/lib full of stuff, and I had a ld-linux.so.2 in there pointing to ld-2.2.5.so. This was being loaded instead of /lib/ld-linux.so.2 -> ld-2.3.1.so. Deleting /usr/local/lib/ld-linux.so.2 ends my 4 months of misery.
closing as fixed