Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 606440 - dev-lang/go[gccgo] fails to build with gcc-6
Summary: dev-lang/go[gccgo] fails to build with gcc-6
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
Depends on:
Blocks: gcc-6
  Show dependency tree
Reported: 2017-01-18 16:51 UTC by Brandon Holbrook
Modified: 2017-03-10 00:35 UTC (History)
0 users

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 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.