Stream: git-wasmtime

Topic: wasmtime / issue #10240 Building Wasmtime v0.38.1


view this post on Zulip Wasmtime GitHub notifications bot (Feb 18 2025 at 14:38):

lucasmlp opened issue #10240:

Hi

I'm building Wasmtime C API v0.38.1 so I can use the binaries in wasm-nginx-module@0.7.0.
This is the error I'm getting while running cargo build --release --manifest-path crates/c-api/Cargo.toml:

error[E0061]: this method takes 1 argument but 2 arguments were supplied
[   86s]   --> /home/abuild/rpmbuild/BUILD/wasmtime/vendor/cap-primitives-0.24.3/src/rustix/linux/fs/set_times_impl.rs:20:25
[   86s]    |
[   86s] 20 |             return file.set_times(
[   86s]    |                         ^^^^^^^^^
[   86s] 21 |                 atime.map(SystemTimeSpec::into_std),
[   86s] 22 |                 mtime.map(SystemTimeSpec::into_std),
[   86s]    |                 ----------------------------------- unexpected argument #2 of type `Option<fs_set_times::SystemTimeSpec>`
[   86s]    |
[   86s] note: expected `FileTimes`, found `Option<SystemTimeSpec>`
[   86s]   --> /home/abuild/rpmbuild/BUILD/wasmtime/vendor/cap-primitives-0.24.3/src/rustix/linux/fs/set_times_impl.rs:21:17
[   86s]    |
[   86s] 21 |                 atime.map(SystemTimeSpec::into_std),
[   86s]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[   86s]    = note: expected struct `FileTimes`
[   86s]                 found enum `Option<fs_set_times::SystemTimeSpec>`
[   86s] note: method defined here
[   86s]   --> /home/abuild/rpmbuild/BUILD/rustc-1.84.0-src/library/std/src/fs.rs:1019:12
[   86s] help: remove the extra argument
[   86s]    |
[   86s] 21 -                 atime.map(SystemTimeSpec::into_std),
[   86s] 21 +                 /* FileTimes */,
[   86s]    |
[   86s]
[   86s] error[E0061]: this method takes 1 argument but 2 arguments were supplied
[   86s]   --> /home/abuild/rpmbuild/BUILD/wasmtime/vendor/cap-primitives-0.24.3/src/rustix/linux/fs/set_times_impl.rs:34:25
[   86s]    |
[   86s] 34 |             return file.set_times(
[   86s]    |                         ^^^^^^^^^
[   86s] 35 |                 atime.map(SystemTimeSpec::into_std),
[   86s] 36 |                 mtime.map(SystemTimeSpec::into_std),
[   86s]    |                 ----------------------------------- unexpected argument #2 of type `Option<fs_set_times::SystemTimeSpec>`
[   86s]    |
[   86s] note: expected `FileTimes`, found `Option<SystemTimeSpec>`
[   86s]   --> /home/abuild/rpmbuild/BUILD/wasmtime/vendor/cap-primitives-0.24.3/src/rustix/linux/fs/set_times_impl.rs:35:17
[   86s]    |
[   86s] 35 |                 atime.map(SystemTimeSpec::into_std),
[   86s]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[   86s]    = note: expected struct `FileTimes`
[   86s]                 found enum `Option<fs_set_times::SystemTimeSpec>`
[   86s] note: method defined here
[   86s]   --> /home/abuild/rpmbuild/BUILD/rustc-1.84.0-src/library/std/src/fs.rs:1019:12
[   86s] help: remove the extra argument
[   86s]    |
[   86s] 35 -                 atime.map(SystemTimeSpec::into_std),
[   86s] 35 +                 /* FileTimes */,
[   86s]    |
[   86s]
[   86s] For more information about this error, try `rustc --explain E0061`.
[   86s] error: could not compile `cap-primitives` (lib) due to 2 previous errors

I'm using openSUSE Tumbleweed, Cargo 1.83, and Rust 1.83.

It seems like a version mismatch between Wasmtime dependencies and the Rust version, but I can't exactly say what the issue is here.
I used the same environment to build Wasmtime v29.0.1, and it was built just fine.

Can somebody say what the Cargo and Rust version used in Wasmtime v0.38.1 is?


Last updated: Feb 28 2025 at 02:27 UTC