-
Notifications
You must be signed in to change notification settings - Fork 829
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
Undefined reference to wasmer_raise_trap
when using native runtime
#1928
Comments
Thanks for reporting the issue! Can you confirm which version of Wasmer you're using as well as what platform you're running on? Looks like Linux but it'd be good to confirm x86_64 or aarch64. Also if possible, can you share the Wasm file or source code of the program compiled to Wasm that's triggering this? It's helpful to have all the pieces ready so that way we can definitely reproduce it when looking into it. |
I can confirm that on wasmerio/wasmer master: On aarch64 Linux Native + LLVM works fine in the following example It also works fine on x86_64 OSX, both LLVM and Cranelift. |
This repo might be related (saw it over the weekend): https://github.com/vlakreeh/reproduce-wasmer-cranelift-bug |
@kaimast If you're using Wasmer as a library can you try adding https://github.com/wasmerio/wasmer/blob/master/.cargo/config.toml in |
I'm using the 1.0.0 beta from crates.io. And yes I am on x86_64 linux. Adding the rustflag does indeed seem to fix it! |
Glad to hear that! We need to document this more clearly somewhere but I'm not exactly sure where... We can close this issue with a PR adding documentation explaining this somewhere. |
This issue is a duplicate of #2107 |
Hi,
I have some wasm code that compiles and runs fine using llvm/jit but does not run with llvm/native. I get the following error.
It looks like wasmer is not linking something correctly, or maybe I need to define these symbols?
The text was updated successfully, but these errors were encountered: