Skip to content

v8 (for deno) doesn't compile on stable-x86_64-pc-windows-msvc #147094

@sebbu2

Description

@sebbu2

Code

cargo install --locked --all-features deno --target x86_64-pc-windows-msvc

Meta

rustc --version --verbose:

rustc 1.90.0 (1159e78c4 2025-09-14)
binary: rustc
commit-hash: 1159e78c4747b02ef996e55082b704c09b970588
commit-date: 2025-09-14
host: x86_64-pc-windows-msvc
release: 1.90.0
LLVM version: 20.1.8

Error output

thread 'rustc' panicked at compiler\rustc_codegen_ssa\src\back\archive.rs:481:29:
range end index 1440877612 out of range for slice of length 1440776192
stack backtrace:
   0:     0x7ff913708b82 - std::backtrace_rs::backtrace::win64::trace
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
   1:     0x7ff913708b82 - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ff913708b82 - std::sys::backtrace::_print_fmt
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\sys\backtrace.rs:66
   3:     0x7ff913708b82 - std::sys::backtrace::impl$0::print::impl$0::fmt
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\sys\backtrace.rs:39
   4:     0x7ff91373bbab - core::fmt::rt::Argument::fmt
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\core\src\fmt\rt.rs:173
   5:     0x7ff91373bbab - core::fmt::write
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\core\src\fmt\mod.rs:1468
   6:     0x7ff9136fe5d7 - std::io::default_write_fmt
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\io\mod.rs:639
   7:     0x7ff9136fe5d7 - std::io::Write::write_fmt<std::sys::stdio::windows::Stderr>
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\io\mod.rs:1954
   8:     0x7ff9137089c5 - std::sys::backtrace::BacktraceLock::print
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\sys\backtrace.rs:42
   9:     0x7ff91370e729 - std::panicking::default_hook::closure$0
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\panicking.rs:300
  10:     0x7ff91370e49f - std::panicking::default_hook
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\panicking.rs:327
   Compiling scoped-tls v1.0.1
  11:     0x7ff914eda479 - core[443c7eb89c3a0e8]::slice::sort::unstable::heapsort::heapsort::<((rustc_lint_defs[b5dab8794e6fe27b]::Level, &str), usize), <((rustc_lint_defs[b5dab8794e6fe27b]::Level, &str), usize) as core[443c7eb89c3a0e8]::cmp::PartialOrd>::lt>
  12:     0x7ff91370f37a - std::panicking::rust_panic_with_hook
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\panicking.rs:841
  13:     0x7ff91370f0e9 - std::panicking::begin_panic_handler::closure$0
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\panicking.rs:706
  14:     0x7ff91370993f - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\sys\backtrace.rs:174
   Compiling httpdate v1.0.3
  15:     0x7ff91370ecfe - std::panicking::begin_panic_handler
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\panicking.rs:697
  16:     0x7ff91698fa21 - core::panicking::panic_fmt
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\core\src\panicking.rs:75
  17:     0x7ff9169909ae - core::slice::index::slice_end_index_len_fail::do_panic::runtime
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\core\src\panic.rs:218
  18:     0x7ff9169900af - core::slice::index::slice_end_index_len_fail
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\core\src\panic.rs:223
  19:     0x7ff914696565 - RINvMs6_NtCs3R9eRT1Oe2i_9hashbrown3rawINtB6_8RawTableTRINtNtNtCs5y5f17YIu3x_12rustc_middle2ty4list7RawListuNtNtBW_12generic_args10GenericArgENtNtCsgbr1mWUUPzi_10rustc_span6def_id8CrateNumEE14reserve_rehashNCINvNtB8_3map11make_hasherBQ_B2f_NtCsRalDs8BRm_10r
  20:     0x7ff9132f676d - <rustc_codegen_ssa[1c350e621ee76e2]::back::archive::ArArchiveBuilder as rustc_codegen_ssa[1c350e621ee76e2]::back::archive::ArchiveBuilder>::build
  21:     0x7ff9132f8506 - rustc_codegen_ssa[1c350e621ee76e2]::back::link::link_binary
  22:     0x7ff90fd1093d - <rustc_codegen_llvm[570e6ca01e2cde5e]::LlvmCodegenBackend as rustc_codegen_ssa[1c350e621ee76e2]::traits::backend::CodegenBackend>::link
  23:     0x7ff90fc95eea - <rustc_interface[1967195aafe50f11]::queries::Linker>::link
  24:     0x7ff90fc12a9a - std[6c5d1f3eac284022]::sys::backtrace::__rust_begin_short_backtrace::<<std[6c5d1f3eac284022]::thread::Builder>::spawn_unchecked_<ctrlc[235230c93d35bd7a]::set_handler_inner<rustc_driver_impl[d050a74338996c79]::install_ctrlc_handler::{closure#0}>::{closure#0}, ()>::{closure#1}::{closure#0}::{closure#0}, ()>
  25:     0x7ff90fc0e38f - RINvNtNtCs9iOHoBythrW_3std3sys9backtrace28___rust_begin_short_backtraceNCNCINvNtCs2bdwwDMrIBx_15rustc_interface4util26run_in_thread_with_globalsNCINvB1e_31run_in_thread_pool_with_globalsNCINvNtB1g_9interface12run_compileruNCNvCshSR4YUB5FzN_17rustc_driver_i
  26:     0x7ff90fc1c50d - std[6c5d1f3eac284022]::sys::backtrace::__rust_begin_short_backtrace::<<std[6c5d1f3eac284022]::thread::Builder>::spawn_unchecked_<ctrlc[235230c93d35bd7a]::set_handler_inner<rustc_driver_impl[d050a74338996c79]::install_ctrlc_handler::{closure#0}>::{closure#0}, ()>::{closure#1}::{closure#0}::{closure#0}, ()>
  27:     0x7ff913712f3d - alloc::boxed::impl$28::call_once
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\alloc\src\boxed.rs:1971
  28:     0x7ff913712f3d - alloc::boxed::impl$28::call_once
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\alloc\src\boxed.rs:1971
  29:     0x7ff913712f3d - std::sys::pal::windows::thread::impl$0::new::thread_start
                               at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library\std\src\sys\pal\windows\thread.rs:60
  30:     0x7ffa7b0b7374 - BaseThreadInitThunk
  31:     0x7ffa7d0bcc91 - RtlUserThreadStart

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: rustc 1.90.0 (1159e78c4 2025-09-14) running on x86_64-pc-windows-msvc

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=off

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

query stack during panic:
end of query stack
error: could not compile `v8` (lib)

Caused by:
  process didn't exit successfully: `C:\Users\sebbu\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name v8 --edition=2024 C:\Users\sebbu\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\v8-140.2.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=155 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=off --cfg "feature=\"use_custom_libcxx\"" --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values(\"default\", \"use_custom_libcxx\", \"v8_enable_pointer_compression\", \"v8_enable_v8_checks\"))" -C metadata=fb48fddb88d26398 -C extra-filename=-fe6cc2136de784bc --out-dir C:\dev\cargo\release\deps -L dependency=C:\dev\cargo\release\deps --extern bitflags=C:\dev\cargo\release\deps\libbitflags-9a89bf7c89ed1dee.rmeta --extern paste=C:\dev\cargo\release\deps\paste-21809c238b50f6b9.dll --extern temporal_capi=C:\dev\cargo\release\deps\libtemporal_capi-1ff7bee440a6f295.rmeta --cap-lints allow -L C:\dev\cargo\release\gn_out\obj -l static=rusty_v8 -l dylib=winmm -l dylib=dbghelp -l dylib=msvcprt` (exit code: 101)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `deno v2.5.2`, intermediate artifacts can be found at `C:\dev\cargo`.
Backtrace

see previous

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationC-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions