-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: could not compile std
(lib) exit code: 0x80000003
#128498
Comments
std
(lib) exit code: 0x8000000std
(lib) exit code: 0x80000003
That exit code is EXCEPTION_BREAKPOINT. In other words a breakpoint was hit. There shouldn't be any breakpoints being hit unless you are running a debugger. Can you attach a debugger and try to get a backtrace? |
not sure how i would go about attaching a debugger to this , ill investigate. thanks. |
also tying to compile the
error[E0133]: call to unsafe function For more information about this error, try |
using windbg and attaching to rustc as it's compiling std ` ************* Preparing the environment for Debugger Extensions Gallery repositories ************** EnableRedirectToV8JsProvider : false -- Configuring repositories
************* Waiting for Debugger Extensions Gallery to Initialize **************
Microsoft (R) Windows Debugger Version 10.0.27553.1004 AMD64 *** wait with pending attach ************* Path validation summary ************** |
This seems to be a crash inside LLVM's memory allocator. |
im going to give it a try on another device with a fresh os install to see if it's something with the system. |
Is it a system with Intel 13 or 14 gen CPU by any chance? |
fist attempt was using a intel core i5-4590T both resulted in exactly the same error. |
I started encountering very similar issues after the recent LLVM update. |
managed to compile properly using a previous version , tried many, 1.74.1 worked. build steps were install windows 10 and visual studio 2022 community edition, dekstop C++ workload and arm toolchains and latest windows sdk in windows powershell as administrator (not using vcvars or vs dev cmd prompt) git clone --depth=1 https://github.com/rust-lang/rust.git -b 1.74.1 rust-1.74.1 |
cargo.toml.txt |
i'm a bit lost as to the next steps, do i run --edit partly figured it out |
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.73sBuilding stage0 library artifacts (x86_64-pc-windows-msvc)
Finished
release
profile [optimized] target(s) in 6.77sBuilding compiler artifacts (stage0 -> stage1, x86_64-pc-windows-msvc)
Finished
release
profile [optimized] target(s) in 5.78sCreating 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.58sBuilding stage0 tool wasm-component-ld (x86_64-pc-windows-msvc)
Finished
release
profile [optimized] target(s) in 1.58sBuilding tool llvm-bitcode-linker (stage0 -> stage1, x86_64-pc-windows-msvc)
Finished
release
profile [optimized] target(s) in 1.32sBuilding stage1 library artifacts (x86_64-pc-windows-msvc)
Finished
release
profile [optimized] target(s) in 3.10sBuilding compiler artifacts (stage1 -> stage2, x86_64-pc-windows-msvc)
Finished
release
profile [optimized] target(s) in 4.17sCreating 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.54sBuilding stage1 tool wasm-component-ld (x86_64-pc-windows-msvc)
Finished
release
profile [optimized] target(s) in 1.13sBuilding tool llvm-bitcode-linker (stage1 -> stage2, x86_64-pc-windows-msvc)
Finished
release
profile [optimized] target(s) in 1.05sBuilding 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
The text was updated successfully, but these errors were encountered: