Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ICE compiling packed_simd_2@0.3.8 (M1 mac, nightly-2023-07-11) #114031

Closed
phlip9 opened this issue Jul 24, 2023 · 2 comments
Closed

ICE compiling packed_simd_2@0.3.8 (M1 mac, nightly-2023-07-11) #114031

phlip9 opened this issue Jul 24, 2023 · 2 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@phlip9
Copy link
Contributor

phlip9 commented Jul 24, 2023

ICE compiling packed_simd_2@0.3.8 on M1 mac with nightly-2023-07-11

error: internal compiler error: /rustc/8ca44ef9caa4049d584fbbce218c219cdca33a2f/compiler/rustc_codegen_ssa/src/mir/constant.rs:70:22: Ty(
                                    Const { ty: [u32; 16], kind: Branch([Leaf(0x00000000), Leaf(0x00000010), Leaf(0x00000001), Leaf(0x00000011), Leaf(0x00000002), Leaf(0x00000012), Leaf(0x00000003), Leaf(0x00000013), Leaf(0x00000004), Leaf(0x00000014), Leaf(0x00000005), Leaf(0x00000015), Leaf(0x00000006), Leaf(0x00000016), Leaf(0x00000007), Leaf(0x00000017)]) },
                                )
  --> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd_2-0.3.8/src/codegen/llvm.rs:55:26
   |
55 |     simd_shuffle16(x, y, IDX)

Version

$ rustup run nightly-2023-07-11 rustc --version --verbose
rustc 1.73.0-nightly (8ca44ef9c 2023-07-10)
binary: rustc
commit-hash: 8ca44ef9caa4049d584fbbce218c219cdca33a2f
commit-date: 2023-07-10
host: aarch64-apple-darwin
release: 1.73.0-nightly
LLVM version: 16.0.5

Failing command

$ RUSTFLAGS="-C target-cpu=native" cargo +nightly-2023-07-11 install --features="simd-accel" ripgrep
    Updating crates.io index
  Downloaded ripgrep v13.0.0
  Downloaded 1 crate (272.1 KB) in 0.24s
  Installing ripgrep v13.0.0
    Updating crates.io index
  Downloaded num_cpus v1.16.0
  Downloaded encoding_rs_io v0.1.7
  Downloaded base64 v0.20.0
  Downloaded grep v0.2.12
  Downloaded grep-searcher v0.1.11
  Downloaded bytecount v0.6.3
  Downloaded grep-printer v0.1.7
  Downloaded grep-matcher v0.1.6
  Downloaded grep-cli v0.1.9
  Downloaded bstr v1.6.0
  Downloaded packed_simd_2 v0.3.8
  Downloaded libm v0.1.4
  Downloaded grep-regex v0.1.11
  Downloaded globset v0.4.11
  Downloaded 14 crates (894.2 KB) in 0.32s
   Compiling memchr v2.5.0
   Compiling regex-syntax v0.7.4
   Compiling proc-macro2 v1.0.66
   Compiling cfg-if v1.0.0
   Compiling unicode-ident v1.0.11
   Compiling libm v0.1.4
   Compiling packed_simd_2 v0.3.8
   Compiling log v0.4.19
   Compiling libc v0.2.147
   Compiling serde v1.0.175
   Compiling lazy_static v1.4.0
   Compiling serde_json v1.0.103
   Compiling fnv v1.0.7
   Compiling same-file v1.0.6
   Compiling unicode-width v0.1.10
   Compiling once_cell v1.18.0
   Compiling textwrap v0.11.0
   Compiling thread_local v1.1.7
   Compiling aho-corasick v1.0.2
   Compiling quote v1.0.32
   Compiling syn v2.0.27
   Compiling grep-matcher v0.1.6
   Compiling termcolor v1.2.0
   Compiling regex-automata v0.3.3
   Compiling memmap2 v0.5.10
   Compiling bitflags v1.3.2
   Compiling strsim v0.8.0
   Compiling ryu v1.0.15
   Compiling bytecount v0.6.3
   Compiling itoa v1.0.9
   Compiling clap v2.34.0
   Compiling aho-corasick v0.7.20
   Compiling regex-syntax v0.6.29
   Compiling serde_derive v1.0.175
   Compiling bstr v1.6.0
   Compiling regex v1.9.1
   Compiling globset v0.4.11
   Compiling base64 v0.20.0
   Compiling ripgrep v13.0.0
   Compiling grep-cli v0.1.9
   Compiling grep-regex v0.1.11
   Compiling encoding_rs v0.8.32
   Compiling walkdir v2.3.3
   Compiling regex-automata v0.1.10
error: internal compiler error: /rustc/8ca44ef9caa4049d584fbbce218c219cdca33a2f/compiler/rustc_codegen_ssa/src/mir/constant.rs:70:22: Ty(
                                    Const { ty: [u32; 16], kind: Branch([Leaf(0x00000000), Leaf(0x00000010), Leaf(0x00000001), Leaf(0x00000011), Leaf(0x00000002), Leaf(0x00000012), Leaf(0x00000003), Leaf(0x00000013), Leaf(0x00000004), Leaf(0x00000014), Leaf(0x00000005), Leaf(0x00000015), Leaf(0x00000006), Leaf(0x00000016), Leaf(0x00000007), Leaf(0x00000017)]) },
                                )
  --> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd_2-0.3.8/src/codegen/llvm.rs:55:26
   |
55 |     simd_shuffle16(x, y, IDX)
   |                          ^^^

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/8ca44ef9caa4049d584fbbce218c219cdca33a2f/compiler/rustc_errors/src/lib.rs:995:33
stack backtrace:
   0:        0x102b02fe4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h31162c6ea55dc7ea
   1:        0x102b56828 - core::fmt::write::h6ef50e08053b2e9d
   2:        0x102af87b4 - std::io::Write::write_fmt::hccf538361475bcb7
   3:        0x102b02e3c - std::sys_common::backtrace::print::h1cc06b7f8d47b2cb
   4:        0x102b059b8 - std::panicking::default_hook::{{closure}}::h3a19a1b6247e90d6
   5:        0x102b05748 - std::panicking::default_hook::h6b7266aa922609e4
   Compiling encoding_rs_io v0.1.7
   Compiling grep-searcher v0.1.11
   6:        0x10b017b68 - rustc_driver_impl[81cb32d923285d4b]::install_ice_hook::{closure#0}
   7:        0x102b06138 - std::panicking::rust_panic_with_hook::h7edcb5b9b123ef2d
   8:        0x10b2339bc - std[62a2acaf558bc5b5]::panicking::begin_panic::<rustc_errors[e1e223accf6df771]::ExplicitBug>::{closure#0}
   9:        0x10b22f1ec - std[62a2acaf558bc5b5]::sys_common::backtrace::__rust_end_short_backtrace::<std[62a2acaf558bc5b5]::panicking::begin_panic<rustc_errors[e1e223accf6df771]::ExplicitBug>::{closure#0}, !>
  10:        0x10f28485c - std[62a2acaf558bc5b5]::panicking::begin_panic::<rustc_errors[e1e223accf6df771]::ExplicitBug>
  11:        0x10b2a5998 - <rustc_errors[e1e223accf6df771]::HandlerInner>::span_bug::<rustc_span[bce89a72dfd2260d]::span_encoding::Span, alloc[18fc9c513c7d8daa]::string::String>
  12:        0x10b2a576c - <rustc_errors[e1e223accf6df771]::Handler>::span_bug::<rustc_span[bce89a72dfd2260d]::span_encoding::Span, alloc[18fc9c513c7d8daa]::string::String>
  13:        0x10b233c00 - rustc_middle[607d8e2a4818af1a]::util::bug::opt_span_bug_fmt::<rustc_span[bce89a72dfd2260d]::span_encoding::Span>::{closure#0}
  14:        0x10b233c34 - rustc_middle[607d8e2a4818af1a]::ty::context::tls::with_opt::<rustc_middle[607d8e2a4818af1a]::util::bug::opt_span_bug_fmt<rustc_span[bce89a72dfd2260d]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:        0x10b231f88 - rustc_middle[607d8e2a4818af1a]::ty::context::tls::with_context_opt::<rustc_middle[607d8e2a4818af1a]::ty::context::tls::with_opt<rustc_middle[607d8e2a4818af1a]::util::bug::opt_span_bug_fmt<rustc_span[bce89a72dfd2260d]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:        0x10f28eaec - rustc_middle[607d8e2a4818af1a]::util::bug::span_bug_fmt::<rustc_span[bce89a72dfd2260d]::span_encoding::Span>
  17:        0x10b29a25c - <rustc_codegen_ssa[49aeee994f4f3fc5]::mir::FunctionCx<rustc_codegen_llvm[2344183da1baea60]::builder::Builder>>::simd_shuffle_indices
  18:        0x10b25f21c - <core[bdaea97333b92f37]::iter::adapters::map::Map<core[bdaea97333b92f37]::iter::adapters::enumerate::Enumerate<core[bdaea97333b92f37]::slice::iter::Iter<rustc_middle[607d8e2a4818af1a]::mir::syntax::Operand>>, <rustc_codegen_ssa[49aeee994f4f3fc5]::mir::FunctionCx<rustc_codegen_llvm[2344183da1baea60]::builder::Builder>>::codegen_call_terminator::{closure#2}> as core[bdaea97333b92f37]::iter::traits::iterator::Iterator>::fold::<(), core[bdaea97333b92f37]::iter::traits::iterator::Iterator::for_each::call<rustc_codegen_ssa[49aeee994f4f3fc5]::mir::operand::OperandRef<&rustc_codegen_llvm[2344183da1baea60]::llvm_::ffi::Value>, <alloc[18fc9c513c7d8daa]::vec::Vec<rustc_codegen_ssa[49aeee994f4f3fc5]::mir::operand::OperandRef<&rustc_codegen_llvm[2344183da1baea60]::llvm_::ffi::Value>>>::extend_trusted<core[bdaea97333b92f37]::iter::adapters::map::Map<core[bdaea97333b92f37]::iter::adapters::enumerate::Enumerate<core[bdaea97333b92f37]::slice::iter::Iter<rustc_middle[607d8e2a4818af1a]::mir::syntax::Operand>>, <rustc_codegen_ssa[49aeee994f4f3fc5]::mir::FunctionCx<rustc_codegen_llvm[2344183da1baea60]::builder::Builder>>::codegen_call_terminator::{closure#2}>>::{closure#0}>::{closure#0}>
  19:        0x10b26cfa8 - <alloc[18fc9c513c7d8daa]::vec::Vec<rustc_codegen_ssa[49aeee994f4f3fc5]::mir::operand::OperandRef<&rustc_codegen_llvm[2344183da1baea60]::llvm_::ffi::Value>> as alloc[18fc9c513c7d8daa]::vec::spec_from_iter::SpecFromIter<rustc_codegen_ssa[49aeee994f4f3fc5]::mir::operand::OperandRef<&rustc_codegen_llvm[2344183da1baea60]::llvm_::ffi::Value>, core[bdaea97333b92f37]::iter::adapters::map::Map<core[bdaea97333b92f37]::iter::adapters::enumerate::Enumerate<core[bdaea97333b92f37]::slice::iter::Iter<rustc_middle[607d8e2a4818af1a]::mir::syntax::Operand>>, <rustc_codegen_ssa[49aeee994f4f3fc5]::mir::FunctionCx<rustc_codegen_llvm[2344183da1baea60]::builder::Builder>>::codegen_call_terminator::{closure#2}>>>::from_iter
  20:        0x10b2a0d1c - <rustc_codegen_ssa[49aeee994f4f3fc5]::mir::FunctionCx<rustc_codegen_llvm[2344183da1baea60]::builder::Builder>>::codegen_terminator
  21:        0x10b29379c - rustc_codegen_ssa[49aeee994f4f3fc5]::mir::codegen_mir::<rustc_codegen_llvm[2344183da1baea60]::builder::Builder>
  22:        0x10b287c0c - rustc_codegen_ssa[49aeee994f4f3fc5]::base::codegen_instance::<rustc_codegen_llvm[2344183da1baea60]::builder::Builder>
  23:        0x10b27b4b0 - rustc_codegen_llvm[2344183da1baea60]::base::compile_codegen_unit::module_codegen
  24:        0x10b27ad48 - rustc_codegen_llvm[2344183da1baea60]::base::compile_codegen_unit
  25:        0x10b287470 - rustc_codegen_ssa[49aeee994f4f3fc5]::base::codegen_crate::<rustc_codegen_llvm[2344183da1baea60]::LlvmCodegenBackend>
  26:        0x10b1f5918 - <rustc_codegen_llvm[2344183da1baea60]::LlvmCodegenBackend as rustc_codegen_ssa[49aeee994f4f3fc5]::traits::backend::CodegenBackend>::codegen_crate
  27:        0x10b122fc8 - <rustc_session[143d7f8a54974e59]::session::Session>::time::<alloc[18fc9c513c7d8daa]::boxed::Box<dyn core[bdaea97333b92f37]::any::Any>, rustc_interface[f3cbec89f91e5b47]::passes::start_codegen::{closure#0}>
  28:        0x10b1a68a8 - rustc_interface[f3cbec89f91e5b47]::passes::start_codegen
  29:        0x10b15f1c0 - <rustc_middle[607d8e2a4818af1a]::ty::context::GlobalCtxt>::enter::<<rustc_interface[f3cbec89f91e5b47]::queries::Queries>::ongoing_codegen::{closure#0}, core[bdaea97333b92f37]::result::Result<alloc[18fc9c513c7d8daa]::boxed::Box<dyn core[bdaea97333b92f37]::any::Any>, rustc_span[bce89a72dfd2260d]::ErrorGuaranteed>>
  30:        0x10b1478fc - <rustc_interface[f3cbec89f91e5b47]::queries::Queries>::ongoing_codegen
  31:        0x10b01d368 - <rustc_interface[f3cbec89f91e5b47]::interface::Compiler>::enter::<rustc_driver_impl[81cb32d923285d4b]::run_compiler::{closure#1}::{closure#2}, core[bdaea97333b92f37]::result::Result<core[bdaea97333b92f37]::option::Option<rustc_interface[f3cbec89f91e5b47]::queries::Linker>, rustc_span[bce89a72dfd2260d]::ErrorGuaranteed>>
  32:        0x10b052f08 - rustc_span[bce89a72dfd2260d]::set_source_map::<core[bdaea97333b92f37]::result::Result<(), rustc_span[bce89a72dfd2260d]::ErrorGuaranteed>, rustc_interface[f3cbec89f91e5b47]::interface::run_compiler<core[bdaea97333b92f37]::result::Result<(), rustc_span[bce89a72dfd2260d]::ErrorGuaranteed>, rustc_driver_impl[81cb32d923285d4b]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  33:        0x10b03a420 - <scoped_tls[d117a031a6e4a314]::ScopedKey<rustc_span[bce89a72dfd2260d]::SessionGlobals>>::set::<rustc_interface[f3cbec89f91e5b47]::interface::run_compiler<core[bdaea97333b92f37]::result::Result<(), rustc_span[bce89a72dfd2260d]::ErrorGuaranteed>, rustc_driver_impl[81cb32d923285d4b]::run_compiler::{closure#1}>::{closure#0}, core[bdaea97333b92f37]::result::Result<(), rustc_span[bce89a72dfd2260d]::ErrorGuaranteed>>
  34:        0x10b04341c - std[62a2acaf558bc5b5]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[f3cbec89f91e5b47]::util::run_in_thread_pool_with_globals<rustc_interface[f3cbec89f91e5b47]::interface::run_compiler<core[bdaea97333b92f37]::result::Result<(), rustc_span[bce89a72dfd2260d]::ErrorGuaranteed>, rustc_driver_impl[81cb32d923285d4b]::run_compiler::{closure#1}>::{closure#0}, core[bdaea97333b92f37]::result::Result<(), rustc_span[bce89a72dfd2260d]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[bdaea97333b92f37]::result::Result<(), rustc_span[bce89a72dfd2260d]::ErrorGuaranteed>>
  35:        0x10b05be58 - <<std[62a2acaf558bc5b5]::thread::Builder>::spawn_unchecked_<rustc_interface[f3cbec89f91e5b47]::util::run_in_thread_pool_with_globals<rustc_interface[f3cbec89f91e5b47]::interface::run_compiler<core[bdaea97333b92f37]::result::Result<(), rustc_span[bce89a72dfd2260d]::ErrorGuaranteed>, rustc_driver_impl[81cb32d923285d4b]::run_compiler::{closure#1}>::{closure#0}, core[bdaea97333b92f37]::result::Result<(), rustc_span[bce89a72dfd2260d]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[bdaea97333b92f37]::result::Result<(), rustc_span[bce89a72dfd2260d]::ErrorGuaranteed>>::{closure#1} as core[bdaea97333b92f37]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  36:        0x102b0eaf8 - std::sys::unix::thread::Thread::new::thread_start::h14266acbfe89ad63
  37:        0x1a059bfa8 - __pthread_joiner_wake

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.73.0-nightly (8ca44ef9c 2023-07-10) running on aarch64-apple-darwin

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C debuginfo=1 -C split-debuginfo=unpacked -C target-cpu=native

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

query stack during panic:
end of query stack
error: could not compile `encoding_rs` (lib)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `ripgrep v13.0.0`
@phlip9 phlip9 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 Jul 24, 2023
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jul 24, 2023
@matthiaskrgr
Copy link
Member

Could you try with an up to date nightly? Might be a duplicate of #113500

@matthiaskrgr matthiaskrgr added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jul 24, 2023
@phlip9
Copy link
Contributor Author

phlip9 commented Jul 24, 2023

Agh I shouldn't have been lazy--it's fixed on the latest nightly. Looks like this is a duplicate. I'll close : )

@phlip9 phlip9 closed this as completed Jul 24, 2023
@Noratrieb Noratrieb removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants