Tried emerge -uD world, the first package the system tried to build was linux-headers-2.6.11 which failed (messages follow). Then tried emerge =sys-kernel/linux-headers-2.6.8.1-r2 thinking it might be a problem with just 2.6.11 - the result was the same (as shown below in results) It seems like something is calling /var/tmp/portage/linux-headers-2.6.8.1-r2/work/linux-2.6.8.1/scripts/gcc-version.sh with an argument of i686-pc-linux-gnu-gcc rather than just gcc (or whatever the actual call should be) Reproducible: Always Steps to Reproduce: 1. emerge -uD world (or system or gcc or gentoo-sources) 2. 3. Actual Results: ... NLS UTF8 (NLS_UTF8) [N/m/y/?] n * * Profiling support * Profiling support (EXPERIMENTAL) (PROFILING) [Y/n/?] y OProfile system profiling (EXPERIMENTAL) (OPROFILE) [Y/n/m/?] y * * Kernel hacking * Kernel debugging (DEBUG_KERNEL) [N/y/?] n Sleep-inside-spinlock checking (DEBUG_SPINLOCK_SLEEP) [Y/n/?] y Compile the kernel with frame pointers (FRAME_POINTER) [N/y/?] n Use 4Kb for kernel stacks instead of 8Kb (4KSTACKS) [Y/n/?] y * * Security options * Enable different security models (SECURITY) [N/y/?] n * * Cryptographic options * Cryptographic API (CRYPTO) [N/y/?] n * * Library routines * CRC-CCITT functions (CRC_CCITT) [N/m/y/?] (NEW) n CRC32 functions (CRC32) [Y/?] y CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [M/n/y/?] m /var/tmp/portage/linux-headers-2.6.8.1-r2/work/linux-2.6.8.1/scripts/gcc-version.sh: line 11: i686-pc-linux-gnu-gcc: comman d not found /var/tmp/portage/linux-headers-2.6.8.1-r2/work/linux-2.6.8.1/scripts/gcc-version.sh: line 12: i686-pc-linux-gnu-gcc: command not found SPLIT include/linux/autoconf.h -> include/config/* CC scripts/mod/empty.o /bin/sh: i686-pc-linux-gnu-gcc: command not found make[2]: *** [scripts/mod/empty.o] Error 127 make[1]: *** [scripts/mod] Error 2 make: *** [scripts] Error 2 !!! ERROR: sys-kernel/linux-headers-2.6.8.1-r2 failed. !!! Function compile_headers, Line 367, Exitcode 2 !!! prepare failed !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Um, emerge the package? #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.9-gentoo-r6 i686) ================================================================= System uname: 2.6.9-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1400MHz Gentoo Base System version 1.6.10 dev-lang/python: 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.15.92.0.2-r9 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mcpu=i686 -O3 -pipe -funroll-loops -fomit-frame-pointer" 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="-mcpu=i686 -O3 -pipe -funroll-loops -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups curl emboss encode foomaticdb fortran gdbm gif gnome gpm gtk gt k2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png p ython qt quicktime readline sdl slang spell ssl svga tcpd truetype truetype-fonts type1-fonts xml2 xmms xv zlib userland_GN U kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
if i686-pc-linux-gnu-gcc doesnt work, then something is broken on your system you should run `gcc-config` and see if that helps
That's exactly the right thing - sorry for the bother.