-
Notifications
You must be signed in to change notification settings - Fork 18k
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
x/mobile/cmd/gomobile: gomobile int fails with status 2 #11672
Comments
CC @crawshaw |
The gomobile tool is, for historical reasons, ignoring any custom GOROOT setting. Explicitly setting the GOROOT variable is strongly discouraged, so I haven't seen this before. At this point it is safe to pass it through, so I'll send a CL to do that. However, I am a little bit surprised by the behavior of the Go 1.5 beta. Downloading the darwin/amd64 version and putting it anywhere other than /usr/local/go does not go well:
It's not clear to me if this should work. |
i have 1.4 and 1.5, depending on what i am hacking on. so thats why i do it this way. to me, its weird that gomobile does not respect the env variables. i mean thats the point of them and the whole go conventions all working together |
bash profile for my user...... might help GoLang 1.4.2 Paths setup#export GOROOT=/usr/local/go1.4 GoLang 1.5 Paths setupexport GOROOT_BOOTSTRAP=$HOME/go1.4 export GOROOT=$HOME/go |
There were once good reasons for ignoring the user's setting of GOROOT, but those no longer apply. I'll send a CL soon. |
thanks |
CL https://golang.org/cl/12128 mentions this issue. |
Now that we no longer modify the user's $GOROOT and run make.bash, the need for isolating the environment is gone. Pass through whatever users want, overriding only those necesssary for corss compilation. While here, remove some dead code. Fixes golang/go#11672. Change-Id: Iaf867913eaa1311519a4d5a7a8169228ebf21346 Reviewed-on: https://go-review.googlesource.com/12128 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Now that we no longer modify the user's $GOROOT and run make.bash, the need for isolating the environment is gone. Pass through whatever users want, overriding only those necesssary for corss compilation. While here, remove some dead code. Fixes golang/go#11672. Change-Id: Iaf867913eaa1311519a4d5a7a8169228ebf21346 Reviewed-on: https://go-review.googlesource.com/12128 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Its not finding the go root dir, even though its set in the environment variables.
i am using the latest go mobile repo.
gedw99-MacBook-Pro:gomobile apple$ gomobile init
gomobile: go install std for android/arm failed: exit status 2
go: cannot find GOROOT directory: /usr/local/go
go version go1.5beta1 darwin/amd64
gedw99-MacBook-Pro:gomobile apple$ go env
GOARCH="amd64"
GOBIN="/Users/apple/Workspace/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/apple/Workspace"
GORACE=""
GOROOT="/Users/apple/go"
GOTOOLDIR="/Users/apple/go/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT=""
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"
The text was updated successfully, but these errors were encountered: