In an attempt to resolve a previous problem I ran: emerge -v gcc it failed, with: * * ERROR: sys-devel/gcc-4.1.2 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1383: Called toolchain_src_compile * toolchain.eclass, line 26: Called gcc_src_compile * toolchain.eclass, line 1538: Called gcc_do_configure * toolchain.eclass, line 1338: Called die * The specific snippet of code: * "${S}"/configure ${confgcc} $@ ${EXTRA_ECONF} \ * || die "failed to run configure" * The die message: * failed to run configure target was 4.1.2, current is 3.3.4 near the end of: /var/tmp/portage/sys-devel/gcc-4.1.2/work/build/config.log configure:1954: gcc -o conftest -O2 -march=pentium4 -pipe conftest.c 1>&5 gcc: installation problem, cannot exec `as': No such file or directory configure: failed program was: #line 1949 "configure" #include "confdefs.h" main(){return(0);} trying to emerge anything (that requires compilation) now results in a similar error. It seems like something gcc depends on isn't configured correctly, but I am having a hard time figuring out what that would be. emerge picked up several dependencies that it was going to update in conjunction with gcc, but I don't have a record of what those were. Reproducible: Always Steps to Reproduce: 1. emerge -v gcc Actual Results: * ERROR: sys-devel/gcc-4.1.2 failed. Expected Results: gcc updated to 4.1.2 Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Timestamp of tree: Tue, 13 Nov 2007 16:30:01 +0000 app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.9.4-r6 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.8.5-r1, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/terminfo" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl apache2 berkdb bitmap-fonts cli cracklib crypt curl dri fortran ftp gd gdbm gpm iconv isdnlog lmtp midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session simplexml spl ssl tcpd truetype-fonts type1-fonts unicode x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Just a comment, maybe it can help. I had a similar problem when upgrading a couple of old installations kept back with updates. There is a problem with glibc and gcc when upgrading from older version, in fact portage doesn't require a minimal version and the build fails. gcc 4.1.2 cannot be compiled with older version of glibc (i don't remeber the minimal version, sorry) and glibc 2.6.1 (the one at moment of writing) can't be compiled with older version of gcc. So either it just fails building (it happened on a pc) or it builds but corrupts the system (it happened on the laptop). I solved it this way: - re-emerge all the chain-tools - emerge the most recent gcc of the 3 serie (i think it was 3.4.6) - emerge the last glibc (2.6.x) - emerge the last gcc (4.1.x) - re-emerge glibc with the the new compiler profile - re-emerge the whole --system I found also a lot of problems re-emerging the --system, that i had to solve step by step. Actually, it took me too much time to fix everything (too much difference on layouts, etc, config files, etc.), so after the pc i reinstalled everything on the laptop starting from scratch on a 2007 cd basis. Half of the time needed.