Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-99337: Fix compile errors with gcc 12 on macOS#99470
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
The new form matches the way we test for other weaksymbols (for example in posixmodule.c)
I earlier moved the pragma, but not the comment that explainswhy it is necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM.
Oh ok, now with the fixed testif (ffi_closure_free != NULL) {, I get it :-)
Thanks@ronaldoussoren for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
Sorry,@ronaldoussoren, I could not cleanly backport this to |
bedevere-bot commentedNov 21, 2022
GH-99638 is a backport of this pull request to the3.11 branch. |
Fix a number of compile errors with GCC-12 on macOS:1. In pylifecycle.c the compile rejects _Pragma within a declaration2. posixmodule.c was missing a number of ..._RUNTIME macros for non-clang on macOS3. _ctypes assumed that __builtin_available is always present on macOS(cherry picked from commitcdde29d)Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
…99638)gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470)Fix a number of compile errors with GCC-12 on macOS:1. In pylifecycle.c the compile rejects _Pragma within a declaration2. posixmodule.c was missing a number of ..._RUNTIME macros for non-clang on macOS3. _ctypes assumed that __builtin_available is always present on macOS(cherry picked from commitcdde29d)Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Uh oh!
There was an error while loading.Please reload this page.
When compiling with GCC 12 on a macOS 12 system I get three groups of errors: