-
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/cgo: test fails to build on Mac OS 10.9.4. #8312
Labels
Comments
I'm sorry if I'm not following the osx update story closely. I run one of the darwin builders, which is running os x 10.9.something, where something is whatever is the latest that apple have pushed to this machine. There are no errors with the builder Could this possibly be a problem with your local machine ? Which version of Xcode are you using, we pretty much assume you're running the latest available. Is there an oddball version of clang (or gcc) in your path that the build process could be picking up ? Are you 105% sure that you do _not_ have GOOS, GOROOT or GOARCH set. These are not necessary for building Go from source. Status changed to WaitingForReply. |
Hmmm, yeah, I took a look and this should work independent of compiler. If you can, please cd to the directory misc/cgo/test. If you run "go test", you should see the failure that you reported. Please run "go test -work". It will print out a temporary directory name, and won't delete it. In that directory, there will be a file _cgo_export.h. Please attach that file here. Thanks. |
Attached. Thanks! Attachments:
|
Thanks. The function Add is indeed declared in that file. And cthread_unix.c does #include "_cgo_export.h". So I have no idea what is going on. Is it somehow picking up a different _cgo_export.h? Do you have a _cgo_export.h anywhere in your Go source tree? I guess for the next step please run "go test -work -x" and attach the output and also the complete contents of the temporary directory that it creates. Thanks. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: