I am trying to build and install go 1.6 in linux.(amd64).
I have already installed go 1.42.
I keep getting the error : Import cycle not allowed while building dist.
I have go symlinked to /usr/bin from /usr/lib/golang/bin/go. I have set GOROOT_BOOTSTRAP=/usr
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/share/gocode"
GORACE=""
GOTOOLDIR="/usr/bin/pkg/tool/linux_amd64"
GOROOT="/usr/bin"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
Any Idea what is going wrong here ?
Thanks JimB!
The problem was due to the incorrect value for GOROOT_BOOTSTRAP. It should be set to the existing go 1.4 installation directory holding all the go code & libraries and not just the "go" executable.