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

Solaris build fails with: #49

Closed
psumbera opened this issue Nov 28, 2024 · 3 comments
Closed

Solaris build fails with: #49

psumbera opened this issue Nov 28, 2024 · 3 comments

Comments

@psumbera
Copy link

   Compiling libc v0.2.166
   Compiling rustix v0.38.41
   Compiling bitflags v2.6.0
   Compiling cfg-if v1.0.0
   Compiling errno v0.3.9
   Compiling fd-lock v4.0.2 (/export/home/test/fd-lock)
error[E0432]: unresolved import `rustix::fs::FlockOperation`
 --> src/sys/unix/read_guard.rs:2:5
  |
2 | use rustix::fs::FlockOperation;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `FlockOperation` in `fs`

error[E0432]: unresolved import `rustix::fs::FlockOperation`
 --> src/sys/unix/rw_lock.rs:2:5
  |
2 | use rustix::fs::FlockOperation;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `FlockOperation` in `fs`

error[E0432]: unresolved import `rustix::fs::FlockOperation`
 --> src/sys/unix/write_guard.rs:2:5
  |
2 | use rustix::fs::FlockOperation;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `FlockOperation` in `fs`

error[E0412]: cannot find type `FlockOperation` in module `fs`
  --> src/sys/unix/mod.rs:13:20
   |
13 |     operation: fs::FlockOperation,
   |                    ^^^^^^^^^^^^^^ not found in `fs`

error[E0425]: cannot find function `fcntl_lock` in module `fs`
  --> src/sys/unix/mod.rs:19:16
   |
19 |     return fs::fcntl_lock(fd, operation);
   |                ^^^^^^^^^^ not found in `fs`

Some errors have detailed explanations: E0412, E0425, E0432.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `fd-lock` (lib) due to 5 previous errors
@psumbera
Copy link
Author

I think that this is caused by recent libc fixes and following fixes to rustix. The issue is now mainly that fd-lock is required by Rust bootstrap.

@psumbera
Copy link
Author

See also bytecodealliance/rustix#1226

@sunfishcode
Copy link
Collaborator

This is fixed in rustix 0.38.42.

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