Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

compilation fails for target aarch64-apple-visionos #384

Closed
adiibanez opened this issue Mar 20, 2025 · 2 comments
Closed

compilation fails for target aarch64-apple-visionos #384

adiibanez opened this issue Mar 20, 2025 · 2 comments

Comments

@adiibanez
Copy link

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
@sunfishcode
Copy link
Member

The error here will be fixed by #386, however this issue will also depend on strawlab/iana-time-zone#146 being available in a release.

@sunfishcode
Copy link
Member

This is now fixed in cap-std 3.4.3, and it appears iana-time-zone has had a release as well.

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

No branches or pull requests

2 participants