While upgrading to 3.2.2 compilation crashes for every package after kdesdk (inclusive). The error produced is: error while loading shared libraries: /usr/lib/libpthread.so.0: invalid ELF header Configuration: gcc-3.3.2/glibc-2.3.2-r9 I then tried unmerging all of KDE, and upgrading to gcc-3.4/glibc-2.3.3_pre20040529.ebuild. emerge kde-3.2.1 emerged OK emerge -uUD kde-3.2.2 dies again. Reproducible: Always Steps to Reproduce: 1. emerge kde-3.2.1 2. emerge -uUD kde-3.2.2 Actual Results: executing /usr/kde/3.2/bin/meinproc during compalation of kdesdk (and every package afterwards) produced the following: error while loading shared libraries: /usr/lib/libpthread.so.0: invalid ELF header Expected Results: ummm... build. gcc-3.3.2/glibc-2.3.2-r9 upgraded to gcc-3.4/glibc-2.3.3_pre20040529.ebuild, and trie again -- same results. Emerge info follows: Portage 2.0.50-r7 (default-x86-1.4, gcc-3.4.0, glibc-2.3.3_pre20040529-r0, 2.6.3) ================================================================= System uname: 2.6.3 i686 Celeron (Coppermine) Gentoo Base System version 1.4.10 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium3 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.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="-O3 -march=pentium3 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d acpi alsa apache2 apm arts avi berkdb bonobo crypt cups emacs encode esd foomaticdb gdbm gif gphoto2 gpm gtk gtk2 imap imlib java jpeg kde ldap libg++ libwww mad mikmod motif mozilla mpeg mpi ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl plotutils pmeg png pnp python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype trusted usb wxwindows x86 xml2 xmms xv zlib"
The problem is fixed and was actually caused by a very subtle circular dependency of /usr/lib/libpthread.so.0 and /usr/lib/libpthread.so A full bug report was filed as #53854 detailing how to replicate and fix the problem with glibc's installation. EBo --
*** Bug 72343 has been marked as a duplicate of this bug. ***
*** Bug 69639 has been marked as a duplicate of this bug. ***