Stream: git-wasmtime

Topic: wasmtime / issue #3672 Use of undeclared crate or module ...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 09 2022 at 22:04):

CryZe opened issue #3672:

When compiling wasmtime 0.33 on aarch64 Linux it fails compiling with:

error[E0433]: failed to resolve: use of undeclared crate or module `rustix`
Error:   --> /cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-jit-0.33.0/src/code_memory.rs:60:13
   |
60 |             rustix::process::membarrier(
   |             ^^^^^^ use of undeclared crate or module `rustix`

error[E0433]: failed to resolve: use of undeclared crate or module `rustix`
Error:   --> /cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-jit-0.33.0/src/code_memory.rs:61:17
   |
61 |                 rustix::process::MembarrierCommand::RegisterPrivateExpeditedSyncCore,
   |                 ^^^^^^ use of undeclared crate or module `rustix`

error[E0433]: failed to resolve: use of undeclared crate or module `rustix`
Error:    --> /cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-jit-0.33.0/src/code_memory.rs:174:17
    |
174 |                 rustix::process::membarrier(
    |                 ^^^^^^ use of undeclared crate or module `rustix`

error[E0433]: failed to resolve: use of undeclared crate or module `rustix`
Error:    --> /cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-jit-0.33.0/src/code_memory.rs:175:21
    |
175 |                     rustix::process::MembarrierCommand::PrivateExpeditedSyncCore,
    |                     ^^^^^^ use of undeclared crate or module `rustix`

It might be related to the specific feature combination default-features = false, features = ["cranelift", "parallel-compilation"]

view this post on Zulip Wasmtime GitHub notifications bot (Jan 09 2022 at 22:07):

CryZe commented on issue #3672:

It seems like rustix is an optional dependency:
https://github.com/bytecodealliance/wasmtime/blob/894a4d8301aa8dd72f9a74079a6dc5fb2e6b2e92/crates/jit/Cargo.toml#L32

but it is "unconditionally" used here:
https://github.com/bytecodealliance/wasmtime/blob/894a4d8301aa8dd72f9a74079a6dc5fb2e6b2e92/crates/jit/src/code_memory.rs#L171-L178

view this post on Zulip Wasmtime GitHub notifications bot (Jan 10 2022 at 16:47):

alexcrichton closed issue #3672:

When compiling wasmtime 0.33 on aarch64 Linux it fails compiling with:

error[E0433]: failed to resolve: use of undeclared crate or module `rustix`
Error:   --> /cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-jit-0.33.0/src/code_memory.rs:60:13
   |
60 |             rustix::process::membarrier(
   |             ^^^^^^ use of undeclared crate or module `rustix`

error[E0433]: failed to resolve: use of undeclared crate or module `rustix`
Error:   --> /cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-jit-0.33.0/src/code_memory.rs:61:17
   |
61 |                 rustix::process::MembarrierCommand::RegisterPrivateExpeditedSyncCore,
   |                 ^^^^^^ use of undeclared crate or module `rustix`

error[E0433]: failed to resolve: use of undeclared crate or module `rustix`
Error:    --> /cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-jit-0.33.0/src/code_memory.rs:174:17
    |
174 |                 rustix::process::membarrier(
    |                 ^^^^^^ use of undeclared crate or module `rustix`

error[E0433]: failed to resolve: use of undeclared crate or module `rustix`
Error:    --> /cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-jit-0.33.0/src/code_memory.rs:175:21
    |
175 |                     rustix::process::MembarrierCommand::PrivateExpeditedSyncCore,
    |                     ^^^^^^ use of undeclared crate or module `rustix`

It might be related to the specific feature combination default-features = false, features = ["cranelift", "parallel-compilation"]


Last updated: Nov 22 2024 at 16:03 UTC