-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
WebAssembly/binaryen
#2233Description
I'm upgrading Pyodide's build from 1.38.30 with binaryen to 1.38.38 with the upstream LLVM compiler (installed through emsdk).
I'm running into a glitch with uses of the EM_JS macro of the form:
Fatal: Unexpected generated __em_js__ function body: $__em_js____js2python
Any thoughts about how to debug this further?
The branch in progress is here
Full output of the link step is below:
em++ -s EXPORT_NAME="'pyodide'" -o build/pyodide.asm.html src/main.bc src/jsimport.bc src/jsproxy.bc src/js2python.bc src/pyimport.bc src/pyproxy.bc src/python2js.bc src/python2js_buffer.bc src/runpython.bc src/hiwire.bc \
-O3 -s MODULARIZE=1 cpython/installs/python-3.7.0/lib/libpython3.7.a lz4/lz4-1.8.3/lib/liblz4.a -s TOTAL_MEMORY=1073741824 -s ALLOW_MEMORY_GROWTH=1 -s MAIN_MODULE=1 -s EMULATE_FUNCTION_POINTER_CASTS=1 -s LINKABLE=1 -s EXPORT_ALL=1 -s EXPORTED_FUNCTIONS='["___cxa_guard_acquire", "__ZNSt3__28ios_base4initEPv"]' -s WASM=1 -s SWAPPABLE_ASM_MODULE=1 -std=c++14 -Lcpython/build/sqlite-autoconf-3270200/.libs -lsqlite3 -lstdc++ --memory-init-file 0 -s TEXTDECODER=0 -s LZ4=1 -s FORCE_FILESYSTEM=1
wasm-ld: warning: function signature mismatch: _PyTraceMalloc_Fini
>>> defined as () -> i32 in cpython/installs/python-3.7.0/lib/libpython3.7.a(pylifecycle.o)
>>> defined as () -> void in cpython/installs/python-3.7.0/lib/libpython3.7.a(_tracemalloc.o)
Fatal: Unexpected generated __em_js__ function body: $__em_js____js2python
shared:ERROR: '/home/mdboom/Work/builds/compiling/pyodide/emsdk/emsdk/upstream/bin/wasm-emscripten-finalize /tmp/emscripten_temp_gdto1xd3/pyodide.asm.wasm -o /tmp/emscripten_temp_gdto1xd3/pyodide.asm.wasm.o.wasm --detect-features --global-base=0 --initial-stack-pointer=5243904' failed (1)
Metadata
Metadata
Assignees
Labels
No labels