Skip to content

rust-dev LLVM artifacts are corrupt on FreeBSD 13 #96633

Open
@m-ou-se

Description

@m-ou-se

On a fresh (x86-64) FreeBSD installation, running ./x.py build library/std results in a segfault:

# ./x.py build library/std
Updating only changed submodules
  Submodules updated in 0.01 seconds
extracting /root/rust/build/cache/2022-04-05/rust-std-beta-x86_64-unknown-freebsd.tar.xz
extracting /root/rust/build/cache/2022-04-05/rustc-beta-x86_64-unknown-freebsd.tar.xz
extracting /root/rust/build/cache/2022-04-05/cargo-beta-x86_64-unknown-freebsd.tar.xz
extracting /root/rust/build/cache/2022-04-05/rustfmt-nightly-x86_64-unknown-freebsd.tar.xz
Building rustbuild

[...]

    Finished dev [unoptimized] target(s) in 16.78s
Building stage0 std artifacts (x86_64-unknown-freebsd -> x86_64-unknown-freebsd)

[...]

   Compiling test v0.0.0 (/root/rust/library/test)
    Finished release [optimized] target(s) in 24.57s
Copying stage0 std from stage0 (x86_64-unknown-freebsd -> x86_64-unknown-freebsd / x86_64-unknown-freebsd)
extracting /root/rust/build/cache/llvm-1388b38c52d1ca9fbc80bf42fa007504fb0b1b41-false/rust-dev-nightly-x86_64-unknown-freebsd.tar.xz to /root/rust/build/x86_64-unknown-freebsd/ci-llvm
Building stage0 compiler artifacts (x86_64-unknown-freebsd -> x86_64-unknown-freebsd)

[...]

   Compiling rustc-main v0.0.0 (/root/rust/compiler/rustc)
    Finished release [optimized] target(s) in 1m 41s
Copying stage0 rustc from stage0 (x86_64-unknown-freebsd -> x86_64-unknown-freebsd / x86_64-unknown-freebsd)
Assembling stage1 compiler (x86_64-unknown-freebsd)
Building stage1 std artifacts (x86_64-unknown-freebsd -> x86_64-unknown-freebsd)
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `/root/rust/build/bootstrap/debug/rustc - --crate-name ___ --print=file-names -Csymbol-mangling-version=legacy -Zunstable-options -Zunstable-options '--check-cfg=names()' '--check-cfg=values()' '--check-cfg=values(bootstrap)' '--check-cfg=values(stdarch_intel_sde)' '--check-cfg=values(no_fp_fmt_parse)' '--check-cfg=values(no_global_oom_handling)' '--check-cfg=values(freebsd12)' '--check-cfg=values(backtrace_in_libstd)' '--check-cfg=values(target_env,"libnx")' '--check-cfg=values(target_os,"watchos")' '--check-cfg=values(target_arch,"asmjs","spirv","nvptx","nvptx64","le32","xtensa")' '--check-cfg=values(dont_compile_me)' -Zmacro-backtrace -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Csplit-debuginfo=off -Cprefer-dynamic -Cembed-bitcode=yes '-Zcrate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/")' --target x86_64-unknown-freebsd --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit status: 254)
  --- stderr
  rustc exited with signal: 11 (core dumped)
Build completed unsuccessfully in 0:02:46

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.E-help-wantedCall for participation: Help is requested to fix this issue.O-freebsdOperating system: FreeBSDT-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