[Bug 1726706] Re: Fails to build snapd on ppc64el
Michael Hudson-Doyle
mwhudsonlp at fastmail.fm
Wed Oct 25 09:32:25 UTC 2017
Speaking as the golang maintainer, this is definitely a change we want,
and it's a backport from the upstream compiler that is the default in
artful. Even if binaries with TEXTREL execute correctly (which they
should) it is better to not have text relocations...
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to golang-1.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1726706
Title:
Fails to build snapd on ppc64el
Status in golang-1.7 package in Ubuntu:
Fix Released
Status in golang-1.7 source package in Zesty:
New
Bug description:
The builds of snapd git master (and 2.28~rc1) fail on ppc64el in zesty
(only there) with the following error message:
/tmp/go-build312455947/github.com/snapcore/snapd/cmd/snap-seccomp/_test/snap-seccomp.test: error while loading shared libraries: R_PPC64_ADDR16_HA re115ff6af8 for symbol `’ out of range
exit status 127
One full build log is here: https://launchpad.net/~snappy-
dev/+archive/ubuntu/edge/+build/133381271
Michael Hudson-Doyle pointed me to https://go-
review.googlesource.com/c/go/+/33106 which is the upstream fix for
this bug. This fix is included in the 1.8 series of golang. To unblock
snapd in 17.04 I would like to backport/SRU the fix for golang.
This is also a problem for other packages using go in 17.04, e.g.
https://bugs.launchpad.net/ubuntu/+source/containerd/+bug/1711935 and
for our users who develop on go1.7.
[Test case]
1. build snapd on ppc64el with golang 1.7
2. observe that it fails to build with R_PPC64_ADDR16_HA out of range errors
3. update to the fixed golang 1.7
4. verify that the build works with that
[Regression potential]
- medium, its a change in the way the linker is called. However given that this is the default in go1.8 the risk seems ok.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-1.7/+bug/1726706/+subscriptions
More information about the foundations-bugs
mailing list