Skip to content

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

Open
@wmjb

Description

@wmjb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️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