[Buildroot] [PATCH 1/1] package/go: bump version to 1.6.2

Cam Hutchison camh at xdna.net
Sun May 8 12:46:14 UTC 2016


On 8 May 2016 at 22:39, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Hello,
>
> On Sun, 8 May 2016 06:55:36 +1000, Cam Hutchison wrote:
>
>> > As far as I understand, we can't use go 1.5.2 as the bootstrap
>> > compiler, because since 1.5.x, Go is written in Go. I guess we will
>> > have to backport the patch.
>>
>> I think it should be sufficient to build the go-bootstrap compiler with
>> "CGO_ENABLED=0" in its environment. This worked for me when I
>> played with it and looks like the correct solution according to
>> https://github.com/golang/go/issues/13114
>
> When the packaging of Go was added to Buildroot, I was pointed to
> https://docs.google.com/document/d/1OaatvGhEAq7VseQ9kkavxKNAfepWy2yhPUBs96FGV28/edit,
> which says that using Go 1.4 as the bootstrap compiler to build Go 1.5
> was the proper solution.
>
> Now, if it is possible to use a two-stage build of go 1.5, then that's
> also fine with me, but it somewhat contradicts the above document.

Sorry, I was unclear.

I don't know anything about bootstraping the compiler with anything other
than go 1.4 - as far as my limited understanding goes, that is still necessary.

What I meant was that it should not be necessary to backport the patch
as you suggested, but instead compile the bootstrap compiler with
CGO_ENABLED=0 in the environment. That worked for me when I
saw the same problem building the bootstrap compiler (but the problem
was not consistent and no one else seemed to have it, so I just assumed
there was an issue in my build environment - so I never posted this
fix).



More information about the buildroot mailing list