-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
--disable-gil & --enable-experimental-jit fails to build on M1 Mac #118844
Comments
Full compilation error:
|
Thanks! I’m not sure if this is a build configuration that’s been given any thought yet... @savannahostrowski, interested in taking this too? I’m on my phone now, but I think we probably just need to |
Here' the code sample that is generated: memcpy(data, data_body, sizeof(data_body));
patch_64(data + 0x0, instruction->oparg);
memcpy(code, code_body, sizeof(code_body));
patch_aarch64_33rx(code + 0x30, (uintptr_t)data);
patch_aarch64_26r(code + 0x16c, (uintptr_t)code + sizeof(code_body));
patch_aarch64_33rx(code + 0x190, (uintptr_t)data);
patch_aarch64_26r(code + 0x1c8, instruction_starts[instruction->error_target]);
patch_aarch64_16a(code + 0x1d0, (uintptr_t)&_PyEval_FormatExcUnbound);
patch_aarch64_16b(code + 0x1d4, (uintptr_t)&_PyEval_FormatExcUnbound);
patch_aarch64_16c(code + 0x1d8, (uintptr_t)&_PyEval_FormatExcUnbound);
patch_aarch64_16d(code + 0x1dc, (uintptr_t)&_PyEval_FormatExcUnbound);
patch_aarch64_16a(code + 0x1e8, (uintptr_t)&_PyCriticalSection_Resume);
patch_aarch64_16b(code + 0x1ec, (uintptr_t)&_PyCriticalSection_Resume);
patch_aarch64_16c(code + 0x1f0, (uintptr_t)&_PyCriticalSection_Resume);
patch_aarch64_16d(code + 0x1f4, (uintptr_t)&_PyCriticalSection_Resume);
patch_aarch64_16a(code + 0x200, (uintptr_t)&_PyThreadState_GetCurrent);
patch_aarch64_16b(code + 0x204, (uintptr_t)&_PyThreadState_GetCurrent);
patch_aarch64_16c(code + 0x208, (uintptr_t)&_PyThreadState_GetCurrent);
patch_aarch64_16d(code + 0x20c, (uintptr_t)&_PyThreadState_GetCurrent); |
Yep - feel free to assign to me @brandtbucher! I'll take a look tonight or tomorrow! |
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 |
…ble-experimental-jit (GH-118935)
… --enable-experimental-jit (pythonGH-118935) (cherry picked from commit 5b941e5) Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
@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
Adding it allows the compilation to succeed. I don't see it in the |
Ah, sorry, looks like the backport failed! Re-running it now... |
...done! |
… --enable-experimental-jit (pythonGH-118935)
Bug report
Bug description:
On my M1 Mac, if I configure like so:
./configure --disable-gil --enable-experimental-jit
I get a compilation error:(followed by many more of the same error).
I don't recall if I've tried this configure combination before or not. I'm using Apple's clang on an up-to-date MacOS (14.4.1):
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
--disable-gil
&--enable-experimental-jit
fails to build #118935The text was updated successfully, but these errors were encountered: