Skip to content

function signature mismatch when building with WASM_BIGINT #13893

@Mintyboi

Description

@Mintyboi

I have a sample app that results in a function signature mismatch when I build the side module with -s WASM_BIGINT=1. My app runs fine if the side module is not built with -s WASM_BIGINT=1.

Unfortunately I have not done much debugging into this at the moment.
I was thinking if anyone can help to point me to where I can start looking into.
Meanwhile I'll step through the wasm code from the chrome dev console to see if I can find anything.

A reproducer can be found here:
funcSigMismatch.zip

These are the command I used to build the app:
side module: emcc side.cpp -Oz -s SIDE_MODULE=2 --profiling -flto -fPIC -s WASM_BIGINT=1 -o side.wasm
main module emcc main.cpp -Oz -s MAIN_MODULE=2 --profiling -s WASM_BIGINT=1 --pre-js preload.js -flto -fPIC --profiling -s EXPORTED_FUNCTIONS=['_main','__Znwm','__ZTI4Base','__ZTVN10__cxxabiv120__si_class_type_infoE'] -o index.js

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions