Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235482 - gcc<4.3 fails with -march/-mtune=native or core2
Summary: gcc<4.3 fails with -march/-mtune=native or core2
Status: RESOLVED DUPLICATE of bug 219281
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-22 20:07 UTC by Andreas Nilsson
Modified: 2008-08-23 01:10 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 Andreas Nilsson 2008-08-22 20:07:30 UTC
Gcc-4.3 added support for core2 and native march/mtune flags. Older gcc's does not compile with these settings so there should perhaps be additional CFLAGS stripping in these ebuilds or at least a warning.

Build fails with the following errors:

/var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/genmodes.c:1: error: bad value (core2) for -march= switch
/var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/genmodes.c:1: error: bad value (core2) for -mtune= switch

/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/crtstuff.c:1: error: bad value (core2) for -march= switch
/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/crtstuff.c:1: error: bad value (core2) for -mtune= switch


Reproducible: Always

Steps to Reproduce:
1. Use newer optimizations (mtune/march = native) in make.conf
2. Emerge a gcc version prior to 4.3
3.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-23 01:10:40 UTC

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