-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
libunwind warning when compiling a wasmtime project against musl #8897
Comments
Seems like a regression of #1904 and #1914. FWIW, we do not rely on the system's libunwind for correctness, we only emit IIRC, different libc implementations have different signatures for |
Context: wasmtime/crates/wasmtime/src/runtime/vm/sys/unix/unwind.rs Lines 19 to 34 in 58b4d09
|
Is there any way to hide this message or will it break any functionality? |
I believe it is the libunwind implementation printing the message, not Wasmtime. You can turn off Wasmtime's generation of unwind info via https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.native_unwind_info which should make it so that the message stops printing. |
Yeah, this solved it for us. I don't really know should I close this issue or not. It's kind of still an issue if wanting to use the native unwind info, but also wanting to target musl. |
This cropping up again is a consequence of #8028 and how So effectively this boils down to the mechanism used to detect libgcc-vs-libunwind. Another possible option is to use weak symbols but that's not possible in stable Rust so would require some C trickery to do that. I don't know of other options myself. |
You can use weak symbols from inline asm, right? Would require a separate implementation for each architecture though. |
Oh? I had no idea! If that works that might be a reasonable way to go here |
We are encountering this in Spin with Wasmtime v25.0.0: fermyon/spin#2889 |
This is an attempt to resolve bytecodealliance#8897.
* Switch libunwind detection to using weak symbols This is an attempt to resolve #8897. * Fix warnings * Run clang-format
Test Case
Load any wasm component (wasip2) with wasmtime 21.0.1, if you compile the rust host against musl, a warning is printed to the terminal:
The component and the whole system works correctly, but the log is confusing and there's no way to tell if something is actually broken.
Expected Results
It should work as with builds against glibc, or builds on macos with no libunwind warning printed to the terminal.
Actual Results
I can't seem to find anything being broken really...
Versions and Environment
Wasmtime version or commit: 21.0.1
Operating system: nixos linux unstable
Architecture: x86_64-unknown-linux-musl for the host and wasm32-wasip1 for the guest.
Extra Info
I found issues from the past, such as
wasmerio/wasmer#2150
#1904
But nothing more recent...
The text was updated successfully, but these errors were encountered: