Closed
Description
i was trying to install cranelift as per: https://github.com/bjorn3/rustc_codegen_cranelift/tree/61667dedf55e3e5aa584f7ae2bd0471336b92ce9
running y.rs
I get:
RUST_BACKTRACE=1 ./y.rs prepare # download and patch sysroot src and install hyperfine for benchmarking
[BUILD] y.rs
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: "Provided allocation has wrong size for slot count 131072"', compiler/rustc_metadata/src/rmeta/decoder.rs:263:29
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::result::unwrap_failed
3: rustc_metadata::rmeta::decoder::CrateMetadata::new
4: rustc_metadata::creader::CrateLoader::maybe_resolve_crate
5: rustc_metadata::creader::CrateLoader::maybe_resolve_crate
6: rustc_metadata::creader::CrateLoader::process_extern_crate
7: <rustc_resolve::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast::visit::Visitor>::visit_item
8: rustc_ast::visit::walk_item
9: <rustc_resolve::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast::visit::Visitor>::visit_item
10: rustc_expand::expand::AstFragment::visit_with
11: rustc_resolve::macros::<impl rustc_expand::base::ResolverExpand for rustc_resolve::Resolver>::visit_ast_fragment_with_placeholders
12: rustc_expand::expand::MacroExpander::collect_invocations
13: rustc_expand::expand::MacroExpander::fully_expand_fragment
14: rustc_expand::expand::MacroExpander::expand_crate
15: rustc_session::utils::<impl rustc_session::session::Session>::time
16: rustc_interface::passes::configure_and_expand
17: rustc_interface::queries::Queries::expansion
18: rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter
19: rustc_span::with_source_map
20: scoped_tls::ScopedKey<T>::set
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: internal compiler error: unexpected panic
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.57.0-nightly (aa8f2d432 2021-09-18) running on aarch64-apple-darwin
query stack during panic:
end of query stack```
(originally this was during the `info: installing component 'rustfmt'` step)