Skip to content
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: type mismatch compiling gcc_libinit_windows.c #17771

Closed
dr2chase opened this issue Nov 3, 2016 · 1 comment
Closed

runtime/cgo: type mismatch compiling gcc_libinit_windows.c #17771

dr2chase opened this issue Nov 3, 2016 · 1 comment
Milestone

Comments

@dr2chase
Copy link
Contributor

dr2chase commented Nov 3, 2016

What version of Go are you using (go version)?

devel 1.8

What operating system and processor architecture are you using (go env)?

Windows

What did you do?

(paraphrasing a verbal bug report from Quentin)
Try to build Go on windows with newer versions of gcc, in this case gcc 5.3.

Because gcc is run -Werror, newer warnings cause the build to fail.
In particular, passing the address of a "volatile long" (64-bit) to InterlockedExchangeAdd, InterlockedIncrement, and InterlockedDecrement produces a warning because they expect the address of a "volatile LONG" (32-bit).

See also https://msdn.microsoft.com/en-us/library/windows/desktop/ms683597(v=vs.85).aspx

@dr2chase dr2chase added this to the Go1.8 milestone Nov 3, 2016
@dr2chase dr2chase self-assigned this Nov 3, 2016
@gopherbot
Copy link

CL https://golang.org/cl/32646 mentions this issue.

@golang golang locked and limited conversation to collaborators Nov 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants