Skip to content

unresolved import core::sync::atomic::AtomicU64 #2923

@cathaysia

Description

@cathaysia

when I try compile s2n-quic to armv5te-unknown-linux-musleabi, I got such error:

error[E0432]: unresolved import `core::sync::atomic::AtomicU64`
 --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/s2n-quic-platform-0.70.0/src/socket/stats.rs:6:20
  |
6 |     sync::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 `s2n-quic-platform` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

As far as I know, portable_atomic can solve this problem. The AtomicU64 he provided can work on 32-bit systems.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions