Skip to content

Instantly share code, notes, and snippets.

@cpu
Created November 27, 2024 21:25
Show Gist options
  • Save cpu/35dc574853a2ad185ba00ded256b20e2 to your computer and use it in GitHub Desktop.
Save cpu/35dc574853a2ad185ba00ded256b20e2 to your computer and use it in GitHub Desktop.
error: internal compiler error: compiler/rustc_monomorphize/src/collector.rs:1038:9: no MIR available for DefId(21:1897 ~ rustls[fbd1]::crypto::aws_lc_rs::hpke::generate_p_curve_key_pair)
thread 'rustc' panicked at 'Box<dyn Any>', /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/compiler/rustc_errors/src/lib.rs:1651:9
stack backtrace:
0: 0x7f87ed96a071 - std::backtrace_rs::backtrace::libunwind::trace::h6aeaf83abc038fe6
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x7f87ed96a071 - std::backtrace_rs::backtrace::trace_unsynchronized::h4f9875212db0ad97
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7f87ed96a071 - std::sys_common::backtrace::_print_fmt::h3f820027e9c39d3b
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/sys_common/backtrace.rs:65:5
3: 0x7f87ed96a071 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hded4932df41373b3
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/sys_common/backtrace.rs:44:22
4: 0x7f87ed9c9d9f - core::fmt::rt::Argument::fmt::hc8ead7746b2406d6
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/core/src/fmt/rt.rs:138:9
5: 0x7f87ed9c9d9f - core::fmt::write::hb1cb56105a082ad9
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/core/src/fmt/mod.rs:1094:21
6: 0x7f87ed95d271 - std::io::Write::write_fmt::h797fda7085c97e57
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/io/mod.rs:1713:15
7: 0x7f87ed969e85 - std::sys_common::backtrace::_print::h492d3c92d7400346
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/sys_common/backtrace.rs:47:5
8: 0x7f87ed969e85 - std::sys_common::backtrace::print::hf74aa2eef05af215
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/sys_common/backtrace.rs:34:9
9: 0x7f87ed96cb47 - std::panicking::default_hook::{{closure}}::h8cad394227ea3de8
10: 0x7f87ed96c934 - std::panicking::default_hook::h249cc184fec99a8a
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:288:9
11: 0x7f87f0ae9b5b - rustc_driver_impl[55b27a31f76e3fb7]::install_ice_hook::{closure#0}
12: 0x7f87ed96d28d - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h0be7fc2421582b49
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/alloc/src/boxed.rs:1999:9
13: 0x7f87ed96d28d - std::panicking::rust_panic_with_hook::h82ebcd5d5ed2fad4
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:709:13
14: 0x7f87f0ff6dc1 - std[a2d7a4c8dd6a1366]::panicking::begin_panic::<rustc_errors[ac1621e430503503]::ExplicitBug>::{closure#0}
15: 0x7f87f0ff2b96 - std[a2d7a4c8dd6a1366]::sys_common::backtrace::__rust_end_short_backtrace::<std[a2d7a4c8dd6a1366]::panicking::begin_panic<rustc_errors[ac1621e430503503]::ExplicitBug>::{closure#0}, !>
16: 0x7f87f0feece6 - std[a2d7a4c8dd6a1366]::panicking::begin_panic::<rustc_errors[ac1621e430503503]::ExplicitBug>
17: 0x7f87f0fec204 - <rustc_errors[ac1621e430503503]::HandlerInner>::bug::<alloc[af44278adca4aa3a]::string::String>
18: 0x7f87f0febfa6 - <rustc_errors[ac1621e430503503]::Handler>::bug::<alloc[af44278adca4aa3a]::string::String>
19: 0x7f87f107a92c - rustc_middle[69e8a450f04f22d]::util::bug::opt_span_bug_fmt::<rustc_span[b25f563e2e6d20a1]::span_encoding::Span>::{closure#0}
20: 0x7f87f1076ffa - rustc_middle[69e8a450f04f22d]::ty::context::tls::with_opt::<rustc_middle[69e8a450f04f22d]::util::bug::opt_span_bug_fmt<rustc_span[b25f563e2e6d20a1]::span_encoding::Span>::{closure#0}, !>::{closure#0}
21: 0x7f87f1076fca - rustc_middle[69e8a450f04f22d]::ty::context::tls::with_context_opt::<rustc_middle[69e8a450f04f22d]::ty::context::tls::with_opt<rustc_middle[69e8a450f04f22d]::util::bug::opt_span_bug_fmt<rustc_span[b25f563e2e6d20a1]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
22: 0x7f87ef1b632d - rustc_middle[69e8a450f04f22d]::util::bug::bug_fmt
23: 0x7f87ef88b084 - rustc_monomorphize[b496d39af143a3d0]::collector::collect_neighbours
24: 0x7f87ef87a559 - rustc_monomorphize[b496d39af143a3d0]::collector::collect_items_rec
25: 0x7f87ef87a9aa - rustc_monomorphize[b496d39af143a3d0]::collector::collect_items_rec
26: 0x7f87ef87a9aa - rustc_monomorphize[b496d39af143a3d0]::collector::collect_items_rec
27: 0x7f87ef87a9aa - rustc_monomorphize[b496d39af143a3d0]::collector::collect_items_rec
28: 0x7f87efe99907 - rustc_data_structures[fff53b7ba24a67d3]::sync::par_for_each_in::<alloc[af44278adca4aa3a]::vec::Vec<rustc_middle[69e8a450f04f22d]::mir::mono::MonoItem>, rustc_monomorphize[b496d39af143a3d0]::collector::collect_crate_mono_items::{closure#1}::{closure#0}>
29: 0x7f87efe995c0 - <rustc_session[3eaa31a6c81d371]::session::Session>::time::<(), rustc_monomorphize[b496d39af143a3d0]::collector::collect_crate_mono_items::{closure#1}>
30: 0x7f87efe991e0 - rustc_monomorphize[b496d39af143a3d0]::collector::collect_crate_mono_items
31: 0x7f87efe975c7 - rustc_monomorphize[b496d39af143a3d0]::partitioning::collect_and_partition_mono_items
32: 0x7f87f00ffce9 - rustc_query_impl[9640443f3247e199]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9640443f3247e199]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2}::{closure#0}, rustc_middle[69e8a450f04f22d]::query::erase::Erased<[u8; 24usize]>>
33: 0x7f87f00ffcbb - <rustc_query_impl[9640443f3247e199]::query_impl::collect_and_partition_mono_items::dynamic_query::{closure#2} as core[3d2408b9a7974bb]::ops::function::FnOnce<(rustc_middle[69e8a450f04f22d]::ty::context::TyCtxt, ())>>::call_once
34: 0x7f87f028aafc - rustc_query_system[18feb85a2a4aa83f]::query::plumbing::try_execute_query::<rustc_query_impl[9640443f3247e199]::DynamicConfig<rustc_query_system[18feb85a2a4aa83f]::query::caches::SingleCache<rustc_middle[69e8a450f04f22d]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[9640443f3247e199]::plumbing::QueryCtxt, false>
35: 0x7f87f028a894 - rustc_query_impl[9640443f3247e199]::query_impl::collect_and_partition_mono_items::get_query_non_incr::__rust_end_short_backtrace
36: 0x7f87efc36ce5 - rustc_codegen_ssa[315ee845a50dcc76]::back::symbol_export::exported_symbols_provider_local
37: 0x7f87efc31b88 - rustc_query_impl[9640443f3247e199]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[9640443f3247e199]::query_impl::exported_symbols::dynamic_query::{closure#2}::{closure#0}, rustc_middle[69e8a450f04f22d]::query::erase::Erased<[u8; 16usize]>>
38: 0x7f87efc31b52 - <rustc_query_impl[9640443f3247e199]::query_impl::exported_symbols::dynamic_query::{closure#2} as core[3d2408b9a7974bb]::ops::function::FnOnce<(rustc_middle[69e8a450f04f22d]::ty::context::TyCtxt, rustc_span[b25f563e2e6d20a1]::def_id::CrateNum)>>::call_once
39: 0x7f87efee6dc7 - rustc_query_system[18feb85a2a4aa83f]::query::plumbing::try_execute_query::<rustc_query_impl[9640443f3247e199]::DynamicConfig<rustc_query_system[18feb85a2a4aa83f]::query::caches::VecCache<rustc_span[b25f563e2e6d20a1]::def_id::CrateNum, rustc_middle[69e8a450f04f22d]::query::erase::Erased<[u8; 16usize]>>, false, false, false>, rustc_query_impl[9640443f3247e199]::plumbing::QueryCtxt, false>
40: 0x7f87f049e647 - rustc_query_impl[9640443f3247e199]::query_impl::exported_symbols::get_query_non_incr::__rust_end_short_backtrace
41: 0x7f87efdff259 - <rustc_metadata[eab3cb5257e0195]::rmeta::encoder::EncodeContext>::encode_crate_root
42: 0x7f87efd92f7b - rustc_metadata[eab3cb5257e0195]::rmeta::encoder::encode_metadata_impl
43: 0x7f87efd8d961 - rustc_data_structures[fff53b7ba24a67d3]::sync::join::<rustc_metadata[eab3cb5257e0195]::rmeta::encoder::encode_metadata::{closure#0}, rustc_metadata[eab3cb5257e0195]::rmeta::encoder::encode_metadata::{closure#1}, (), ()>
44: 0x7f87efd8d569 - rustc_metadata[eab3cb5257e0195]::rmeta::encoder::encode_metadata
45: 0x7f87efd8beee - rustc_metadata[eab3cb5257e0195]::fs::encode_and_write_metadata
46: 0x7f87efd76710 - rustc_interface[2ac6857faa489841]::passes::start_codegen
47: 0x7f87efd7486d - <rustc_middle[69e8a450f04f22d]::ty::context::GlobalCtxt>::enter::<<rustc_interface[2ac6857faa489841]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[3d2408b9a7974bb]::result::Result<alloc[af44278adca4aa3a]::boxed::Box<dyn core[3d2408b9a7974bb]::any::Any>, rustc_span[b25f563e2e6d20a1]::ErrorGuaranteed>>
48: 0x7f87efd7289d - <rustc_interface[2ac6857faa489841]::queries::Queries>::ongoing_codegen
49: 0x7f87efd71eb9 - <rustc_interface[2ac6857faa489841]::interface::Compiler>::enter::<rustc_driver_impl[55b27a31f76e3fb7]::run_compiler::{closure#1}::{closure#2}, core[3d2408b9a7974bb]::result::Result<core[3d2408b9a7974bb]::option::Option<rustc_interface[2ac6857faa489841]::queries::Linker>, rustc_span[b25f563e2e6d20a1]::ErrorGuaranteed>>
50: 0x7f87efd6f683 - std[a2d7a4c8dd6a1366]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[2ac6857faa489841]::util::run_in_thread_pool_with_globals<rustc_interface[2ac6857faa489841]::interface::run_compiler<core[3d2408b9a7974bb]::result::Result<(), rustc_span[b25f563e2e6d20a1]::ErrorGuaranteed>, rustc_driver_impl[55b27a31f76e3fb7]::run_compiler::{closure#1}>::{closure#0}, core[3d2408b9a7974bb]::result::Result<(), rustc_span[b25f563e2e6d20a1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3d2408b9a7974bb]::result::Result<(), rustc_span[b25f563e2e6d20a1]::ErrorGuaranteed>>
51: 0x7f87f039b165 - <<std[a2d7a4c8dd6a1366]::thread::Builder>::spawn_unchecked_<rustc_interface[2ac6857faa489841]::util::run_in_thread_pool_with_globals<rustc_interface[2ac6857faa489841]::interface::run_compiler<core[3d2408b9a7974bb]::result::Result<(), rustc_span[b25f563e2e6d20a1]::ErrorGuaranteed>, rustc_driver_impl[55b27a31f76e3fb7]::run_compiler::{closure#1}>::{closure#0}, core[3d2408b9a7974bb]::result::Result<(), rustc_span[b25f563e2e6d20a1]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3d2408b9a7974bb]::result::Result<(), rustc_span[b25f563e2e6d20a1]::ErrorGuaranteed>>::{closure#1} as core[3d2408b9a7974bb]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
52: 0x7f87ed9777b5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9adfc2ae43657457
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/alloc/src/boxed.rs:1985:9
53: 0x7f87ed9777b5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h14fefbfa7b574396
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/alloc/src/boxed.rs:1985:9
54: 0x7f87ed9777b5 - std::sys::unix::thread::Thread::new::thread_start::ha211bb47f6f5cedc
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/sys/unix/thread.rs:108:17
55: 0x7f87ed694ac3 - <unknown>
56: 0x7f87ed726850 - <unknown>
57: 0x0 - <unknown>
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: rustc 1.71.0 (8ede3aae2 2023-07-12) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib --crate-type staticlib -C embed-bitcode=no -C debuginfo=2
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [collect_and_partition_mono_items] collect_and_partition_mono_items
#1 [exported_symbols] collecting exported symbols for crate `0`
end of query stack
error: could not compile `rustls-ffi` (lib)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment