chettoy / apexsky

https://apex.chettoy.com
GNU General Public License v3.0
146 stars 81 forks source link

compiler error #148

Closed rogelx closed 1 month ago

rogelx commented 3 months ago

Compiling bit-vec v0.6.3 thread 'rustc' panicked at compiler/rustc_codegen_ssa/src/back/archive.rs:453:29: range end index 56048152 out of range for slice of length 54914853 stack backtrace: 0: 0x70ca807e6d3d - ::fmt::h4178db4b62b6a7c8 1: 0x70ca81004c97 - core::fmt::write::hdebf67a64074cdfd 2: 0x70ca822c3511 - std::io::Write::write_fmt::h67b07a8971426909 3: 0x70ca807e941b - std::panicking::default_hook::{{closure}}::hb33c35cc1f4b50b3 4: 0x70ca807e908e - std::panicking::default_hook::h2c83543c651f3125 5: 0x70ca7f95fc79 - std[6e15924ca43b8509]::panicking::update_hook::<alloc[74339d1d9b201e21]::boxed::Box<rustc_driver_impl[d6b1c5b97f2d776c]::install_ice_hook::{closure#0}>>::{closure#0} 6: 0x70ca807e9d37 - std::panicking::rust_panic_with_hook::h48ec1454fab3e9d6 7: 0x70ca807e99f7 - std::panicking::begin_panic_handler::{{closure}}::hdfdc79a140009172 8: 0x70ca807e71f9 - std::sys::backtrace::__rust_end_short_backtrace::h5e9ef3624d34a08c 9: 0x70ca807e96c4 - rust_begin_unwind 10: 0x70ca7d99f263 - core::panicking::panic_fmt::h5c7dda2686e962d9 11: 0x70ca7ec02867 - core::slice::index::slice_end_index_len_fail::h2d5540bcb1f80daa 12: 0x70ca81c5373a - <rustc_codegen_ssa[360404bd41fe828f]::back::archive::ArArchiveBuilder>::build_inner 13: 0x70ca81c50db0 - <rustc_codegen_ssa[360404bd41fe828f]::back::archive::ArArchiveBuilder as rustc_codegen_ssa[360404bd41fe828f]::back::archive::ArchiveBuilder>::build 14: 0x70ca7ec0d3ec - rustc_codegen_ssa[360404bd41fe828f]::back::link::link_binary 15: 0x70ca81f8fcbe - <rustc_codegen_llvm[4ac59c4c50f2d586]::LlvmCodegenBackend as rustc_codegen_ssa[360404bd41fe828f]::traits::backend::CodegenBackend>::link 16: 0x70ca81f8f734 - <rustc_interface[eb6eb7ed9ab023cb]::queries::Linker>::link 17: 0x70ca81df4c23 - rustc_interface[eb6eb7ed9ab023cb]::interface::run_compiler::<core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>, rustc_driver_impl[d6b1c5b97f2d776c]::run_compiler::{closure#0}>::{closure#1} 18: 0x70ca7f96a0bd - <rayon_core[b59a5ddc7c964e89]::job::StackJob<rayon_core[b59a5ddc7c964e89]::latch::LatchRef<rayon_core[b59a5ddc7c964e89]::latch::LockLatch>, <rayon_core[b59a5ddc7c964e89]::registry::Registry>::in_worker_cold<<rayon_core[b59a5ddc7c964e89]::thread_pool::ThreadPool>::install<rustc_interface[eb6eb7ed9ab023cb]::util::run_in_thread_pool_with_globals<rustc_interface[eb6eb7ed9ab023cb]::interface::run_compiler<core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>, rustc_driver_impl[d6b1c5b97f2d776c]::run_compiler::{closure#0}>::{closure#1}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#1}::{closure#0}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>>::{closure#0}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>> as rayon_core[b59a5ddc7c964e89]::job::Job>::execute 19: 0x70ca7f48583e - <rayon_core[b59a5ddc7c964e89]::registry::WorkerThread>::wait_until_cold 20: 0x70ca7f4833c9 - <rayon_core[b59a5ddc7c964e89]::registry::ThreadBuilder>::run 21: 0x70ca7f9628f7 - <<crossbeam_utils[69f3e4e9922a2578]::thread::ScopedThreadBuilder>::spawn<<rayon_core[b59a5ddc7c964e89]::ThreadPoolBuilder>::build_scoped<rustc_interface[eb6eb7ed9ab023cb]::util::run_in_thread_pool_with_globals<rustc_interface[eb6eb7ed9ab023cb]::interface::run_compiler<core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>, rustc_driver_impl[d6b1c5b97f2d776c]::run_compiler::{closure#0}>::{closure#1}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#0}, rustc_interface[eb6eb7ed9ab023cb]::util::run_in_thread_pool_with_globals<rustc_interface[eb6eb7ed9ab023cb]::interface::run_compiler<core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>, rustc_driver_impl[d6b1c5b97f2d776c]::run_compiler::{closure#0}>::{closure#1}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#1}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, ()>::{closure#0} as core[f2f627d3c87d2691]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 22: 0x70ca7f95584e - std[6e15924ca43b8509]::sys::backtrace::__rust_begin_short_backtrace::<alloc[74339d1d9b201e21]::boxed::Box<dyn core[f2f627d3c87d2691]::ops::function::FnOnce<(), Output = ()> + core[f2f627d3c87d2691]::marker::Send>, ()> 23: 0x70ca7f9625ea - <<std[6e15924ca43b8509]::thread::Builder>::spawnunchecked<alloc[74339d1d9b201e21]::boxed::Box<dyn core[f2f627d3c87d2691]::ops::function::FnOnce<(), Output = ()> + core[f2f627d3c87d2691]::marker::Send>, ()>::{closure#1} as core[f2f627d3c87d2691]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 24: 0x70ca81e6fd6b - std::sys::pal::unix::thread::Thread::new::thread_start::h5ac727470998e7f2 Compiling unicode-segmentation v1.11.0 25: 0x70ca7c09ca94 - start_thread at ./nptl/pthread_create.c:447:8 26: 0x70ca7c129c3c - clone3 at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 27: 0x0 -

error: 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: please make sure that you have updated to the latest nightly

note: please attach the file at /home/jason/.cargo/registry/src/mirrors.aliyun.com-8754fae0eb2f08f1/v8-0.103.0/rustc-ice-2024-08-25T09_59_20-200180.txt to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C linker=clang -C strip=debuginfo -C link-arg=-fuse-ld=lld -Z share-generics=y -Z threads=0 -Z macro-backtrace

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

query stack during panic: end of query stack Compiling tonic-build v0.12.1 Compiling overload v0.1.1 Compiling data-url v0.3.1 Compiling deno_media_type v0.1.4 Compiling nu-ansi-term v0.46.0 Compiling zvariant v4.2.0 Compiling include-flate-codegen v0.2.0 Compiling swc_ecma_transforms_typescript v0.195.0 Compiling oxc_minifier v0.24.3 Compiling parse-js v0.20.1 Compiling bit-set v0.5.3 Compiling reqwest v0.12.7 Compiling dprint-swc-ext v0.19.0 Compiling serde_v8 v0.213.0 Compiling clap v4.5.16 Compiling rand v0.3.23 Compiling async-stream v0.3.5 Compiling matchers v0.1.0 Compiling memflow-win32-defs v0.2.0 Compiling crossterm v0.28.1 Compiling swc_ecma_transforms_proposal v0.178.0 Compiling swc_ecma_loader v0.49.1 Compiling async-broadcast v0.7.1 Compiling zbus_macros v4.4.0 Compiling rand_isaac v0.1.1 Compiling rand_xorshift v0.1.1 Compiling rand_hc v0.1.0 Compiling deno_unsync v0.4.1 Compiling zbus_names v3.0.0 Compiling sourcemap v8.0.1 Compiling unicode-truncate v1.1.0 Compiling lru v0.12.4 Compiling xattr v1.3.1 Compiling skyapex-derive v0.1.0 (/home/jason/apex/apexsky/apex_dma/lib/skyapex/skyapex-derive) Compiling pelite v0.10.0 Compiling scan_fmt v0.2.6 Compiling bincode v1.3.3 Compiling tracing-serde v0.1.3 Compiling swc_visit_macros v0.5.13 Compiling bytemuck v1.17.0 Compiling serde_repr v0.1.19 Compiling instability v0.3.2 Compiling swc_ecma_codegen v0.155.0 Compiling num-derive v0.4.2 error: could not compile v8 (lib) warning: build failed, waiting for other jobs to finish...

rogelx commented 3 months ago

by the way,the rust version is as follows: rustup 1.27.1 (54dd3d00f 2024-04-24) info: This is the version for the rustup toolchain manager, not the rustc compiler. info: The currently active rustc version is rustc 1.82.0-nightly (f167efad2 2024-08-24)

chettoy commented 3 months ago

Compiling bit-vec v0.6.3 thread 'rustc' panicked at compiler/rustc_codegen_ssa/src/back/archive.rs:453:29: range end index 56048152 out of range for slice of length 54914853 stack backtrace: 0: 0x70ca807e6d3d - ::fmt::h4178db4b62b6a7c8 1: 0x70ca81004c97 - core::fmt::write::hdebf67a64074cdfd 2: 0x70ca822c3511 - std::io::Write::write_fmt::h67b07a8971426909 3: 0x70ca807e941b - std::panicking::default_hook::{{closure}}::hb33c35cc1f4b50b3 4: 0x70ca807e908e - std::panicking::default_hook::h2c83543c651f3125 5: 0x70ca7f95fc79 - std[6e15924ca43b8509]::panicking::update_hook::<alloc[74339d1d9b201e21]::boxed::Box<rustc_driver_impl[d6b1c5b97f2d776c]::install_ice_hook::{closure#0}>>::{closure#0} 6: 0x70ca807e9d37 - std::panicking::rust_panic_with_hook::h48ec1454fab3e9d6 7: 0x70ca807e99f7 - std::panicking::begin_panic_handler::{{closure}}::hdfdc79a140009172 8: 0x70ca807e71f9 - std::sys::backtrace::__rust_end_short_backtrace::h5e9ef3624d34a08c 9: 0x70ca807e96c4 - rust_begin_unwind 10: 0x70ca7d99f263 - core::panicking::panic_fmt::h5c7dda2686e962d9 11: 0x70ca7ec02867 - core::slice::index::slice_end_index_len_fail::h2d5540bcb1f80daa 12: 0x70ca81c5373a - <rustc_codegen_ssa[360404bd41fe828f]::back::archive::ArArchiveBuilder>::build_inner 13: 0x70ca81c50db0 - <rustc_codegen_ssa[360404bd41fe828f]::back::archive::ArArchiveBuilder as rustc_codegen_ssa[360404bd41fe828f]::back::archive::ArchiveBuilder>::build 14: 0x70ca7ec0d3ec - rustc_codegen_ssa[360404bd41fe828f]::back::link::link_binary 15: 0x70ca81f8fcbe - <rustc_codegen_llvm[4ac59c4c50f2d586]::LlvmCodegenBackend as rustc_codegen_ssa[360404bd41fe828f]::traits::backend::CodegenBackend>::link 16: 0x70ca81f8f734 - <rustc_interface[eb6eb7ed9ab023cb]::queries::Linker>::link 17: 0x70ca81df4c23 - rustc_interface[eb6eb7ed9ab023cb]::interface::run_compiler::<core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>, rustc_driver_impl[d6b1c5b97f2d776c]::run_compiler::{closure#0}>::{closure#1} 18: 0x70ca7f96a0bd - <rayon_core[b59a5ddc7c964e89]::job::StackJob<rayon_core[b59a5ddc7c964e89]::latch::LatchRef<rayon_core[b59a5ddc7c964e89]::latch::LockLatch>, <rayon_core[b59a5ddc7c964e89]::registry::Registry>::in_worker_cold<<rayon_core[b59a5ddc7c964e89]::thread_pool::ThreadPool>::install<rustc_interface[eb6eb7ed9ab023cb]::util::run_in_thread_pool_with_globals<rustc_interface[eb6eb7ed9ab023cb]::interface::run_compiler<core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>, rustc_driver_impl[d6b1c5b97f2d776c]::run_compiler::{closure#0}>::{closure#1}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#1}::{closure#0}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>>::{closure#0}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>> as rayon_core[b59a5ddc7c964e89]::job::Job>::execute 19: 0x70ca7f48583e - <rayon_core[b59a5ddc7c964e89]::registry::WorkerThread>::wait_until_cold 20: 0x70ca7f4833c9 - <rayon_core[b59a5ddc7c964e89]::registry::ThreadBuilder>::run 21: 0x70ca7f9628f7 - <<crossbeam_utils[69f3e4e9922a2578]::thread::ScopedThreadBuilder>::spawn<<rayon_core[b59a5ddc7c964e89]::ThreadPoolBuilder>::build_scoped<rustc_interface[eb6eb7ed9ab023cb]::util::run_in_thread_pool_with_globals<rustc_interface[eb6eb7ed9ab023cb]::interface::run_compiler<core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>, rustc_driver_impl[d6b1c5b97f2d776c]::run_compiler::{closure#0}>::{closure#1}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#0}, rustc_interface[eb6eb7ed9ab023cb]::util::run_in_thread_pool_with_globals<rustc_interface[eb6eb7ed9ab023cb]::interface::run_compiler<core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>, rustc_driver_impl[d6b1c5b97f2d776c]::run_compiler::{closure#0}>::{closure#1}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#1}, core[f2f627d3c87d2691]::result::Result<(), rustc_span[641b1e127128c80]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, ()>::{closure#0} as core[f2f627d3c87d2691]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 22: 0x70ca7f95584e - std[6e15924ca43b8509]::sys::backtrace::__rust_begin_short_backtrace::<alloc[74339d1d9b201e21]::boxed::Box<dyn core[f2f627d3c87d2691]::ops::function::FnOnce<(), Output = ()> + core[f2f627d3c87d2691]::marker::Send>, ()> 23: 0x70ca7f9625ea - <<std[6e15924ca43b8509]::thread::Builder>::spawnunchecked<alloc[74339d1d9b201e21]::boxed::Box<dyn core[f2f627d3c87d2691]::ops::function::FnOnce<(), Output = ()> + core[f2f627d3c87d2691]::marker::Send>, ()>::{closure#1} as core[f2f627d3c87d2691]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 24: 0x70ca81e6fd6b - std::sys::pal::unix::thread::Thread::new::thread_start::h5ac727470998e7f2 Compiling unicode-segmentation v1.11.0 25: 0x70ca7c09ca94 - start_thread at ./nptl/pthread_create.c:447:8 26: 0x70ca7c129c3c - clone3 at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 27: 0x0 -

error: 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: please make sure that you have updated to the latest nightly

note: please attach the file at /home/jason/.cargo/registry/src/mirrors.aliyun.com-8754fae0eb2f08f1/v8-0.103.0/rustc-ice-2024-08-25T09_59_20-200180.txt to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C linker=clang -C strip=debuginfo -C link-arg=-fuse-ld=lld -Z share-generics=y -Z threads=0 -Z macro-backtrace

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

query stack during panic: end of query stack Compiling tonic-build v0.12.1 Compiling overload v0.1.1 Compiling data-url v0.3.1 Compiling deno_media_type v0.1.4 Compiling nu-ansi-term v0.46.0 Compiling zvariant v4.2.0 Compiling include-flate-codegen v0.2.0 Compiling swc_ecma_transforms_typescript v0.195.0 Compiling oxc_minifier v0.24.3 Compiling parse-js v0.20.1 Compiling bit-set v0.5.3 Compiling reqwest v0.12.7 Compiling dprint-swc-ext v0.19.0 Compiling serde_v8 v0.213.0 Compiling clap v4.5.16 Compiling rand v0.3.23 Compiling async-stream v0.3.5 Compiling matchers v0.1.0 Compiling memflow-win32-defs v0.2.0 Compiling crossterm v0.28.1 Compiling swc_ecma_transforms_proposal v0.178.0 Compiling swc_ecma_loader v0.49.1 Compiling async-broadcast v0.7.1 Compiling zbus_macros v4.4.0 Compiling rand_isaac v0.1.1 Compiling rand_xorshift v0.1.1 Compiling rand_hc v0.1.0 Compiling deno_unsync v0.4.1 Compiling zbus_names v3.0.0 Compiling sourcemap v8.0.1 Compiling unicode-truncate v1.1.0 Compiling lru v0.12.4 Compiling xattr v1.3.1 Compiling skyapex-derive v0.1.0 (/home/jason/apex/apexsky/apex_dma/lib/skyapex/skyapex-derive) Compiling pelite v0.10.0 Compiling scan_fmt v0.2.6 Compiling bincode v1.3.3 Compiling tracing-serde v0.1.3 Compiling swc_visit_macros v0.5.13 Compiling bytemuck v1.17.0 Compiling serde_repr v0.1.19 Compiling instability v0.3.2 Compiling swc_ecma_codegen v0.155.0 Compiling num-derive v0.4.2 error: could not compile v8 (lib) warning: build failed, waiting for other jobs to finish...

Install clang and try again.

rogelx commented 3 months ago

clang has installed before this compiling

Reading package lists... Done Building dependency tree... Done Reading state information... Done clang is already the newest version (1:18.0-59~exp2). 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

chettoy commented 3 months ago

please attach the file at /home/jason/.cargo/registry/src/mirrors.aliyun.com-8754fae0eb2f08f1/v8-0.103.0/rustc-ice-2024-08-25T09_59_20-200180.txt

rogelx commented 3 months ago

here is the file content,thank u @chettoy thread 'rustc' panicked at compiler/rustc_codegen_ssa/src/back/archive.rs:453:29: range end index 56048152 out of range for slice of length 54914853 stack backtrace: 0: 0x7943a4a7dae5 - std::backtrace::Backtrace::create::h7d2dc8e7359e23d1 1: 0x7943a31d7fe5 - std::backtrace::Backtrace::force_capture::h9da8509fb866dd5e 2: 0x7943a2365fce - std[a1dbd854c1325271]::panicking::update_hook::<alloc[3fbf3ac9bf9e6fee]::boxed::Box<rustc_driver_impl[efee53de8626d180]::install_ice_hook::{closure#0}>>::{closure#0} 3: 0x7943a31efe57 - std::panicking::rust_panic_with_hook::h76eaaf856d4627ce 4: 0x7943a31efb17 - std::panicking::begin_panic_handler::{{closure}}::h822501910e3f1a1e 5: 0x7943a31ed319 - std::sys::backtrace::__rust_end_short_backtrace::hd0a94a8e1050aebb 6: 0x7943a31ef7e4 - rust_begin_unwind 7: 0x7943a10be9b3 - core::panicking::panic_fmt::h20afa97c0700e760 8: 0x7943a0d84537 - core::slice::index::slice_end_index_len_fail::h67e874000ea72dbd 9: 0x7943a470bf7a - <rustc_codegen_ssa[ab9517ab64be802e]::back::archive::ArArchiveBuilder>::build_inner 10: 0x7943a47095f0 - <rustc_codegen_ssa[ab9517ab64be802e]::back::archive::ArArchiveBuilder as rustc_codegen_ssa[ab9517ab64be802e]::back::archive::ArchiveBuilder>::build 11: 0x7943a1aa6fec - rustc_codegen_ssa[ab9517ab64be802e]::back::link::link_binary 12: 0x7943a49209be - <rustc_codegen_llvm[9d3d159f4de86b58]::LlvmCodegenBackend as rustc_codegen_ssa[ab9517ab64be802e]::traits::backend::CodegenBackend>::link 13: 0x7943a4920434 - <rustc_interface[aa59e22bcd409986]::queries::Linker>::link 14: 0x7943a47ebb23 - rustc_interface[aa59e22bcd409986]::interface::run_compiler::<core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>, rustc_driver_impl[efee53de8626d180]::run_compiler::{closure#0}>::{closure#1} 15: 0x7943a236fd5d - <rayon_core[3d20b23d40a5251c]::job::StackJob<rayon_core[3d20b23d40a5251c]::latch::LatchRef<rayon_core[3d20b23d40a5251c]::latch::LockLatch>, <rayon_core[3d20b23d40a5251c]::registry::Registry>::in_worker_cold<<rayon_core[3d20b23d40a5251c]::thread_pool::ThreadPool>::install<rustc_interface[aa59e22bcd409986]::util::run_in_thread_pool_with_globals<rustc_interface[aa59e22bcd409986]::interface::run_compiler<core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>, rustc_driver_impl[efee53de8626d180]::run_compiler::{closure#0}>::{closure#1}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#1}::{closure#0}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>>::{closure#0}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>> as rayon_core[3d20b23d40a5251c]::job::Job>::execute 16: 0x7943a1e8d8de - <rayon_core[3d20b23d40a5251c]::registry::WorkerThread>::wait_until_cold 17: 0x7943a1e8b469 - <rayon_core[3d20b23d40a5251c]::registry::ThreadBuilder>::run 18: 0x7943a2368617 - <<crossbeam_utils[12652dbc0cf7bb47]::thread::ScopedThreadBuilder>::spawn<<rayon_core[3d20b23d40a5251c]::ThreadPoolBuilder>::build_scoped<rustc_interface[aa59e22bcd409986]::util::run_in_thread_pool_with_globals<rustc_interface[aa59e22bcd409986]::interface::run_compiler<core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>, rustc_driver_impl[efee53de8626d180]::run_compiler::{closure#0}>::{closure#1}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#0}, rustc_interface[aa59e22bcd409986]::util::run_in_thread_pool_with_globals<rustc_interface[aa59e22bcd409986]::interface::run_compiler<core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>, rustc_driver_impl[efee53de8626d180]::run_compiler::{closure#0}>::{closure#1}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#1}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, ()>::{closure#0} as core[ba50336fd15f7b99]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 19: 0x7943a235be0e - std[a1dbd854c1325271]::sys::backtrace::__rust_begin_short_backtrace::<alloc[3fbf3ac9bf9e6fee]::boxed::Box<dyn core[ba50336fd15f7b99]::ops::function::FnOnce<(), Output = ()> + core[ba50336fd15f7b99]::marker::Send>, ()> 20: 0x7943a236830a - <<std[a1dbd854c1325271]::thread::Builder>::spawnunchecked<alloc[3fbf3ac9bf9e6fee]::boxed::Box<dyn core[ba50336fd15f7b99]::ops::function::FnOnce<(), Output = ()> + core[ba50336fd15f7b99]::marker::Send>, ()>::{closure#1} as core[ba50336fd15f7b99]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 21: 0x7943a487e6ab - std::sys::pal::unix::thread::Thread::new::thread_start::h524c2fb54e75be43 22: 0x79439ea9ca94 - start_thread at ./nptl/pthread_create.c:447:8 23: 0x79439eb29c3c - clone3 at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 24: 0x0 -

rustc version: 1.82.0-nightly (4074d4902 2024-08-23) platform: x86_64-unknown-linux-gnu

Dididididii commented 2 months ago

I also have the same problem. Have you solved it?

tungyao commented 2 months ago

I also have the same problem. Have you solved it?

I removed a lot of module to compile it

Dididididii commented 2 months ago

I also have the same problem. Have you solved it?

I removed a lot of module to compile it

I want to ask, is it difficult to compile on windows system?

chettoy commented 2 months ago

here is the file content,thank u @chettoy thread 'rustc' panicked at compiler/rustc_codegen_ssa/src/back/archive.rs:453:29: range end index 56048152 out of range for slice of length 54914853 stack backtrace: 0: 0x7943a4a7dae5 - std::backtrace::Backtrace::create::h7d2dc8e7359e23d1 1: 0x7943a31d7fe5 - std::backtrace::Backtrace::force_capture::h9da8509fb866dd5e 2: 0x7943a2365fce - std[a1dbd854c1325271]::panicking::update_hook::<alloc[3fbf3ac9bf9e6fee]::boxed::Box<rustc_driver_impl[efee53de8626d180]::install_ice_hook::{closure#0}>>::{closure#0} 3: 0x7943a31efe57 - std::panicking::rust_panic_with_hook::h76eaaf856d4627ce 4: 0x7943a31efb17 - std::panicking::begin_panic_handler::{{closure}}::h822501910e3f1a1e 5: 0x7943a31ed319 - std::sys::backtrace::__rust_end_short_backtrace::hd0a94a8e1050aebb 6: 0x7943a31ef7e4 - rust_begin_unwind 7: 0x7943a10be9b3 - core::panicking::panic_fmt::h20afa97c0700e760 8: 0x7943a0d84537 - core::slice::index::slice_end_index_len_fail::h67e874000ea72dbd 9: 0x7943a470bf7a - <rustc_codegen_ssa[ab9517ab64be802e]::back::archive::ArArchiveBuilder>::build_inner 10: 0x7943a47095f0 - <rustc_codegen_ssa[ab9517ab64be802e]::back::archive::ArArchiveBuilder as rustc_codegen_ssa[ab9517ab64be802e]::back::archive::ArchiveBuilder>::build 11: 0x7943a1aa6fec - rustc_codegen_ssa[ab9517ab64be802e]::back::link::link_binary 12: 0x7943a49209be - <rustc_codegen_llvm[9d3d159f4de86b58]::LlvmCodegenBackend as rustc_codegen_ssa[ab9517ab64be802e]::traits::backend::CodegenBackend>::link 13: 0x7943a4920434 - <rustc_interface[aa59e22bcd409986]::queries::Linker>::link 14: 0x7943a47ebb23 - rustc_interface[aa59e22bcd409986]::interface::run_compiler::<core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>, rustc_driver_impl[efee53de8626d180]::run_compiler::{closure#0}>::{closure#1} 15: 0x7943a236fd5d - <rayon_core[3d20b23d40a5251c]::job::StackJob<rayon_core[3d20b23d40a5251c]::latch::LatchRef<rayon_core[3d20b23d40a5251c]::latch::LockLatch>, <rayon_core[3d20b23d40a5251c]::registry::Registry>::in_worker_cold<<rayon_core[3d20b23d40a5251c]::thread_pool::ThreadPool>::install<rustc_interface[aa59e22bcd409986]::util::run_in_thread_pool_with_globals<rustc_interface[aa59e22bcd409986]::interface::run_compiler<core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>, rustc_driver_impl[efee53de8626d180]::run_compiler::{closure#0}>::{closure#1}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#1}::{closure#0}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>>::{closure#0}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>> as rayon_core[3d20b23d40a5251c]::job::Job>::execute 16: 0x7943a1e8d8de - <rayon_core[3d20b23d40a5251c]::registry::WorkerThread>::wait_until_cold 17: 0x7943a1e8b469 - <rayon_core[3d20b23d40a5251c]::registry::ThreadBuilder>::run 18: 0x7943a2368617 - <<crossbeam_utils[12652dbc0cf7bb47]::thread::ScopedThreadBuilder>::spawn<<rayon_core[3d20b23d40a5251c]::ThreadPoolBuilder>::build_scoped<rustc_interface[aa59e22bcd409986]::util::run_in_thread_pool_with_globals<rustc_interface[aa59e22bcd409986]::interface::run_compiler<core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>, rustc_driver_impl[efee53de8626d180]::run_compiler::{closure#0}>::{closure#1}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#0}, rustc_interface[aa59e22bcd409986]::util::run_in_thread_pool_with_globals<rustc_interface[aa59e22bcd409986]::interface::run_compiler<core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>, rustc_driver_impl[efee53de8626d180]::run_compiler::{closure#0}>::{closure#1}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>>::{closure#3}::{closure#0}::{closure#1}, core[ba50336fd15f7b99]::result::Result<(), rustc_span[7709997ecec77dfd]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}, ()>::{closure#0} as core[ba50336fd15f7b99]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 19: 0x7943a235be0e - std[a1dbd854c1325271]::sys::backtrace::__rust_begin_short_backtrace::<alloc[3fbf3ac9bf9e6fee]::boxed::Box<dyn core[ba50336fd15f7b99]::ops::function::FnOnce<(), Output = ()> + core[ba50336fd15f7b99]::marker::Send>, ()> 20: 0x7943a236830a - <<std[a1dbd854c1325271]::thread::Builder>::spawnunchecked<alloc[3fbf3ac9bf9e6fee]::boxed::Box<dyn core[ba50336fd15f7b99]::ops::function::FnOnce<(), Output = ()> + core[ba50336fd15f7b99]::marker::Send>, ()>::{closure#1} as core[ba50336fd15f7b99]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 21: 0x7943a487e6ab - std::sys::pal::unix::thread::Thread::new::thread_start::h524c2fb54e75be43 22: 0x79439ea9ca94 - start_thread at ./nptl/pthread_create.c:447:8 23: 0x79439eb29c3c - clone3 at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 24: 0x0 -

rustc version: 1.82.0-nightly (4074d4902 2024-08-23) platform: x86_64-unknown-linux-gnu

This looks like a compiler crash, not a compilation error.

chettoy commented 2 months ago

I want to ask, is it difficult to compile on windows system?

The process is basically the same, you need to install the dependencies and then use rust nightly to compile for the x86_64-pc-windows-msvc target.