Gcc 4.7.0 does not build with CFLAGS/CXXFLAGS = -march=native -mno-avx due to upstream bug #53113. Gcc 4.7.1 does not build with USE "go" due to upstream bug #53679, and suffers from the above issue too. I've submitted my patches upstream, I've put working ebuilds here: https://github.com/Safety0ff/ebuilds/tree/master/sys-devel/gcc Patches are in the files/${PV}/ directories. Reproducible: Always
I confirm that patch gcc-4.7.1-libgo-runtime.diff at the URL above solves the build problem when USE "go" is enabled.
(In reply to comment #0) > Gcc 4.7.0 does not build with CFLAGS/CXXFLAGS = -march=native -mno-avx due > to upstream bug #53113. Bug #417271 > Gcc 4.7.1 does not build with USE "go" due to upstream bug #53679, and > suffers from the above issue too. That bug says it fails because of -Werror, which we don't allow. If -Werror is being passed then we should fix that, otherwise it doesn't affect us.
PS. Please file individual bugs in the future, with build logs and emerge --info. Patches need to be attached, not put in a repo somewhere.