Stream: git-wasmtime

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


view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2020 at 13:56):

stefson opened Issue #2315:

I checked out latest git and compiled 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 fully suspected 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

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2020 at 13:56):

stefson labeled Issue #2315:

I checked out latest git and compiled 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 fully suspected 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

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2020 at 14:16):

stefson commented on Issue #2315:

I'm doing this test compile every once in a while to stop the code base from decaying further, making it even more difficult to work on it in the future and maybe implement full armv7 support. Sadly, I'm unable to fix this on my own as I don't speak that much rust, but I can offter to test any provided patch.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 26 2020 at 07:12):

stefson edited 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