go: cmd/compile: unable to compile a program on arm64 with 1.8 that compiles/runs fine on 1.7.5

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.8 linux/arm64

What operating system and processor architecture are you using (go env)?

GOARCH=“arm64” GOBIN=“” GOEXE=“” GOHOSTARCH=“arm64” GOHOSTOS=“linux” GOOS=“linux” GOPATH=“/home/jolan/go” GORACE=“” GOROOT=“/usr/lib/go” GOTOOLDIR=“/usr/lib/go/pkg/tool/linux_arm64” GCCGO=“gccgo” CC=“gcc” GOGCCFLAGS=“-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build063485784=/tmp/go-build -gno-record-gcc-switches” CXX=“g++” CGO_ENABLED=“1” PKG_CONFIG=“pkg-config” CGO_CFLAGS=“-g -O2” CGO_CPPFLAGS=“” CGO_CXXFLAGS=“-g -O2” CGO_FFLAGS=“-g -O2” CGO_LDFLAGS=“-g -O2”

What did you do?

git clone https://github.com/decred/dcrd $GOPATH/src/github.com/decred/dcrd
cd $GOPATH/src/github.com/decred/dcrd
glide install
go install $(glide nv)

What did you expect to see?

No compile errors (works with go 1.7.5)

What did you see instead?

$ go install $(glide nv)
# github.com/decred/dcrd/blockchain/chaingen
blockchain/chaingen/generator.go:1861: offset out of range: 974
01460 (/home/jolan/go/src/github.com/decred/dcrd/blockchain/chaingen/generator.go:1595) MOVW    R2, ""..autotmp_529-146(SP)
# github.com/decred/dcrd
./version.go:74: offset out of range: 4302
16640 (/home/jolan/go/src/github.com/decred/dcrd/mining.go:2133)        MOVW   R1, ""..autotmp_2903-434(SP)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (13 by maintainers)

Commits related to this issue

Most upvoted comments

@karalabe thanks. Yeah, I found the problem. It’s a different problem. Will have a fix later today.