Skip to content

compilation errors on target aarch64-apple-visionos #1425

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

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

compilation errors on target aarch64-apple-visionos #1425

adiibanez opened this issue Mar 21, 2025 · 2 comments

Comments

@adiibanez
Copy link

trying to build a project depending on wasmtime-wasi v30.0.2 / rustix v0.38.44

cargo rustc -Zbuild-std --crate-type staticlib --target=aarch64-apple-visionos --features rustler/staticlib
toolchain: nightly-2025-01-01-aarch64-apple-darwin
rustc 1.85.0-nightly (d117b7f21 2024-12-31)

other platforms like ios / macos are fine

   Compiling toml_edit v0.22.24
error[E0308]: mismatched types
   --> /Users/adrianibanez/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/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-1949cf8c6b5b557f/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;
   |                           ~~~~~

@sunfishcode
Copy link
Member

This is a duplicate of bytecodealliance/cap-std#384.

@adiibanez
Copy link
Author

Oh, sorry. I couldn't find the ticket anymore as I was looking in this repo and assumed that I forgot to submit the form

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