Title: Use of `ffi_type_complex_double` is unguarded · Issue #128156 · python/cpython · GitHub
Open Graph Title: Use of `ffi_type_complex_double` is unguarded · Issue #128156 · python/cpython
X Title: Use of `ffi_type_complex_double` is unguarded · Issue #128156 · python/cpython
Description: Bug report Bug description: e.g. -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguarded-availability-new -I./Include/internal...
Open Graph Description: Bug report Bug description: e.g. -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguard...
X Description: Bug report Bug description: e.g. -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguard...
Opengraph URL: https://github.com/python/cpython/issues/128156
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use of `ffi_type_complex_double` is unguarded","articleBody":"# Bug report\n\n### Bug description:\n\ne.g.\n\n```\n -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguarded-availability-new -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -c ./Modules/_ctypes/cfield.c -o Modules/_ctypes/cfield.o\n./Modules/_ctypes/cfield.c:1610:36: error: 'ffi_type_complex_double' is only available on macOS 10.15 or newer [-Werror,-Wunguarded-availability-new]\n case 'C': fd-\u003epffi_type = \u0026ffi_type_complex_double; break;\n ^~~~~~~~~~~~~~~~~~~~~~~\n/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi/ffi.h:236:46: note: 'ffi_type_complex_double' has been marked as being introduced in macOS 10.15 here, but the deployment target is macOS 10.9.0\nFFI_AVAILABLE_APPLE_2019 FFI_EXTERN ffi_type ffi_type_complex_double;\n ^\n./Modules/_ctypes/cfield.c:1610:36: note: enclose 'ffi_type_complex_double' in a __builtin_available check to silence this warning\n case 'C': fd-\u003epffi_type = \u0026ffi_type_complex_double; break;\n ^~~~~~~~~~~~~~~~~~~~~~~\n./Modules/_ctypes/cfield.c:1611:36: error: 'ffi_type_complex_float' is only available on macOS 10.15 or newer [-Werror,-Wunguarded-availability-new]\n case 'E': fd-\u003epffi_type = \u0026ffi_type_complex_float; break;\n ^~~~~~~~~~~~~~~~~~~~~~\n/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi/ffi.h:235:46: note: 'ffi_type_complex_float' has been marked as being introduced in macOS 10.15 here, but the deployment target is macOS 10.9.0\nFFI_AVAILABLE_APPLE_2019 FFI_EXTERN ffi_type ffi_type_complex_float;\n ^\n./Modules/_ctypes/cfield.c:1611:36: note: enclose 'ffi_type_complex_float' in a __builtin_available check to silence this warning\n case 'E': fd-\u003epffi_type = \u0026ffi_type_complex_float; break;\n ^~~~~~~~~~~~~~~~~~~~~~\n./Modules/_ctypes/cfield.c:1612:36: error: 'ffi_type_complex_double' is only available on macOS 10.15 or newer [-Werror,-Wung\nuarded-availability-new]\n case 'F': fd-\u003epffi_type = \u0026ffi_type_complex_longdouble; break;\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi/ffi.h:240:37: note: expanded from macro 'ffi_type_complex_longdouble'\n#define ffi_type_complex_longdouble ffi_type_complex_double\n ^~~~~~~~~~~~~~~~~~~~~~~\n/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi/ffi.h:236:46: note: 'ffi_type_complex_double' has been marked as being introduced in macOS 10.15 here, but the deployment target is macOS 10.9.0\nFFI_AVAILABLE_APPLE_2019 FFI_EXTERN ffi_type ffi_type_complex_double;\n ^\n./Modules/_ctypes/cfield.c:1612:36: note: enclose 'ffi_type_complex_double' in a __builtin_available check to silence this warning\n case 'F': fd-\u003epffi_type = \u0026ffi_type_complex_longdouble; break;\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi/ffi.h:240:37: note: expanded from macro 'ffi_type_complex_longdouble'\n#define ffi_type_complex_longdouble ffi_type_complex_double\n ^~~~~~~~~~~~~~~~~~~~~~~\n```\n\nSee https://github.com/python/cpython/issues/100384 for context and similar issues.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nmacOS\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-128680\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/zanieb","@type":"Person","name":"zanieb"},"datePublished":"2024-12-21T15:58:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/128156/cpython/issues/128156"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:009e4878-f88b-f7cd-d996-8dc6eaf50436 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2AC:1159AF:86B9E7:B4D800:6A52AF05 |
| html-safe-nonce | 1242192c0d55635cfd1070c7763664a36b077f4bef244283d082739cb21ca5ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkFDOjExNTlBRjo4NkI5RTc6QjREODAwOjZBNTJBRjA1IiwidmlzaXRvcl9pZCI6IjE3OTkxNjcwMTE4NzM1MzM3MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8ea746d2d39a950a97378cd305ed17a59c496d93dc76fdf66dc66e82e33cda31 |
| hovercard-subject-tag | issue:2754180390 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/128156/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1a4c786a4872154bf87d81c5c50e1e975782627b97afb1eec6bf018d726ff8b0/python/cpython/issues/128156 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1a4c786a4872154bf87d81c5c50e1e975782627b97afb1eec6bf018d726ff8b0/python/cpython/issues/128156 |
| og:image:alt | Bug report Bug description: e.g. -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -Werror=unguard... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zanieb |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width