-
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: uint64_t used to permit C.ulong, but no longer does #31093
Comments
I am having a similar problem in a cgo program of mine that built in Go 1.12.
and I used to be able to pass a Go The good news is that if I fix the code to use I guess the first question is whether we think cgo should be this picky. Should we tell cgo the go version from the go.mod file Or should we roll back #29878? |
I agree that cgo should not be this picky. I haven't thought about whether there is a way to fix this, or whether we need to roll back. If rolling back is the only way to let existing code continue to build, then I think we should roll back. |
Change https://golang.org/cl/180357 mentions this issue: |
Change https://golang.org/cl/180377 mentions this issue: |
Updates #31093 Change-Id: I7962aaca0b012de01768b7b42dc2283d5845eeea Reviewed-on: https://go-review.googlesource.com/c/go/+/180377 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This program works fine with Go 1.12.
With current tip, it fails to build with
This is a consequence of the change for #29878. We need to address it one way or another.
CC @phst
The text was updated successfully, but these errors were encountered: