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
I could be wrong, but I think this will never be matched otherwise since even if ac_sys_release is empty, we would be trying to match Emscripten against Emscripten/
I think the only reason why this hasn't been an issue/picked up before is that usually, for Emscripten builds, emconfigure is executed instead of configure which sets LDSHARED as an environment variable, causing the entire block to be bypassed.
I can confirm that patching configure enabled me to move forwards. The values in the resulting Makefile now looks closer to what is generated in the Pyodide project with an extra -shared argument passed to emcc.
Are you sure it was this commit? The error that you are getting sounds unrelated to this change:
wasm-ld: error: Modules/_testimportmultiple.o: relocation R_WASM_MEMORY_ADDR_SLEB cannot be used against symbol `_testimportmultiple`; recompile with -fPIC
wasm-ld: error: Modules/_testimportmultiple.o: relocation R_WASM_MEMORY_ADDR_SLEB cannot be used against symbol `_testimportmultiple`; recompile with -fPIC
wasm-ld: error: Modules/_testimportmultiple.o: relocation R_WASM_MEMORY_ADDR_SLEB cannot be used against symbol `_foomodule`; recompile with -fPIC
wasm-ld: error: Modules/_testimportmultiple.o: relocation R_WASM_MEMORY_ADDR_SLEB cannot be used against symbol `_barmodule`; recompile with -fPIC
The difference between main and 3.12 is that 3.12 tries to build test modules such as _testimportmultiple.
=> I wrote #120309 to fix the issue: on WASI, no longer build test modules on Python 3.12.
Activity
allsey87 commentedon Jun 6, 2024
I think the only reason why this hasn't been an issue/picked up before is that usually, for Emscripten builds,
emconfigureis executed instead ofconfigurewhich setsLDSHAREDas an environment variable, causing the entire block to be bypassed.allsey87 commentedon Jun 6, 2024
I can confirm that patching
configureenabled me to move forwards. The values in the resultingMakefilenow looks closer to what is generated in the Pyodide project with an extra-sharedargument passed toemcc.erlend-aasland commentedon Jun 6, 2024
Thanks for the report! It sounds like you have a patch ready; would you like to open a PR?
gh-120154: Fix Emscripten/WASI pattern in case statement for LDSHARED (…
pythongh-120154: Fix Emscripten/WASI pattern in case statement for LD…
[3.13] gh-120154: Fix Emscripten/WASI pattern in case statement for L…
erlend-aasland commentedon Jun 7, 2024
Thanks for the report and the fix, @allsey87!
vstinner commentedon Jun 7, 2024
@allsey87: Thanks for signing again the CLA with your second email address.
pythongh-120154: Fix Emscripten/WASI pattern in case statement for LD…
[3.12] gh-120154: Fix Emscripten/WASI pattern in case statement for L…
encukou commentedon Jun 10, 2024
This broke the stable buildbot wasm32-wasi Non-Debug 3.12, see e.g. here.
allsey87 commentedon Jun 10, 2024
Are you sure it was this commit? The error that you are getting sounds unrelated to this change:
vstinner commentedon Jun 10, 2024
The difference between main and 3.12 is that 3.12 tries to build test modules such as
_testimportmultiple.=> I wrote #120309 to fix the issue: on WASI, no longer build test modules on Python 3.12.
pythongh-120154: On WASI, don't build test modules
allsey87 commentedon Jun 10, 2024
@vstinner not sure if this relevant, but #120204 did change the flags for the buildbot.
Previously:
Now:
I think this is correct though, and any build configuration relying on those flags not being set would be the problem.
pythongh-120154: Fix Emscripten/WASI pattern in case statement for LD…
pythongh-120154: Fix Emscripten/WASI pattern in case statement for LD…
hugovk commentedon Aug 8, 2024
Triage: the linked PRs are merged, can this be closed or is there more to do?
allsey87 commentedon Aug 8, 2024
The linked PRs are indeed merged. Closing.