Skip to content

cpal fails to build for 32bit systems #1277

Description

@sandreas

I'm trying to build cpal on a bit of an exotic platform (mipsel-unknown-linux-musl - a Hiby R1 audio player) and unfortunately parts of the code seem to rely on 64bit data structures. This results in:

error[E0432]: unresolved import `std::sync::atomic::AtomicU64`
 --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cpal-0.18.1/src/host/pulseaudio/stream.rs:3:30
  |
3 |         atomic::{AtomicBool, AtomicU64, Ordering},
  |                              ^^^^^^^^^ no `AtomicU64` in `sync::atomic`
  |
help: a similar name exists in the module
  |
3 -         atomic::{AtomicBool, AtomicU64, Ordering},
3 +         atomic::{AtomicBool, AtomicU32, Ordering},
  |

I'm not sure this can be solved easily, but it may be worth a closer look. Should happen on every 32bit target. Let me know if you need more info.

Best,

sandreas

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