-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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/compile: CGO arm builds fail on Go 1.10beta1 #23288
Comments
You assume we know how to build (or how you built) /cc @ianlancetaylor |
Fair enough, I'll try to cook up a repro for you. |
Maybe your |
Hmm, the issue seems to come from
Now, I could understand why this would fail if Note, I can fix my issue by not setting CC, rather perhaps passing the compiler as a flag to Emphasis that this only happens with Go 1.10. None of the previous versions of Go touch |
You can inspect dependencies with |
(If ci.go uses os/user or net, it'll probably depend on cgo by default.) |
Hmm, indeed,
But why does Go 1.10beta1 want to rebuild |
Because you got lucky before. Go 1.10 has proper build caching based on file contents and all relevant environment variables. Go 1.9 and earlier depended heavily on modtimes of files only (not contents) and ignored many important environment variables. |
That is, in Go 1.9 and before, your |
Sweet, that's what I was also guessing based on Florin's Advent post, just wanted to confirm. Thank you very much for your time on this, and sorry for the false alarm! |
What version of Go are you using (
go version
)?go1.10beta1
What operating system and processor architecture are you using (
go env
)?Travis CI, Linux
What did you do?
Tried to cross compile
go-ethereum
to ARM5/6/7/64, which builds fine on all previous versions of Go.What did you expect to see?
Successful build.
What did you see instead?
arm-linux-gnueabi-gcc: error: unrecognized command line option '-m64'
Full build logs at https://travis-ci.org/ethereum/go-ethereum/jobs/323227026
The text was updated successfully, but these errors were encountered: