Why Segmentation Fault error when compile rust stage 1 on Windows use VS 2026?

โš“ Rust    ๐Ÿ“… 2026-01-13    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 2      

surdeus

When I run ./x build --stage 1, I get a STATUS_ACCESS_VIOLATION error.
I saw this issue: STATUS_ACCESS_VIOLATION with compile stage1 on rust 1.92 on Win11 ยท Issue #150280 ยท rust-lang/rust ยท GitHub.
Downloading and switching to the Visual Studio 2022 Build Tools solved this error,
but I still don't know why.
Will rust support vs 2026, and how?

  process didn't exit successfully: `C:\Users\X\tmp\rust\build\bootstrap\debug\rustc C:\Users\X\tmp\rust\build\bootstrap\debug\rustc --crate-name rustc_demangle --edition=2015 C:\Users\X\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\rustc-demangle-0.1.26\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=178 --crate-type lib --emit=dep-info,metadata,link -C opt-level=s -C embed-bitcode=no --cfg "feature=\"core\"" --cfg "feature=\"rustc-dep-of-std\"" --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values(\"compiler_builtins\", \"core\", \"rustc-dep-of-std\", \"std\"))" -C metadata=4ea3c0cda6c4cef8 -C extra-filename=-fa80eb7408a946c1 --out-dir C:\Users\X\tmp\rust\build\x86_64-pc-windows-msvc\stage1-std\x86_64-pc-windows-msvc\release\deps --target x86_64-pc-windows-msvc -C strip=debuginfo -L dependency=C:\Users\X\tmp\rust\build\x86_64-pc-windows-msvc\stage1-std\x86_64-pc-windows-msvc\release\deps -L dependency=C:\Users\X\tmp\rust\build\x86_64-pc-windows-msvc\stage1-std\release\deps --extern core=C:\Users\X\tmp\rust\build\x86_64-pc-windows-msvc\stage1-std\x86_64-pc-windows-msvc\release\deps\librustc_std_workspace_core-7cc92d00456cc95b.rmeta --cap-lints allow -Csymbol-mangling-version=v0 -Zannotate-moves --check-cfg=cfg(feature,values(any())) -Zunstable-options -Zmacro-backtrace -Csplit-debuginfo=packed -Ctarget-feature=+crt-static -Cprefer-dynamic -Zinline-mir -Zinline-mir-preserve-debug -Zmir_strip_debuginfo=locals-in-tiny-functions -Alinker-messages -Cembed-bitcode=yes -Zunstable-options -Cforce-frame-pointers=non-leaf "-Zcrate-attr=doc(html_root_url=\"https://doc.rust-lang.org/nightly/\")" -Z binary-dep-depinfo` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
command did not execute successfully: "C:\\Users\\X\\tmp\\rust\\build\\x86_64-pc-windows-msvc\\stage0\\bin\\cargo.exe" "build" "--target" "x86_64-pc-windows-msvc" "-Zbinary-dep-depinfo" "-j" "16" "-Zroot-dir=C:\\Users\\X\\tmp\\rust" "--release" "-p" "alloc" "-p" "compiler_builtins" "-p" "core" "-p" "panic_abort" "-p" "panic_unwind" "-p" "proc_macro" "-p" "rustc-std-workspace-core" "-p" "std" "-p" "std_detect" "-p" "sysroot" "-p" "test" "-p" "unwind" "--features" "backtrace panic-unwind" "--manifest-path" "C:\\Users\\X\\tmp\\rust\\library/sysroot/Cargo.toml" "--message-format" "json-render-diagnostics" (failure_mode=Exit)

1 post - 1 participant

Read full topic

๐Ÿท๏ธ Rust_feed