Skip to content

Got a compiler panic while compiling ESP32-S3 code #135721

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
NotABadger opened this issue Jan 19, 2025 · 5 comments
Closed

Got a compiler panic while compiling ESP32-S3 code #135721

NotABadger opened this issue Jan 19, 2025 · 5 comments
Labels
C-external-bug Category: issue that is caused by bugs in software beyond our control O-xtensa

Comments

@NotABadger
Copy link

NotABadger commented Jan 19, 2025

I've added my code as a zip file to this ticket.
Only been using Rust for a few years in hobby projects. So I can answer superficial questions.
Keep in mind, it is written for embedded hardware. I was trying to implement a SPI display.
To run code: Follow the installation guide of the ESP-Rust book.
Crates used are esp-hal & mididsi
screen_bare_metal_spi_test.tar.gz

Code

see attached zip file

Meta

rustc --version --verbose:

rustc 1.84.0-nightly (b0bd11bcc 2025-01-10) (1.84.0.0)
binary: rustc
commit-hash: b0bd11bcc4e5baf48a4fa8660e360e4a8248966b
commit-date: 2025-01-10
host: x86_64-unknown-linux-gnu
release: 1.84.0-nightly
LLVM version: 18.1.2

Error output

cargo run --release 3> compiling_failed
.txt
   Compiling screen_bare_metal_spi_test v0.1.0 (/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test)
warning: unused import: `esp_hal::time::Instant`
  --> src/bin/main.rs:14:5
   |
14 | use esp_hal::time::Instant;
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `esp_hal::time::now`
  --> src/bin/main.rs:15:5
   |
15 | use esp_hal::time::now;
   |     ^^^^^^^^^^^^^^^^^^

warning: unused import: `esp_hal::time::Duration`
  --> src/bin/main.rs:16:5
   |
16 | use esp_hal::time::Duration;
   |     ^^^^^^^^^^^^^^^^^^^^^^^

warning: unused import: `mipidsi::TestImage`
  --> src/bin/main.rs:25:5
   |
25 | use mipidsi::TestImage;
   |     ^^^^^^^^^^^^^^^^^^

warning: unused import: `embedded_graphics::primitives::Rectangle`
  --> src/bin/main.rs:28:5
   |
28 | use embedded_graphics::primitives::Rectangle;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused imports: `pixelcolor::Rgb666` and `prelude::*`
  --> src/bin/main.rs:29:25
   |
29 | use embedded_graphics::{prelude::*, pixelcolor::Rgb666};
   |                         ^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^

thread 'rustc' panicked at compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs:1824:44:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0:     0x7fa349409cdd - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h40cbc23d08e75e6e
   1:     0x7fa349495283 - core::fmt::write::h72fc263e3921d63f
   2:     0x7fa3494319c9 - std::io::Write::write_fmt::hcc7d2e8b9f0383e4
   3:     0x7fa349409b83 - std::sys::backtrace::BacktraceLock::print::h367a3039ffa34de4
   4:     0x7fa349421de7 - std::panicking::default_hook::{{closure}}::hf80ab8b2a023b306
   5:     0x7fa349421c42 - std::panicking::default_hook::h9db288fb5581d6c3
   6:     0x7fa3422fb498 - <alloc[326f412a89e5869a]::boxed::Box<rustc_driver_impl[11120e4604616cb8]::install_ice_hook::{closure#0}> as core[19c24f2bf64da68c]::ops::function::Fn<(&dyn for<'a, 'b> core[19c24f2bf64da68c]::ops::function::Fn<(&'a std[3c1f75e497f5fe1]::panic::PanicHookInfo<'b>,), Output = ()> + core[19c24f2bf64da68c]::marker::Send + core[19c24f2bf64da68c]::marker::Sync, &std[3c1f75e497f5fe1]::panic::PanicHookInfo)>>::call
   7:     0x7fa34942240d - std::panicking::rust_panic_with_hook::h81634076ecf27e23
   8:     0x7fa34940a216 - std::panicking::begin_panic_handler::{{closure}}::hc739c40ce3082128
   9:     0x7fa349409ee9 - std::sys::backtrace::__rust_end_short_backtrace::h1aa68d986880e1b9
  10:     0x7fa349421ecc - rust_begin_unwind
  11:     0x7fa3494ad690 - core::panicking::panic_fmt::ha0d34e63f154cecc
  12:     0x7fa3494ad71c - core::panicking::panic::h80c9defdaf74510a
  13:     0x7fa3494a8e69 - core::option::unwrap_failed::h6a0ccd5c3d009ffb
  14:     0x7fa3480a9f08 - <rustc_trait_selection[a8595092de99c364]::error_reporting::TypeErrCtxt>::report_similar_impl_candidates
  15:     0x7fa3480d4e8a - <rustc_trait_selection[a8595092de99c364]::error_reporting::TypeErrCtxt>::report_fulfillment_errors
  16:     0x7fa34614f491 - <rustc_hir_typeck[c37f261e904b2689]::fn_ctxt::FnCtxt>::report_ambiguity_errors
  17:     0x7fa3463e0a72 - rustc_hir_typeck[c37f261e904b2689]::typeck
  18:     0x7fa3478cbca0 - rustc_query_impl[139339c607ef3f83]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[139339c607ef3f83]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8ac56485c6056ae4]::query::erase::Erased<[u8; 8usize]>>
  19:     0x7fa347be560c - <rustc_query_impl[139339c607ef3f83]::query_impl::typeck::dynamic_query::{closure#2} as core[19c24f2bf64da68c]::ops::function::FnOnce<(rustc_middle[8ac56485c6056ae4]::ty::context::TyCtxt, rustc_span[6216dc77597e7c6d]::def_id::LocalDefId)>>::call_once
  20:     0x7fa3479c723c - rustc_query_system[58145ffb095b1890]::query::plumbing::try_execute_query::<rustc_query_impl[139339c607ef3f83]::DynamicConfig<rustc_data_structures[7490c3560e13ac19]::vec_cache::VecCache<rustc_span[6216dc77597e7c6d]::def_id::LocalDefId, rustc_middle[8ac56485c6056ae4]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[58145ffb095b1890]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[139339c607ef3f83]::plumbing::QueryCtxt, false>
  21:     0x7fa347ac8a16 - rustc_query_impl[139339c607ef3f83]::query_impl::typeck::get_query_non_incr::__rust_end_short_backtrace
  22:     0x7fa34662880c - <rustc_middle[8ac56485c6056ae4]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[f2f24cae42e238bb]::check_crate::{closure#4}>::{closure#0}
  23:     0x7fa34661bc7d - <rustc_data_structures[7490c3560e13ac19]::sync::parallel::ParallelGuard>::run::<(), rustc_data_structures[7490c3560e13ac19]::sync::parallel::par_for_each_in<&rustc_span[6216dc77597e7c6d]::def_id::LocalDefId, &[rustc_span[6216dc77597e7c6d]::def_id::LocalDefId], <rustc_middle[8ac56485c6056ae4]::hir::map::Map>::par_body_owners<rustc_hir_analysis[f2f24cae42e238bb]::check_crate::{closure#4}>::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>
  24:     0x7fa34641d40e - rustc_hir_analysis[f2f24cae42e238bb]::check_crate
  25:     0x7fa34258fe29 - rustc_interface[fa0ba49808ba01a1]::passes::analysis
  26:     0x7fa3478cbd7e - rustc_query_impl[139339c607ef3f83]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[139339c607ef3f83]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[8ac56485c6056ae4]::query::erase::Erased<[u8; 1usize]>>
  27:     0x7fa347c4b5e8 - <rustc_query_impl[139339c607ef3f83]::query_impl::analysis::dynamic_query::{closure#2} as core[19c24f2bf64da68c]::ops::function::FnOnce<(rustc_middle[8ac56485c6056ae4]::ty::context::TyCtxt, ())>>::call_once
  28:     0x7fa347924a6c - rustc_query_system[58145ffb095b1890]::query::plumbing::try_execute_query::<rustc_query_impl[139339c607ef3f83]::DynamicConfig<rustc_query_system[58145ffb095b1890]::query::caches::SingleCache<rustc_middle[8ac56485c6056ae4]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[139339c607ef3f83]::plumbing::QueryCtxt, false>
  29:     0x7fa347ab5243 - rustc_query_impl[139339c607ef3f83]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  30:     0x7fa342268bfe - <rustc_middle[8ac56485c6056ae4]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[11120e4604616cb8]::run_compiler::{closure#0}::{closure#1}::{closure#6}, core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>
  31:     0x7fa3422b1d65 - <rustc_interface[fa0ba49808ba01a1]::interface::Compiler>::enter::<rustc_driver_impl[11120e4604616cb8]::run_compiler::{closure#0}::{closure#1}, core[19c24f2bf64da68c]::result::Result<core[19c24f2bf64da68c]::option::Option<rustc_interface[fa0ba49808ba01a1]::queries::Linker>, rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>
  32:     0x7fa342333ff2 - <scoped_tls[4cdd8087fbbd96d6]::ScopedKey<rustc_span[6216dc77597e7c6d]::SessionGlobals>>::set::<rustc_interface[fa0ba49808ba01a1]::util::run_in_thread_with_globals<rustc_interface[fa0ba49808ba01a1]::util::run_in_thread_pool_with_globals<rustc_interface[fa0ba49808ba01a1]::interface::run_compiler<core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>, rustc_driver_impl[11120e4604616cb8]::run_compiler::{closure#0}>::{closure#1}, core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>::{closure#0}, core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>
  33:     0x7fa3422e8a9c - rustc_span[6216dc77597e7c6d]::create_session_globals_then::<core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>, rustc_interface[fa0ba49808ba01a1]::util::run_in_thread_with_globals<rustc_interface[fa0ba49808ba01a1]::util::run_in_thread_pool_with_globals<rustc_interface[fa0ba49808ba01a1]::interface::run_compiler<core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>, rustc_driver_impl[11120e4604616cb8]::run_compiler::{closure#0}>::{closure#1}, core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>::{closure#0}, core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
  34:     0x7fa34233c8e2 - std[3c1f75e497f5fe1]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[fa0ba49808ba01a1]::util::run_in_thread_with_globals<rustc_interface[fa0ba49808ba01a1]::util::run_in_thread_pool_with_globals<rustc_interface[fa0ba49808ba01a1]::interface::run_compiler<core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>, rustc_driver_impl[11120e4604616cb8]::run_compiler::{closure#0}>::{closure#1}, core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>::{closure#0}, core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>
  35:     0x7fa3423193c1 - <<std[3c1f75e497f5fe1]::thread::Builder>::spawn_unchecked_<rustc_interface[fa0ba49808ba01a1]::util::run_in_thread_with_globals<rustc_interface[fa0ba49808ba01a1]::util::run_in_thread_pool_with_globals<rustc_interface[fa0ba49808ba01a1]::interface::run_compiler<core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>, rustc_driver_impl[11120e4604616cb8]::run_compiler::{closure#0}>::{closure#1}, core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>::{closure#0}, core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[19c24f2bf64da68c]::result::Result<(), rustc_span[6216dc77597e7c6d]::ErrorGuaranteed>>::{closure#1} as core[19c24f2bf64da68c]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  36:     0x7fa34945f5bb - std::sys::pal::unix::thread::Thread::new::thread_start::hba5155a029b79976
  37:     0x7fa33ec7d148 - start_thread
  38:     0x7fa33ed010cc - __GI___clone3
  39:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: please make sure that you have updated to the latest nightly

note: please attach the file at `/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/rustc-ice-2025-01-19T09_21_44-25127.txt` to your bug report

note: compiler flags: --crate-type bin -C opt-level=s -C lto=fat -C codegen-units=1 -C debuginfo=2 -Z unstable-options -C link-arg=-nostartfiles -C link-arg=-Tlinkall.x -C link-arg=-Tdefmt.x

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [typeck] type-checking `__xtensa_lx_rt_main`
#1 [analysis] running analysis passes on this crate
end of query stack
warning: `screen_bare_metal_spi_test` (bin "screen_bare_metal_spi_test") generated 6 warnings (run `cargo fix --bin "screen_bare_metal_spi_test"` to apply 6 suggestions)
error: could not compile `screen_bare_metal_spi_test` (bin "screen_bare_metal_spi_test"); 6 warnings emitted

Caused by:
  process didn't exit successfully: `/home/matthew/.rustup/toolchains/esp/bin/rustc --crate-name screen_bare_metal_spi_test --edition=2021 src/bin/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=129 --crate-type bin --emit=dep-info,link -C opt-level=s -C lto=fat -C codegen-units=1 -C debuginfo=2 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=e369780af213b473 -C extra-filename=-e369780af213b473 --out-dir /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps --target xtensa-esp32s3-none-elf -L dependency=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps -L dependency=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/release/deps --extern 'noprelude:alloc=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/liballoc-16b73e045e5bd079.rlib' --extern 'noprelude:compiler_builtins=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/libcompiler_builtins-61820923b1ac7ead.rlib' --extern 'noprelude:core=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/libcore-8eb9ead5bc49e7d1.rlib' --extern critical_section=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/libcritical_section-47d07eaefbb3d19f.rlib --extern defmt=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/libdefmt-2b088ea1f301d7a2.rlib --extern defmt_rtt=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/libdefmt_rtt-2377d74e306a9060.rlib --extern embedded_graphics=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/libembedded_graphics-aae4ba3528774618.rlib --extern embedded_hal_bus=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/libembedded_hal_bus-86f2b848072649b8.rlib --extern esp_alloc=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/libesp_alloc-a52415d3d8d18e6c.rlib --extern esp_backtrace=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/libesp_backtrace-d34ab91ea0426a54.rlib --extern esp_hal=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/libesp_hal-55ff3ec47961ec21.rlib --extern mipidsi=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/libmipidsi-6bd19252ffe592d4.rlib --extern screen_bare_metal_spi_test=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/deps/libscreen_bare_metal_spi_test-5768bb05361c0d95.rlib -Z unstable-options -C link-arg=-nostartfiles -C link-arg=-Tlinkall.x -C link-arg=-Tdefmt.x -L /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/build/defmt-bbe50da2d8e91eb3/out -L /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/build/esp-hal-e90889d7f6f6c4a9/out -L /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/build/esp32s3-65dade0c8606f8d8/out -L /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/release/build/xtensa-lx-rt-02e1aa99e4438a5d/out` (exit status: 101)
src/bin/main.rs:14:5

|
14 | use esp_hal::time::Instant;
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: unused import: esp_hal::time::now
--> src/bin/main.rs:15:5
|
15 | use esp_hal::time::now;
| ^^^^^^^^^^^^^^^^^^

warning: unused import: esp_hal::time::Duration
--> src/bin/main.rs:16:5
|
16 | use esp_hal::time::Duration;
| ^^^^^^^^^^^^^^^^^^^^^^^

warning: unused import: mipidsi::TestImage
--> src/bin/main.rs:25:5
|
25 | use mipidsi::TestImage;
| ^^^^^^^^^^^^^^^^^^

warning: unused import: embedded_graphics::primitives::Rectangle
--> src/bin/main.rs:28:5
|
28 | use embedded_graphics::primitives::Rectangle;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused imports: pixelcolor::Rgb666 and prelude::*
--> src/bin/main.rs:29:25
|
29 | use embedded_graphics::{prelude::*, pixelcolor::Rgb666};
| ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^

thread 'rustc' panicked at compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs:1824:44:
called Option::unwrap() on a None value
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::panic
3: core::option::unwrap_failed
4: <rustc_trait_selection::error_reporting::TypeErrCtxt>::report_similar_impl_candidates
5: <rustc_trait_selection::error_reporting::TypeErrCtxt>::report_fulfillment_errors
6: <rustc_hir_typeck::fn_ctxt::FnCtxt>::report_ambiguity_errors
7: rustc_hir_typeck::typeck
[... omitted 2 frames ...]
8: <rustc_middle::hir::map::Map>::par_body_owners::<rustc_hir_analysis::check_crate::{closure#4}>::{closure#0}
9: <rustc_data_structures::sync::parallel::ParallelGuard>::run::<(), rustc_data_structures::sync::parallel::par_for_each_in<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], <rustc_middle::hir::map::Map>::par_body_owners<rustc_hir_analysis::check_crate::{closure#4}>::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>
10: rustc_hir_analysis::check_crate
11: rustc_interface::passes::analysis
[... omitted 2 frames ...]
12: <rustc_middle::ty::context::GlobalCtxt>::enter::<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure#6}, core::result::Result<(), rustc_span::ErrorGuaranteed>>
13: <rustc_interface::interface::Compiler>::enter::<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_span::ErrorGuaranteed>>
14: <scoped_tls::ScopedKey<rustc_span::SessionGlobals>>::set::<rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>
15: rustc_span::create_session_globals_then::<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: please make sure that you have updated to the latest nightly

note: please attach the file at /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/rustc-ice-2025-01-19T09_30_22-28243.txt to your bug report

note: compiler flags: --crate-type bin -C opt-level=s -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=on -C incremental=[REDACTED] -Z unstable-options -C link-arg=-nostartfiles -C link-arg=-Tlinkall.x -C link-arg=-Tdefmt.x

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [typeck] type-checking __xtensa_lx_rt_main
#1 [analysis] running analysis passes on this crate
end of query stack
warning: screen_bare_metal_spi_test (bin "screen_bare_metal_spi_test") generated 6 warnings (run cargo fix --bin "screen_bare_metal_spi_test" to apply 6 suggestions)
error: could not compile screen_bare_metal_spi_test (bin "screen_bare_metal_spi_test"); 6 warnings emitted

Caused by:
process didn't exit successfully: /home/matthew/.rustup/toolchains/esp/bin/rustc --crate-name screen_bare_metal_spi_test --edition=2021 src/bin/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=129 --crate-type bin --emit=dep-info,link -C opt-level=s -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=on --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=ef34b501a97a8c11 -C extra-filename=-ef34b501a97a8c11 --out-dir /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps --target xtensa-esp32s3-none-elf -C incremental=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/incremental -L dependency=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps -L dependency=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/debug/deps --extern 'noprelude:alloc=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/liballoc-1512caddedacf3da.rlib' --extern 'noprelude:compiler_builtins=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libcompiler_builtins-4077c3db8c2eb37a.rlib' --extern 'noprelude:core=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libcore-9a0f746d2d847a70.rlib' --extern critical_section=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libcritical_section-9f65225161fb896d.rlib --extern defmt=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libdefmt-c657a2f2d7e7a401.rlib --extern defmt_rtt=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libdefmt_rtt-317e42e5650eeb5a.rlib --extern embedded_graphics=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libembedded_graphics-e41c0519d1949542.rlib --extern embedded_hal_bus=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libembedded_hal_bus-c8cecb0aa84631e5.rlib --extern esp_alloc=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libesp_alloc-08f13656ca7d541b.rlib --extern esp_backtrace=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libesp_backtrace-b06a017ce9825da8.rlib --extern esp_hal=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libesp_hal-ce2746cbfa5920b3.rlib --extern mipidsi=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libmipidsi-988715cd7b825ce2.rlib --extern screen_bare_metal_spi_test=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libscreen_bare_metal_spi_test-0087d207e36b78da.rlib -Z unstable-options -C link-arg=-nostartfiles -C link-arg=-Tlinkall.x -C link-arg=-Tdefmt.x -L /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/build/defmt-2c4a5f4b4107e8c3/out -L /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/build/esp-hal-c61d66a8eefff56c/out -L /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/build/esp32s3-af46275828bccdd6/out -L /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/build/xtensa-lx-rt-a87d660fb6ae8a31/out (exit status: 101)
-->

Backtrace

RUST_BACKTRACE=1 cargo build
   Compiling compiler_builtins v0.1.138
   Compiling core v0.0.0 (/home/matthew/.rustup/toolchains/esp/lib/rustlib/src/rust/library/core)
   Compiling proc-macro2 v1.0.93
   Compiling unicode-ident v1.0.14
   Compiling defmt v0.3.10
   Compiling thiserror v2.0.11
   Compiling defmt-macros v0.4.0
   Compiling serde v1.0.217
   Compiling rustversion v1.0.19
   Compiling heck v0.5.0
   Compiling fnv v1.0.7
   Compiling ident_case v1.0.1
   Compiling strsim v0.11.1
   Compiling anyhow v1.0.95
   Compiling equivalent v1.0.1
   Compiling heapless v0.8.0
   Compiling hashbrown v0.15.2
   Compiling termcolor v1.4.1
   Compiling winnow v0.6.24
   Compiling autocfg v1.4.0
   Compiling xtensa-lx v0.10.0
   Compiling portable-atomic v1.10.0
   Compiling embedded-io-async v0.6.1
   Compiling az v1.2.1
   Compiling embedded-hal-async v1.0.0
   Compiling embassy-time-driver v0.2.0
   Compiling embassy-sync v0.6.2
   Compiling object v0.36.7
   Compiling cfg-if v1.0.0
   Compiling esp32s3 v0.30.0
   Compiling paste v1.0.15
   Compiling memchr v2.7.4
   Compiling esp-synopsys-usb-otg v0.4.2
   Compiling indoc v2.0.5
   Compiling defmt-rtt v0.4.1
   Compiling indexmap v2.7.0
   Compiling embedded-hal-bus v0.2.0
   Compiling screen_bare_metal_spi_test v0.1.0 (/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test)
   Compiling num-traits v0.2.19
   Compiling quote v1.0.38
   Compiling litrs v0.4.1
   Compiling syn v2.0.96
   Compiling proc-macro-error-attr2 v2.0.0
   Compiling document-features v0.2.10
   Compiling esp-config v0.3.0
   Compiling proc-macro-error2 v2.0.1
   Compiling darling_core v0.20.10
   Compiling thiserror-impl v2.0.11
   Compiling serde_derive v1.0.217
   Compiling strum_macros v0.26.4
   Compiling esp-build v0.2.0
   Compiling enum-as-inner v0.6.1
   Compiling delegate v0.13.2
   Compiling esp-backtrace v0.15.0
   Compiling darling_macro v0.20.10
   Compiling defmt-parser v0.4.1
   Compiling darling v0.20.10
   Compiling enumset_derive v0.10.0
   Compiling xtensa-lx-rt-proc-macros v0.2.2
   Compiling instability v0.3.7
   Compiling strum v0.26.3
   Compiling rustc-std-workspace-core v1.99.0 (/home/matthew/.rustup/toolchains/esp/lib/rustlib/src/rust/library/rustc-std-workspace-core)
   Compiling alloc v0.0.0 (/home/matthew/.rustup/toolchains/esp/lib/rustlib/src/rust/library/alloc)
   Compiling serde_spanned v0.6.8
   Compiling toml_datetime v0.6.8
   Compiling basic-toml v0.1.9
   Compiling minijinja v2.6.0
   Compiling toml_edit v0.22.22
   Compiling esp-metadata v0.5.0
   Compiling esp-hal v0.23.1
   Compiling toml v0.8.19
   Compiling proc-macro-crate v3.2.0
   Compiling bitflags v1.3.2
   Compiling critical-section v1.2.0
   Compiling byteorder v1.5.0
   Compiling nb v1.1.0
   Compiling stable_deref_trait v1.2.0
   Compiling futures-task v0.3.31
   Compiling pin-project-lite v0.2.16
   Compiling futures-core v0.3.31
   Compiling pin-utils v0.1.0
   Compiling void v1.0.2
   Compiling nb v0.1.3
   Compiling futures-sink v0.3.31
   Compiling futures-util v0.3.31
   Compiling embedded-hal v0.2.7
   Compiling vcell v0.1.3
   Compiling embedded-storage v0.3.1
   Compiling r0 v1.0.0
   Compiling hash32 v0.3.1
   Compiling embassy-usb-driver v0.1.0
   Compiling enumset v1.1.5
   Compiling embedded-storage-async v0.4.1
   Compiling gcd v2.3.0
   Compiling ral-registers v0.1.3
   Compiling embedded-can v0.4.1
   Compiling linked_list_allocator v0.10.5
   Compiling embedded-hal v1.0.0
   Compiling embedded-io v0.6.1
   Compiling embassy-futures v0.1.1
   Compiling embedded-hal-nb v1.0.0
   Compiling fugit v0.3.7
   Compiling bitfield v0.17.0
   Compiling bytemuck v1.21.0
   Compiling bitflags v2.8.0
   Compiling ufmt-write v0.1.0
   Compiling micromath v2.1.0
   Compiling rand_core v0.6.4
   Compiling usb-device v0.3.2
   Compiling esp-alloc v0.6.0
   Compiling float-cmp v0.9.0
   Compiling chrono v0.4.39
   Compiling embedded-graphics-core v0.4.0
   Compiling esp-hal-procmacros v0.16.0
   Compiling embassy-time v0.4.0
   Compiling embedded-graphics v0.8.1
   Compiling mipidsi v0.9.0
   Compiling embassy-embedded-hal v0.3.0
   Compiling embassy-usb-synopsys-otg v0.2.0
   Compiling xtensa-lx-rt v0.18.0
warning: unused import: `esp_hal::time::Instant`
  --> src/bin/main.rs:14:5
   |
14 | use esp_hal::time::Instant;
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `esp_hal::time::now`
  --> src/bin/main.rs:15:5
   |
15 | use esp_hal::time::now;
   |     ^^^^^^^^^^^^^^^^^^

warning: unused import: `esp_hal::time::Duration`
  --> src/bin/main.rs:16:5
   |
16 | use esp_hal::time::Duration;
   |     ^^^^^^^^^^^^^^^^^^^^^^^

warning: unused import: `mipidsi::TestImage`
  --> src/bin/main.rs:25:5
   |
25 | use mipidsi::TestImage;
   |     ^^^^^^^^^^^^^^^^^^

warning: unused import: `embedded_graphics::primitives::Rectangle`
  --> src/bin/main.rs:28:5
   |
28 | use embedded_graphics::primitives::Rectangle;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused imports: `pixelcolor::Rgb666` and `prelude::*`
  --> src/bin/main.rs:29:25
   |
29 | use embedded_graphics::{prelude::*, pixelcolor::Rgb666};
   |                         ^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^

thread 'rustc' panicked at compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs:1824:44:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: core::option::unwrap_failed
   4: <rustc_trait_selection::error_reporting::TypeErrCtxt>::report_similar_impl_candidates
   5: <rustc_trait_selection::error_reporting::TypeErrCtxt>::report_fulfillment_errors
   6: <rustc_hir_typeck::fn_ctxt::FnCtxt>::report_ambiguity_errors
   7: rustc_hir_typeck::typeck
      [... omitted 2 frames ...]
   8: <rustc_middle::hir::map::Map>::par_body_owners::<rustc_hir_analysis::check_crate::{closure#4}>::{closure#0}
   9: <rustc_data_structures::sync::parallel::ParallelGuard>::run::<(), rustc_data_structures::sync::parallel::par_for_each_in<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], <rustc_middle::hir::map::Map>::par_body_owners<rustc_hir_analysis::check_crate::{closure#4}>::{closure#0}>::{closure#0}::{closure#1}::{closure#0}>
  10: rustc_hir_analysis::check_crate
  11: rustc_interface::passes::analysis
      [... omitted 2 frames ...]
  12: <rustc_middle::ty::context::GlobalCtxt>::enter::<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure#6}, core::result::Result<(), rustc_span::ErrorGuaranteed>>
  13: <rustc_interface::interface::Compiler>::enter::<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_span::ErrorGuaranteed>>
  14: <scoped_tls::ScopedKey<rustc_span::SessionGlobals>>::set::<rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>
  15: rustc_span::create_session_globals_then::<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}, core::result::Result<(), rustc_span::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: please make sure that you have updated to the latest nightly

note: please attach the file at `/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/rustc-ice-2025-01-19T09_30_22-28243.txt` to your bug report

note: compiler flags: --crate-type bin -C opt-level=s -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=on -C incremental=[REDACTED] -Z unstable-options -C link-arg=-nostartfiles -C link-arg=-Tlinkall.x -C link-arg=-Tdefmt.x

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [typeck] type-checking `__xtensa_lx_rt_main`
#1 [analysis] running analysis passes on this crate
end of query stack
warning: `screen_bare_metal_spi_test` (bin "screen_bare_metal_spi_test") generated 6 warnings (run `cargo fix --bin "screen_bare_metal_spi_test"` to apply 6 suggestions)
error: could not compile `screen_bare_metal_spi_test` (bin "screen_bare_metal_spi_test"); 6 warnings emitted

Caused by:
  process didn't exit successfully: `/home/matthew/.rustup/toolchains/esp/bin/rustc --crate-name screen_bare_metal_spi_test --edition=2021 src/bin/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=129 --crate-type bin --emit=dep-info,link -C opt-level=s -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=on --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=ef34b501a97a8c11 -C extra-filename=-ef34b501a97a8c11 --out-dir /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps --target xtensa-esp32s3-none-elf -C incremental=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/incremental -L dependency=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps -L dependency=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/debug/deps --extern 'noprelude:alloc=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/liballoc-1512caddedacf3da.rlib' --extern 'noprelude:compiler_builtins=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libcompiler_builtins-4077c3db8c2eb37a.rlib' --extern 'noprelude:core=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libcore-9a0f746d2d847a70.rlib' --extern critical_section=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libcritical_section-9f65225161fb896d.rlib --extern defmt=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libdefmt-c657a2f2d7e7a401.rlib --extern defmt_rtt=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libdefmt_rtt-317e42e5650eeb5a.rlib --extern embedded_graphics=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libembedded_graphics-e41c0519d1949542.rlib --extern embedded_hal_bus=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libembedded_hal_bus-c8cecb0aa84631e5.rlib --extern esp_alloc=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libesp_alloc-08f13656ca7d541b.rlib --extern esp_backtrace=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libesp_backtrace-b06a017ce9825da8.rlib --extern esp_hal=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libesp_hal-ce2746cbfa5920b3.rlib --extern mipidsi=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libmipidsi-988715cd7b825ce2.rlib --extern screen_bare_metal_spi_test=/home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/deps/libscreen_bare_metal_spi_test-0087d207e36b78da.rlib -Z unstable-options -C link-arg=-nostartfiles -C link-arg=-Tlinkall.x -C link-arg=-Tdefmt.x -L /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/build/defmt-2c4a5f4b4107e8c3/out -L /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/build/esp-hal-c61d66a8eefff56c/out -L /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/build/esp32s3-af46275828bccdd6/out -L /home/matthew/Git/DicerRoller/Software/RustTestProjects/screen_bare_metal_spi_test/target/xtensa-esp32s3-none-elf/debug/build/xtensa-lx-rt-a87d660fb6ae8a31/out` (exit status: 101)

@NotABadger NotABadger added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jan 19, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jan 19, 2025
@jieyouxu
Copy link
Member

Possibly a duplicate of #135410.

@lqd
Copy link
Member

lqd commented Jan 19, 2025

#135410 should already be fixed on nightly tho 🤔

@jieyouxu
Copy link
Member

Hmm, you're right, that is indeed strange

@saethlin
Copy link
Member

saethlin commented Jan 20, 2025

I am pretty sure OP is using a fork of rustc, so I truly have no idea what the version string means. Our in-tree xtensa targets are broken, so the relevant community has been using a fork. See https://docs.esp-rs.org/book/installation/riscv-and-xtensa.html which is linked from one of the links posted in the issue description.

@NotABadger
Copy link
Author

@saethlin, you are right. I will close this issue. My bad, i'm kind of new in embedded Rust. For the STM32 environment I use the Rust toolchain, and I forgot that Espressif indeed forks their toolchain/compiler

@jieyouxu jieyouxu removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. labels Jan 20, 2025
@saethlin saethlin added O-xtensa C-external-bug Category: issue that is caused by bugs in software beyond our control labels Jan 20, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-external-bug Category: issue that is caused by bugs in software beyond our control O-xtensa
Projects
None yet
Development

No branches or pull requests

5 participants