I have: $ gcc-config -l [1] i486-pc-linux-gnu-4.1.2 * My /etc/make.conf looks like: ... CFLAGS="-O2 -mtune=pentium-m -march=pentium-m -g0 -s -mfpmath=sse,387 -mmmx -msse -msse2 -pipe" CXXFLAGS="${CFLAGS}" CHOST="i486-pc-linux-gnu" MAKEOPTS="-j2" ... I try to emerge gcc-3.3.6-r1 (for Skype): $ emerge =sys-devel/gcc-3.3.6-r1 ... make[2]: Entering directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc' stage1/xgcc -Bstage1/ -B/usr/i486-pc-linux-gnu/bin/ -c -O2 -march=pentium-m -g0 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/. -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../include /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/gengenrtl.c -o gengenrtl.o cc1: error: bad value (pentium-m) for -march= switch cc1: error: bad value (pentium-m) for -mcpu= switch echo timestamp > clean_s1 ... make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc' make[1]: *** [stage2_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc' make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.3.6-r1 failed. Call stack: ebuild.sh, line 1615: Called dyn_compile ebuild.sh, line 972: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile ebuild.sh, line 1305: Called toolchain_src_compile toolchain.eclass, line 26: Called gcc_src_compile toolchain.eclass, line 1537: Called gcc_do_make toolchain.eclass, line 1411: Called die !!! emake failed with bootstrap-lean !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/sys-devel/gcc-3.3.6-r1/temp/build.log'. Reproducible: Always Steps to Reproduce: 1. Add 'march=pentium-m' to CFLAGS in /etc/make.conf 2. emerge =sys-devel/gcc-3.3.6-r1 Expected Results: Should filter out unsupported CFALGS.
gcc-3.3.x is EOL-ed.
I have the same issue. but even when gcc 3.3.6 is EOL, www-client/mozilla-firefox-bin-2.0.0.5 depends on virtual/libstdc++-3.3 depends on sys-devel/gcc-3.3.6-r1 .. what to do?
*** Bug 187689 has been marked as a duplicate of this bug. ***
Same problem here: P.S. What does EOL mean? make CC=" stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/" \ STAGE_PREFIX=stage1/ \ ADAC="\$(CC)" AR_FOR_TARGET="ar" RANLIB_FOR_TARGET="ranlib" CFL AGS="-march=athlon64 -O2 -pipe" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STR ICT_WARN="-Wtraditional -pedantic -Wno-long-long" libdir=/usr/lib LANGUAGES="c g cov c++ f77 proto" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" make[2]: Entering directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/ gcc' stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -march=athlon64 -O2 -p ipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I . -I. -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc -I/var/tmp/po rtage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/. -I/var/tmp/portage/sys-devel/g cc-3.3.6-r1/work/gcc-3.3.6/gcc/config -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/ work/gcc-3.3.6/gcc/../include /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3 .3.6/gcc/gengenrtl.c -o gengenrtl.o cc1: error: bad value (athlon64) for -march= switch cc1: error: bad value (athlon64) for -mcpu= switch echo timestamp > clean_s1 make[2]: *** [gengenrtl.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/g cc' make[1]: *** [stage2_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/g cc' make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.3.6-r1 failed. Call stack: ebuild.sh, line 1632: Called dyn_compile ebuild.sh, line 983: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile ebuild.sh, line 1322: Called toolchain_src_compile toolchain.eclass, line 26: Called gcc_src_compile toolchain.eclass, line 1546: Called gcc_do_make toolchain.eclass, line 1420: Called die !!! emake failed with bootstrap-lean !!! If you need support, post the topmost build error, and the call stack if rel evant. !!! A complete build log is located at '/var/tmp/portage/sys-devel/gcc-3.3.6-r1/ temp/build.log'.
(In reply to comment #4) > Same problem here: > P.S. What does EOL mean? # emerge wtf; wtf EOL EOL: end of life
Thanks for pointing that out :). Unfortunately gcc-3.3.6-r1 keeps popping up every time I try to update world. How can we solve this? # emerge -autvDN world These are the packages that would be merged, in reverse order: Calculating world dependencies... done! [nomerge ] media-sound/amarok-1.4.6-r1 USE="arts kde mysql opengl python visualization xinerama -daap -debug -ifp -ipod -mp4 -mtp -musicbrainz -njb -noamazon -postgres -real" LINGUAS="-af -ar -az -be -bg -bn -br -ca -cs -cy -da -de -el -en_GB -eo -es -et -eu -fa -fi -fr -ga -gl -he -hi -hu -id -is -it -ja -km -ko -ku -lo -lt -mk -ms -nb -nds -nl -nn -pa -pl -pt -pt_BR -ro -ru -rw -se -sk -sl -sq -sr -sr@Latn -ss -sv -ta -tg -th -tr -uk -uz -zh_CN -zh_TW" [nomerge ] media-libs/xine-lib-1.1.4-r2 USE="X a52 aac alsa arts dvd esd flac gtk imagemagick ipv6 mad musepack nls opengl oss sdl truetype vcd vorbis win32codecs xinerama xv -aalib (-altivec) -debug -directfb -dts -dxr3 -fbcon -gnome -libcaca -mmap -mng -modplug -pulseaudio -samba -speex -theora -v4l -vidix -wavpack -xcb -xvmc" [nomerge ] media-libs/win32codecs-20061022-r1 USE="quicktime real" [nomerge ] virtual/libstdc++-3.3 [ebuild NS ] sys-devel/gcc-3.3.6-r1 USE="doc fortran gtk nls (-altivec) -bootstrap -boundschecking -build -gcj (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 0 kB Total: 1 package (1 in new slot), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No]
It's a FAQ actually, nothing needs gcc-3.3, they need libstdc++v3, that you can get from the gcc package or from the libstdc++, so the virtual/libstdc depends on gcc or libstdc. Names mangled to protect the innocent or maybe I just can't remember the true package names.
(In reply to comment #6) > Thanks for pointing that out :). Unfortunately gcc-3.3.6-r1 keeps popping up > every time I try to update world. How can we solve this? package.mask it.
*** Bug 189844 has been marked as a duplicate of this bug. ***
PROBLEM / SOLUTION: gcc-3.3.* is pulled in by apps needing older compatibility (pre-3.4). It's pulled in by virtual/libstdc++. emerging libstdc++-v3 should solve the dependency. Devs: Why not fix this in portage and remove gcc-3.3.* as satisfying virtual/libstdc++ ? Or if you can't remove it for whatever reason, is there anyway to change the order of which packages it will install? I.E. putting libstdc++-v3 before gcc-3.3.* ? Can we remove =sys-dev/gcc-3.3* as an RDEPEND ? Just a thought.
I've filed a bug about this two months ago... Bug 183766; feel free to complain there.
*** Bug 190120 has been marked as a duplicate of this bug. ***
Reopen to dupe.
*** This bug has been marked as a duplicate of bug 183766 ***
*** Bug 323387 has been marked as a duplicate of this bug. ***
*** Bug 396053 has been marked as a duplicate of this bug. ***
Is there any will to apply a patch to the ebuild so that it would filter out some -march= -mcpu= values depending on the gcc version? I would volunteer to make such a table for gcc versions 3.3 to 4.6.