Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180184 - sys-devel/gcc-3.3.6-r1 fails to compile using march= swith supported only by newer version
Summary: sys-devel/gcc-3.3.6-r1 fails to compile using march= swith supported only by ...
Status: RESOLVED DUPLICATE of bug 183766
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 187689 189844 190120 323387 396053 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-29 06:49 UTC by Zoltan FARKAS
Modified: 2011-12-27 09:50 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 Zoltan FARKAS 2007-05-29 06:49:07 UTC
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.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-29 18:45:18 UTC
gcc-3.3.x is EOL-ed.
Comment 2 phaidros 2007-07-29 18:12:56 UTC
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?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-04 08:07:56 UTC
*** Bug 187689 has been marked as a duplicate of this bug. ***
Comment 4 Aniruddha 2007-08-08 09:54:05 UTC
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'.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-08-08 09:57:29 UTC
(In reply to comment #4)
> Same problem here:
> P.S. What does EOL mean?

# emerge wtf; wtf EOL
EOL: end of life
Comment 6 Aniruddha 2007-08-08 10:04:30 UTC
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]                                       
Comment 7 Steen Eugen "Miravlix" Poulsen 2007-08-08 10:21:33 UTC
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.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-08-08 10:37:37 UTC
(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.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-08-22 14:12:46 UTC
*** Bug 189844 has been marked as a duplicate of this bug. ***
Comment 10 Ryan James 2007-08-22 14:40:52 UTC
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.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-08-22 17:32:11 UTC
I've filed a bug about this two months ago... Bug 183766; feel free to complain there.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-08-25 08:31:14 UTC
*** Bug 190120 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-09-04 17:33:18 UTC
Reopen to dupe.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-09-04 17:33:33 UTC

*** This bug has been marked as a duplicate of bug 183766 ***
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-27 02:21:15 UTC
*** Bug 323387 has been marked as a duplicate of this bug. ***
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-27 02:23:30 UTC
*** Bug 396053 has been marked as a duplicate of this bug. ***
Comment 17 Martin Mokrejš 2011-12-27 09:50:04 UTC
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.