-
Notifications
You must be signed in to change notification settings - Fork 17.4k
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
build: should raise error when GOROOT_BOOTSTRAP == GOROOT #12214
Comments
Yes, that would be a bug. I can't recreate it, though. I tried it and it worked fine for me. Do you have GOROOT set in the environment? Can you show the exact steps you followed? |
What is your environment? Are you trying to compile Go 1.5 with the same Go 1.5 directory? That is, is your $GOROOT_BOOTSTRAP equal to your current directory (without the "src") part? That won't work. |
@bradfitz that sure doesn't work, and matches the OP's report
We should add a check to ./all.bash to halt in this case |
Yeah I think it's because I set the Somehow I was under the impression that using a different copy of go1.5 tree gave the same error but I couldn't reproduce that one. Maybe I mis-typed something. |
CL https://golang.org/cl/13719 mentions this issue. |
What it actually should means?
What is the right path for GOROOT_BOOTSTRAP ? |
@oneumyvakin, please bring questions to the golang-nuts@ mailing list. This is a closed bug. The short summary is you need Go to build Go. Details are at https://golang.org/s/go15bootstrap |
Despite
src/all.bash
asks toSet $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.
, it seems that only a Go 1.4 tree works. Setting$GOROOT_BOOTSTRAP
to a Go 1.5 tree yields error:Is this a bug?
The text was updated successfully, but these errors were encountered: