Stream: git-wasmtime

Topic: wasmtime / issue #2315 wasmtime fails to compile on armv7...


view this post on Zulip Wasmtime GitHub notifications bot (May 05 2022 at 16:45):

alexcrichton commented on issue #2315:

Lots has changed in the interim since this issue was opened, and at this time Wasmtime does not support armv7 as there is no Cranelift backend for that target. Tracking that is probably best done by https://github.com/bytecodealliance/wasmtime/issues/1173

view this post on Zulip Wasmtime GitHub notifications bot (May 05 2022 at 16:45):

alexcrichton closed issue #2315:

I checked out latest git, compiled it with rust-1.45.2 and got this error:

error[E0308]: mismatched types
   --> crates/runtime/src/traphandlers.rs:156:52
    |
156 |         unsafe fn get_pc(cx: *mut libc::c_void) -> *const u8 {
    |                   ------                           ^^^^^^^^^ expected *-ptr, found `()`
    |                   |
    |                   implicitly returns `()` as its body has no tail or `return` expression
    |
    = note: expected raw pointer `*const u8`
                 found unit type `()`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.
error: could not compile `wasmtime-runtime`.

there's also another error, which is expected as armv7 isn't fully implemented yet:

error: unsupported platform
   --> crates/runtime/src/traphandlers.rs:174:21
    |
174 |                     compile_error!("unsupported platform");
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

verbose error log: verbose-error.zip


Last updated: Nov 22 2024 at 17:03 UTC