Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231042 - gcc-3.3.6 fails to build with -march=native
Summary: gcc-3.3.6 fails to build with -march=native
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
Reported: 2008-07-07 11:58 UTC by Tolga Dalman
Modified: 2008-07-07 22:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Tolga Dalman 2008-07-07 11:58:39 UTC
when -march=native is enabled for gcc 4.3, an emerge gcc-3.3.6 will fail due to missing filter rules. Apparently, the CFLAGS are passed over to the gcc-3.3.6 build without removing/replacing this particular switch.
This bug prevents sun-jdk from being built.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2008-07-07 16:35:19 UTC
use sys-libs/libstdc++-v3 instead of gcc-3.3
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2008-07-07 22:43:30 UTC
any flag that a gcc version doesn't support will cause an error when building that version.  we can't filter them all.  temporarily change -march to something gcc-3.3.6 understands.
Comment 3 Tolga Dalman 2008-07-07 22:57:28 UTC
This helps much. As for solving the problem entirely: is there no possibility to prevent GCC from being bootstrapped (including the new CFLAGS), if the original compiler is GCC and has a higher version number (in this case 4.3.1) ? That way, we would have solved this problem once and for all!

Anyways, thank you very much for the quick help!