When attempting to emerge gcc 3.4.0 (with either binutils-2.14.90.0.8-r1 or binutils-2.15.90.0.3-r1) `emerge gcc-3.4.0.ebuild` fails with: (Lengthy log below) Configuring in i686-pc-linux-gnu/libiberty configure: creating cache ./config.cache checking whether to enable maintainer-specific portions of Makefiles... no checking for makeinfo... makeinfo --split-size=5000000 checking for perl... perl checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for i686-pc-linux-gnu-ar... ar checking for i686-pc-linux-gnu-ranlib... ranlib checking for i686-pc-linux-gnu-gcc... /usr/tmp/portage/gcc-3.4.0/work/build/gcc/xgcc -B/usr/tmp/portage/gcc-3.4.0/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/tmp/portage/gcc-3.4.0/work/build/gcc/xgcc -B/usr/tmp/portage/gcc-3.4.0/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include accepts -g... yes checking for /usr/tmp/portage/gcc-3.4.0/work/build/gcc/xgcc -B/usr/tmp/portage/gcc-3.4.0/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include option to accept ANSI C... none needed checking how to run the C preprocessor... /usr/tmp/portage/gcc-3.4.0/work/build/gcc/xgcc -B/usr/tmp/portage/gcc-3.4.0/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -E checking whether /usr/tmp/portage/gcc-3.4.0/work/build/gcc/xgcc -B/usr/tmp/portage/gcc-3.4.0/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include and cc understand -c and -o together... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking whether byte ordering is bigendian... no checking for a BSD-compatible install... /bin/install -c Appending /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/../config/mh-x86pic to xhost-mkfrag checking for sys/file.h... no checking for sys/param.h... no checking for limits.h... no checking for stdlib.h... no checking for malloc.h... no checking for string.h... no checking for unistd.h... no checking for strings.h... no checking for sys/time.h... no checking for time.h... no checking for sys/resource.h... no checking for sys/stat.h... no checking for sys/mman.h... no checking for fcntl.h... no checking for alloca.h... no checking for sys/pstat.h... no checking for sys/sysmp.h... no checking for sys/sysinfo.h... no checking for machine/hal_sysinfo.h... no checking for sys/table.h... no checking for sys/sysctl.h... no checking for sys/systemcfg.h... no checking for sys/wait.h that is POSIX.1 compatible... yes checking whether time.h and sys/time.h may both be included... yes checking whether errno must be declared... no checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... no checking for sys/stat.h... (cached) no checking for stdlib.h... (cached) no checking for string.h... (cached) no checking for memory.h... no checking for strings.h... (cached) no checking for inttypes.h... no checking for stdint.h... no checking for unistd.h... (cached) no checking for uintptr_t... no checking for pid_t... yes checking for library containing strerror... none required checking for asprintf... yes checking for atexit... yes checking for basename... yes checking for bcmp... yes checking for bcopy... yes checking for bsearch... yes checking for bzero... yes checking for calloc... yes checking for clock... yes checking for ffs... yes checking for getcwd... yes checking for getpagesize... yes checking for index... yes checking for insque... yes checking for memchr... yes checking for memcmp... yes checking for memcpy... yes checking for memmove... yes checking for mempcpy... yes checking for memset... yes checking for mkstemps... no checking for putenv... yes checking for random... yes checking for rename... yes checking for rindex... yes checking for setenv... yes checking for snprintf... yes checking for sigsetmask... yes checking for stpcpy... yes checking for stpncpy... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strncasecmp... yes checking for strrchr... yes checking for strstr... yes checking for strtod... yes checking for strtol... yes checking for strtoul... yes checking for tmpnam... yes checking for vasprintf... yes checking for vfprintf... yes checking for vprintf... yes checking for vsnprintf... yes checking for vsprintf... yes checking for waitpid... yes checking whether alloca needs Cray hooks... no checking stack direction for C alloca... -1 checking for unistd.h... (cached) no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for _doprnt... no checking for sys_errlist... yes checking for sys_nerr... yes checking for sys_siglist... yes checking for external symbol _system_configuration... no checking for getrusage... yes checking for on_exit... yes checking for psignal... yes checking for strerror... yes checking for strsignal... yes checking for sysconf... yes checking for times... yes checking for sbrk... yes checking for gettimeofday... yes checking for realpath... yes checking for canonicalize_file_name... yes checking for pstat_getstatic... no checking for pstat_getdynamic... no checking for sysmp... no checking for getsysinfo... no checking for table... no checking for sysctl... yes checking whether canonicalize_file_name must be declared... yes checking for stdlib.h... (cached) no checking for unistd.h... (cached) no checking for getpagesize... (cached) yes checking for working mmap... yes checking for working strncmp... no updating cache ./config.cache configure: creating ./config.status config.status: creating Makefile config.status: creating testsuite/Makefile config.status: creating config.h config.status: executing default commands Adding multilib support to Makefile in /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty multidirs= with_multisubdir= make[2]: Entering directory `/usr/tmp/portage/gcc-3.4.0/work/build/i686-pc-linux-gnu/libiberty' if [ x"-fpic" != x ] && [ ! -d pic ]; then \ mkdir pic; \ else true; fi touch stamp-picdir CONFIG_FILES= CONFIG_HEADERS=config.h:config.in /bin/sh ./config.status config.status: creating config.h config.status: config.h is unchanged config.status: executing default commands if [ x"-fpic" != x ]; then \ /usr/tmp/portage/gcc-3.4.0/work/build/gcc/xgcc -B/usr/tmp/portage/gcc-3.4.0/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -c -DHAVE_CONFIG_H -O2 -mcpu=pentium3 -pipe -O2 -I. -I/usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/../include -W -Wall -Wtraditional -pedantic -fpic /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c -o pic/regex.o; \ else true; fi `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. In file included from /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/../include/xregex.h:26, from /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:195: /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/../include/xregex2.h:548: warning: ISO C90 does not support `static' or type qualifiers in parameter array declarators In file included from /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:649: /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c: In function `byte_compile_range': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:4548: warning: signed and unsigned type in conditional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:4558: warning: signed and unsigned type in conditional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:4558: warning: signed and unsigned type in conditional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c: In function `xregcomp': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:8043: warning: signed and unsigned type in conditional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c: In function `xregerror': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:8178: warning: unused parameter 'preg' /usr/tmp/portage/gcc-3.4.0/work/build/gcc/xgcc -B/usr/tmp/portage/gcc-3.4.0/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -c -DHAVE_CONFIG_H -O2 -mcpu=pentium3 -pipe -O2 -I. -I/usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/../include -W -Wall -Wtraditional -pedantic /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c -o regex.o `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. In file included from /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/../include/xregex.h:26, from /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:195: /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/../include/xregex2.h:548: warning: ISO C90 does not support `static' or type qualifiers in parameter array declarators In file included from /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:649: /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c: In function `byte_compile_range': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:4548: warning: signed and unsigned type in conditional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:4558: warning: signed and unsigned type in conditional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:4558: warning: signed and unsigned type in conditional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c: In function `xregcomp': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:8043: warning: signed and unsigned type in conditional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c: In function `xregerror': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:8178: warning: unused parameter 'preg' if [ x"-fpic" != x ]; then \ /usr/tmp/portage/gcc-3.4.0/work/build/gcc/xgcc -B/usr/tmp/portage/gcc-3.4.0/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -c -DHAVE_CONFIG_H -O2 -mcpu=pentium3 -pipe -O2 -I. -I/usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/../include -W -Wall -Wtraditional -pedantic -fpic /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c -o pic/cplus-dem.o; \ else true; fi `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c:55: error: conflicting types for 'malloc' /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c:55: error: conflicting types for 'malloc' /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c: In function `code_for_qualifier': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c:630: warning: implicit declaration of function `abort' /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c: In function `squangle_mop_up': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c:1154: warning: implicit declaration of function `free' /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c: In function `demangle_qualified': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c:3310: warning: implicit declaration of function `atoi' make[2]: *** [cplus-dem.o] Error 1 make[2]: Leaving directory `/usr/tmp/portage/gcc-3.4.0/work/build/i686-pc-linux-gnu/libiberty' make[1]: *** [all-target-libiberty] Error 2 make[1]: Leaving directory `/usr/tmp/portage/gcc-3.4.0/work/build' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.0 failed. !!! Function src_compile, Line 468, Exitcode 2 !!! (no error message)
it seems this is due to my default arch support settings... can you find the line in the ebuild that says: use x86 && myconf="${myconf} --with-cpu=pentium4 --with-arch=i586" and delete it? see if that helps. --with-cpu works on amd64, but it seems to cause trouble on other archs.
fixed in cvs
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.2-r9, 2.6.5-grsec) ================================================================= System uname: 2.6.5-grsec i686 Pentium III (Coppermine) Gentoo Base System version 1.4.9 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=pentium3 -ffast-math -funroll-loops -fstack-protector -mmmx -msse -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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 -mcpu=pentium3 -ffast-math -funroll-loops -fstack-protector -mmmx -msse -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://212.219.247.13/sites/www.ibiblio.org/gentoo/ http://212.219.247.10/sites/www.ibiblio.org/gentoo/ ftp://mirrors.tds.net/gentoo rsync://mirrors.tds.net/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ssl x86"
configure: creating ./config.status config.status: creating Makefile config.status: creating testsuite/Makefile config.status: creating config.h config.status: executing default commands Adding multilib support to Makefile in /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty multidirs= with_multisubdir= make[2]: Entering directory `/usr/tmp/portage/gcc-3.4.0/work/build/i686-pc-linux-gnu/libiberty' if [ x"-fpic" != x ] && [ ! -d pic ]; then \ mkdir pic; \ else true; fi touch stamp-picdir CONFIG_FILES= CONFIG_HEADERS=config.h:config.in /bin/sh ./config.status config.status: creating config.h config.status: config.h is unchanged config.status: executing default commands if [ x"-fpic" != x ]; then \ /usr/tmp/portage/gcc-3.4.0/work/build/gcc/xgcc -B/usr/tmp/portage/gcc-3.4.0/work/build/gcc/ -B/usr/i686-pc-llinux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linu ux-gnu/sys-include -c -DHAVE_CONFIG_H -O2 -mcpu=pentium3 -pipe -O2 -I. -I/usr/tmp/portage/gcc-3.4.0/work/gcc-3..4.0/libiberty/../include -W -Wall -Wtraditional -pedantic -fpic /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/lib biberty/regex.c -o pic/regex.o; \ else true; fi `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. In file included from /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/../include/xregex.h:26, from /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:195: /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/../include/xregex2.h:548: warning: ISO C90 does not supporrt `static' or type qualifiers in parameter array declarators In file included from /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:649: /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c: In function `byte_compile_range': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:4548: warning: signed and unsigned type in conditiional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:4558: warning: signed and unsigned type in conditiional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:4558: warning: signed and unsigned type in conditiional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c: In function `xregcomp': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:8043: warning: signed and unsigned type in conditiional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c: In function `xregerror': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:8178: warning: unused parameter 'preg' /usr/tmp/portage/gcc-3.4.0/work/build/gcc/xgcc -B/usr/tmp/portage/gcc-3.4.0/work/build/gcc/ -B/usr/i686-pc-linnux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux- -gnu/sys-include -c -DHAVE_CONFIG_H -O2 -mcpu=pentium3 -pipe -O2 -I. -I/usr/tmp/portage/gcc-3.4.0/work/gcc-3.4..0/libiberty/../include -W -Wall -Wtraditional -pedantic /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/r regex.c -o regex.o `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. In file included from /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/../include/xregex.h:26, from /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:195: /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/../include/xregex2.h:548: warning: ISO C90 does not supporrt `static' or type qualifiers in parameter array declarators In file included from /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:649: /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c: In function `byte_compile_range': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:4548: warning: signed and unsigned type in conditiional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:4558: warning: signed and unsigned type in conditiional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:4558: warning: signed and unsigned type in conditiional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c: In function `xregcomp': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:8043: warning: signed and unsigned type in conditiional expression /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c: In function `xregerror': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/regex.c:8178: warning: unused parameter 'preg' if [ x"-fpic" != x ]; then \ /usr/tmp/portage/gcc-3.4.0/work/build/gcc/xgcc -B/usr/tmp/portage/gcc-3.4.0/work/build/gcc/ -B/usr/i686-pc-llinux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linu ux-gnu/sys-include -c -DHAVE_CONFIG_H -O2 -mcpu=pentium3 -pipe -O2 -I. -I/usr/tmp/portage/gcc-3.4.0/work/gcc-3..4.0/libiberty/../include -W -Wall -Wtraditional -pedantic -fpic /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/lib biberty/cplus-dem.c -o pic/cplus-dem.o; \ else true; fi `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c:55: error: conflicting types for 'malloc' /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c:55: error: conflicting types for 'malloc' /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c: In function `code_for_qualifier': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c:630: warning: implicit declaration of functionn `abort' /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c: In function `squangle_mop_up': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c:1154: warning: implicit declaration of functioon `free' /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c: In function `demangle_qualified': /usr/tmp/portage/gcc-3.4.0/work/gcc-3.4.0/libiberty/cplus-dem.c:3310: warning: implicit declaration of functioon `atoi' make[2]: *** [cplus-dem.o] Error 1 make[2]: Leaving directory `/usr/tmp/portage/gcc-3.4.0/work/build/i686-pc-linux-gnu/libiberty' make[1]: *** [all-target-libiberty] Error 2 make[1]: Leaving directory `/usr/tmp/portage/gcc-3.4.0/work/build' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.0 failed. !!! Function src_compile, Line 468, Exitcode 2 !!! (no error message)
look at your CFLAGS. take -mcpu=pentium3 out of there and either change it to -mtune or -march.
Hm, this appears to have fixed it. I think it is worth mentioning that I read that although "-mcpu=" was deprecated, that since this was the first version of gcc that it was deprecated in, it was being rewritten on the fly to either march or mtune, and not totally turned off. That is why initially I didn't change it -- I figured compiling gcc with my current compiler which still knows about mcpu wouldn't hurt anything, but evidentally compiling libiberty with the new gcc (after it is built) did hurt it. Regardless, this might warrant a check in the ebuild and maybe even a die() in there, it could resolve a lot of potential problems.
added logic to the ebuild to change -mcpu to -mtune on the fly.