Subject: Re: [bug#78484] [PATCH] rust: Bootstrap from version 1.74.0.

From: Danny Milosavljevic <[email-masked]>
Date: Mon, 19 May 2025 19:20:28 +0200

Hi,

I've tested it and first time around I got the following.

   Compiling std_detect v0.1.5 (/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/library/stdarch/crates/std_detect)
   Compiling addr2line v0.21.0
error: rustc interrupted by SIGSEGV, printing backtrace

/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x7f0346)[0x7ffff41f0346]
/gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/lib/libc.so.6(+0x3e560)[0x7ffff3860560]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x11847c5)[0x7ffff4b847c5]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(_RNvXs1_NtCs12SYDhWUoCW_19rustc_mir_transform3gvnNtB5_7VnStateNtNtNtCslJ9B1MvaQX0_12rustc_middle3mir5visit10MutVisitor15visit_statement+0xfc)[0x7ffff4b8498c]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(_RNvXNtCs12SYDhWUoCW_19rustc_mir_transform3gvnNtB2_3GVNNtNtCslJ9B1MvaQX0_12rustc_middle3mir7MirPass8run_pass+0x7e6)[0x7ffff4b865b6]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x111febb)[0x7ffff4b1febb]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(_RNvCs12SYDhWUoCW_19rustc_mir_transform13optimized_mir+0x737)[0x7ffff4b2e667]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x1d70bce)[0x7ffff5770bce]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x1da6810)[0x7ffff57a6810]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x1f7a4c8)[0x7ffff597a4c8]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x1dd8f59)[0x7ffff57d8f59]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x2825576)[0x7ffff6225576]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(_RNvNtNtCs3HcOcE3jXp0_14rustc_metadata5rmeta7encoder15encode_metadata+0x1331)[0x7ffff6233aa1]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(_RNvNtCs3HcOcE3jXp0_14rustc_metadata2fs25encode_and_write_metadata+0x1c2)[0x7ffff6210452]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(_RNvNtCsg4NmrJqdB1j_15rustc_interface6passes13start_codegen+0x197)[0x7ffff4360017]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x9d5988)[0x7ffff43d5988]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(_RNvMs3_NtCsg4NmrJqdB1j_15rustc_interface7queriesNtB5_7Queries24codegen_and_build_linker+0x30)[0x7ffff43bad70]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x7a5553)[0x7ffff41a5553]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x7bf541)[0x7ffff41bf541]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x7e7380)[0x7ffff41e7380]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver-b6c81eef2f88e71b.so(+0x7c7941)[0x7ffff41c7941]
/gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/libstd-2f49e6c5f8c62b26.so(rust_metadata_std_88c4550c1155c094+0x64535)[0x7ffff7edc535]
/gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/lib/libc.so.6(+0x867f4)[0x7ffff38a87f4]
/gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/lib/libc.so.6(+0xfd5e8)[0x7ffff391f5e8]

note: we would appreciate a report at https://github.com/rust-lang/rust
note: backtrace dumped due to SIGSEGV! resuming signal
rustc exited with signal: 11 (SIGSEGV)
error: could not compile `std` (lib)

Caused by:
  process didn't exit successfully: `/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/bootstrap/debug/rustc /tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/bootstrap/debug/rustc --crate-name std --edition=2021 library/std/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type dylib --crate-type rlib --emit=dep-info,link -C prefer-dynamic -C opt-level=3 -C embed-bitcode=no --cfg 'feature="addr2line"' --cfg 'feature="backtrace"' --cfg 'feature="gimli-symbolize"' --cfg 'feature="miniz_oxide"' --cfg 'feature="object"' --cfg 'feature="panic_unwind"' --cfg 'feature="std_detect_dlsym_getauxval"' --cfg 'feature="std_detect_file_io"' -Zunstable-options --check-cfg 'cfg(feature, values("addr2line", "backtrace", "compiler-builtins-c", "compiler-builtins-mangled-names", "compiler-builtins-mem", "compiler-builtins-no-asm", "compiler-builtins-weak-intrinsics", "gimli-symbolize", "llvm-libunwind", "miniz_oxide", "object", "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"))' -C metadata=5bd25c808e006461 -C extra-filename=-5bd25c808e006461 --out-dir /tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/release/deps --extern 'priv:addr2line=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libaddr2line-57e69f6cf50b537d.rlib' --extern alloc=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/liballoc-d53df70cb8adbb00.rlib --extern 'priv:cfg_if=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libcfg_if-5dc786e7f7c2e692.rlib' --extern 'priv:compiler_builtins=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libcompiler_builtins-886e136a2fd55680.rlib' --extern core=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libcore-8c94e8d207d10fe9.rlib --extern 'priv:hashbrown=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libhashbrown-1fb491793304cd78.rlib' --extern libc=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/liblibc-3e25b89e388ac0b7.rlib --extern 'priv:miniz_oxide=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libminiz_oxide-b4f398c72f07b575.rlib' --extern 'priv:object=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libobject-9088b5375e33ed28.rlib' --extern 'priv:panic_abort=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libpanic_abort-4507de92ecd6bf32.rlib' --extern 'priv:panic_unwind=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libpanic_unwind-7518274129638bff.rlib' --extern 'priv:rustc_demangle=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/librustc_demangle-222ca244345da321.rlib' --extern 'priv:std_detect=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libstd_detect-de82c72cd3e622fd.rlib' --extern 'priv:unwind=/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libunwind-22bfbc8f6bbd4395.rlib' -Z unstable-options --cfg=bootstrap -Csymbol-mangling-version=legacy -Zunstable-options '--check-cfg=cfg(feature,values(any()))' -Zunstable-options '--check-cfg=cfg(bootstrap)' '--check-cfg=cfg(stdarch_intel_sde)' '--check-cfg=cfg(no_fp_fmt_parse)' '--check-cfg=cfg(no_global_oom_handling)' '--check-cfg=cfg(no_rc)' '--check-cfg=cfg(no_sync)' '--check-cfg=cfg(netbsd10)' '--check-cfg=cfg(backtrace_in_libstd)' '--check-cfg=cfg(target_env,values("libnx","p2"))' '--check-cfg=cfg(target_arch,values("arm64ec","spirv","nvptx","xtensa"))' -Zmacro-backtrace -Csplit-debuginfo=off -Cprefer-dynamic -Zinline-mir -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' '-Zcrate-attr=doc(html_root_url="https://doc.rust-lang.org/1.78.0/")' -Z binary-dep-depinfo --cfg backtrace_in_libstd` (exit status: 254)
Build completed unsuccessfully in 0:00:44
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "./x.py" arguments: ("-j16" "build" "--stage=1" "library/std" "src/tools/cargo") exit-status: 1 term-signal: #f stop-signal: #f> 
phase `build' failed after 44.2 seconds
command "./x.py" "-j16" "build" "--stage=1" "library/std" "src/tools/cargo" failed with status 1
build process 18 exited with status 256
note: keeping build directory `/tmp/guix-build-rust-1.78.0.drv-0'
builder for `/gnu/store/m489v41vf6djzdlncsin7960jg9rgx2n-rust-1.78.0.drv' failed with exit code 1
build of /gnu/store/m489v41vf6djzdlncsin7960jg9rgx2n-rust-1.78.0.drv failed
View build log at '/var/log/guix/drvs/m4/89v41vf6djzdlncsin7960jg9rgx2n-rust-1.78.0.drv.gz'.
cannot build derivation `/gnu/store/3h9aax6xnhmwlqq15b1m6sla782m04hd-rust-1.79.0.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/f8fhkkbvmn5fbnwjpxqdls6f6r4scbl9-rust-1.80.1.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/6aa0fhp44vf08dvnj8zis4jdgwykfj15-rust-1.81.0.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/7hh4m3bbgsv7ir4bzmpal6akpsxmy15g-rust-1.82.0.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/7hh4m3bbgsv7ir4bzmpal6akpsxmy15g-rust-1.82.0.drv' failed

Second time around with no change it worked fine.

So LGTM!