Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 235482

Summary: gcc<4.3 fails with -march/-mtune=native or core2
Product: Gentoo Linux Reporter: Andreas Nilsson <andrnils>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 ***