Closed
Description
cargo +nightly build --target wasm64-unknown-unknown -Zbuild-std
fails with the following error
error: internal compiler error: compiler/rustc_codegen_llvm/src/context.rs:199:13: data-layout for target `wasm64-unknown-unknown`, `e-m:e-p:64:64-i64:64-n32:64-S128-ni:1:10:20`, differs from LLVM target's `wasm64-unknown-unknown` default layout, `e-m:e-p:64:64-p10:8:8-p20:8:8-i64:64-n32:64-S128-ni:1:10:20`
thread 'rustc' panicked at 'Box<dyn Any>', /rustc/082e4ca49770ebc9cb0ee616f3726a67471be8cb/compiler/rustc_errors/src/lib.rs:1313:9
stack backtrace:
0: 0x101737e00 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4b6cfcc8bff01899
1: 0x101789700 - core::fmt::write::hb07daa6d4b732434
2: 0x10172ae58 - std::io::Write::write_fmt::h84ddd778c0c2d08d
3: 0x10173ab00 - std::panicking::default_hook::{{closure}}::h5faac4ca80254748
4: 0x10173a7dc - std::panicking::default_hook::hcb52bdcc4b5b62af
Compiling libc v0.2.121
thread 'rustc' panicked at 'Box<dyn Any>', /rustc/082e4ca49770ebc9cb0ee616f3726a67471be8cb/compiler/rustc_errors/src/lib.rs:1313:9
stack backtrace:
0: 0x100b83e00 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4b6cfcc8bff01899
1: 0x100bd5700 - core::fmt::write::hb07daa6d4b732434
2: 0x100b76e58 - std::io::Write::write_fmt::h84ddd778c0c2d08d
3: 0x100b86b00 - std::panicking::default_hook::{{closure}}::h5faac4ca80254748
4: 0x100b867dc - std::panicking::default_hook::hcb52bdcc4b5b62af
5: 0x107e94978 - rustc_driver[c7232c156e8f1ca]::DEFAULT_HOOK::{closure#0}::{closure#0}
6: 0x100b871dc - std::panicking::rust_panic_with_hook::h0c8ae3594fa0153f
7: 0x10b92b228 - std[a9f1884e343caea3]::panicking::begin_panic::<rustc_errors[2d373aa847274627]::ExplicitBug>::{closure#0}
8: 0x10b92a0cc - std[a9f1884e343caea3]::sys_common::backtrace::__rust_end_short_backtrace::<std[a9f1884e343caea3]::panicking::begin_panic<rustc_errors[2d373aa847274627]::ExplicitBug>::{closure#0}, !>
5: 0x108a48978 - rustc_driver[c7232c156e8f1ca]::DEFAULT_HOOK::{closure#0}::{closure#0}
9: 0x10bd37108 - std[a9f1884e343caea3]::panicking::begin_panic::<rustc_errors[2d373aa847274627]::ExplicitBug>
6: 0x10173b1dc - std::panicking::rust_panic_with_hook::h0c8ae3594fa0153f
10: 0x10b7b1a84 - std[a9f1884e343caea3]::panic::panic_any::<rustc_errors[2d373aa847274627]::ExplicitBug>
7: 0x10c4df228 - std[a9f1884e343caea3]::panicking::begin_panic::<rustc_errors[2d373aa847274627]::ExplicitBug>::{closure#0}
11: 0x10b7b1748 - <rustc_errors[2d373aa847274627]::HandlerInner>::bug::<&alloc[a78b52757dc16ac8]::string::String>
8: 0x10c4de0cc - std[a9f1884e343caea3]::sys_common::backtrace::__rust_end_short_backtrace::<std[a9f1884e343caea3]::panicking::begin_panic<rustc_errors[2d373aa847274627]::ExplicitBug>::{closure#0}, !>
12: 0x10b7b0fa8 - <rustc_errors[2d373aa847274627]::Handler>::bug::<&alloc[a78b52757dc16ac8]::string::String>
13: 0x10b939cf0 - rustc_middle[5cf767f16c22a97b]::ty::context::tls::with_opt::<rustc_middle[5cf767f16c22a97b]::util::bug::opt_span_bug_fmt<rustc_span[a98e6ad0049a95ce]::span_encoding::Span>::{closure#0}, ()>
14: 0x10b93b1ac - rustc_middle[5cf767f16c22a97b]::util::bug::opt_span_bug_fmt::<rustc_span[a98e6ad0049a95ce]::span_encoding::Span>
15: 0x10bd3bfb4 - rustc_middle[5cf767f16c22a97b]::util::bug::bug_fmt
16: 0x10804a13c - rustc_codegen_llvm[dd6674becbc428f]::context::create_module
17: 0x1080051c4 - rustc_codegen_llvm[dd6674becbc428f]::base::compile_codegen_unit::module_codegen
9: 0x10c8eb108 - std[a9f1884e343caea3]::panicking::begin_panic::<rustc_errors[2d373aa847274627]::ExplicitBug>
10: 0x10c365a84 - std[a9f1884e343caea3]::panic::panic_any::<rustc_errors[2d373aa847274627]::ExplicitBug>
11: 0x10c365748 - <rustc_errors[2d373aa847274627]::HandlerInner>::bug::<&alloc[a78b52757dc16ac8]::string::String>
12: 0x10c364fa8 - <rustc_errors[2d373aa847274627]::Handler>::bug::<&alloc[a78b52757dc16ac8]::string::String>
18: 0x10802d754 - <rustc_query_system[f000905e87261d58]::dep_graph::graph::DepGraph<rustc_middle[5cf767f16c22a97b]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[5cf767f16c22a97b]::ty::context::TyCtxt, rustc_span[a98e6ad0049a95ce]::symbol::Symbol, rustc_codegen_ssa[153a3711b62870f6]::ModuleCodegen<rustc_codegen_llvm[dd6674becbc428f]::ModuleLlvm>>
19: 0x108004e3c - rustc_codegen_llvm[dd6674becbc428f]::base::compile_codegen_unit
13: 0x10c4edcf0 - rustc_middle[5cf767f16c22a97b]::ty::context::tls::with_opt::<rustc_middle[5cf767f16c22a97b]::util::bug::opt_span_bug_fmt<rustc_span[a98e6ad0049a95ce]::span_encoding::Span>::{closure#0}, ()>
20: 0x1080308f0 - rustc_codegen_ssa[153a3711b62870f6]::base::codegen_crate::<rustc_codegen_llvm[dd6674becbc428f]::LlvmCodegenBackend>
14: 0x10c4ef1ac - rustc_middle[5cf767f16c22a97b]::util::bug::opt_span_bug_fmt::<rustc_span[a98e6ad0049a95ce]::span_encoding::Span>
15: 0x10c8effb4 - rustc_middle[5cf767f16c22a97b]::util::bug::bug_fmt
16: 0x108bfe13c - rustc_codegen_llvm[dd6674becbc428f]::context::create_module
21: 0x107ff17d0 - <rustc_codegen_llvm[dd6674becbc428f]::LlvmCodegenBackend as rustc_codegen_ssa[153a3711b62870f6]::traits::backend::CodegenBackend>::codegen_crate
22: 0x107f53b34 - <rustc_session[84f26b2988ec6891]::session::Session>::time::<alloc[a78b52757dc16ac8]::boxed::Box<dyn core[d37d367579b502e8]::any::Any>, rustc_interface[9a8095a1182bcac]::passes::start_codegen::{closure#0}>
23: 0x107f52b60 - <rustc_interface[9a8095a1182bcac]::passes::QueryContext>::enter::<<rustc_interface[9a8095a1182bcac]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[d37d367579b502e8]::result::Result<alloc[a78b52757dc16ac8]::boxed::Box<dyn core[d37d367579b502e8]::any::Any>, rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
17: 0x108bb91c4 - rustc_codegen_llvm[dd6674becbc428f]::base::compile_codegen_unit::module_codegen
18: 0x108be1754 - <rustc_query_system[f000905e87261d58]::dep_graph::graph::DepGraph<rustc_middle[5cf767f16c22a97b]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[5cf767f16c22a97b]::ty::context::TyCtxt, rustc_span[a98e6ad0049a95ce]::symbol::Symbol, rustc_codegen_ssa[153a3711b62870f6]::ModuleCodegen<rustc_codegen_llvm[dd6674becbc428f]::ModuleLlvm>>
19: 0x108bb8e3c - rustc_codegen_llvm[dd6674becbc428f]::base::compile_codegen_unit
20: 0x108be48f0 - rustc_codegen_ssa[153a3711b62870f6]::base::codegen_crate::<rustc_codegen_llvm[dd6674becbc428f]::LlvmCodegenBackend>
21: 0x108ba57d0 - <rustc_codegen_llvm[dd6674becbc428f]::LlvmCodegenBackend as rustc_codegen_ssa[153a3711b62870f6]::traits::backend::CodegenBackend>::codegen_crate
24: 0x107fd30d4 - <rustc_interface[9a8095a1182bcac]::queries::Queries>::ongoing_codegen
22: 0x108b07b34 - <rustc_session[84f26b2988ec6891]::session::Session>::time::<alloc[a78b52757dc16ac8]::boxed::Box<dyn core[d37d367579b502e8]::any::Any>, rustc_interface[9a8095a1182bcac]::passes::start_codegen::{closure#0}>
25: 0x107e41424 - <rustc_interface[9a8095a1182bcac]::interface::Compiler>::enter::<rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}::{closure#2}, core[d37d367579b502e8]::result::Result<core[d37d367579b502e8]::option::Option<rustc_interface[9a8095a1182bcac]::queries::Linker>, rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
26: 0x107e99840 - rustc_span[a98e6ad0049a95ce]::with_source_map::<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_interface[9a8095a1182bcac]::interface::create_compiler_and_run<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#1}>
23: 0x108b06b60 - <rustc_interface[9a8095a1182bcac]::passes::QueryContext>::enter::<<rustc_interface[9a8095a1182bcac]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[d37d367579b502e8]::result::Result<alloc[a78b52757dc16ac8]::boxed::Box<dyn core[d37d367579b502e8]::any::Any>, rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
27: 0x107e419b4 - rustc_interface[9a8095a1182bcac]::interface::create_compiler_and_run::<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>
24: 0x108b870d4 - <rustc_interface[9a8095a1182bcac]::queries::Queries>::ongoing_codegen
25: 0x1089f5424 - <rustc_interface[9a8095a1182bcac]::interface::Compiler>::enter::<rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}::{closure#2}, core[d37d367579b502e8]::result::Result<core[d37d367579b502e8]::option::Option<rustc_interface[9a8095a1182bcac]::queries::Linker>, rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
28: 0x107e3ab94 - <scoped_tls[6504442c2c131a01]::ScopedKey<rustc_span[a98e6ad0049a95ce]::SessionGlobals>>::set::<rustc_interface[9a8095a1182bcac]::interface::run_compiler<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
29: 0x107e87c48 - std[a9f1884e343caea3]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[9a8095a1182bcac]::util::run_in_thread_pool_with_globals<rustc_interface[9a8095a1182bcac]::interface::run_compiler<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
26: 0x108a4d840 - rustc_span[a98e6ad0049a95ce]::with_source_map::<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_interface[9a8095a1182bcac]::interface::create_compiler_and_run<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#1}>
27: 0x1089f59b4 - rustc_interface[9a8095a1182bcac]::interface::create_compiler_and_run::<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>
30: 0x107e618fc - <<std[a9f1884e343caea3]::thread::Builder>::spawn_unchecked_<rustc_interface[9a8095a1182bcac]::util::run_in_thread_pool_with_globals<rustc_interface[9a8095a1182bcac]::interface::run_compiler<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>::{closure#1} as core[d37d367579b502e8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
31: 0x100b8faac - std::sys::unix::thread::Thread::new::thread_start::h944e84a760d0c477
28: 0x1089eeb94 - <scoped_tls[6504442c2c131a01]::ScopedKey<rustc_span[a98e6ad0049a95ce]::SessionGlobals>>::set::<rustc_interface[9a8095a1182bcac]::interface::run_compiler<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
29: 0x108a3bc48 - std[a9f1884e343caea3]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[9a8095a1182bcac]::util::run_in_thread_pool_with_globals<rustc_interface[9a8095a1182bcac]::interface::run_compiler<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
30: 0x108a158fc - <<std[a9f1884e343caea3]::thread::Builder>::spawn_unchecked_<rustc_interface[9a8095a1182bcac]::util::run_in_thread_pool_with_globals<rustc_interface[9a8095a1182bcac]::interface::run_compiler<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>::{closure#1} as core[d37d367579b502e8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
31: 0x101743aac - std::sys::unix::thread::Thread::new::thread_start::h944e84a760d0c477
32: 0x18fdce26c - __pthread_deallocate
32: 0x18fdce26c - __pthread_deallocate
note: the compiler unexpectedly panicked. this is a bug.
note: 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: 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.62.0-nightly (082e4ca49 2022-04-26) running on aarch64-apple-darwin
note: rustc 1.62.0-nightly (082e4ca49 2022-04-26) running on aarch64-apple-darwin
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z force-unstable-if-unmarked
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
query stack during panic:
end of query stack
end of query stack
error: could not compile `rustc-std-workspace-core`
warning: build failed, waiting for other jobs to finish...
thread 'rustc' panicked at 'Box<dyn Any>', /rustc/082e4ca49770ebc9cb0ee616f3726a67471be8cb/compiler/rustc_errors/src/lib.rs:1313:9
stack backtrace:
0: 0x1037ffe00 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4b6cfcc8bff01899
1: 0x103851700 - core::fmt::write::hb07daa6d4b732434
2: 0x1037f2e58 - std::io::Write::write_fmt::h84ddd778c0c2d08d
3: 0x103802b00 - std::panicking::default_hook::{{closure}}::h5faac4ca80254748
4: 0x1038027dc - std::panicking::default_hook::hcb52bdcc4b5b62af
5: 0x10ab10978 - rustc_driver[c7232c156e8f1ca]::DEFAULT_HOOK::{closure#0}::{closure#0}
6: 0x1038031dc - std::panicking::rust_panic_with_hook::h0c8ae3594fa0153f
7: 0x10e5a7228 - std[a9f1884e343caea3]::panicking::begin_panic::<rustc_errors[2d373aa847274627]::ExplicitBug>::{closure#0}
8: 0x10e5a60cc - std[a9f1884e343caea3]::sys_common::backtrace::__rust_end_short_backtrace::<std[a9f1884e343caea3]::panicking::begin_panic<rustc_errors[2d373aa847274627]::ExplicitBug>::{closure#0}, !>
9: 0x10e9b3108 - std[a9f1884e343caea3]::panicking::begin_panic::<rustc_errors[2d373aa847274627]::ExplicitBug>
10: 0x10e42da84 - std[a9f1884e343caea3]::panic::panic_any::<rustc_errors[2d373aa847274627]::ExplicitBug>
11: 0x10e42d748 - <rustc_errors[2d373aa847274627]::HandlerInner>::bug::<&alloc[a78b52757dc16ac8]::string::String>
12: 0x10e42cfa8 - <rustc_errors[2d373aa847274627]::Handler>::bug::<&alloc[a78b52757dc16ac8]::string::String>
13: 0x10e5b5cf0 - rustc_middle[5cf767f16c22a97b]::ty::context::tls::with_opt::<rustc_middle[5cf767f16c22a97b]::util::bug::opt_span_bug_fmt<rustc_span[a98e6ad0049a95ce]::span_encoding::Span>::{closure#0}, ()>
14: 0x10e5b71ac - rustc_middle[5cf767f16c22a97b]::util::bug::opt_span_bug_fmt::<rustc_span[a98e6ad0049a95ce]::span_encoding::Span>
15: 0x10e9b7fb4 - rustc_middle[5cf767f16c22a97b]::util::bug::bug_fmt
16: 0x10acc613c - rustc_codegen_llvm[dd6674becbc428f]::context::create_module
17: 0x10ac811c4 - rustc_codegen_llvm[dd6674becbc428f]::base::compile_codegen_unit::module_codegen
18: 0x10aca9754 - <rustc_query_system[f000905e87261d58]::dep_graph::graph::DepGraph<rustc_middle[5cf767f16c22a97b]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[5cf767f16c22a97b]::ty::context::TyCtxt, rustc_span[a98e6ad0049a95ce]::symbol::Symbol, rustc_codegen_ssa[153a3711b62870f6]::ModuleCodegen<rustc_codegen_llvm[dd6674becbc428f]::ModuleLlvm>>
19: 0x10ac80e3c - rustc_codegen_llvm[dd6674becbc428f]::base::compile_codegen_unit
20: 0x10acac8f0 - rustc_codegen_ssa[153a3711b62870f6]::base::codegen_crate::<rustc_codegen_llvm[dd6674becbc428f]::LlvmCodegenBackend>
21: 0x10ac6d7d0 - <rustc_codegen_llvm[dd6674becbc428f]::LlvmCodegenBackend as rustc_codegen_ssa[153a3711b62870f6]::traits::backend::CodegenBackend>::codegen_crate
22: 0x10abcfb34 - <rustc_session[84f26b2988ec6891]::session::Session>::time::<alloc[a78b52757dc16ac8]::boxed::Box<dyn core[d37d367579b502e8]::any::Any>, rustc_interface[9a8095a1182bcac]::passes::start_codegen::{closure#0}>
23: 0x10abceb60 - <rustc_interface[9a8095a1182bcac]::passes::QueryContext>::enter::<<rustc_interface[9a8095a1182bcac]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[d37d367579b502e8]::result::Result<alloc[a78b52757dc16ac8]::boxed::Box<dyn core[d37d367579b502e8]::any::Any>, rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
24: 0x10ac4f0d4 - <rustc_interface[9a8095a1182bcac]::queries::Queries>::ongoing_codegen
25: 0x10aabd424 - <rustc_interface[9a8095a1182bcac]::interface::Compiler>::enter::<rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}::{closure#2}, core[d37d367579b502e8]::result::Result<core[d37d367579b502e8]::option::Option<rustc_interface[9a8095a1182bcac]::queries::Linker>, rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
26: 0x10ab15840 - rustc_span[a98e6ad0049a95ce]::with_source_map::<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_interface[9a8095a1182bcac]::interface::create_compiler_and_run<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#1}>
27: 0x10aabd9b4 - rustc_interface[9a8095a1182bcac]::interface::create_compiler_and_run::<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>
28: 0x10aab6b94 - <scoped_tls[6504442c2c131a01]::ScopedKey<rustc_span[a98e6ad0049a95ce]::SessionGlobals>>::set::<rustc_interface[9a8095a1182bcac]::interface::run_compiler<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
29: 0x10ab03c48 - std[a9f1884e343caea3]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[9a8095a1182bcac]::util::run_in_thread_pool_with_globals<rustc_interface[9a8095a1182bcac]::interface::run_compiler<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
30: 0x10aadd8fc - <<std[a9f1884e343caea3]::thread::Builder>::spawn_unchecked_<rustc_interface[9a8095a1182bcac]::util::run_in_thread_pool_with_globals<rustc_interface[9a8095a1182bcac]::interface::run_compiler<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>::{closure#1} as core[d37d367579b502e8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
31: 0x10380baac - std::sys::unix::thread::Thread::new::thread_start::h944e84a760d0c477
32: 0x18fdce26c - __pthread_deallocate
note: 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: rustc 1.62.0-nightly (082e4ca49 2022-04-26) running on aarch64-apple-darwin
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: could not compile `libc`
error: could not compile `core`
thread 'rustc' panicked at 'Box<dyn Any>', /rustc/082e4ca49770ebc9cb0ee616f3726a67471be8cb/compiler/rustc_errors/src/lib.rs:1313:9
stack backtrace:
0: 0x10337fe00 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4b6cfcc8bff01899
1: 0x1033d1700 - core::fmt::write::hb07daa6d4b732434
2: 0x103372e58 - std::io::Write::write_fmt::h84ddd778c0c2d08d
3: 0x103382b00 - std::panicking::default_hook::{{closure}}::h5faac4ca80254748
4: 0x1033827dc - std::panicking::default_hook::hcb52bdcc4b5b62af
5: 0x10a690978 - rustc_driver[c7232c156e8f1ca]::DEFAULT_HOOK::{closure#0}::{closure#0}
6: 0x1033831dc - std::panicking::rust_panic_with_hook::h0c8ae3594fa0153f
7: 0x10e127228 - std[a9f1884e343caea3]::panicking::begin_panic::<rustc_errors[2d373aa847274627]::ExplicitBug>::{closure#0}
8: 0x10e1260cc - std[a9f1884e343caea3]::sys_common::backtrace::__rust_end_short_backtrace::<std[a9f1884e343caea3]::panicking::begin_panic<rustc_errors[2d373aa847274627]::ExplicitBug>::{closure#0}, !>
9: 0x10e533108 - std[a9f1884e343caea3]::panicking::begin_panic::<rustc_errors[2d373aa847274627]::ExplicitBug>
10: 0x10dfada84 - std[a9f1884e343caea3]::panic::panic_any::<rustc_errors[2d373aa847274627]::ExplicitBug>
11: 0x10dfad748 - <rustc_errors[2d373aa847274627]::HandlerInner>::bug::<&alloc[a78b52757dc16ac8]::string::String>
12: 0x10dfacfa8 - <rustc_errors[2d373aa847274627]::Handler>::bug::<&alloc[a78b52757dc16ac8]::string::String>
13: 0x10e135cf0 - rustc_middle[5cf767f16c22a97b]::ty::context::tls::with_opt::<rustc_middle[5cf767f16c22a97b]::util::bug::opt_span_bug_fmt<rustc_span[a98e6ad0049a95ce]::span_encoding::Span>::{closure#0}, ()>
14: 0x10e1371ac - rustc_middle[5cf767f16c22a97b]::util::bug::opt_span_bug_fmt::<rustc_span[a98e6ad0049a95ce]::span_encoding::Span>
15: 0x10e537fb4 - rustc_middle[5cf767f16c22a97b]::util::bug::bug_fmt
16: 0x10a84613c - rustc_codegen_llvm[dd6674becbc428f]::context::create_module
17: 0x10a8011c4 - rustc_codegen_llvm[dd6674becbc428f]::base::compile_codegen_unit::module_codegen
18: 0x10a829754 - <rustc_query_system[f000905e87261d58]::dep_graph::graph::DepGraph<rustc_middle[5cf767f16c22a97b]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[5cf767f16c22a97b]::ty::context::TyCtxt, rustc_span[a98e6ad0049a95ce]::symbol::Symbol, rustc_codegen_ssa[153a3711b62870f6]::ModuleCodegen<rustc_codegen_llvm[dd6674becbc428f]::ModuleLlvm>>
19: 0x10a800e3c - rustc_codegen_llvm[dd6674becbc428f]::base::compile_codegen_unit
20: 0x10a82c8f0 - rustc_codegen_ssa[153a3711b62870f6]::base::codegen_crate::<rustc_codegen_llvm[dd6674becbc428f]::LlvmCodegenBackend>
21: 0x10a7ed7d0 - <rustc_codegen_llvm[dd6674becbc428f]::LlvmCodegenBackend as rustc_codegen_ssa[153a3711b62870f6]::traits::backend::CodegenBackend>::codegen_crate
22: 0x10a74fb34 - <rustc_session[84f26b2988ec6891]::session::Session>::time::<alloc[a78b52757dc16ac8]::boxed::Box<dyn core[d37d367579b502e8]::any::Any>, rustc_interface[9a8095a1182bcac]::passes::start_codegen::{closure#0}>
23: 0x10a74eb60 - <rustc_interface[9a8095a1182bcac]::passes::QueryContext>::enter::<<rustc_interface[9a8095a1182bcac]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[d37d367579b502e8]::result::Result<alloc[a78b52757dc16ac8]::boxed::Box<dyn core[d37d367579b502e8]::any::Any>, rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
24: 0x10a7cf0d4 - <rustc_interface[9a8095a1182bcac]::queries::Queries>::ongoing_codegen
25: 0x10a63d424 - <rustc_interface[9a8095a1182bcac]::interface::Compiler>::enter::<rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}::{closure#2}, core[d37d367579b502e8]::result::Result<core[d37d367579b502e8]::option::Option<rustc_interface[9a8095a1182bcac]::queries::Linker>, rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
26: 0x10a695840 - rustc_span[a98e6ad0049a95ce]::with_source_map::<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_interface[9a8095a1182bcac]::interface::create_compiler_and_run<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#1}>
27: 0x10a63d9b4 - rustc_interface[9a8095a1182bcac]::interface::create_compiler_and_run::<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>
28: 0x10a636b94 - <scoped_tls[6504442c2c131a01]::ScopedKey<rustc_span[a98e6ad0049a95ce]::SessionGlobals>>::set::<rustc_interface[9a8095a1182bcac]::interface::run_compiler<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
29: 0x10a683c48 - std[a9f1884e343caea3]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[9a8095a1182bcac]::util::run_in_thread_pool_with_globals<rustc_interface[9a8095a1182bcac]::interface::run_compiler<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>
30: 0x10a65d8fc - <<std[a9f1884e343caea3]::thread::Builder>::spawn_unchecked_<rustc_interface[9a8095a1182bcac]::util::run_in_thread_pool_with_globals<rustc_interface[9a8095a1182bcac]::interface::run_compiler<core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>, rustc_driver[c7232c156e8f1ca]::run_compiler::{closure#1}>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>::{closure#0}, core[d37d367579b502e8]::result::Result<(), rustc_errors[2d373aa847274627]::ErrorGuaranteed>>::{closure#1} as core[d37d367579b502e8]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
31: 0x10338baac - std::sys::unix::thread::Thread::new::thread_start::h944e84a760d0c477
32: 0x18fdce26c - __pthread_deallocate
note: 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: rustc 1.62.0-nightly (082e4ca49 2022-04-26) running on aarch64-apple-darwin
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: could not compile `compiler_builtins`