Title: Check compatibility with macOS deployment target during JIT builds · Issue #134291 · python/cpython · GitHub
Open Graph Title: Check compatibility with macOS deployment target during JIT builds · Issue #134291 · python/cpython
X Title: Check compatibility with macOS deployment target during JIT builds · Issue #134291 · python/cpython
Description: As with #100384, we should ensure that symbols use is guarded or the interpreter will crash at runtime on older macOS platforms. There are a couple violations for a target of 10.15 (which we agreed on in #128155): cpython-3.14> Python/ji...
Open Graph Description: As with #100384, we should ensure that symbols use is guarded or the interpreter will crash at runtime on older macOS platforms. There are a couple violations for a target of 10.15 (which we agreed...
X Description: As with #100384, we should ensure that symbols use is guarded or the interpreter will crash at runtime on older macOS platforms. There are a couple violations for a target of 10.15 (which we agreed...
Opengraph URL: https://github.com/python/cpython/issues/134291
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Check compatibility with macOS deployment target during JIT builds","articleBody":"As with https://github.com/python/cpython/issues/100384, we should ensure that symbols use is guarded or the interpreter will crash at runtime on older macOS platforms.\n\nThere are a couple violations for a target of 10.15 (which we agreed on in https://github.com/python/cpython/pull/128155):\n\n```\ncpython-3.14\u003e Python/jit.c:530:5: error: 'pthread_jit_write_protect_np' is only available on macOS 11.0 or newer [-Werror,-Wunguarded-availability-new]\ncpython-3.14\u003e 530 | pthread_jit_write_protect_np(0);\ncpython-3.14\u003e | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\ncpython-3.14\u003e /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/pthread.h:588:6: note: 'pthread_jit_write_protect_np' has been marked as being introduced in macOS 11.0 here, but the deployment target is macOS 10.15.0\ncpython-3.14\u003e 588 | void pthread_jit_write_protect_np(int enabled);\ncpython-3.14\u003e | ^\ncpython-3.14\u003e Python/jit.c:530:5: note: enclose 'pthread_jit_write_protect_np' in a __builtin_available check to silence this warning\ncpython-3.14\u003e 530 | pthread_jit_write_protect_np(0);\ncpython-3.14\u003e | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\ncpython-3.14\u003e Python/jit.c:570:5: error: 'pthread_jit_write_protect_np' is only available on macOS 11.0 or newer [-Werror,-Wunguarded-availability-new]\ncpython-3.14\u003e 570 | pthread_jit_write_protect_np(1);\ncpython-3.14\u003e | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\ncpython-3.14\u003e /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/pthread.h:588:6: note: 'pthread_jit_write_protect_np' has been marked as being introduced in macOS 11.0 here, but the deployment target is macOS 10.15.0\ncpython-3.14\u003e 588 | void pthread_jit_write_protect_np(int enabled);\ncpython-3.14\u003e | ^\ncpython-3.14\u003e Python/jit.c:570:5: note: enclose 'pthread_jit_write_protect_np' in a __builtin_available check to silence this warning\ncpython-3.14\u003e 570 | pthread_jit_write_protect_np(1);\ncpython-3.14\u003e | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\ncpython-3.14\u003e 2 errors generated.\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-134292\n* gh-137211\n* gh-137701\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/zanieb","@type":"Person","name":"zanieb"},"datePublished":"2025-05-19T21:52:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/134291/cpython/issues/134291"}
| 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:ea89e17e-bbf2-01de-0eab-73b818f48a96 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA5A:2CFC95:5A6FA6:78C298:6A52FBD8 |
| html-safe-nonce | 80e29c1035f83627686fbc1d56034b5559296c190c1f6c8611df0cc72e2b2bfa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTVBOjJDRkM5NTo1QTZGQTY6NzhDMjk4OjZBNTJGQkQ4IiwidmlzaXRvcl9pZCI6Ijc3NTU1MDg2ODY4MTkzNTk3MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8866622cf10eb1c48d112ad9e12e5cf2b9e7b8585f4dc5d266b0bd090bdbf680 |
| hovercard-subject-tag | issue:3075101855 |
| 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/134291/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a27530f86fc51d74ef5487e4c331b6b2e302df7a33ea6afafd5d9f8120012b0/python/cpython/issues/134291 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a27530f86fc51d74ef5487e4c331b6b2e302df7a33ea6afafd5d9f8120012b0/python/cpython/issues/134291 |
| og:image:alt | As with #100384, we should ensure that symbols use is guarded or the interpreter will crash at runtime on older macOS platforms. There are a couple violations for a target of 10.15 (which we agreed... |
| 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