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

cmd/dist: make.bash gives error when GOROOT_BOOTSTRAP is not set correctly #12167

Closed
tsgan opened this issue Aug 17, 2015 · 4 comments
Closed

cmd/dist: make.bash gives error when GOROOT_BOOTSTRAP is not set correctly #12167

tsgan opened this issue Aug 17, 2015 · 4 comments

Comments

@tsgan
Copy link

@tsgan tsgan commented Aug 17, 2015

HEAD is now at 3c43158 sort: Fix typo in Stable() comment
root@bsd:~tsgan/golang/go/src # git pull
Already up-to-date.
root@bsd:~tsgan/golang/go/src # ./make.bash
##### Building Go bootstrap tool.
cmd/dist
# runtime
/root/go1.4/src/runtime/cgocall.go:138: undefined: m
/root/go1.4/src/runtime/chan.go:13: undefined: hchan
/root/go1.4/src/runtime/chan.go:13: invalid expression unsafe.Sizeof(composite literal)
/root/go1.4/src/runtime/chan.go:13: undefined: hchan
/root/go1.4/src/runtime/chan.go:13: invalid expression unsafe.Sizeof(composite literal)
/root/go1.4/src/runtime/chan.go:19: undefined: hchan
/root/go1.4/src/runtime/chan.go:19: undefined: chantype
/root/go1.4/src/runtime/chan.go:61: undefined: hchan
/root/go1.4/src/runtime/chan.go:67: undefined: chantype
/root/go1.4/src/runtime/chan.go:67: undefined: hchan
/root/go1.4/src/runtime/chan.go:67: too many errors
@davecheney
Copy link
Contributor

@davecheney davecheney commented Aug 17, 2015

@tsgan 3c43158 is on master, but the path you reference mentions go1.4. Do you have $GOROOT set ? If so, please unset it, you should never set $GOROOT when building from source.

@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented Aug 17, 2015

Sounds like you have environment problems. FreeBSD is building fine on our dashboard (build.golang.org).

I would ask on the golang-nuts mailing list for help.

@bradfitz bradfitz closed this Aug 17, 2015
@davecheney
Copy link
Contributor

@davecheney davecheney commented Aug 17, 2015

@tsgan sorry, I misread your original report. The go1.4 is coming from the $GOROOT_BOOTSTRAP setting.

As @bradfitz says, please take this to golang-nuts.

@tsgan
Copy link
Author

@tsgan tsgan commented Aug 17, 2015

Environment has following:

GOPATH=/home/tsgan/go
GOBIN=/home/tsgan/go/bin
CC=clang

@mikioh mikioh changed the title make.bash gives error on FreeBSD cmd/dist: make.bash gives error when GOROOT_BOOTSTRAP is not set correctly Aug 17, 2015
@golang golang locked and limited conversation to collaborators Aug 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.