-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: build failure on amd64 Linux with an error in TestTwoGopathShlibsGccgo from CL 69831 onward #22224
Comments
Sorry about this. The test is being skipped on my Linux box because "gccgo too old". I will update my Linux distribution. |
I have a new Linux and new gccgo and can reproduce the problem. Will fix, thanks. |
This is failing on ppc64le as well, as long as your machine has gccgo and it is new enough. I can see in the verbose output that the link for libdep2.so is different than before. I don't think this test is expecting libdepBase.a to be linked in. /usr/bin/gccgo -o $WORK/b021/libdep2.so -Wl,-( -Wl,--whole-archive /tmp/testshared785817683/pkg/gccgo_linux_ppc64le_5577006791947779410_fPIC/libdep2.a /tmp/testshared785817683/pkg/gccgo_linux_ppc64le_5577006791947779410_fPIC/libdepBase.a -Wl,--no-whole-archive -Wl,-) -zdefs -shared -nostdlib -lgo -lgcc_s -lgcc -lc -fPIC On Ubuntu 16.04 with gccgo 6, there is an additional failure. --- FAIL: TestGoPathShlibGccgo (2.83s) |
Sorry, my fix for this was preempted by the point release work. If you want to add a skip to the test pointing at this issue, that's fine. |
Change https://golang.org/cl/73851 mentions this issue: |
For #22224. Change-Id: Iae873fddc72a79a96a32eaeb5d4dd885eaf810cb Reviewed-on: https://go-review.googlesource.com/73851 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Change https://golang.org/cl/87497 mentions this issue: |
What version of Go are you using (
go version
)?The latest git tip I've tested this on is
go version devel +926373ea79 Thu Oct 12 00:11:33 2017 +0000 linux/amd64
.What operating system and processor architecture are you using (
go env
)?Specifically I'm on Fedora 26. Since this test appears to use gccgo, it may be relevant that my reported (system) gccgo version is
gccgo (GCC) 7.2.1 20170915 (Red Hat 7.2.1-2)
.What did you do?
Trying to do
./all.bash
build now fails in TestTwoGopathShlibsGccgo:Git bisection says that this started happening at commit 4e8be99, 'cmd/go: clean up compile vs link vs shared library actions'. I hacked in some instrumentation and it appears that libdep2.so here is only linked to libgo.so.11, libgcc_s.so.1, libc.so.6, and ld-linux-x86-64.so.2.
The text was updated successfully, but these errors were encountered: