"emerge apache" will result in an crash because it cant find x86_64-pc-linux-gnu-gcc. gcc-config -l shows: [1] x86_64-pc-linux-gnu-3.4.4 * [2] x86_64-pc-linux-gnu-3.4.4-hardened [3] x86_64-pc-linux-gnu-3.4.4-hardenednopie [4] x86_64-pc-linux-gnu-3.4.4-hardenednopiessp [5] x86_64-pc-linux-gnu-3.4.4-hardenednossp Reproducible: Always Steps to Reproduce: 1.emerge apache 2. 3. Actual Results: portage/apache-2.0.54-r12/work/httpd-2.0.54/modules/filters -I/var/tmp/portage/apache-2.0.54-r12/work/httpd-2.0.54/modules/proxy -I/var/tmp/portage/apache-2.0.54-r12/work/httpd-2.0.54/include -I/var/tmp/portage/apache-2.0.54-r12/work/httpd-2.0.54/modules/generators -I/usr/include/openssl -I/var/tmp/portage/apache-2.0.54-r12/work/httpd-2.0.54/modules/dav/main -prefer-non-pic -static -c util.c && touch util.lo x86_64-pc-linux-gnu-gcc: : No such file or directory make[2]: *** [util.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/apache-2.0.54-r12/work/httpd-2.0.54/server' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/apache-2.0.54-r12/work/httpd-2.0.54/server' make: *** [all-recursive] Error 1 !!! ERROR: net-www/apache-2.0.54-r12 failed. !!! Function src_compile, Line 157, Exitcode 2 !!! problem compiling apache2 !!! If you need support, post the topmost build error, NOT this status message. Expected Results: emerge finishing withou any errors Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-gentoo-r6 x86_64) ================================================================= System uname: 2.6.12-gentoo-r6 x86_64 AMD Opteron(tm) Processor 242 Gentoo Base System version 1.12.0_pre1 ccache version 2.4 [enabled] dev-lang/python: 2.3.4-r1, 2.4.1-r1 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~x86" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=k8 -pipe -ffast-math -fomit-frame-pointer -floop-optimize -funroll-loops" 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=k8 -pipe -ffast-math -fomit-frame-pointer -floop-optimize -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 X alsa apache2 avi bash-completion berkdb bitmap-fonts bzip2 ccache chroot crypt cups curl dedicated directfb dvd encode fbcon foomaticdb fortran ftp gif gnome gpm gtk gtk2 hardenedphp iconv imlib ipv6 java jpeg kde libcaca lm_sensors lzw lzw-tiff memlimit mhash mp3 mpeg ncurses nls nptl nptlonly offensive opengl pam pdflib perl php png python qt quicktime readline sdl snmp socks5 spell ssl tcltk tcpd tetex tidy tiff truetype-fonts type1-fonts usb userlocales vhosts xpm xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
run gcc-config 1 env-update and attempt to rebuild
(In reply to comment #1) > run gcc-config 1 > env-update > and attempt to rebuild still the same error
Ok if you're still getting the same error take a look at your cflags. After discussion with a few devs at least -ffast-math and -fomit-frame-pointers can generate bad code on AMD64. You may be best off to strip out the extra flags (I use -O2 myself) and recompile world via emerge -e world. This will take awhile but ensure your compiler and environment are sane, where it appears at this point they are not.
*** This bug has been marked as a duplicate of 94453 ***