After emerging gcc-3.3.1-r5 with USE="+multilib" many things failed to work, including python and therefore env-update and emerge. Cause was empty LDPATH in /etc/env.d/05gcc and therefore incomplete ld.so.conf Thus programs searched unsuccessfully for libstdc++.so.5 and libgcc_s.so.1 Reproducible: Always Steps to Reproduce: 1.USE="+multilib" emerge gcc 2.share and enjoy! 3. Actual Results: see Details. Expected Results: well, work. I had previously installed the three emul-linux-x86 packages. As a workaround I did 1. export LD_LIBRARY_PATH=/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.1 to get the tools working 2. in said directory: ln -s libgcc_s.so.1 libgcc_s.so 3. added said PATH in 05gcc LDPATH="/usr/lib/gcc-lib/x86_64-....." 4. ran env-update and reboot. Here's the output of emerge -info AFTER this fix: Gentoo Base System version 1.4.3.10 Portage 2.0.49-r15 (default-amd64-1.4, gcc-3.3.1, glibc-2.3.2-r2, 2.6.0-gentoo) ================================================================= System uname: 2.6.0-gentoo x86_64 5 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/ge neric/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.join. uni-muenster.de/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.gentoo.org/gentoo-portage" USE="amd64 oss 3dnow apm avi crypt -cups encode foomaticdb gif gpm -java jpeg gn ome libg++ mikmod mmx mpeg ncurses nls pdflib png -qt quicktime spell sse truety pe xml2 xmms xv zlib gdbm berkdb slang readline arts tetex X sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl cups qt emacs mbox perl mozilla mule tetex"
you must have gcc-config-1.3.3-r2 or higher installed, you obviously do not. The standard gcc-config does not allow multiple paths in the LDPATH, where as 1.3.3-r2 or higher does.