Only on this machine (a hosted uml instance): ... make[3]: Entering directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc' make CC=" stage2/xgcc -Bstage2/ -B/usr/i686-pc-linux-gnu/bin/" CC_FOR_BUILD=" stage2/xgcc -Bstage2/ -B/usr/i686-pc-linux-gnu/bin/" \ STAGE_PREFIX=stage2/ \ ADAFLAGS="" CFLAGS="-O2 -march=pentium4 -fprefetch-loop-arrays -pipe" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-pedantic -Wno-long-long -Wold-style-definition " libdir=/usr/lib LANGUAGES="c gcov gcov-dump c++ f77" MAKEINFO="makeinfo" MAKEINFOFLAGS="--no-split" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \ CFLAGS="-O2 -march=pentium4 -fprefetch-loop-arrays -pipe" WERROR="" make[4]: Entering directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc' stage2/xgcc -Bstage2/ -B/usr/i686-pc-linux-gnu/bin/ -O2 -march=pentium4 -fprefetch-loop-arrays -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -o xgcc gcc.o gccspec.o intl.o \ prefix.o version.o ../libiberty/libiberty.a make[4]: stage2/xgcc: Command not found make[4]: *** [xgcc] Error 127 make[4]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc' make[3]: *** [stage3_build] Error 2 make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc' make[2]: *** [quickstrap] Error 2 make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build' make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.4.4 failed. !!! Function gcc_do_make, Line 1204, Exitcode 2 !!! emake failed with bootstrap-lean !!! If you need support, post the topmost build error, NOT this status message. strategyforward.com:/etc [894] # emerge info Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.4, glibc-2.3.4.20050125-r1, 2.6.10-linode11 i686) ================================================================= System uname: 2.6.10-linode11 i686 UML Gentoo Base System version 1.6.10 dev-lang/python: 2.2.3-r1, 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 adns alsa apache2 apm berkdb bitmap-fonts crypt emacs emboss fortran gd gdbm gif gtk2 imlib innodb ipv6 jpeg libg++ libwww mp3 mysql ncurses openssh pam pdflib perl php png python readline sasl slang spell ssl tcpd tiff truetype truetype-fonts type1-fonts uml userlocales vhosts xinetd xml2 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
i aswell cant compile gcc 3.4.4 on my amd64 i think it dies in multilib pass checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc-3.4.4/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.4/work/build/gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. make[1]: *** [configure-target-libstdc++-v3] Error 1 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.4 failed. !!! Function gcc_do_make, Line 1205, Exitcode 2 !!! emake failed with profiledbootstrap !!! If you need support, post the topmost build error, NOT this status message.
*** Bug 95640 has been marked as a duplicate of this bug. ***
Same here. This profile 2004.3 is the latest profile for SELinux, are there any maintainers encoutering this bug? A workaround would be most welcome. Not being able to compile gcc is pretty scary.
I have solved this problem on my system. It seems that there are times when the toolchain gets misconfigured after what I consider a simple upgrade. After lots of forum and bugzilla checking I ran a combination of these commands, along with the same commands to 'fix' whatever was wrong, and now everything is working: gcc-config -l # to make sure I had the right compiler fix_libtool_files.sh # on every old gcc version I ever had binutils-config -l # to make sure I had the right tool chain source /etc/profile # in case anything had changed etc-update # to pick up any configuration changes Now I am wondering how many of the -config commands I need to run after a system update. These give interesting results: find /sbin /bin /usr/sbin /usr/bin -print|grep config find /sbin /bin /usr/sbin /usr/bin -print|grep config|wc -l I have 108 -config commands on my system. I wish this bug report would help generate a master fix_config script. Thanks!
Steve: most of those -config packages are like gtk-config (they are used to get CFLAGS and LDFLAGS for building packages with that library). They're mostly not like gcc-config. Those config binaries are tending to find there way into pkg-config and the old ones getting deprecated as time goes on... As for the amd64 multilib bug, that's a differnet bug... please open a new one one with appropriage emerge --info