Upstream has already provided a patch, and I can confirm it solves the
issue:
diff --git a/src/cmd/compile/internal/x86/387.go
b/src/cmd/compile/internal/x86/387.go
index cdac000..7a36224 100644
--- a/src/cmd/compile/internal/x86/387.go
+++ b/src/cmd/compile/internal/x86/387.go
@@ -46,6 +46,9 @@
forwarded 877541 https://github.com/golang/go/issues/22429
thanks
I have opened an issue in upstream's tracker:
https://github.com/golang/go/issues/22429
--
Martín Ferrari (Tincho)
If I disable optimizations (-N option for go tool compile), the error
disappears. I think this confirms it is a compiler bug.
$ GOPATH=$PWD/build go test -c -v -gcflags=-N
github.com/prometheus/prometheus/storage/local
$ GOPATH=$PWD/build go test -c -v
reassign 877541 golang-1.9
retitle 877541 golang-1.9: Invalid instruction error in i386
thanks
This seems to be an issue with go 1.9, this error is not reproducible
with other versions of go:
$ /usr/lib/go-1.7/bin/go test -c -v
github.com/prometheus/prometheus/storage/local
$
4 matches
Mail list logo