Summary: | sys-devel/gcc-4.6.3: filtering gcc-4.7+ flags or build fails | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Justin Lecher (RETIRED) <jlec> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
config.log config.log |
Description
Justin Lecher (RETIRED)
2012-09-10 11:14:46 UTC
Created attachment 323400 [details]
build.log
build.log
Created attachment 323402 [details]
config.log
config.log
Comment on attachment 323402 [details]
config.log
That's not the config.log for the configure script that emitted the "cannot compute" message.
Created attachment 323404 [details]
config.log
Right, here it is.
4.7 flags used with 4.6. Sorry for the noise. we hit this in every upgrade. we really need a generic solution. Why aren't you just using -march=native? The only reasons I know of where you'd want to spell it out is for distcc or to set -mtune for versions prior to 4.6 where there was no core2 cost model. Neither seems to apply in your case. I'm not sure how we could strip flags unknown to the compiler being built. Until it's built we don't know what flags it'll accept and by then it's too late. for bootstrap builds, we can build up the xgcc first, then filter all of the cflags using that True, but how do you replace the flags in the middle of the build? Specifically unrecognized options by gcc-4.6 are: cc1: error: unrecognized command line option '-mno-bmi2' cc1: error: unrecognized command line option '-mno-avx2' cc1: error: unrecognized command line option '-mno-lzcnt' (In reply to Sergei Trofimovich from comment #10) > Specifically unrecognized options by gcc-4.6 are: > > cc1: error: unrecognized command line option '-mno-bmi2' > cc1: error: unrecognized command line option '-mno-avx2' > cc1: error: unrecognized command line option '-mno-lzcnt' Was fixed in https://gitweb.gentoo.org/repo/gentoo/historical.git/commit/?id=da08caf94f4481b53bfa1923de09fe447dfc549a as: + isalist+=("-mno-lzcnt 4.7") + isalist+=("-mno-bmi2 4.7") + isalist+=("-mno-avx2 4.7") Tested on sys-devel/gcc-4.6.4-r3 with C{,XX}FLAGS from #comment1. |