Skip to content

STATUS_ACCESS_VIOLATION while building Rust #53149

Closed
@retep998

Description

@retep998

While building 11a9024

> python x.py build
Updating only changed submodules
Submodules updated in 0.27 seconds
    Finished dev [unoptimized] target(s) in 0.46s
Building stage0 std artifacts (x86_64-pc-windows-msvc -> x86_64-pc-windows-msvc)
    Finished release [optimized] target(s) in 0.55s
Copying stage0 std from stage0 (x86_64-pc-windows-msvc -> x86_64-pc-windows-msvc / x86_64-pc-windows-msvc)
Building stage0 test artifacts (x86_64-pc-windows-msvc -> x86_64-pc-windows-msvc)
    Finished release [optimized] target(s) in 0.46s
Copying stage0 test from stage0 (x86_64-pc-windows-msvc -> x86_64-pc-windows-msvc / x86_64-pc-windows-msvc)
Building stage0 compiler artifacts (x86_64-pc-windows-msvc -> x86_64-pc-windows-msvc)
    Finished release [optimized] target(s) in 0.62s
Copying stage0 rustc from stage0 (x86_64-pc-windows-msvc -> x86_64-pc-windows-msvc / x86_64-pc-windows-msvc)
Building stage0 codegen artifacts (x86_64-pc-windows-msvc -> x86_64-pc-windows-msvc, llvm)
    Finished release [optimized] target(s) in 0.56s
Assembling stage1 compiler (x86_64-pc-windows-msvc)
Building stage1 std artifacts (x86_64-pc-windows-msvc -> x86_64-pc-windows-msvc)
   Compiling core v0.0.0 (file:///C:/Users/Peter/Code/rust/src/libcore)
error: Could not compile `core`.

Caused by:
  process didn't exit successfully: `C:\Users\Peter\Code\rust\build\bootstrap/debug/rustc --crate-name core libcore\lib.rs --error-format json --crate-type lib --emit=dep-info,link -C opt-level=2 -C metadata=fe30dcbc8042d94b -C extra-filename=-fe30dcbc8042d94b --out-dir C:\Users\Peter\Code\rust\build\x86_64-pc-windows-msvc\stage1-std\x86_64-pc-windows-msvc\release\deps --target x86_64-pc-windows-msvc -L dependency=C:\Users\Peter\Code\rust\build\x86_64-pc-windows-msvc\stage1-std\x86_64-pc-windows-msvc\release\deps -L dependency=C:\Users\Peter\Code\rust\build\x86_64-pc-windows-msvc\stage1-std\release\deps -C target-cpu=native` (exit code: 3221225477)
command did not execute successfully: "C:\\Users\\Peter\\Code\\rust\\build\\x86_64-pc-windows-msvc\\stage0\\bin\\cargo.exe" "build" "--target" "x86_64-pc-windows-msvc" "-j" "16" "--release" "--features" "panic-unwind backtrace" "--manifest-path" "C:\\Users\\Peter\\Code\\rust\\src/libstd/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101
thread 'main' panicked at 'cargo must succeed', bootstrap\compile.rs:1118:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failed to run: C:\Users\Peter\Code\rust\build\bootstrap\debug\bootstrap build
Build completed unsuccessfully in 0:00:07

config.toml

[llvm]
release-debuginfo = true
assertions = true
targets = "X86"
experimental-targets = ""
[build]
build = "x86_64-pc-windows-msvc"
docs = false
low-priority = true
[install]
[rust]
optimize = true
debug-assertions = true
debuginfo = true
debuginfo-tools = true
[target.x86_64-pc-windows-msvc]
[dist]

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-windows-msvcToolchain: MSVC, Operating system: WindowsT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions