-
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: document mininum gcc version #43605
Comments
GCC 4.6 was released in 2011. I think it would be fine to add this the |
I added this to MinimumRequirements. Closing here, but feel free to edit my wording if you wish. |
We are using gcc version 4.8.3. With the repro from that case, the output looks like: What is the correct minimum gcc version? |
You are correct. We are indeed hitting #43996. Thanks for the help. |
When generating _cgo_export.c, cgo outputs several
#pragma GCC diagnostic ignored
directives. Such pragmas were introduced in gcc 4.6 (https://www.gnu.org/software/gcc/gcc-4.6/changes.html), so it would seem that at least that version is expected. (Ironically, the first pragma is to ignore unknown pragmas, but an older GCC will consider that to be an unknown pragma.)Unfortunately, I can't find anywhere that the minimum version has been documented. It would be helpful if it were included on one of the wiki pages, such as https://github.com/golang/go/wiki/MinimumRequirements or https://github.com/golang/go/wiki/cgo.
The text was updated successfully, but these errors were encountered: