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

Use portable-atomic to support PowerPC #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mgorny
Copy link

@mgorny mgorny commented Apr 27, 2024

Use the portable-atomic crate to fix build failure on PowerPC target that does not support 64-bit atomics natively:

error[E0432]: unresolved import `std::sync::atomic::AtomicU64`
 --> src/archive.rs:7:18
  |
7 |         atomic::{AtomicU64, Ordering},
  |                  ^^^^^^^^^
  |                  |
  |                  no `AtomicU64` in `sync::atomic`
  |                  help: a similar name exists in the module: `AtomicU32`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `tokio-tar` (lib) due to 1 previous error

src/archive.rs Outdated Show resolved Hide resolved
Use the portable-atomic crate to fix build failure on PowerPC target
that does not support 64-bit atomics natively:

```
error[E0432]: unresolved import `std::sync::atomic::AtomicU64`
 --> src/archive.rs:7:18
  |
7 |         atomic::{AtomicU64, Ordering},
  |                  ^^^^^^^^^
  |                  |
  |                  no `AtomicU64` in `sync::atomic`
  |                  help: a similar name exists in the module: `AtomicU32`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `tokio-tar` (lib) due to 1 previous error
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants