Skip to content

STATUS_ACCESS_VIOLATION with compile stage1 on rust 1.92 on Win11 #150280

@AveNRU

Description

@AveNRU

I want compile with instructions
https://rustc-dev-guide.rust-lang.org/profiling/wpa_profiling.html?utm_source=
I was clone github Rust on this link https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html
And not can compile because every time call errors

I tried this code:

PS E:\Rust\rust_lang> x build --stage 1 -i library
Building bootstrap
    Finished `dev` profile [unoptimized] target(s) in 0.07s
Building stage1 compiler artifacts (stage0 -> stage1, x86_64-pc-windows-msvc)
    Finished `release` profile [optimized + debuginfo] target(s) in 1.40s
Creating a sysroot for stage1 compiler (use `rustup toolchain link 'name' build/host/stage1`)
Building stage1 library artifacts{alloc, compiler_builtins, core, panic_abort, panic_unwind, proc_macro, rustc-std-workspace-core, std, std_detect, sysroot, test, unwind} (stage1 -> stage1, x86_64-pc-windows-msvc)
   Compiling core v0.0.0 (E:\Rust\rust_lang\library\core)
   Compiling compiler_builtins v0.1.160 (E:\Rust\rust_lang\library\compiler-builtins\compiler-builtins)
   Compiling rustc-std-workspace-core v1.99.0 (E:\Rust\rust_lang\library\rustc-std-workspace-core)
   Compiling alloc v0.0.0 (E:\Rust\rust_lang\library\alloc)
   Compiling unwind v0.0.0 (E:\Rust\rust_lang\library\unwind)
   Compiling cfg-if v1.0.4
   Compiling panic_abort v0.0.0 (E:\Rust\rust_lang\library\panic_abort)
   Compiling rustc-demangle v0.1.26
error: could not compile `core` (lib)

Caused by:
  process didn't exit successfully: `E:\Rust\rust_lang\build\bootstrap\debug\rustc E:\Rust\rust_lang\build\bootstrap\debug\rustc --crate-name core --edition=2024 library\core\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=345 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=1 --warn=unexpected_cfgs --check-cfg cfg(no_fp_fmt_parse) --check-cfg "cfg(feature, values(any()))" --check-cfg cfg(target_has_reliable_f16) --check-cfg cfg(target_has_reliable_f16_math) --check-cfg cfg(target_has_reliable_f128) --check-cfg cfg(target_has_reliable_f128_math) --check-cfg cfg(llvm_enzyme) -C debug-assertions=on -C overflow-checks=off --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values(\"debug_refcell\", \"llvm_enzyme\", \"optimize_for_size\", \"panic_immediate_abort\"))" -C metadata=915dbe68c7f06dd4 -C extra-filename=-f552b88d889e5ecf --out-dir E:\Rust\rust_lang\build\x86_64-pc-windows-msvc\stage1-std\x86_64-pc-windows-msvc\release\deps --target x86_64-pc-windows-msvc -L dependency=E:\Rust\rust_lang\build\x86_64-pc-windows-msvc\stage1-std\x86_64-pc-windows-msvc\release\deps -L dependency=E:\Rust\rust_lang\build\x86_64-pc-windows-msvc\stage1-std\release\deps -Csymbol-mangling-version=v0 -Zannotate-moves --check-cfg=cfg(feature,values(any())) -Zunstable-options -Zmacro-backtrace -Csplit-debuginfo=packed -Ctarget-feature=+crt-static -Cforce-frame-pointers=true -Cprefer-dynamic -Cllvm-args=-import-instr-limit=10 -Zinline-mir -Zinline-mir-preserve-debug -Zmir_strip_debuginfo=locals-in-tiny-functions -Alinker-messages -Cembed-bitcode=yes -Clto=off -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)
warning: build failed, waiting for other jobs to finish...
error: could not compile `rustc-demangle` (lib)

Caused by:
  process didn't exit successfully: `E:\Rust\rust_lang\build\bootstrap\debug\rustc E:\Rust\rust_lang\build\bootstrap\debug\rustc --crate-name rustc_demangle --edition=2015 C:\Users\AveN\.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=345 --crate-type lib --emit=dep-info,metadata,link -C opt-level=s -C embed-bitcode=no -C debug-assertions=on -C overflow-checks=off --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=5ede4a4301b5ad78 -C extra-filename=-a125671bbde35ef0 --out-dir E:\Rust\rust_lang\build\x86_64-pc-windows-msvc\stage1-std\x86_64-pc-windows-msvc\release\deps --target x86_64-pc-windows-msvc -L dependency=E:\Rust\rust_lang\build\x86_64-pc-windows-msvc\stage1-std\x86_64-pc-windows-msvc\release\deps -L dependency=E:\Rust\rust_lang\build\x86_64-pc-windows-msvc\stage1-std\release\deps --extern core=E:\Rust\rust_lang\build\x86_64-pc-windows-msvc\stage1-std\x86_64-pc-windows-msvc\release\deps\librustc_std_workspace_core-42362025b8f96026.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 -Cforce-frame-pointers=true -Cprefer-dynamic -Cllvm-args=-import-instr-limit=10 -Zinline-mir -Zinline-mir-preserve-debug -Zmir_strip_debuginfo=locals-in-tiny-functions -Alinker-messages -Cembed-bitcode=yes -Clto=off -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)
Build completed unsuccessfully in 0:00:38

`rustc --1.92
Win 11
VS Studio Insiders 2026

On E:\Rust\rust_lang\bootstrap.toml

# See bootstrap.example.toml for documentation of available options
#
profile = "compiler"  # Includes one of the default files in src/bootstrap/defaults
change-id = 149354
[rust]
debuginfo-level = 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-discussionCategory: Discussion or questions that doesn't represent real issues.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions