[pkg-golang-devel] Bug#776401: Bug#776401: Bug#776401: [Pkg-golang-devel] Bug#776401: Bug#776401: src:golang: Set CGO_ENABLED for all platforms

Michael Hudson-Doyle michael.hudson at canonical.com
Fri Feb 12 01:50:14 UTC 2016


On 12 February 2016 at 12:44, Tianon Gravi <admwiggin at gmail.com> wrote:
> On 4 February 2016 at 16:56, Michael Hudson-Doyle
> <michael.hudson at canonical.com> wrote:
>> I guess it could be fixed by going back to building lots of
>> golang-$GOOS-$GOARCH packages, but somehow that doesn't seem very
>> appealing, it would be nicer to allow the go install command to work
>> (which would also allow the user to use their choice of toolchain for
>> cgo, etc). But I don't know how to do that. Have a per-user overlayfs
>> over /usr/lib/go and set GOROOT to that? (not a serious suggestion!)
>
> IMO at this point, anything writing to GOROOT on "go install" ought to
> be considered an upstream bug. :(

I'm not sure I want to be the one that takes that one upstream.

> Any chance of tracking down what's causing those to try to go to
> GOROOT instead of GOPATH?

It's the standard library packages, GOARCH=arm go install runtime is
going to try to create $GOROOT/pkg/linux_arm/runtime.a.

Cheers,
mwh



More information about the pkg-golang-devel mailing list