Golang meet 'float64bits redeclared in this block'

My computer develop environment

1
2
3
4
5
$ cat /etc/issue
Ubuntu 14.04 LTS

$ go version
go version go1.8 linux/amd64

I have meet this error usr/local/go/src/runtime/float.go:45: float64bits redeclared in this block
after update golang version from 1.8 to 1.9

Don’t worry, delete the go directory and re-install golang, problem will be fixed.

1
$ sudo rm -rf /usr/local/go

1
$ curl -s https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local -xz
Share