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: missing zversion.go when building for windows on mac #15018
Comments
Note that it is not necessary to run
|
crosscompiling doesn't need to run make.bash anymore.
Just
GOOS=windows GOARCH=386 go install std
and
GOOS=windows GOARCH=386 go build somePackage
|
@minux @ianlancetaylor I think we should stop shipping the make.bash and other scripts as part of the binary distributions. They cannot be used safely. |
/cc @adg |
@davecheney they can't? |
@adg in an ideal world, maybe those scripts would work, but when the files You don't need to run ./make.bash to season a Go install for cross On Wed, Mar 30, 2016 at 9:40 AM, Andrew Gerrand notifications@github.com
|
@davecheney I didn't think about root. The scripts do work for people that install the binary tarball or zip under their own usernames. Maybe we should just remove make/all.bash/bat for the MSI and PKG installers? |
I don't think this is the case. Our installation instructions tell people to place the contents in We strongly discourage people from placing the contents elsewhere as that raises the spectre of GOROOT. I agree that these scripts should be stripped from the MSI and PKG installers. I think they should also be stripped from the zip and tar distributions. If people want to install from source, they should check it out from git or use the source tarball. All the rest of the mechanisms should not be useable as proxies for the source tarball. |
See the Getting Started docs, where we helpfully explain how to install Go elsewhere. We don't mention permissions at all.
Seems reasonable. Should be a trivial change to x/build/cmd/release. |
we still don't understand the problem here, so we shouldn't hurry
to blame make.bash.
zversion.go should exist, and if it's really owned by root, how could
make.bash somehow make it disappear?
|
@minux, yes. Sorry I distracted the issue by talking about strategies to On Wed, Mar 30, 2016 at 10:34 AM, Minux Ma notifications@github.com wrote:
|
@dcboy, sure you don't have Go 1.4 or Go 1.5 in /usr/local/go? What does |
Timed out. |
I just got this problem when checking out go1.7beta1 and compiling it from source, then trying to use it to build master. |
@JoopClaireIT Please show us the exact sequence of commands that you ran. |
|
I'm not sure I understand. What directory were you running in--what directory do you get to when you It does not make sense to set both |
I believe I'm having the same problem here. My env vars:
GOROOT_BOOTSTRAP points to my binary dist Then, when calling all.bat:
|
@Patuti Whatever problem that is, it is not this problem, which is about building for Windows on the Mac. Please take your question to a forum; see https://golang.org/wiki/Questions . Thanks. |
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.6 darwin/amd64
go env
)?➜ src git:(master) go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Volumes/D/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"
cd $GOROOT/src
GOOS=windows GOARCH=386 PATH=$PATH ./make.bash
Building Go bootstrap tool.
cmd/dist
go: open /usr/local/go/src/runtime/internal/sys/zversion.go: no such file or directory
The text was updated successfully, but these errors were encountered: