I am unable to compile v1.26.0,how should I handle it #11850
-
Intel(R) Xeon(R) CPU E5-2678 v3 @ 2.50GHz Error loggo build -ldflags="-X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.5f86ff9a6" -o lotus ./cmd/lotus runtime/internal/sys/usr/local/go/src/runtime/internal/sys/intrinsics_common.go:9:7: len8tab redeclared in this block |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@ytjoe perhaps try reinstalling Go, and before you do, clear out the old one. It looks to me like you have old and a new files from a Go upgrade. In fact, https://go.dev/doc/install even recommends deleting this directory if installing from a tarball download. You could also try installing from an OS distro package instead to have this managed for you. I personally use https://snapcraft.io/go mostly to keep it updated and compatible. |
Beta Was this translation helpful? Give feedback.
@ytjoe perhaps try reinstalling Go, and before you do, clear out the old one. It looks to me like you have old and a new files from a Go upgrade.
rm -rf /usr/local/go
might help before you install again.In fact, https://go.dev/doc/install even recommends deleting this directory if installing from a tarball download.
You could also try installing from an OS distro package instead to have this managed for you. I personally use https://snapcraft.io/go mostly to keep it updated and compatible.