-
Notifications
You must be signed in to change notification settings - Fork 702
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
wasm-interp --enable-exceptions error invalid import "env.saveSetjmp" #2455
Comments
it looks like you're trying to run an emscripten module. wabt is only a wasm engine, not a full wasm runtime, and definitely not an emscripten runtime. however, if you can get a pure-wasi module instead, you can try compiling wabt with wasi support. |
I use WASI sdk with |
oh, in that case, you may be missing wasi-libc? |
do you mean link step or runtime step? I static link with wasi-libc libc.a |
it's trying to import stuff that's not provided by wasi. check wasm-objdump. |
It use setjmp provide by wasi. is wasm-interp support setjmp? |
wasi doesn't provide setjmp |
Starting with LLVM 19 you should see Support for these symbols was added to wasi-libc in WebAssembly/wasi-libc#483 which is part of wasi-sdk-22, but it looks like there is no version of wasi-sdk yet that includes LLVM 19, so there is not yet an official version of wasi-sdk that supports sjlj. I think this is because LLVM 19 has not yet actually been released. Anyway, none of this has anything to do with wabt.. so I think this issue can be closed. |
wasm-interp --enable-exceptions test
error initializing module: invalid import "env.saveSetjmp"
The text was updated successfully, but these errors were encountered: