Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

wasi-virt installation error #73

Open
gratien-humaapi opened this issue Jul 13, 2024 · 0 comments
Open

wasi-virt installation error #73

gratien-humaapi opened this issue Jul 13, 2024 · 0 comments

Comments

@gratien-humaapi
Copy link

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant