Skip to content

avr-none target fails to build from source on nightly-2025-05-06 #140743

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

Open
joshlf opened this issue May 7, 2025 · 4 comments
Open

avr-none target fails to build from source on nightly-2025-05-06 #140743

joshlf opened this issue May 7, 2025 · 4 comments
Labels
O-AVR Target: AVR processors (ATtiny, ATmega, etc.) T-libs Relevant to the library team, which will review and decide on the PR/issue.

Comments

@joshlf
Copy link
Contributor

joshlf commented May 7, 2025

Our attempt to update to nightly-2025-05-06 fails with this error while building with --target=avr-none -Zbuild-std=core:

   Compiling rustc-std-workspace-core v1.99.0 (/home/runner/.rustup/toolchains/nightly-2025-05-06-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
error[E0432]: unresolved import `core::sync::atomic::AtomicU32`
 --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/compiler_builtins-0.1.157/src/math/libm_math/support/feature_detect.rs:3:26
  |
3 | use core::sync::atomic::{AtomicU32, Ordering};
  |                          ^^^^^^^^^
  |                          |
  |                          no `AtomicU32` in `sync::atomic`
  |                          help: a similar name exists in the module: `AtomicU8`

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 7, 2025
@Urgau
Copy link
Member

Urgau commented May 7, 2025

cc @Patryk27

@workingjubilee workingjubilee added the O-AVR Target: AVR processors (ATtiny, ATmega, etc.) label May 7, 2025
@Urgau Urgau added O-AVR Target: AVR processors (ATtiny, ATmega, etc.) T-libs Relevant to the library team, which will review and decide on the PR/issue. and removed O-AVR Target: AVR processors (ATtiny, ATmega, etc.) needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels May 7, 2025
@Patryk27
Copy link
Contributor

Patryk27 commented May 7, 2025

Looking 🔍

@taiki-e
Copy link
Member

taiki-e commented May 7, 2025

This is rust-lang/compiler-builtins#908 and the fix will be included in the next nightly (#140724).

@Patryk27
Copy link
Contributor

Patryk27 commented May 7, 2025

Yess, was about to write the same, just stumbled upon it 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-AVR Target: AVR processors (ATtiny, ATmega, etc.) T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

6 participants