Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49201 - GCC 3.4.0 Fails to build (dies in libiberty compilation)
Summary: GCC 3.4.0 Fails to build (dies in libiberty compilation)
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-27 13:14 UTC by Kyle Christensen
Modified: 2004-04-28 15:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle Christensen 2004-04-27 13:14:22 UTC
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)
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2004-04-27 16:40:05 UTC
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.
Comment 2 Travis Tilley (RETIRED) gentoo-dev 2004-04-28 10:14:38 UTC
fixed in cvs
Comment 3 Kyle Christensen 2004-04-28 10:24:56 UTC
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"
Comment 4 Kyle Christensen 2004-04-28 10:49:24 UTC
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)
Comment 5 Travis Tilley (RETIRED) gentoo-dev 2004-04-28 13:34:58 UTC
look at your CFLAGS. take -mcpu=pentium3 out of there and either change it to -mtune or -march.
Comment 6 Kyle Christensen 2004-04-28 14:14:43 UTC
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.
Comment 7 Travis Tilley (RETIRED) gentoo-dev 2004-04-28 15:16:03 UTC
added logic to the ebuild to change -mcpu to -mtune on the fly.