When I try to emerge gcc-3.4.3, I get configure error : cannot run C compiled programs ... make: *** [configure-target-libstdc++-v3] Error 1 I found that it is connected with multilib parameter in my /etc/make.conf but I have to use it to compile 32-bit binaries. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 x86_64) ================================================================= System uname: 2.6.9-gentoo-r1 x86_64 4 Gentoo Base System version 1.4.16 distcc 2.17 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=k8 -O2" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org 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="amd64 X acpi alsa arts berkdb bitmap-fonts cdr crypt cups esd f77 fam flac fortran gdbm gif gnome gphoto2 gpm gstreamer gtk imap imlib ipv6 java jp2 jpeg junit ldap libwww lzw lzw-tiff mikmod motif mozilla multilib mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python readline samba sdl slang ssl tcltk tcpd tetex tiff truetype usb userlocales xml2 xmms xpm xrandr xv zlib linguas_pl"
*** Bug 75238 has been marked as a duplicate of this bug. ***
try this: USE="-multilib" emerge gcc emerge gcc glibc
second emerge then fails
oops, you might need to do a gcc-config. use gcc-config -l to list your profiles and reselect 3.4.3. do this even if it was selected. then 'emerge gcc glibc'
This might be a problem with sandbox and gcc. Check out bug #72379 for more information.
Yes, it is. I had exactly the same problem while bootstraping brand new AMD64 box. None solution helped. But I realized that it's caused by portage and sandbox. Don't know why but the newer versions of portage don't install libsandbox.so into /lib32. So I tried older one and succeded. emerge --nodeps \=portage-2.0.51-r3
The problem in portage not installing the 32bit libsandbox has to do with this line: elif [ "${ARCH}" == "amd64" -a -z "${MULTILIB_ABIS}" ]; then change it to: elif [ "${ARCH}" == "amd64" ]; then and it installs fine.
Is the solution to change that line ? at the moment a stage1 install breaks because of that ? later emerge gcc will also break things ... Is there any reason why changing that line in the portage ebuild is bad idea (TM)
Actually this issue has just been fixed. If you do a sync now and re-emerge portage the portage ebuild will install the 32 bit libsandbox and as such will compile gcc. The reason it is a bad idea to change the ebuild files in /usr/portage is because your changes will be overridden when you sync.
Identical issue here; recent sync, up-to-date portage. FEATURES=-sandbox doesn't fix it.
It seems portate changed the name of libsandbox so you have to re-compile glibc. Do this and it will compile: emerge sync && emerge portage glibc gcc
David Heaps mentions twice the issue is resolved and mentions how to fix it. I can't reproduce the problem, but I've not heard anyone shouting to the contrary. Closing the bug, resolving as FIXED - anyone with issues should reopen and update us with your current situation.