-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Build failure without thread local support #127865
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
Comments
I suspect the fix is to just change that to |
@ZeroIntensity thread-locals are not necessary for multithreading. |
It's good to fix the erroneous calls to Lines 74 to 78 in 487fdbe
|
@velemas what compiler and system are you using?
That makes me think we should adjust the condition in pyport.h to remove the Lines 508 to 509 in 487fdbe
|
@colesbury It is the local mainframe system compiler based on LLVM with C11 support but all C11 threading features are still missing there. |
That part is covered with local patching by falling back to PyThread_tss_*() API as the comment suggests. |
What do you mean by "local patching"? The thread state doesn't fall back to |
@ZeroIntensity There is a port of python for the mainframe and that part is covered with the port patches from the mainframe maintainers (incl. me). |
…GH-127866) This PR fixes the build issue introduced by the commit 628f6eb from GH-112207 on systems without thread local support.
…upport (pythonGH-127866) This PR fixes the build issue introduced by the commit 628f6eb from pythonGH-112207 on systems without thread local support. (cherry picked from commit f823910) Co-authored-by: velemas <10437413+velemas@users.noreply.github.com>
Thanks! |
Do you think it's worth trying to fix (and test) building Python without thread locals? Using |
I think the opposite: we should get rid of
I don't think a There was a proposal WG14 N2291 for C23 to make |
Now I'm curious what "unnamed company" has against thread locals! Anyways, removing the macro seems reasonable if everything we support must have thread locals. It might be worth deprecating |
It is not 👁️ 🐝 M. The mainframe system was originally developed by Siemens. But I guess all mainframes have their hardships supporting thread locals. |
…upport (pythonGH-127866) This PR fixes the build issue introduced by the commit 628f6eb from pythonGH-112207 on systems without thread local support.
Bug report
Bug description:
When building environments without thread local support, this build failure occurs:
The issue is caused by incomplete change introduced with the commit 628f6eb from the PR #112207.
CPython versions tested on:
3.13
Operating systems tested on:
Other
Linked PRs
The text was updated successfully, but these errors were encountered: