Skip to content

riscv32imac no-std support for wasmtime #8768

@theoparis

Description

@theoparis
error: Wasmtime is being compiled for an architecture that it does not support. If this architecture is one you would like to see supported you may file an issue on Wasmtime's issue tracker: https://github.com/byt
ecodealliance/wasmtime/issues/new
  --> C:\Users\theo\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wasmtime-21.0.1\src\runtime\vm\arch\mod.rs:24:9
   |
24 | /         compile_error!(
25 | |             "Wasmtime is being compiled for an architecture \
26 | |              that it does not support. If this architecture is \
27 | |              one you would like to see supported you may file an \
28 | |              issue on Wasmtime's issue tracker: \
29 | |              https://github.com/bytecodealliance/wasmtime/issues/new\
30 | |         ");
   | |__________^

error[E0432]: unresolved import `core::sync::atomic::AtomicU64`
   --> C:\Users\theo\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wasmtime-21.0.1\src\runtime\store.rs:104:5
    |
104 | use core::sync::atomic::AtomicU64;
    |     ^^^^^^^^^^^^^^^^^^^^---------
    |     |                   |
    |     |                   help: a similar name exists in the module: `AtomicU32`
    |     no `AtomicU64` in `sync::atomic`

error[E0432]: unresolved import `core::sync::atomic::AtomicU64`
 --> C:\Users\theo\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wasmtime-21.0.1\src\runtime\store\data.rs:8:26
  |
8 | use core::sync::atomic::{AtomicU64, Ordering::Relaxed};
  |                          ^^^^^^^^^
  |                          |
  |                          no `AtomicU64` in `sync::atomic`
  |                          help: a similar name exists in the module: `AtomicU32`
  |
  = help: consider importing this unresolved item through its public re-export instead:
          crate::store::AtomicU64

error[E0432]: unresolved import `core::sync::atomic::AtomicU64`
  --> C:\Users\theo\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wasmtime-21.0.1\src\runtime\vm.rs:10:26
   |
10 | use core::sync::atomic::{AtomicU64, AtomicUsize, Ordering};
   |                          ^^^^^^^^^

...

error[E0425]: cannot find value `NEXT_OLDER_FP_FROM_FP_OFFSET` in module `arch`
   --> C:\Users\theo\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wasmtime-21.0.1\src\runtime\vm\traphandlers\backtrace.rs:248:63
    |
248 |             let next_older_fp = *(fp as *mut usize).add(arch::NEXT_OLDER_FP_FROM_FP_OFFSET);
    |                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `arch`

error[E0425]: cannot find function `reached_entry_sp` in module `arch`
   --> C:\Users\theo\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wasmtime-21.0.1\src\runtime\vm\traphandlers\backtrace.rs:249:22
    |
249 |             if arch::reached_entry_sp(next_older_fp, trampoline_sp) {
    |                      ^^^^^^^^^^^^^^^^ not found in `arch`

error[E0277]: the trait bound `u128: From<&v128::V128>` is not satisfied
   --> C:\Users\theo\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wasmtime-21.0.1\src\runtime\externals\global.rs:190:63
    |
190 |                 Val::V128(i) => *definition.as_u128_mut() = i.into(),
    |                                                               ^^^^ the trait `From<&v128::V128>` is not implemented for `u128`, which is required by `&v128::V128: Into<_>`
    |
    = help: the following other types implement trait `From<T>`:
              <u128 as From<Ipv6Addr>>
              <u128 as From<bool>>
              <u128 as From<char>>
              <u128 as From<core::ascii::Char>>
              <u128 as From<u16>>
              <u128 as From<u32>>
              <u128 as From<u64>>
              <u128 as From<u8>>
              <u128 as From<v128::V128>>
    = note: required for `&v128::V128` to implement `Into<u128>`
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions