jbeich opened issue #7924:
Regresed by #5459 (missed
x86.rs
andarm.rs
). Found while packaging Veloren.$ cargo build --target i686-unknown-linux-gnu [...] error[E0432]: unresolved import `wasmtime_asm_macros::asm_sym` --> crates/fiber/src/unix/x86.rs:13:37 | 13 | use wasmtime_asm_macros::{asm_func, asm_sym}; | ^^^^^^^ no `asm_sym` in the root For more information about this error, try `rustc --explain E0432`. error: could not compile `wasmtime-fiber` (lib) due to previous error
bjorn3 commented on issue #7924:
Wasmtime doesn't work on 32bit x86 and arm32. It is not just a missing fiber implementation (that would be easy to fix), but also missing backends for both architectures in Cranelift, which is a lot harder to fix. See https://github.com/bytecodealliance/wasmtime/issues/1173 and https://github.com/bytecodealliance/wasmtime/issues/1980.
alexcrichton commented on issue #7924:
To add more on what @bjorn3 already mentioned, can you clarify what you mean by regressed by #5459? Wasmtime/Cranelift haven't had support for x86 and arm in quite some time so that PR shouldn't have regressed anything "in the large". If, however, you only need the
wasmtime-fiber
crate and nothing else then I can see that PR regressing the support there. Do you only need thewasmtime-fiber
crate? Given the commit you linked it seems like you're packaging all of Wasmtime so while it doesn't seem like this is the case I wanted to ask to be sure. (if you need all of Wasmtime I'll close this in favor of the issues that @bjorn3 linked tracking 32-bit support)
jbeich closed issue #7924:
Regresed by #5459 (missed
x86.rs
andarm.rs
). Found while packaging Veloren.$ cargo build --target i686-unknown-linux-gnu [...] error[E0432]: unresolved import `wasmtime_asm_macros::asm_sym` --> crates/fiber/src/unix/x86.rs:13:37 | 13 | use wasmtime_asm_macros::{asm_func, asm_sym}; | ^^^^^^^ no `asm_sym` in the root For more information about this error, try `rustc --explain E0432`. error: could not compile `wasmtime-fiber` (lib) due to previous error
jbeich commented on issue #7924:
Indeed. I've got confused by the cruft i.e.,
x86
andarm
support inwasmtime-fiber
which is trivial to fix by removing unusedasm_sym
. Veloren then failed inwasmtime-runtime
due to missing assembly but otherwise built fine (I've stubbed the assembly using x86_64 as example to check for more errors but didn't find any).
Last updated: Nov 22 2024 at 16:03 UTC