<feed xmlns='http://www.w3.org/2005/Atom'>
<title>buildroot/package/go, branch 2016.08</title>
<subtitle>OpenPOWER buildroot sources</subtitle>
<id>https://git.raptorcs.com/git/buildroot/atom?h=2016.08</id>
<link rel='self' href='https://git.raptorcs.com/git/buildroot/atom?h=2016.08'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/'/>
<updated>2016-07-24T19:50:05+00:00</updated>
<entry>
<title>package/go: needs PIE support</title>
<updated>2016-07-24T19:50:05+00:00</updated>
<author>
<name>Romain Naour</name>
<email>romain.naour@gmail.com</email>
</author>
<published>2016-07-24T15:39:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=5f2ff6064497637d1af04a163d83e849902f4bc7'/>
<id>urn:sha1:5f2ff6064497637d1af04a163d83e849902f4bc7</id>
<content type='text'>
When built statically, runc try to link against Scrt1.o which is not
provided by uClibc ARM toolchain for static build only.

[...]arm-buildroot-linux-uclibcgnueabi/bin/ld: cannot find Scrt1.o: No such file or directory
collect2: error: ld returned 1 exit status

On ARM, Go forces the use of -pie, for some reason:

    pie := (goarch == "arm" &amp;&amp; goos == "linux") || goos == "android"
    if pie { // we need to use -pie for Linux/ARM to get accurate imported sym
              cgoLDFLAGS = append(cgoLDFLAGS, "-pie")
    }

For this reason, add a dependency on BR2_TOOLCHAIN_SUPPORTS_PIE for ARM
CPUs to disable Go for such toolchains.

While at it, rewrap Go dependencies.

[1] http://lists.busybox.net/pipermail/buildroot/2016-July/167206.html

Signed-off-by: Romain Naour &lt;romain.naour@gmail.com&gt;
Cc: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
Cc: Christian Stewart &lt;christian@paral.in&gt;
Tested-by: Christian Stewart &lt;christian@paral.in&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>go: define a hidden boolean to specify if CGO linking is supported</title>
<updated>2016-07-06T19:22:46+00:00</updated>
<author>
<name>Vicente Olivert Riera</name>
<email>Vincent.Riera@imgtec.com</email>
</author>
<published>2016-07-06T08:34:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=70061a50bf952a749092e0b016fd764f4bffbdd8'/>
<id>urn:sha1:70061a50bf952a749092e0b016fd764f4bffbdd8</id>
<content type='text'>
Signed-off-by: Vicente Olivert Riera &lt;Vincent.Riera@imgtec.com&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>go: disable for MIPS R6</title>
<updated>2016-06-30T22:14:33+00:00</updated>
<author>
<name>Vicente Olivert Riera</name>
<email>Vincent.Riera@imgtec.com</email>
</author>
<published>2016-06-27T08:51:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=82c114b2271ededdf74643d7f0a2032e25b986a0'/>
<id>urn:sha1:82c114b2271ededdf74643d7f0a2032e25b986a0</id>
<content type='text'>
MIPS R6 support in Go has not yet been developed.

Signed-off-by: Vicente Olivert Riera &lt;Vincent.Riera@imgtec.com&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/go: Enable MIPS support</title>
<updated>2016-06-01T21:41:09+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoff@infradead.org</email>
</author>
<published>2016-05-19T22:33:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=8e2bf3cb58f86d14e320229c9bb31753888410a5'/>
<id>urn:sha1:8e2bf3cb58f86d14e320229c9bb31753888410a5</id>
<content type='text'>
Enable go language support for mips64 and mips64el (mips64le), which
were added in go-1.6.2.

Signed-off-by: Geoff Levand &lt;geoff@infradead.org&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/go: add double quotes around TARGET_CC/TARGET_CXX</title>
<updated>2016-05-26T19:06:55+00:00</updated>
<author>
<name>Thomas Petazzoni</name>
<email>thomas.petazzoni@free-electrons.com</email>
</author>
<published>2016-05-26T19:06:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=4a1e4a5c7dd94e0490df95597635eb48e4f7f7fb'/>
<id>urn:sha1:4a1e4a5c7dd94e0490df95597635eb48e4f7f7fb</id>
<content type='text'>
Using double quotes around TARGET_CC/TARGET_CXX is mandatory, since
they are composed of several words when ccache support is enabled.

Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/go: Set file timestamp</title>
<updated>2016-05-26T19:05:52+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoff@infradead.org</email>
</author>
<published>2016-05-26T18:21:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=6cb235a4deb07406d516454708b8d9667f6832ba'/>
<id>urn:sha1:6cb235a4deb07406d516454708b8d9667f6832ba</id>
<content type='text'>
Set all file timestamps to prevent the go compiler from rebuilding any
built in packages when programs are built.

Signed-off-by: Geoff Levand &lt;geoff@infradead.org&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/go: Add HOST_GO_CGO_ENABLED</title>
<updated>2016-05-26T19:05:17+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoff@infradead.org</email>
</author>
<published>2016-05-26T18:21:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=e1f14a78978d65a44685375939586a3a2c8d6e41'/>
<id>urn:sha1:e1f14a78978d65a44685375939586a3a2c8d6e41</id>
<content type='text'>
The go compiler's cgo support uses threads.  If BR2_TOOLCHAIN_HAS_THREADS is
set, build in cgo support for any go programs that may need it.  Note that
any target package needing cgo support must include
'depends on BR2_TOOLCHAIN_HAS_THREADS' in its config file.

Fixes build errors like these:

  error: #warning requested reentrant code

  http://autobuild.buildroot.net/results/42a8d07101d8d954511d1c884ecb66e8d861899e

Signed-off-by: Geoff Levand &lt;geoff@infradead.org&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/go: Add HOST_GO_TARGET_ENV</title>
<updated>2016-05-26T19:04:24+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoff@infradead.org</email>
</author>
<published>2016-05-26T18:21:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=86b0f0e68553eb5019f23ebfd4ac29c13149c882'/>
<id>urn:sha1:86b0f0e68553eb5019f23ebfd4ac29c13149c882</id>
<content type='text'>
For the convenience of package makefiles define the new
make variables HOST_GO_TOOLDIR and HOST_GO_TARGET_ENV.

Signed-off-by: Geoff Levand &lt;geoff@infradead.org&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/go: Build host tools with host CC</title>
<updated>2016-05-26T19:03:53+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoff@infradead.org</email>
</author>
<published>2016-05-26T18:21:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=60c5c96ae109dcea48e0997b5e6e6645ac9b8629'/>
<id>urn:sha1:60c5c96ae109dcea48e0997b5e6e6645ac9b8629</id>
<content type='text'>
The go build system doesn't have the notion of cross compiling, but just the
notion of architecture.  When the host and target architectures are different
it expects to be given a target cross compiler in CC_FOR_TARGET.  When the
architectures are the same it will use CC_FOR_TARGET for both host and target
compilation.  To work around this limitation build and install a set of
compiler and tool binaries built with CC_FOR_TARGET set to the host compiler.
Also, the go build system is not compatible with ccache, so use
HOSTCC_NOCCACHE.  See https://github.com/golang/go/issues/11685.

Fixes build errors like these:

  host/usr/bin/go: No such file or directory

  http://autobuild.buildroot.net/results/6664189a6f3a815978e8d0a1d7ef408ca47e2874/

Signed-off-by: Geoff Levand &lt;geoff@infradead.org&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/go: Fix powerpc64 config typo</title>
<updated>2016-05-12T14:21:04+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoff@infradead.org</email>
</author>
<published>2016-05-12T00:08:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=b6b718ca4bd1efa51674a824ff8d32a90a1d6584'/>
<id>urn:sha1:b6b718ca4bd1efa51674a824ff8d32a90a1d6584</id>
<content type='text'>
Fix typo in config powerpc64 depends.  Go language only supports 64 bit powerpc.

Also add BR2_powerpc64le to depends list.

Signed-off-by: Geoff Levand &lt;geoff@infradead.org&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
</feed>
