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

Bug 219281

Summary: gcc-3.4.x should filter out -march=native CFLAGS :)
Product: Gentoo Linux Reporter: Priit Laes (IRC: plaes) <plaes>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: minor CC: andrnils, gentoo, mephx.x, sujeet.akula
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Priit Laes (IRC: plaes) 2008-04-25 17:08:38 UTC
As gcc-3 series doesn't support -march=native CFLAGS, compilation fails there.
Comment 1 Tristan Heaven (RETIRED) gentoo-dev 2008-04-25 19:17:56 UTC
If it was filtered then you wouldn't know it was wrong to use it.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-26 05:12:00 UTC
Knowing your toolchain is quite essential to using Gentoo.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-23 01:10:40 UTC
*** Bug 235482 has been marked as a duplicate of this bug. ***
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2009-04-17 16:52:15 UTC
*** Bug 266267 has been marked as a duplicate of this bug. ***
Comment 5 Neil Skrypuch 2009-05-13 00:32:03 UTC
This isn't really invalid. Consider the case where you've just updated GCC. The new GCC supports a new (more appropriate) -march for you, so you update your make.conf and proceed to rebuild world. Unless you remove the old GCC from your system /before/ you rebuild world, it's going to break in the middle of compiling the old version of GCC, even though you're set the new version of GCC as default.
Comment 6 Sujeet Akula 2010-07-11 00:43:41 UTC
This is not invalid. Since most users today will have a primarily gcc-4.x system, they will want to specify in make.conf the appropriate CFLAGS available to them. If users want an older version of gcc, as I do, for non-portage building, but built by portage, the workaround is very silly: you have to edit make.conf, emerge gcc-3, and then revert to your original make.conf, since there is apparently no way to associate an alternative CFLAGS for a specific ebuild.

This makes the gcc-3.x ebuilds useless to anyone who does not want to make it the system's primary compiler, but simply wants it available.

(In reply to comment #2)
> Knowing your toolchain is quite essential to using Gentoo.
>