Skip to content

wasi-virt installation error #73

Open
@gratien-humaapi

Description

@gratien-humaapi

I got this error while installing wasi-virt.
I used the first command:
cargo +nightly install --git https://github.com/bytecodealliance/wasi-virt
then this one :
cargo install --git https://github.com/bytecodealliance/wasi-virt

But I have the same error for both.
I have all this installed :
wasmCloud Shell;
Wasmtime;
Wac cli;

The error :
Compiling wasi-virt v0.1.0 (/home/user/.cargo/git/checkouts/wasi-virt-35fb22cb579af1d9/3da2d18)
error[E0432]: unresolved imports walrus::ActiveData, walrus::ActiveDataLocation
--> src/data.rs:4:5
|
4 | ActiveData, ActiveDataLocation, ConstExpr, DataKind, ElementItems, ElementKind,
| ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no ActiveDataLocation in the root
| |
| no ActiveData in the root

error[E0432]: unresolved imports walrus::ActiveData, walrus::ActiveDataLocation
--> src/virt_env.rs:4:16
|
4 | ...alue, ActiveData, ActiveDataLocation, ConstExpr, DataKind, ExportItem, GlobalKi...
| ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no ActiveDataLocation in the root
| |
| no ActiveData in the root

error[E0432]: unresolved imports walrus::ActiveData, walrus::ActiveDataLocation
--> src/walrus_ops.rs:3:16
|
3 | ...alue, ActiveData, ActiveDataLocation, ConstExpr, Data, DataKind, GlobalKind, Me...
| ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no ActiveDataLocation in the root
| |
| no ActiveData in the root

error[E0533]: expected value, found struct variant DataKind::Active
--> src/data.rs:124:13
|
124 | DataKind::Active(ActiveData {
| ^^^^^^^^^^^^^^^^ not a value

error[E0533]: expected value, found struct variant DataKind::Active
--> src/virt_env.rs:149:13
|
149 | DataKind::Active(ActiveData {
| ^^^^^^^^^^^^^^^^ not a value

error[E0164]: expected tuple struct or tuple variant, found struct variant DataKind::Active
--> src/walrus_ops.rs:8:9
|
8 | let DataKind::Active(active_data) = &data.kind else {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a tuple struct or tuple variant

error[E0164]: expected tuple struct or tuple variant, found struct variant DataKind::Active
--> src/walrus_ops.rs:39:9
|
39 | let DataKind::Active(ActiveData {
| ___^
40 | | location: ActiveDataLocation::Absolute(loc),
41 | | ..
42 | | }) = &data.kind
| |
^ not a tuple struct or tuple variant

Some errors have detailed explanations: E0164, E0432, E0533.
For more information about an error, try rustc --explain E0164.
error: could not compile wasi-virt (lib) due to 7 previous errors
error: failed to compile wasi-virt v0.1.0 (https://github.com/bytecodealliance/wasi-virt#3da2d181), intermediate artifacts can be found at /tmp/cargo-install3kwSdN.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions