Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80211 - gcc-3.4.3.20050110 emerge fails
Summary: gcc-3.4.3.20050110 emerge fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-31 07:17 UTC by Thomas Raschbacher
Modified: 2005-02-10 16:46 UTC (History)
4 users (show)

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 Thomas Raschbacher gentoo-dev 2005-01-31 07:17:24 UTC
if [ x"-fpic" != x ]; then \
  /var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.3.20050110/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=athlon-xp -O2 -pipe -I. -I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:55: error: conflicting types for 'malloc'
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:55: error: conflicting types for 'malloc'
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c: In function `code_for_qualifier':
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:630: warning: implicit declaration of function `abort'
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c: In function `squangle_mop_up':
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:1154: warning: implicit declaration of function `free'
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c: In function `demangle_qualified':
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/libiberty/cplus-dem.c:3310: warning: implicit declaration of function `atoi'
make[2]: *** [cplus-dem.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/i686-pc-linux-gnu/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.3.20050110 failed.
!!! Function gcc_do_make, Line 1074, Exitcode 2
!!! make failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.

emerge info output:
desktop ~ # emerge info
Portage 2.0.51-r14 (default-linux/x86/2004.3, gcc-3.3.2, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(TM) XP 1900+
Gentoo Base System version 1.4.3.12
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.3 [2.3.3 (#1, Feb 17 2004, 16:43:27)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r5, 2.3.3
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs distlocks sandbox sfperms strict"
GENTOO_MIRRORS=" ftp://ftp-mirror.internap.com/pub/gentoo/ ftp://mirrors.tds.net/gentoo ftp://gentoo.inode.at/source/ ftp://distro.ibiblio.org/pub/Linux/distributions/gentoo/"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3ds S3TC X X509 Xaw3d aac aalib accounting acl acpi activefilter adns aim alsa amd anthy apache2 apm async atlas atm auctex audiofile autofs avi berkdb bitmap-fonts bonobo canna cap caps cddb cdf cdparanoia cdr chroot cjk clamav clanJavaScript clanVoice cle266 client crypt cscope cups curl dedicated devmap dga directfb divx4linux djbfft doc dv dvb dvd dvdr dvdread editor edl eep emacs encode escreen esd ethereal etwin evms2 evo ext-png ext-zlib f77 faac faad fam fastcgi fbcon fbdev fdftk ffmpeg fftw fla flac fltk fluidsynth fmod font-server foomaticdb fortran freetds freetype freewnn fs gamma gb gd gdbm geoip ggi gif gimpprint ginac glade glgd glut gmp gmtfull gmthigh gmtsuppl gmttria gnome gnomedb gnutls gphoto2 gpm gsl gstreamer gtk gtk2 gtkhtml guile hal hbci hdf hdf5 howl icq icu idea idl ieee1394 imagemagick imap imlib imlib2 innodb ipv6 irmc jabber jack java javamail javascript jbig jikes jit joystick jpeg jython kadu-modules kadu-voice kakasi kde kerberos krb4 ladcca lcms ldap leaf leim lesstif libcaca libdsk libg++ libgda libsamplerate libwww lirc live ltsp lua lufsusermount lzo mad maildir matroska mbox mcal md5sum mdb memlimit migemo mikmod mjpeg mldonkeypango mmx mng monkey mono motif mozilla mozp3p mozsvg mozxmlterm mpeg mpeg4 mpi msn mule music mysql nagios-dns nagios-ntp nagios-ping nagios-s nas ncurses net netcdf network nls nntp nptl nptlonly ntlm nvidia nviz oav objc ocaml odbc offensive ofx oggvorbis openal opengl opie oscar oss pam parse-clocks passfile pcap pcre pda pdflib pear-db perl php physfs plotutils png portaudio postgres ppds psyco pthreads pwdb python qhull qt quicktime readline real rhino roundrobin rtc ruby samba sasl scanner sdk sdl serial server skey skk slang slp sndfile snmp socks5 sox speedo speex spell sqlite sse ssl stencil-buffer svg svga t1lib tcltk tcpd tcsim tetex tga theora tiff tools transcode transparent-proxy truetype truetype-fonts type1 type1-fonts unicode usb userlocales v4l v4l2 vhosts videos virus-scan wmf wxwin wxwindows xanim xatrix xface xgetdefault xine xinerama xml xml2 xmms xosd xv xvid xvmc yahoo yaz zeo zlib zvbi"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-31 08:00:27 UTC
>`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
Comment 2 Thomas Raschbacher gentoo-dev 2005-01-31 08:46:23 UTC
make.conf.example still says -mcpu and -march not -mtune ... maybe that should be changed too...
Comment 3 gad.kadosh 2005-01-31 10:46:26 UTC
I have the exact same error, including the deprecation of -mcpu. The point is that I'm using gcc-3.3.5-r1 (hardened) to compile it, and I don't even have any gcc-3.4.X on that system yet.

my emerge info:


Portage 2.0.51-r15 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10 i686)
=================================================================
System uname: 2.6.10 i686 Pentium II (Deschutes)
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 19 2004, 23:05:26)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -mcpu=pentium2 -O2 -pipe -fomit-frame-pointer -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium2 -mcpu=pentium2 -O2 -pipe -fomit-frame-pointer -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://194.117.143.69/mirrors/gentoo ftp://194.117.143.70/mirrors/gentoo http://194.117.143.71 http://194.117.143.70"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acl acpi alsa avi berkdb bitmap-fonts cdr crypt cups dbus dlloader encode f77 fam flac foomaticdb fortran gdbm gif gimpprint gnome gphoto2 gstreamer gtk gtk2 hal hardened howl imlib ipv6 irmc java jpeg libg++ libwww mad mikmod mmx mozilla mpeg ncurses nls nptl oggvorbis opengl pam pdflib perl pic pie png posix ppds python quicktime readline rtc samba sdl spell sqlite ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales xml2 xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-02 04:06:59 UTC
Sven: doc update pending? :)
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-02 04:08:12 UTC
toolchain herd: how about to let the build die and print some information, when invalid flags are used?
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-02 11:23:51 UTC
The problem is CFLAGS is used by the current compiler to create the new one and the new one to create itself and libs, so CFLAGS must be suppoerted by the current compiler (accepted to be true) and the new one (checked in toolchain.eclass which filters out -mtune when compiling 3.3).

leaving in -mcpu causes 3.4 to print deprecated messages, but it't the only way to have the desired effect.
Comment 7 gad.kadosh 2005-02-02 11:47:45 UTC
well I didn't think that the deprecation errors will cause the build to fail, but once I removed the -mcpu from my CFLAGS and build gcc-3.4.3.20050110 again using gcc-3.3.5-r1, I didn't get the deprecation errors and the build did not fail...
Comment 8 Piotr Banasik 2005-02-05 17:29:03 UTC
I second that solution .. same problem .. after removing -mcpu from cflags everything built fine, maybe there should be a check added to the ebuild for this cflag and bail out earlier explaining the problem?
Comment 9 Leung Ki Chi 2005-02-05 23:44:48 UTC
Removing -mcpu also fixes the bug here.
Comment 10 Jerry McBride 2005-02-07 15:29:02 UTC
Don't forget tolook over make.global... -mcpu=i686 is provided as a default setting.
Comment 11 Ian Ballantyne 2005-02-10 07:02:20 UTC
I was able to get gcc 3.4.3.20050110 to compile on my system by changing CFLAGS="-mcpu=athlon-xp -O3 -pipe" to CFLAGS="-march=athlon-xp -O3 -pipe" in /etc/make.conf for my system.  gcc reports that mcpu is obsolete, and it seems it fails to correctly translate the mcpu flag to the march flag (my guess).

Maybe others can try similar changes for their systems and see if it works for them too...  
Comment 12 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-10 16:46:07 UTC
I updated toolchain.eclass to filter -mcpu= a few days ago