When I try to emerge gcc (upgrading from 2003.4 to 2005.0) I get error in compile that: checking whether the C compiler works... configure: error: cannot run C compiled programs. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: emerge cleanly pinkcat root # emerge info Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r1 x86_64) ================================================================= System uname: 2.6.11-gentoo-r1 x86_64 Intel(R) Xeon(TM) CPU 2.80GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 2 2005, 15:06:40)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O3 -march=nocona -mtune=nocona -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe" CHOST="x86_64-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=nocona -mtune=nocona -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage/" USE="amd64 crypt gdbm ipv6 mp3 multilib nptl nptlonly pam perl ssl symlink tcpd userlocales zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Please upload or paste the config.log from configure of any given package that fails.
Juha, please see Stian's comment above
I think I have the same problem here I added multilib to the USE flags and recompiled gcc config.status: executing default-1 commands Adding multilib support to Makefile in /var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/libstdc++-v3 multidirs=32 with_multisubdir= Running configure in multilib subdirs 32 pwd: /var/tmp/portage/gcc-3.4.3-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3 Running configure in multilib subdir 32 pwd: /var/tmp/portage/gcc-3.4.3-r1/work/build/x86_64-pc-linux-gnu mkdir 32 configure: creating cache ./config.cache checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.3-r1/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.3-r1/work/build' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.3-r1 failed. !!! Function gcc_do_make, Line 1138, Exitcode 2 !!! make failed with profiledbootstrap !!! If you need support, post the topmost build error, NOT this status message. config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:581: checking host system type configure:602: checking target system type configure:620: checking build system type configure:675: checking for a BSD compatible install configure:2859: checking for x86_64-pc-linux-gnu-ar configure:2892: checking for ar configure:2931: checking for x86_64-pc-linux-gnu-as configure:2964: checking for as configure:3003: checking for x86_64-pc-linux-gnu-dlltool configure:3036: checking for dlltool configure:3075: checking for x86_64-pc-linux-gnu-ld configure:3147: checking for x86_64-pc-linux-gnu-nm configure:3180: checking for nm configure:3219: checking for x86_64-pc-linux-gnu-ranlib configure:3252: checking for ranlib configure:3291: checking for x86_64-pc-linux-gnu-windres configure:3324: checking for windres configure:3363: checking for x86_64-pc-linux-gnu-objcopy configure:3396: checking for objcopy configure:3435: checking for x86_64-pc-linux-gnu-objdump configure:3468: checking for objdump configure:3517: checking for x86_64-pc-linux-gnu-ar configure:3550: checking for ar configure:3589: checking for x86_64-pc-linux-gnu-as configure:3622: checking for as configure:3661: checking for x86_64-pc-linux-gnu-dlltool configure:3694: checking for dlltool configure:3733: checking for x86_64-pc-linux-gnu-ld configure:3766: checking for ld configure:3805: checking for x86_64-pc-linux-gnu-nm configure:3838: checking for nm configure:3877: checking for x86_64-pc-linux-gnu-ranlib configure:3910: checking for ranlib configure:3949: checking for x86_64-pc-linux-gnu-windres configure:3982: checking for windres configure:4049: checking whether to enable maintainer-specific portions of Makefiles
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:581: checking host system type configure:602: checking target system type configure:620: checking build system type configure:675: checking for a BSD compatible install configure:2859: checking for x86_64-pc-linux-gnu-ar configure:2892: checking for ar configure:2931: checking for x86_64-pc-linux-gnu-as configure:2964: checking for as configure:3003: checking for x86_64-pc-linux-gnu-dlltool configure:3036: checking for dlltool configure:3075: checking for x86_64-pc-linux-gnu-ld configure:3147: checking for x86_64-pc-linux-gnu-nm configure:3180: checking for nm configure:3219: checking for x86_64-pc-linux-gnu-ranlib configure:3252: checking for ranlib configure:3291: checking for x86_64-pc-linux-gnu-windres configure:3324: checking for windres configure:3363: checking for x86_64-pc-linux-gnu-objcopy configure:3396: checking for objcopy configure:3435: checking for x86_64-pc-linux-gnu-objdump configure:3468: checking for objdump configure:3517: checking for x86_64-pc-linux-gnu-ar configure:3550: checking for ar configure:3589: checking for x86_64-pc-linux-gnu-as configure:3622: checking for as configure:3661: checking for x86_64-pc-linux-gnu-dlltool configure:3694: checking for dlltool configure:3733: checking for x86_64-pc-linux-gnu-ld configure:3766: checking for ld configure:3805: checking for x86_64-pc-linux-gnu-nm configure:3838: checking for nm configure:3877: checking for x86_64-pc-linux-gnu-ranlib configure:3910: checking for ranlib configure:3949: checking for x86_64-pc-linux-gnu-windres configure:3982: checking for windres configure:4049: checking whether to enable maintainer-specific portions of Makefiles
*** This bug has been marked as a duplicate of 86123 ***