rust-lang / rust-lang/rust

error: could not compile `std` (lib) exit code: 0x80000003

Open
#128,498 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-LLVM C-bug E-needs-bisection I-ICE T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

steps..

git clone https://github.com/rust-lang/rust.git
cd rust

python x.py setup

python x.py build --host x86_64-pc-windows-msvc --build x86_64-pc-windows-msvc --target thumbv7a-pc-windows-msvc -- --release

output..

Building bootstrap
    Finished `dev` profile [unoptimized] target(s) in 0.73s
Building stage0 library artifacts (x86_64-pc-windows-msvc)
    Finished `release` profile [optimized] target(s) in 6.77s
Building compiler artifacts (stage0 -> stage1, x86_64-pc-windows-msvc)
    Finished `release` profile [optimized] target(s) in 5.78s
Creating a sysroot for stage1 compiler (use `rustup toolchain link 'name' build/host/stage1`)
Building stage0 tool lld-wrapper (x86_64-pc-windows-msvc)
    Finished `release` profile [optimized] target(s) in 0.58s
Building stage0 tool wasm-component-ld (x86_64-pc-windows-msvc)
    Finished `release` profile [optimized] target(s) in 1.58s
Building tool llvm-bitcode-linker (stage0 -> stage1, x86_64-pc-windows-msvc)
    Finished `release` profile [optimized] target(s) in 1.32s
Building stage1 library artifacts (x86_64-pc-windows-msvc)
    Finished `release` profile [optimized] target(s) in 3.10s
Building compiler artifacts (stage1 -> stage2, x86_64-pc-windows-msvc)
    Finished `release` profile [optimized] target(s) in 4.17s
Creating a sysroot for stage2 compiler (use `rustup toolchain link 'name' build/host/stage2`)
Building stage1 tool lld-wrapper (x86_64-pc-windows-msvc)
    Finished `release` profile [optimized] target(s) in 0.54s
Building stage1 tool wasm-component-ld (x86_64-pc-windows-msvc)
    Finished `release` profile [optimized] target(s) in 1.13s
Building tool llvm-bitcode-linker (stage1 -> stage2, x86_64-pc-windows-msvc)
    Finished `release` profile [optimized] target(s) in 1.05s
Building stage2 library artifacts {alloc, core, panic_abort, panic_unwind, proc_macro, std, sysroot, test, unwind} (x86_64-pc-windows-msvc -> thumbv7a-pc-windows-msvc)
   Compiling std v0.0.0 (D:\rust\library\std)
error: could not compile `std` (lib)

Caused by:
  process didn't exit successfully: `D:\rust\build\bootstrap\debug\rustc D:\rust\build\bootstrap\debug\rustc --crate-name std --edition=2021 library\std\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=119 --crate-type dylib --crate-type rlib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --warn=unexpected_cfgs --cfg "feature=\"addr2line\"" --cfg "feature=\"backtrace\"" --cfg "feature=\"compiler-builtins-c\"" --cfg "feature=\"miniz_oxide\"" --cfg "feature=\"object\"" --cfg "feature=\"panic_unwind\"" --cfg "feature=\"std_detect_dlsym_getauxval\"" --cfg "feature=\"std_detect_file_io\"" --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values(\"addr2line\", \"backtrace\", \"compiler-builtins-c\", \"compiler-builtins-mangled-names\", \"compiler-builtins-mem\", \"compiler-builtins-no-asm\", \"compiler-builtins-no-f16-f128\", \"llvm-libunwind\", \"miniz_oxide\", \"object\", \"optimize_for_size\", \"panic-unwind\", \"panic_immediate_abort\", \"panic_unwind\", \"profiler\", \"profiler_builtins\", \"std_detect_dlsym_getauxval\", \"std_detect_env_override\", \"std_detect_file_io\", \"system-llvm-libunwind\", \"windows_raw_dylib\"))" --check-cfg cfg(bootstrap) --check-cfg "cfg(target_arch, values(\"xtensa\"))" --check-cfg "cfg(feature, values(any()))" -C metadata=8d8edc62bcc192a7 -C extra-filename=-8d8edc62bcc192a7 --out-dir D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\deps --target thumbv7a-pc-windows-msvc -L dependency=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\deps -L dependency=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\release\deps --extern alloc=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\deps\liballoc-64c5af467adecea6.rlib --extern priv:cfg_if=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\deps\libcfg_if-39ca9bdb037cfc93.rlib --extern priv:compiler_builtins=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\deps\libcompiler_builtins-2dd24f9fb1ee66e8.rlib --extern core=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\deps\libcore-1bd16df35471a96e.rlib --extern priv:hashbrown=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\deps\libhashbrown-8908b4430318034b.rlib --extern priv:panic_abort=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\deps\libpanic_abort-79cdc42c031ef029.rlib --extern priv:panic_unwind=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\deps\libpanic_unwind-917a8ede353cd7ab.rlib --extern priv:rustc_demangle=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\deps\librustc_demangle-5d7a0ca342650dd4.rlib --extern priv:std_detect=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\deps\libstd_detect-f2cdbbb9f9502900.rlib --extern priv:unwind=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\deps\libunwind-24150c2f5196627c.rlib -Z unstable-options -Csymbol-mangling-version=legacy -Zunstable-options --check-cfg=cfg(feature,values(any())) -Zunstable-options --check-cfg=cfg(bootstrap) -Zmacro-backtrace -Csplit-debuginfo=packed -Ctarget-feature=+crt-static -Cprefer-dynamic -Zinline-mir -Zinline-mir-preserve-debug -Cembed-bitcode=yes -Cforce-frame-pointers=yes "-Zcrate-attr=doc(html_root_url=\"https://doc.rust-lang.org/nightly/\")" -Z binary-dep-depinfo -L "native=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\atlmfc\lib\arm" -L native=D:\rust\build\x86_64-pc-windows-msvc\stage2-std\thumbv7a-pc-windows-msvc\release\build\compiler_builtins-1d52e78cbce2107d\out --cfg backtrace_in_libstd --check-cfg cfg(netbsd10) --check-cfg cfg(restricted_std) --check-cfg cfg(backtrace_in_libstd) --check-cfg cfg(reliable_f16) --check-cfg cfg(reliable_f128)` (exit code: 0x80000003)
Build completed unsuccessfully in 0:01:48

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the provided python x.py build command on Windows, targeting thumbv7a-pc-windows-msvc. Start with the library/std/src/lib.rs compilation invocation and its stage2 bootstrap context, then trace the 0x80000003 process exit. Done means identifying and resolving the cause of this cross-target std build failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.