From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/go: bump version to 1.6.2
Date: Sun, 8 May 2016 14:59:44 +0200 [thread overview]
Message-ID: <20160508145944.09f42d02@free-electrons.com> (raw)
In-Reply-To: <CABa6e=oxJ48BAe9c9itArAB-7CLHw71gKjNiMO0s0jigqH2DvA@mail.gmail.com>
Hello,
On Sun, 8 May 2016 22:46:14 +1000, Cam Hutchison wrote:
> 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).
Aah, OK! I can indeed confirm that the following patch fixes the build
problem for me.
Geoff, if that's OK for you, could you send a proper patch that does
this?
diff --git a/package/go-bootstrap/go-bootstrap.mk b/package/go-bootstrap/go-bootstrap.mk
index e404cb6..2b46694 100644
--- a/package/go-bootstrap/go-bootstrap.mk
+++ b/package/go-bootstrap/go-bootstrap.mk
@@ -17,7 +17,8 @@ HOST_GO_BOOTSTRAP_MAKE_ENV = \
GOOS=linux \
GOROOT_FINAL="$(HOST_GO_BOOTSTRAP_ROOT)" \
GOROOT="$(@D)" \
- GOBIN="$(@D)/bin"
+ GOBIN="$(@D)/bin" \
+ CGO_ENABLED=0
define HOST_GO_BOOTSTRAP_BUILD_CMDS
cd $(@D)/src && $(HOST_GO_BOOTSTRAP_MAKE_ENV) ./make.bash
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-05-08 12:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-06 16:23 [Buildroot] [PATCH 1/1] package/go: bump version to 1.6.2 Christian Stewart
2016-05-06 18:01 ` Geoff Levand
2016-05-07 12:43 ` Thomas Petazzoni
2016-05-07 13:05 ` Christian Stewart
2016-05-07 12:43 ` Thomas Petazzoni
2016-05-07 18:45 ` Baruch Siach
2016-05-07 19:40 ` Thomas Petazzoni
2016-05-07 20:55 ` Cam Hutchison
2016-05-08 12:39 ` Thomas Petazzoni
2016-05-08 12:46 ` Cam Hutchison
2016-05-08 12:59 ` Thomas Petazzoni [this message]
2016-05-10 17:37 ` Geoff Levand
2016-05-10 18:02 ` [Buildroot] [PATCH v2 " Geoff Levand
2016-05-10 18:12 ` Geoff Levand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160508145944.09f42d02@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox