[GH-ISSUE #1078] Compile error: playback/src/mixer/softmixer.rs:1:25 unresolved import std::sync::atomic::AtomicU64 #504

Closed
opened 2026-02-27 19:31:00 +03:00 by kerem · 3 comments
Owner

Originally created by @pejobo on GitHub (Nov 22, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1078

Describe the bug
I use the docker image for cross compile (with the change described in #994) and get a compile error (see below).
To reproduce
Steps to reproduce the behavior:

  1. Follow cross compile description in wiki, but patch Dockerfile to use debian:bullseye
  2. See error

Log

   Compiling librespot-playback v0.4.2 (/src/playback)
error[E0432]: unresolved import `std::sync::atomic::AtomicU64`
 --> playback/src/mixer/softmixer.rs:1:25
  |
1 | use std::sync::atomic::{AtomicU64, Ordering};
  |                         ^^^^^^^^^
  |                         |
  |                         no `AtomicU64` in `sync::atomic`
  |                         help: a similar name exists in the module: `AtomicU8`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `librespot-playback` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Host (what you are running librespot on):
does not apply

Additional context
does not apply

Originally created by @pejobo on GitHub (Nov 22, 2022). Original GitHub issue: https://github.com/librespot-org/librespot/issues/1078 **Describe the bug** I use the docker image for cross compile (with the change described in #994) and get a compile error (see below). **To reproduce** Steps to reproduce the behavior: 1. Follow cross compile description in wiki, but patch Dockerfile to use debian:bullseye 2. See error **Log** ```` Compiling librespot-playback v0.4.2 (/src/playback) error[E0432]: unresolved import `std::sync::atomic::AtomicU64` --> playback/src/mixer/softmixer.rs:1:25 | 1 | use std::sync::atomic::{AtomicU64, Ordering}; | ^^^^^^^^^ | | | no `AtomicU64` in `sync::atomic` | help: a similar name exists in the module: `AtomicU8` For more information about this error, try `rustc --explain E0432`. error: could not compile `librespot-playback` due to previous error warning: build failed, waiting for other jobs to finish... error: build failed ```` **Host (what you are running `librespot` on):** _does not apply_ **Additional context** _does not apply_
kerem 2026-02-27 19:31:00 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@roderickvd commented on GitHub (Nov 22, 2022):

I don’t know, I don’t use docker. Doesn’t it support 64-bit atomic? What is the host platform? And which Rust version does it run?

<!-- gh-comment-id:1324036551 --> @roderickvd commented on GitHub (Nov 22, 2022): I don’t know, I don’t use docker. Doesn’t it support 64-bit atomic? What is the host platform? And which Rust version does it run?
Author
Owner

@pejobo commented on GitHub (Nov 22, 2022):

The container sources rust from https://sh.rustup.rs, see https://github.com/librespot-org/librespot/blob/dev/contrib/Dockerfile#L29
So I assume it's the latest stable rust version.

Host platform is Debian bullseye (this is my modification to the Dockerfile linked above, see #994 for the reasons for this change).

<!-- gh-comment-id:1324067744 --> @pejobo commented on GitHub (Nov 22, 2022): The container sources rust from https://sh.rustup.rs, see https://github.com/librespot-org/librespot/blob/dev/contrib/Dockerfile#L29 So I assume it's the latest stable rust version. Host platform is Debian bullseye (this is my modification to the Dockerfile linked above, see #994 for the reasons for this change).
Author
Owner

@pejobo commented on GitHub (Nov 22, 2022):

Sorry, I rebuild the container and the problem vanished. Closing.

<!-- gh-comment-id:1324177883 --> @pejobo commented on GitHub (Nov 22, 2022): Sorry, I rebuild the container and the problem vanished. Closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#504
No description provided.