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/go: go install complains about GOBIN being set even when it's not #11851

Closed
mdempsky opened this issue Jul 24, 2015 · 1 comment
Closed

Comments

@mdempsky
Copy link
Member

I was curious where executables end up when cross-compiling with "go install", so I thought I'd try it out with a random command:

$ GOARCH=386 GOOS=openbsd go install code.google.com/p/codesearch/cmd/cgrep
go install: cannot install cross-compiled binaries when GOBIN is set

However, this seems like an odd error message since I don't have GOBIN set:

$ GOARCH=386 GOOS=openbsd go env
GOARCH="386"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="openbsd"
GOPATH="/usr/local/google/home/mdempsky/go"
GORACE=""
GOROOT="/usr/local/google/home/mdempsky/wd/go"
GOTOOLDIR="/usr/local/google/home/mdempsky/wd/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT=""
CC="gcc"
GOGCCFLAGS="-fPIC -m32 -fmessage-length=0"
CXX="g++"
CGO_ENABLED="0"
@ianlancetaylor
Copy link
Contributor

Dup of #11778 .

@golang golang locked and limited conversation to collaborators Aug 5, 2016
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