-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Code
https://github.com/brainstorm/embassy-as5600
Meta
rustc --version --verbose:
% rustc --version --verbose
rustc 1.89.0-nightly (2eef47813 2025-05-22)
binary: rustc
commit-hash: 2eef47813f25df637026ce3288880e5c587abd92
commit-date: 2025-05-22
host: aarch64-apple-darwin
release: 1.89.0-nightly
LLVM version: 20.1.5
Error output
Backtrace
embassy-as5600 % cat /Users/rvalls/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/compiler_builtins-0.1.159/rustc-ice-2025-05-23T12_32_17-73200.txt
thread 'rustc' panicked at compiler/rustc_codegen_ssa/src/back/metadata.rs:372:17:
compiler/rustc_codegen_ssa/src/back/metadata.rs:372:17: AVR CPU not explicitly specified
stack backtrace:
0: 0x1108c73d8 - std::backtrace::Backtrace::create::hccc1129fa456874a
1: 0x10ea371e4 - std[fe6593e6b73280a3]::panicking::update_hook::<alloc[d57c5c1869829367]::boxed::Box<rustc_driver_impl[75c48c11d30a7036]::install_ice_hook::{closure#1}>>::{closure#0}
2: 0x1108e4ca8 - std::panicking::rust_panic_with_hook::h653c63d125cebd0d
3: 0x10f5de75c - std[fe6593e6b73280a3]::panicking::begin_panic::<alloc[d57c5c1869829367]::string::String>::{closure#0}
4: 0x10f5cc3b8 - std[fe6593e6b73280a3]::sys::backtrace::__rust_end_short_backtrace::<std[fe6593e6b73280a3]::panicking::begin_panic<alloc[d57c5c1869829367]::string::String>::{closure#0}, !>
5: 0x1135ec680 - std[fe6593e6b73280a3]::panicking::begin_panic::<alloc[d57c5c1869829367]::string::String>
6: 0x1135f5080 - rustc_middle[e20061b46fa3a76b]::util::bug::opt_span_bug_fmt::<rustc_span[4963dc67a046b933]::span_encoding::Span>::{closure#0}
7: 0x10f6b0e44 - rustc_middle[e20061b46fa3a76b]::ty::context::tls::with_opt::<rustc_middle[e20061b46fa3a76b]::util::bug::opt_span_bug_fmt<rustc_span[4963dc67a046b933]::span_encoding::Span>::{closure#0}, !>::{closure#0}
8: 0x10f6b0914 - rustc_middle[e20061b46fa3a76b]::ty::context::tls::with_context_opt::<rustc_middle[e20061b46fa3a76b]::ty::context::tls::with_opt<rustc_middle[e20061b46fa3a76b]::util::bug::opt_span_bug_fmt<rustc_span[4963dc67a046b933]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
9: 0x1135f4f8c - rustc_middle[e20061b46fa3a76b]::util::bug::bug_fmt
10: 0x10e86bd3c - rustc_codegen_ssa[dd132608ada717f1]::back::metadata::elf_e_flags
11: 0x10e86af2c - rustc_codegen_ssa[dd132608ada717f1]::back::metadata::create_object_file
12: 0x10e86bf5c - rustc_codegen_ssa[dd132608ada717f1]::back::metadata::create_wrapper_file
13: 0x10e83840c - rustc_codegen_ssa[dd132608ada717f1]::back::link::link_rlib
14: 0x10e8366cc - rustc_codegen_ssa[dd132608ada717f1]::back::link::link_binary
15: 0x10f3267bc - <rustc_interface[d28fe6e85601da30]::queries::Linker>::link
16: 0x10ea33e0c - rustc_interface[d28fe6e85601da30]::interface::run_compiler::<(), rustc_driver_impl[75c48c11d30a7036]::run_compiler::{closure#0}>::{closure#1}
17: 0x10ea25d94 - std[fe6593e6b73280a3]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[d28fe6e85601da30]::util::run_in_thread_with_globals<rustc_interface[d28fe6e85601da30]::util::run_in_thread_pool_with_globals<rustc_interface[d28fe6e85601da30]::interface::run_compiler<(), rustc_driver_impl[75c48c11d30a7036]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
18: 0x10ea3a790 - <<std[fe6593e6b73280a3]::thread::Builder>::spawn_unchecked_<rustc_interface[d28fe6e85601da30]::util::run_in_thread_with_globals<rustc_interface[d28fe6e85601da30]::util::run_in_thread_pool_with_globals<rustc_interface[d28fe6e85601da30]::interface::run_compiler<(), rustc_driver_impl[75c48c11d30a7036]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[f1450c254cb96106]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
19: 0x1108e80d4 - std::sys::pal::unix::thread::Thread::new::thread_start::h20dc1b6b94802553
20: 0x180532c0c - __pthread_cond_wait
rustc version: 1.89.0-nightly (2eef47813 2025-05-22)
platform: aarch64-apple-darwin
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.