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

Bug 606440

Summary: dev-lang/go[gccgo] fails to build with gcc-6
Product: Gentoo Linux Reporter: Brandon Holbrook <gentoo>
Component: Current packagesAssignee: William Hubbs <williamh>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 582084    

Description Brandon Holbrook 2017-01-18 16:51:29 UTC
All the dev-lang/go ebuilds are not correctly setup to handle the transition to gcc-6 when built with USE=gccgo, because gcc-6 produces a "go-6" binary, but these ebuilds are hard-coded to only attempt "go-5".

DEPEND is defined as:
    gccgo? ( >=sys-devel/gcc-5[go] )
which matches gcc-6

However, src_compile() is hard-coded to execute:
    local go_binary=$(gcc-config --get-bin-path)/go-5

This causes the ebuild to fail with:
    go-5: command not found

Reproducible: Always

On my system, I converted all 3 instances of:

and everything worked perfectly.  Not sure if this is the correct long-term solution.
Comment 1 William Hubbs gentoo-dev 2017-03-10 00:35:30 UTC
I added your fix to go-1.8 since that seems to be the best solution at
this point.

Thanks for the report.