Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396053 - sys-devel/gcc-3.3.6-r1 - cc1: error: bad value (pentium4m) for -march= switch
Summary: sys-devel/gcc-3.3.6-r1 - cc1: error: bad value (pentium4m) for -march= switch
Status: RESOLVED DUPLICATE of bug 180184
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-26 10:25 UTC by Martin Mokrejš
Modified: 2011-12-27 02:23 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 Martin Mokrejš 2011-12-26 10:25:07 UTC
I think I reported that once already but cannot find it in bugzilla. I would like ebuild to filter *FLAGS so that the gcc does not break if some not yet supported flags are provided to gcc. For example, I have gcc-4.5.x now and when compiling an older gcc-3.3.6 it complains with:

make[2]: Entering directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
echo "/* This file is machine generated.  Do not edit.  */" > tmp-gtyp.h
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c   -O2 -march=pentium4m -pipe -fno-strict-aliasing -ggdb -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-proto
types -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/gc
c-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/gengtype-lex.c -o gengtype-lex.o
echo "static const char *srcdir = "  >> tmp-gtyp.h
cc1: error: bad value (pentium4m) for -march= switch
cc1: error: bad value (pentium4m) for -mcpu= switch
echo "\"/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc\"" >> tmp-gtyp.h
make[2]: *** [gengtype-lex.o] Error 1
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-27 02:23:30 UTC

*** This bug has been marked as a duplicate of bug 180184 ***