Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to build go1.8 using go1.4 due to import cycle #20345

Closed
ericomali opened this issue May 12, 2017 · 1 comment
Closed

unable to build go1.8 using go1.4 due to import cycle #20345

ericomali opened this issue May 12, 2017 · 1 comment

Comments

@ericomali
Copy link

Please answer these questions before submitting your issue. Thanks!

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

go version go1.4-bootstrap-20161024 linux/amd64

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

GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/home/jradmin/go"
GOTOOLDIR="/home/jradmin/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

What did you do?

GOOS=linux GOARCH=amd64 ./bootstrap.bash

What did you expect to see?

A build.

What did you see instead?

Building Go bootstrap tool.

cmd/dist
import cycle not allowed
package ./cmd/dist
imports bytes
imports errors
imports runtime
imports runtime/internal/atomic
imports runtime

@bradfitz
Copy link
Contributor

I don't think bootstrap.bash is the tool you're looking for. Your bug report does not suggest you're cross-compiling.

You just want make.bash. Set $GOROOT_BOOTSTRAP to your Go 1.4 installation or put it at $HOME/go1.4

This is all documented at https://golang.org/doc/install/source#go14

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants