-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/link is not working on windows/amd64 with any non-default buildmode #15497
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
Comments
I understand the patches for this part were already submitted as #13494 is closed now. Is there a way I can apply these specific patches on 1.6 branch or should I be building master branch (which gets a lot of errors on compilation time). Is there any plan on moving these changes to some release as they are still unplanned and now even in 1.7.Maybe |
Making a patch that applies to go1.6 would be difficult. I suggest you build current master tip.
It should not happen. If you see any errors, please create new issue.
The change should be part of go1.7. Alex |
@alexbrainman Thank you for prompt followup. Just one question though, if this is planned for 1.7, what is the timeline for 1.7 release? (I understand it is not exactly defined, but should have some ETA) |
Please, see https://golang.org/s/release for details. Alex |
I've compiled master HEAD successfully, it compiles the go part now using just But when I try to compile resulting .a with .c file the gcc output is:
Not sure if this is fixable without any Go code changes. UPDATE:
Attached is output from |
Figured this out. The issue in last comment is caused by the fact that gcc needs to be pointed to each library directly. And of course this has nothing to do with CGo. Adding After this I can verify that compiling 'c-archive' with latest master tip code works fine. I guess will have to use Go installation from source until 1.7 is released. |
Is there anything remain to do about this issue?
|
@akamensky please reopen, if you think anything else to do here. Alex |
Code used for testing and reporting: https://github.com/akamensky/cgo-example
go version
)?go version go1.6.1 windows/amd64
go env
)?go linker should provide usable archive
The text was updated successfully, but these errors were encountered: