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
runtime/cgo: _check_for_64_bit_pointer_matching_GoInt declared as an array with a negative size #10334
Comments
The message means that the GOARCH and gcc used don't match.
For example, the go tool might be using the clangwrap.sh when
compiling for darwin/amd64.
|
As @minux said, you may be setting CC=clangwrap.sh instead of CC_FOR_TARGET=clangwrap.sh. |
Hmmm. I'm not setting any environment variables; I just ran Also, can we detect this error directly and give a better error message? |
Your error message is from the darwin/amd64 phase, trying to build a compiler for your host. Something must be off in your setup, try a normal ./all.bash? A nicer error would be nice, but I do not expect normal users to go anywhere near iostest.bash. The intended way to build static libraries / native apps for iOS will be https://golang.org/x/mobile/cmd/gomobile. But we can get that working after the 1.5 freeze. |
Normal Here are all possibly relevant entries from an
|
Oh, I misread your transcript. You need to set GOARCH=arm. (iostest.bash doesn't do that for you, because soon GOARCH=arm64 will be valid too.) |
iostest.bash probably should fail earlier if GOARCH is not set.
|
Just sent CL 8442. |
iostest.bash
fails for me right now with:Go repo at 21ed40c. clang version
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn), Target: x86_64-apple-darwin14.1.0
. Using a regular, locked iPhone 6.Full build log:
/cc @crawshaw @minux
The text was updated successfully, but these errors were encountered: