You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--disable-gil & --enable-experimental-jit fails to build on M1 Mac #118844
changed the title [-]--disable-gil & --wirh-experimental-jit fails to build on M1 Mac[/-][+]--disable-gil & --enable-experimental-jit fails to build on M1 Mac[/+]on May 9, 2024
Thanks! I’m not sure if this is a build configuration that’s been given any thought yet... or if it even makes sense right now (I believe our tier 2 optimization pipeline is disabled on free-threaded builds, but I’d need to check). Regardless, we’re headed towards a future with both of these features and should probably make sure that they at least build together.
@savannahostrowski, interested in taking this too? I’m on my phone now, but I think we probably just need to #include the header where this is defined in jit.c.
FWIW, I'm not sure this is M1-specific. It compiled just fine on my Dell laptop running XUbuntu 22.04. OTOH, on an old MacBook Air I have laying around (dual core Intel i5, MacOS 12.7.4), it failed to compile Python/jit.c in the same fashion as on my M1 MBP. Maybe it's a MacOS issue?
I saw the close-out of the PR and apparent backport to 3.13. I can build fine on main, but compilation still fails for me on 3.13. On both main and 3.13 I used this configure command (grepped from config.status):
I thought the PR was backported to 3.13, but maybe not? Diffing the main and 3.13 versions of Python/jit.c I see this line is missing from the 3.13 version:
#include "pycore_critical_section.h"
Adding it allows the compilation to succeed. I don't see it in the jit.c source on Github either.
Activity
[-]--disable-gil & --wirh-experimental-jit fails to build on M1 Mac[/-][+]--disable-gil & --enable-experimental-jit fails to build on M1 Mac[/+]Eclips4 commentedon May 9, 2024
Full compilation error:
Details
brandtbucher commentedon May 9, 2024
Thanks! I’m not sure if this is a build configuration that’s been given any thought yet...
or if it even makes sense right now (I believe our tier 2 optimization pipeline is disabled on free-threaded builds, but I’d need to check). Regardless, we’re headed towards a future with both of these features and should probably make sure that they at least build together.@savannahostrowski, interested in taking this too? I’m on my phone now, but I think we probably just need to
#includethe header where this is defined injit.c.sobolevn commentedon May 9, 2024
Here' the code sample that is generated:
savannahostrowski commentedon May 9, 2024
Yep - feel free to assign to me @brandtbucher! I'll take a look tonight or tomorrow!
smontanaro commentedon May 9, 2024
FWIW, I'm not sure this is M1-specific. It compiled just fine on my Dell laptop running XUbuntu 22.04. OTOH, on an old MacBook Air I have laying around (dual core Intel i5, MacOS 12.7.4), it failed to compile
Python/jit.cin the same fashion as on my M1 MBP. Maybe it's a MacOS issue?GH-118844: Fix build failures when combining --disable-gil with --ena…
pythonGH-118844: Fix build failures when combining --disable-gil with…
smontanaro commentedon May 13, 2024
@brandtbucher @savannahostrowski
I saw the close-out of the PR and apparent backport to 3.13. I can build fine on main, but compilation still fails for me on 3.13. On both main and 3.13 I used this configure command (grepped from config.status):
I thought the PR was backported to 3.13, but maybe not? Diffing the main and 3.13 versions of
Python/jit.cI see this line is missing from the 3.13 version:Adding it allows the compilation to succeed. I don't see it in the
jit.csource on Github either.brandtbucher commentedon May 13, 2024
Ah, sorry, looks like the backport failed! Re-running it now...
[3.13] GH-118844: Fix build failures when combining --disable-gil wit…
brandtbucher commentedon May 13, 2024
...done!
pythonGH-118844: Fix build failures when combining --disable-gil with…