GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Check compatibility with macOS deployment target during JIT builds · Issue #134291 · python/cpython

Check compatibility with macOS deployment target during JIT builds #134291

New issue
Copy link
New issue
Copy link
Closed
Closed
Check compatibility with macOS deployment target during JIT builds#134291
Copy link
Assignees
zaniebbrandtbucher
Labels
OS-macbuildThe build process and cross-buildThe build process and cross-buildtopic-JITtype-featureA feature request or enhancementA feature request or enhancement

Description

@zanieb
zanieb
opened on May 19, 2025
Issue body actions

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/jit.c:530:5: error: 'pthread_jit_write_protect_np' is only available on macOS 11.0 or newer [-Werror,-Wunguarded-availability-new]
cpython-3.14>   530 |     pthread_jit_write_protect_np(0);
cpython-3.14>       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cpython-3.14> /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
cpython-3.14>   588 | void pthread_jit_write_protect_np(int enabled);
cpython-3.14>       |      ^
cpython-3.14> Python/jit.c:530:5: note: enclose 'pthread_jit_write_protect_np' in a __builtin_available check to silence this warning
cpython-3.14>   530 |     pthread_jit_write_protect_np(0);
cpython-3.14>       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cpython-3.14> Python/jit.c:570:5: error: 'pthread_jit_write_protect_np' is only available on macOS 11.0 or newer [-Werror,-Wunguarded-availability-new]
cpython-3.14>   570 |     pthread_jit_write_protect_np(1);
cpython-3.14>       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cpython-3.14> /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
cpython-3.14>   588 | void pthread_jit_write_protect_np(int enabled);
cpython-3.14>       |      ^
cpython-3.14> Python/jit.c:570:5: note: enclose 'pthread_jit_write_protect_np' in a __builtin_available check to silence this warning
cpython-3.14>   570 |     pthread_jit_write_protect_np(1);
cpython-3.14>       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cpython-3.14> 2 errors generated.

Linked PRs

  • gh-134291: Add unguarded-availability check to JIT builds #134292
  • GH-134291: Support older macOS deployment targets for JIT builds #137211
  • [3.14] GH-134291: Support older macOS deployment targets for JIT builds (GH-137211) #137701

Activity

  1. zanieb
    assigned
    zanieb
    and
    brandtbucher
    on May 19, 2025
  2. zanieb
    added
    buildThe build process and cross-buildThe build process and cross-build
    topic-JIT
    on May 19, 2025
  3. zanieb
    added a commit that references this issue on May 19, 2025

    pythongh-134291: Add `unguarded-availability` check to JIT builds

    be8d888
  4. picnixz
    added
    OS-mac
    type-featureA feature request or enhancementA feature request or enhancement
    on May 19, 2025
  5. brandtbucher
    added a commit that references this issue on Jul 30, 2025

    GH-134291: Support older macOS deployment targets for JIT builds (GH-…

    d591b5e
  6. hugovk
    added a commit that references this issue on Aug 13, 2025

    [3.14] GH-134291: Support older macOS deployment targets for JIT buil…

    2392232
  7. Agent-Hellboy
    added a commit that references this issue on Aug 19, 2025

    pythonGH-134291: Support older macOS deployment targets for JIT builds (

    3dd7f0d
  8. hugovk commented on Aug 21, 2025

    @hugovk
    hugovk
    on Aug 21, 2025
    Member
    More actions

    @zanieb Anything still to do here, or can we close this?

  9. kumaraditya303
    added a commit that references this issue on Sep 9, 2025

    [3.14] pythonGH-134291: Support older macOS deployment targets for JI…

    3210ebf
  10. hugovk
    closed this as completedon Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @brandtbucher
    brandtbucher
  • @zanieb
    zanieb

Labels

OS-macbuildThe build process and cross-buildThe build process and cross-buildtopic-JITtype-featureA feature request or enhancementA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.