Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219281 - gcc-3.4.x should filter out -march=native CFLAGS :)
Summary: gcc-3.4.x should filter out -march=native CFLAGS :)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 235482 266267 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-25 17:08 UTC by Priit Laes (IRC: plaes)
Modified: 2010-07-11 00:43 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 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.
>