Skip to content

Error on installation #46

Closed
Closed
@mert-kurttutan

Description

@mert-kurttutan

I tried to install samply tool. But I came across the error below:
My system info:

Software:
    System Software Overview:

      System Version: macOS 12.6.2 (21G320)
      Kernel Version: Darwin 21.6.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: mert’s MacBook Pro
      User Name: mert kurttutan (mertkurttutan)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 3 days 18:43

Hardware:
    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro17,1
      Chip: Apple M1
      Total Number of Cores: 8 (4 performance and 4 efficiency)
      Memory: 16 GB
      System Firmware Version: 7459.141.1
      OS Loader Version: 7459.141.1
      Serial Number (system): FVFGD009Q05P
      Hardware UUID: C74150FE-D0C3-52BA-809B-4A24939D804A
      Provisioning UDID: 00008103-001611A93488801E
      Activation Lock Status: Disabled

The error

error: internal compiler error: compiler/rustc_middle/src/ty/normalize_erasing_regions.rs:195:90: Failed to normalize alloc::raw_vec::RawVec<<T as store::BitStore>::Mem>, maybe try to call `try_normalize_erasing_regions` instead

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/473f916d836cc662c5bdbb0d40af9fb4678fab9e/compiler/rustc_errors/src/lib.rs:1643:9
stack backtrace:
   0:        0x103075a5c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hee9483c2d75161da
   1:        0x1030c5bf0 - core::fmt::write::h57efedfe8223a10c
   2:        0x10306bab4 - std::io::Write::write_fmt::hd44d44fd8dabbb7d
   3:        0x1030758b0 - std::sys_common::backtrace::print::h95809a60510053ab
   4:        0x1030782d8 - std::panicking::default_hook::{{closure}}::heeb1774790906496
   5:        0x1030780e0 - std::panicking::default_hook::h988ecb324b6e96e5
   Compiling hyper-rustls v0.23.2
   6:        0x10b44ff14 - rustc_driver_impl[cc5b5dd0faef2fa0]::DEFAULT_HOOK::{closure#0}::{closure#0}
   7:        0x1030788ec - std::panicking::rust_panic_with_hook::h57f4a31909cdff1d
   8:        0x10f1c8da4 - std[3167ecc0b6a8a802]::panicking::begin_panic::<rustc_errors[d26fe7f70d25c1f6]::ExplicitBug>::{closure#0}
   9:        0x10f1c85c4 - std[3167ecc0b6a8a802]::sys_common::backtrace::__rust_end_short_backtrace::<std[3167ecc0b6a8a802]::panicking::begin_panic<rustc_errors[d26fe7f70d25c1f6]::ExplicitBug>::{closure#0}, !>
  10:        0x10f7f6498 - std[3167ecc0b6a8a802]::panicking::begin_panic::<rustc_errors[d26fe7f70d25c1f6]::ExplicitBug>
  11:        0x10f1f7afc - <rustc_errors[d26fe7f70d25c1f6]::HandlerInner>::bug::<alloc[e398d5ac56368ccf]::string::String>
  12:        0x10f1f778c - <rustc_errors[d26fe7f70d25c1f6]::Handler>::bug::<alloc[e398d5ac56368ccf]::string::String>
  13:        0x10f2d5428 - rustc_middle[4c71554343687a0]::util::bug::opt_span_bug_fmt::<rustc_span[96e096f2c26cd90a]::span_encoding::Span>::{closure#0}
  14:        0x10f2d4b58 - rustc_middle[4c71554343687a0]::ty::context::tls::with_opt::<rustc_middle[4c71554343687a0]::util::bug::opt_span_bug_fmt<rustc_span[96e096f2c26cd90a]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:        0x10f2d4b24 - rustc_middle[4c71554343687a0]::ty::context::tls::with_context_opt::<rustc_middle[4c71554343687a0]::ty::context::tls::with_opt<rustc_middle[4c71554343687a0]::util::bug::opt_span_bug_fmt<rustc_span[96e096f2c26cd90a]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:        0x10f7fb39c - rustc_middle[4c71554343687a0]::util::bug::bug_fmt
  17:        0x10f22f968 - <rustc_middle[4c71554343687a0]::ty::normalize_erasing_regions::NormalizeAfterErasingRegionsFolder as rustc_type_ir[e6050d92ae7adc49]::fold::TypeFolder<rustc_middle[4c71554343687a0]::ty::context::TyCtxt>>::fold_ty
  18:        0x10db638f0 - <core[b72226b352538f3e]::iter::adapters::map::Map<core[b72226b352538f3e]::iter::adapters::enumerate::Enumerate<core[b72226b352538f3e]::slice::iter::Iter<rustc_middle[4c71554343687a0]::ty::FieldDef>>, <rustc_mir_dataflow[f4b0a29523320475]::elaborate_drops::DropCtxt<rustc_mir_transform[500e3c01a19a2e32]::shim::DropShimElaborator>>::move_paths_for_fields::{closure#0}> as core[b72226b352538f3e]::iter::traits::iterator::Iterator>::fold::<(), core[b72226b352538f3e]::iter::traits::iterator::Iterator::for_each::call<(rustc_middle[4c71554343687a0]::mir::syntax::Place, core[b72226b352538f3e]::option::Option<()>), <alloc[e398d5ac56368ccf]::vec::Vec<(rustc_middle[4c71554343687a0]::mir::syntax::Place, core[b72226b352538f3e]::option::Option<()>)>>::extend_trusted<core[b72226b352538f3e]::iter::adapters::map::Map<core[b72226b352538f3e]::iter::adapters::enumerate::Enumerate<core[b72226b352538f3e]::slice::iter::Iter<rustc_middle[4c71554343687a0]::ty::FieldDef>>, <rustc_mir_dataflow[f4b0a29523320475]::elaborate_drops::DropCtxt<rustc_mir_transform[500e3c01a19a2e32]::shim::DropShimElaborator>>::move_paths_for_fields::{closure#0}>>::{closure#0}>::{closure#0}>
  19:        0x10dc83ffc - <alloc[e398d5ac56368ccf]::vec::Vec<(rustc_middle[4c71554343687a0]::mir::syntax::Place, core[b72226b352538f3e]::option::Option<()>)> as alloc[e398d5ac56368ccf]::vec::spec_from_iter::SpecFromIter<(rustc_middle[4c71554343687a0]::mir::syntax::Place, core[b72226b352538f3e]::option::Option<()>), core[b72226b352538f3e]::iter::adapters::map::Map<core[b72226b352538f3e]::iter::adapters::enumerate::Enumerate<core[b72226b352538f3e]::slice::iter::Iter<rustc_middle[4c71554343687a0]::ty::FieldDef>>, <rustc_mir_dataflow[f4b0a29523320475]::elaborate_drops::DropCtxt<rustc_mir_transform[500e3c01a19a2e32]::shim::DropShimElaborator>>::move_paths_for_fields::{closure#0}>>>::from_iter
  20:        0x10db6f644 - <rustc_mir_dataflow[f4b0a29523320475]::elaborate_drops::DropCtxt<rustc_mir_transform[500e3c01a19a2e32]::shim::DropShimElaborator>>::open_drop_for_adt
  21:        0x10db6ef90 - <rustc_mir_dataflow[f4b0a29523320475]::elaborate_drops::DropCtxt<rustc_mir_transform[500e3c01a19a2e32]::shim::DropShimElaborator>>::elaborate_drop
  22:        0x10dc70c9c - rustc_mir_transform[500e3c01a19a2e32]::shim::make_shim
  23:        0x10e66358c - rustc_query_system[41536db1f721750b]::query::plumbing::try_execute_query::<rustc_query_impl[c616cf7ab133bd41]::queries::mir_shims, rustc_query_impl[c616cf7ab133bd41]::plumbing::QueryCtxt>
  24:        0x10e6eaae0 - rustc_query_impl[c616cf7ab133bd41]::get_query::mir_shims
  25:        0x10f1aea90 - <rustc_middle[4c71554343687a0]::ty::context::TyCtxt>::instance_mir
  26:        0x10dc54d7c - <rustc_mir_transform[500e3c01a19a2e32]::inline::Inliner>::try_inlining
  27:        0x10dc5465c - <rustc_mir_transform[500e3c01a19a2e32]::inline::Inliner>::process_blocks
  28:        0x10dc54778 - <rustc_mir_transform[500e3c01a19a2e32]::inline::Inliner>::process_blocks
  29:        0x10dc5406c - <rustc_mir_transform[500e3c01a19a2e32]::inline::Inline as rustc_middle[4c71554343687a0]::mir::MirPass>::run_pass
  30:        0x10dc67938 - rustc_mir_transform[500e3c01a19a2e32]::pass_manager::run_passes_inner
  31:        0x10db80dec - rustc_mir_transform[500e3c01a19a2e32]::optimized_mir
  32:        0x10e5796a0 - rustc_query_system[41536db1f721750b]::query::plumbing::try_execute_query::<rustc_query_impl[c616cf7ab133bd41]::queries::optimized_mir, rustc_query_impl[c616cf7ab133bd41]::plumbing::QueryCtxt>
  33:        0x10e6e236c - rustc_query_impl[c616cf7ab133bd41]::get_query::optimized_mir
  34:        0x10eb42828 - rustc_middle[4c71554343687a0]::ty::query::query_get_at::<rustc_query_system[41536db1f721750b]::query::caches::DefaultCache<rustc_span[96e096f2c26cd90a]::def_id::DefId, rustc_middle[4c71554343687a0]::query::erase::Erased<[u8; 8usize]>>>
  35:        0x10eb47fec - <rustc_metadata[304b675d3437fef7]::rmeta::encoder::EncodeContext>::encode_crate_root
  36:        0x10eb54154 - rustc_metadata[304b675d3437fef7]::rmeta::encoder::encode_metadata_impl
  37:        0x10eb0e3a8 - rustc_data_structures[7f820168e55937ec]::sync::join::<rustc_metadata[304b675d3437fef7]::rmeta::encoder::encode_metadata::{closure#0}, rustc_metadata[304b675d3437fef7]::rmeta::encoder::encode_metadata::{closure#1}, (), ()>
  38:        0x10eb53968 - rustc_metadata[304b675d3437fef7]::rmeta::encoder::encode_metadata
  39:        0x10eb2c1a0 - rustc_metadata[304b675d3437fef7]::fs::encode_and_write_metadata
  40:        0x10b502bc8 - rustc_interface[53abbb7e78d1de53]::passes::start_codegen
  41:        0x10b478790 - <rustc_middle[4c71554343687a0]::ty::context::GlobalCtxt>::enter::<<rustc_interface[53abbb7e78d1de53]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[b72226b352538f3e]::result::Result<alloc[e398d5ac56368ccf]::boxed::Box<dyn core[b72226b352538f3e]::any::Any>, rustc_span[96e096f2c26cd90a]::ErrorGuaranteed>>
  42:        0x10b505d48 - <rustc_interface[53abbb7e78d1de53]::queries::Queries>::ongoing_codegen
  43:        0x10b42beb8 - <rustc_interface[53abbb7e78d1de53]::interface::Compiler>::enter::<rustc_driver_impl[cc5b5dd0faef2fa0]::run_compiler::{closure#1}::{closure#2}, core[b72226b352538f3e]::result::Result<core[b72226b352538f3e]::option::Option<rustc_interface[53abbb7e78d1de53]::queries::Linker>, rustc_span[96e096f2c26cd90a]::ErrorGuaranteed>>
  44:        0x10b3f0298 - <scoped_tls[28528be507d5a6e3]::ScopedKey<rustc_span[96e096f2c26cd90a]::SessionGlobals>>::set::<rustc_interface[53abbb7e78d1de53]::interface::run_compiler<core[b72226b352538f3e]::result::Result<(), rustc_span[96e096f2c26cd90a]::ErrorGuaranteed>, rustc_driver_impl[cc5b5dd0faef2fa0]::run_compiler::{closure#1}>::{closure#0}, core[b72226b352538f3e]::result::Result<(), rustc_span[96e096f2c26cd90a]::ErrorGuaranteed>>
  45:        0x10b3fbedc - std[3167ecc0b6a8a802]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[53abbb7e78d1de53]::util::run_in_thread_pool_with_globals<rustc_interface[53abbb7e78d1de53]::interface::run_compiler<core[b72226b352538f3e]::result::Result<(), rustc_span[96e096f2c26cd90a]::ErrorGuaranteed>, rustc_driver_impl[cc5b5dd0faef2fa0]::run_compiler::{closure#1}>::{closure#0}, core[b72226b352538f3e]::result::Result<(), rustc_span[96e096f2c26cd90a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[b72226b352538f3e]::result::Result<(), rustc_span[96e096f2c26cd90a]::ErrorGuaranteed>>
  46:        0x10b3edd64 - <<std[3167ecc0b6a8a802]::thread::Builder>::spawn_unchecked_<rustc_interface[53abbb7e78d1de53]::util::run_in_thread_pool_with_globals<rustc_interface[53abbb7e78d1de53]::interface::run_compiler<core[b72226b352538f3e]::result::Result<(), rustc_span[96e096f2c26cd90a]::ErrorGuaranteed>, rustc_driver_impl[cc5b5dd0faef2fa0]::run_compiler::{closure#1}>::{closure#0}, core[b72226b352538f3e]::result::Result<(), rustc_span[96e096f2c26cd90a]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[b72226b352538f3e]::result::Result<(), rustc_span[96e096f2c26cd90a]::ErrorGuaranteed>>::{closure#1} as core[b72226b352538f3e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  47:        0x10308127c - std::sys::unix::thread::Thread::new::thread_start::h5b2770baa9112050
  48:        0x18f40c26c - __pthread_deallocate

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-nightly (473f916d8 2023-05-03) running on aarch64-apple-darwin

note: compiler flags: --crate-type lib -C opt-level=3 -C panic=abort -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2

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

query stack during panic:
#0 [mir_shims] generating MIR shim for `core::ptr::drop_in_place`
#1 [optimized_mir] optimizing MIR for `vec::ops::<impl at /Users/mertkurttutan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitvec-0.19.6/src/vec/ops.rs:141:1: 141:33>::drop::{closure#0}`
end of query stack
   Compiling addr2line v0.19.0
error: could not compile `bitvec` (lib)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `samply v0.11.0`, intermediate artifacts can be found at `/var/folders/k7/zhrk7bgj3cz81nn0_mt0fw7m0000gn/T/cargo-install0rtDrH`
mertkurttutan@merts-MacBook-Pro matrix % 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions