GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Emscripten: static (non-MAIN_MODULE) builds fail at startup on dynamic-linking-only JS helpers · Issue #156780 · python/cpython Closed Labels OS-emscriptenbuildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug description:CPython's Emscripten platform code is written for the Four such references, each confirmed against Emscripten 6.0.9:
Minimal reproducerThis is the shape of (1) with no CPython involved: #include <emscripten.h> EM_JS(void, probe, (void), { if (!WebAssembly.promising) return; const orig = resolveGlobalSymbol; }) __attribute__((constructor)) void c(void) { probe(); } int main(void) { return 0; } $ emcc t.c -o t.js # links clean, no diagnostic at all $ node t.js # fine, the guard returns early $ node --experimental-wasm-jspi t.js ReferenceError: resolveGlobalSymbol is not defined at probe (t.js:1513:136) at initRuntime (t.js:540:35) Emscripten does warn for library symbols it knows about — referencing Full reproductionI built Note on the fix
Why this is not caught todayEvery wasm test builds through Context for the report: this blocks embedding CPython in Kodi's WebAssembly port, which links statically. CPython versions tested on:3.14, CPython main branch Operating systems tested on:Other Linked PRsActivity
MetadataMetadataAssigneesLabelsOS-emscriptenbuildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |