Hi,
I'm using
$ uname -a
Linux alio 4.11.12-1-MANJARO #1 SMP PREEMPT Fri Jul 21 08:51:46 UTC 2017 x86_64 GNU/Linux
For a couple of days my go build from source started to fail on test "TestBuildmodePIE"
...
ok cmd/doc 0.027s
ok cmd/fix 0.045s
--- FAIL: TestBuildmodePIE (1.27s)
go_test.go:312: running testgo [build -buildmode=pie -o /tmp/gotest428943951/main /tmp/gotest428943951/main.go]
go_test.go:325: standard error:
go_test.go:326: # command-line-arguments
/usr/local/src/sagu/go-all/go/pkg/linux_amd64_shared/runtime/cgo.a(_go_.o): object is [linux amd64 devel +98276d6abe Mon Aug 14 04:45:52 2017 +0000 X:framepointer] expected [linux amd64 devel +66a1
d37bf7 Fri Aug 18 09:28:16 2017 +0000 ]
/usr/local/src/sagu/go-all/go/pkg/linux_amd64_shared/runtime/cgo.a(asm_amd64.o): object is [linux amd64 devel +98276d6abe Mon Aug 14 04:45:52 2017 +0000] expected [linux amd64 devel +66a1d37bf7 Fri
Aug 18 09:28:16 2017 +0000 ]
go_test.go:335: go [build -buildmode=pie -o /tmp/gotest428943951/main /tmp/gotest428943951/main.go] failed unexpectedly: exit status 2
FAIL
FAIL cmd/go 50.024s
ok cmd/go/internal/generate 0.024s
...
I did a small investigation and it seems that failures began after
commit b7c600d6ba8828dbdc6a047aac240d40b4fc44a7 (HEAD)
Author: Hiroshi Ioka <
hiroch...@gmail.com>
Date: Sat Aug 5 18:25:26 2017 +0900
cmd/go, cmd/link: enable buildmode=pie on darwin/amd64
Change some configurations to enable the feature. Also add the test.
This CL doesn't include internal linking support which is tentatively
disabled due to #18968. We could do that another day.
Fixes #21220
Change-Id: I601d2d78446d36332acc70be0d5b9461ac635208
Reviewed-on:
https://go-review.googlesource.com/54790 Reviewed-by: Ian Lance Taylor <
ia...@golang.org>
Run-TryBot: Ian Lance Taylor <
ia...@golang.org>
TryBot-Result: Gobot Gobot <
go...@golang.org>
Has anyboy an idea how to fix this?
Thanks,
--
Saulius