-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
gh-120326: Include intrin.h
on Windows
#120329
Conversation
@cdgriffith can you confirm that this resolves the issue? |
intrih.h
on Windowsintrin.h
on Windows
@Eclips4 The build completes, and produces a 3.14 executable (assuming this will also be merged into 3.13). Thank you for fast fix! |
Misc/NEWS.d/next/Build/2024-06-11-00-38-05.gh-issue-120326.JHSDF1.rst
Outdated
Show resolved
Hide resolved
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, I just left minor suggestions.
…DF1.rst Co-authored-by: Victor Stinner <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
Thanks for the review, Victor. |
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
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.
Oh wait, now I recall vaguely a C++20 module issue if the include is done inside a extern "C" { ... }
. Would it be possible to move the include to Python.h, and add a comment explaining why it's needed, mention at least one function which is used?
Also, is this include only needed for Free Threading, or for JIT compiler, or both?
Thanks, I enabled auto-merge. For example, I see that _Py_ThreadId() uses:
|
@vstinner I've disabled automerge due to failure of "Tests / Windows (free-threading) / build and test (x86) (pull_request)" job (see https://github.com/python/cpython/actions/runs/9468440435/attempts/1?pr=120329) . I've re-run it and seems it will pass (UPD: Yes, it is). I don't know if it is related to this pull request, but it is definitely something strange, and I am not sure we can merge it now. However, I cannot reproduce the failure from the job locally on my Windows setup :( |
…ythonGH-120329) (cherry picked from commit 939c201) Co-authored-by: Kirill Podoprigora <[email protected]>
GH-120363 is a backport of this pull request to the 3.13 branch. |
I don't see how an include can trigger this issue. It's strange since the job passed when re-run. |
Oh, the x86 job failed again on the commit checks: https://github.com/python/cpython/actions/runs/9470417218/job/26091279722
|
I built Python with Free Threading on Windows for x86: I failed to reproduce the issue. I ran |
Windows x86 Free Threading failed 2x in a row, and then succeeded 5x in a row. This bug is strange. I don't know how to debug it since I cannot reproduce it locally. |
…ythonGH-120329) (cherry picked from commit 939c201) Co-authored-by: Kirill Podoprigora <[email protected]>
GH-120414 is a backport of this pull request to the 3.13 branch. |
--experimental-jit
and--disable-gil
#120326