icefoxen opened Issue #1229:
Per the docs here: https://bytecodealliance.github.io/wasmtime/contributing-building.html , you should be able to build wasmtime with just
cargo build
. When I try, on Rust stable (1.41), I get:error: failed to read `~/src/wasmtime/crates/wasi-common/wig/WASI/tools/witx/Cargo.toml` Caused by: No such file or directory (os error 2)I actually can't find
witx
at all, though there's plenty of code references to it, and it's published oncrates.io
. The culprit seems to be thewitx
dependency incrates/wasi-common/wig/Cargo.toml
, but changing that to use the crates.io version ofwitx
causes other things to break.In fact, trying to build from source using the 0.12 release archive also breaks with the same problem. Not sure what to say about that! The 0.11 source release seems to have an issue building as well:
Compiling wasi-common v0.11.0 (~/src/wasmtime-0.11.0/crates/wasi-common) error: proc macro panicked --> crates/wasi-common/src/host.rs:12:1 | 12 | witx_host_types!("snapshot" "wasi_snapshot_preview1"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: message: error opening file /home/icefox/tmp/wasmtime-0.11.0/crates/wasi-common/wig/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx: IO error with file "/home/icefox/tmp/wasmtime-0.11.0/crates/wasi-common/wig/WASI/phases/snapshot/witx/w
abrown commented on Issue #1229:
Is it a git submodule issue? Any change after running
git submodule init && git submodule update
?
tschneidereit commented on Issue #1229:
Indeed, initializing submodules was missing from the build instructions. I created #1258 to address that.
abrown closed Issue #1229:
Per the docs here: https://bytecodealliance.github.io/wasmtime/contributing-building.html , you should be able to build wasmtime with just
cargo build
. When I try, on Rust stable (1.41), I get:error: failed to read `~/src/wasmtime/crates/wasi-common/wig/WASI/tools/witx/Cargo.toml` Caused by: No such file or directory (os error 2)I actually can't find
witx
at all, though there's plenty of code references to it, and it's published oncrates.io
. The culprit seems to be thewitx
dependency incrates/wasi-common/wig/Cargo.toml
, but changing that to use the crates.io version ofwitx
causes other things to break.In fact, trying to build from source using the 0.12 release archive also breaks with the same problem. Not sure what to say about that! The 0.11 source release seems to have an issue building as well:
Compiling wasi-common v0.11.0 (~/src/wasmtime-0.11.0/crates/wasi-common) error: proc macro panicked --> crates/wasi-common/src/host.rs:12:1 | 12 | witx_host_types!("snapshot" "wasi_snapshot_preview1"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: message: error opening file /home/icefox/tmp/wasmtime-0.11.0/crates/wasi-common/wig/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx: IO error with file "/home/icefox/tmp/wasmtime-0.11.0/crates/wasi-common/wig/WASI/phases/snapshot/witx/w
Last updated: Nov 22 2024 at 16:03 UTC