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

Bug 421255

Summary: sys-devel/gcc-4.7.x build fixes
Product: Gentoo Linux Reporter: safety0ff.bugz
Component: New packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED INVALID    
Severity: normal CC: cloos, dark.knight.ita
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description safety0ff.bugz 2012-06-15 16:05:25 UTC
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
Comment 1 Marco Leogrande 2012-06-16 19:23:21 UTC
I confirm that patch gcc-4.7.1-libgo-runtime.diff at the URL above solves the build problem when USE "go" is enabled.
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2012-06-18 04:31:47 UTC
(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.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2012-06-18 04:34:01 UTC
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.