Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57140 - gcc-3.0.4-r6 fails to compile
Summary: gcc-3.0.4-r6 fails to compile
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-15 01:11 UTC by Maik Nijhuis
Modified: 2004-12-06 21:02 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 Maik Nijhuis 2004-07-15 01:11:27 UTC
When I do an 'emerge gcc-3.0.4-r6.ebuild' in the /usr/portage/sys-devel/gcc directory, it starts compiling for quite some time, but then I get an error. The final lines of output from emerge are shown near the results. (I have included quite a lot, because I'm using make -j2 the error might be due to an earlier command issued by make).

Yesterday I had synced my portage tree and performed an 'emerge -uvD world'.
My USE flags (from make.conf) are:
3dnow acpi alsa -arts -berkdb cdr -cups divx4linux emacs -encode
fbcon -foomaticdb -gdbm -gnome imap ipv6 jabber java jikes 
-kde -libg++ -mad matrox mbox -mikmod mmx mozilla msn
-oss parse-clocks -python stroke tiff threads xvid

I already have gcc-3.3.3-r6 installed, but some external program needed gcc-3.0.4 so I had to emerge gcc-3.0.4. At forums.gentoo.org I saw this is the way to do this (with gcc-config I could change the default gcc).

Reproducible: Always
Steps to Reproduce:
1.become root
2.cd /usr/portage/sys-devel/gcc
3.emerge gcc-3.0.4-r6.ebuild
Actual Results:  
/bin/sh ../libtool --tag CXX --mode=compile
/var/tmp/portage/gcc-3.0.4-r6/work/build/gcc/xgcc
-B/var/tmp/portage/gcc-3.0.4-r6/work/build/gcc/ -nostdinc++ 
-L/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/src
-L/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem
/usr/i686-pc-linux-gnu/include -nostdinc++
-I/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu
-I/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include
-I/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/libsupc++ 
-I/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/libmath   
-march=athlon -fomit-frame-pointer -pipe -D_GNU_SOURCE -fno-implicit-templates 
-Wall -Wno-format -W -Wwrite-strings -Winline  -fdiagnostics-show-location=once
 -ffunction-sections -fdata-sections  -g    -c
/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/src/locale.cc
/var/tmp/portage/gcc-3.0.4-r6/work/build/gcc/xgcc
-B/var/tmp/portage/gcc-3.0.4-r6/work/build/gcc/ -nostdinc++
-L/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/src
-L/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem
/usr/i686-pc-linux-gnu/include -nostdinc++
-I/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu
-I/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include
-I/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/libsupc++
-I/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/libmath
-march=athlon -fomit-frame-pointer -pipe -D_GNU_SOURCE -fno-implicit-templates
-Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -g -c
/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/src/locale.cc  -fPIC
-DPIC -o .libs/locale.o
/bin/sh ../libtool --tag CXX --mode=compile
/var/tmp/portage/gcc-3.0.4-r6/work/build/gcc/xgcc
-B/var/tmp/portage/gcc-3.0.4-r6/work/build/gcc/ -nostdinc++ 
-L/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/src
-L/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem
/usr/i686-pc-linux-gnu/include -nostdinc++
-I/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu
-I/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include
-I/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/libsupc++ 
-I/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/libmath   
-march=athlon -fomit-frame-pointer -pipe -D_GNU_SOURCE -fno-implicit-templates 
-Wall -Wno-format -W -Wwrite-strings -Winline  -fdiagnostics-show-location=once
 -ffunction-sections -fdata-sections  -g    -c
/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/src/locale-inst.cc
/var/tmp/portage/gcc-3.0.4-r6/work/build/gcc/xgcc
-B/var/tmp/portage/gcc-3.0.4-r6/work/build/gcc/ -nostdinc++
-L/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/src
-L/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem
/usr/i686-pc-linux-gnu/include -nostdinc++
-I/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu
-I/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include
-I/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/libsupc++
-I/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/libmath
-march=athlon -fomit-frame-pointer -pipe -D_GNU_SOURCE -fno-implicit-templates
-Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -g -c
/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/src/locale-inst.cc 
-fPIC -DPIC -o .libs/locale-inst.o
In file included from
/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/src/locale.cc:557:
/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:
In
   constructor `std::ctype<char>::ctype(const short unsigned int*, bool, 
   unsigned int)':
/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:44:
`__ctype_toupper'
   undeclared (first use this function)
/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:44:
(Each
   undeclared identifier is reported only once for each function it appears 
   in.)
/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:44:
`__ctype_tolower'
   undeclared (first use this function)
/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:45:
`__ctype_b'
   undeclared (first use this function)
make[4]: *** [locale.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
/var/tmp/portage/gcc-3.0.4-r6/work/build/gcc/xgcc
-B/var/tmp/portage/gcc-3.0.4-r6/work/build/gcc/ -nostdinc++
-L/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/src
-L/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem
/usr/i686-pc-linux-gnu/include -nostdinc++
-I/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu
-I/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/include
-I/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/libsupc++
-I/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/libmath
-march=athlon -fomit-frame-pointer -pipe -D_GNU_SOURCE -fno-implicit-templates
-Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -g -c
/var/tmp/portage/gcc-3.0.4-r6/work/gcc-3.0.4/libstdc++-v3/src/locale-inst.cc -o
locale-inst.o >/dev/null 2>&1
make[4]: Leaving directory
`/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory
`/var/tmp/portage/gcc-3.0.4-r6/work/build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.0.4-r6/work/build'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.0.4-r6 failed.
!!! Function src_compile, Line 124, Exitcode 2
!!! (no error message)


Expected Results:  
compile and install gcc-3.0.4

Output from 'emerge info':

Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.4.25-gentoo-r2)
=================================================================
System uname: 2.4.25-gentoo-r2 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -fomit-frame-pointer -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="-march=athlon -O3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acpi alsa apm avi cdr crypt divx4linux emacs esd fbcon gif gpm gtk
gtk2 imap imlib ipv6 jabber java jikes jpeg libwww matrox mbox mmx motif mozilla
mpeg msn ncurses nls oggvorbis opengl pam parse-clocks pdflib perl png qt
quicktime readline sdl slang spell ssl stroke svga tcltk tcpd threads tiff
truetype x86 xml2 xmms xv xvid zlib"
Comment 1 Maik Nijhuis 2004-07-15 02:28:53 UTC
I tried to download and compile gcc 3.0.4 manually, using the default options. The bug still appears then.
Comment 2 Maik Nijhuis 2004-07-15 06:25:10 UTC
I also submitted this bug to the gcc bugzilla system. There I got the response that my glibc version might me too new, and that gcc 3.0.x isn't supported anymore by the gcc team. I've searched the gentoo forums, and I saw multiple times that downgrading glibc isn't an option. What to do now?

If this bug can't be fixed, I would suggest to make sure that gcc-3.0.4 can't be installed on the latest-greatest gentoo installation.
Comment 3 Travis Tilley (RETIRED) gentoo-dev 2004-07-15 17:51:16 UTC
out of curiousity, why are you trying to use 3.0.4 instead of 3.3.3 or 3.2.3?
Comment 4 Maik Nijhuis 2004-07-16 01:49:39 UTC
Travis: I already mentioned why I want to use gcc 3.0.4, I think you missed it: Some external propietrary program specifically asks for gcc 3.0.4. So I wanted to install 3.0.4 besides 3.3.3, and use gcc-config to switch.
Comment 5 SpanKY gentoo-dev 2004-12-06 21:02:56 UTC
3.0.x has been removed already