Closed
Description
While trying to build wasmex ( wasmtime elixir runtime ) I see this exception related to rustix:
Compiling serde_derive v1.0.219
Compiling synstructure v0.13.1
Compiling wasmtime-versioned-export-macros v30.0.2
Compiling thiserror-impl v1.0.69
Compiling zerovec-derive v0.10.3
Compiling displaydoc v0.2.5
Compiling zstd-sys v2.0.15+zstd.1.5.7
Compiling icu_provider_macros v1.5.0
Compiling cap-primitives v3.4.2
Compiling directories-next v2.0.0
error[E0308]: mismatched types
--> /Users/adrianibanez/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cap-primitives-3.4.2/src/rustix/fs/dir_utils.rs:126:40
|
126 | pub(crate) const fn target_o_path() -> OFlags {
| ------------- ^^^^^^ expected `OFlags`, found `()`
| |
| implicitly returns `()` as its body has no tail or `return` expression
error[E0599]: no associated item named `RSYNC` found for struct `OFlags` in the current scope
--> /Users/adrianibanez/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cap-primitives-3.4.2/src/rustix/fs/oflags.rs:34:27
|
34 | oflags |= OFlags::RSYNC;
| ^^^^^ associated item not found in `OFlags`
|
help: there is an associated constant `DSYNC` with a similar name
|
34 | oflags |= OFlags::DSYNC;
| ~~~~~
Compiling rayon-core v1.12.1
Some errors have detailed explanations: E0308, E0599.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `cap-primitives` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
```
cargo rustc -Zbuild-std --target=aarch64-apple-visionos
I tried these toolchains:
nightly-2024-11-01
nightly-2025-01-01
Metadata
Metadata
Assignees
Labels
No labels