Skip to content

Linker error when building rustc after LLVM version change #98495

@RalfJung

Description

@RalfJung
Member

I just got this build error after rebasing over rustc master:

$ nice ./x.py test src/test/ui --test-args ub-wide --bless
Building rustbuild
    Finished dev [unoptimized] target(s) in 0.15s
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.14s
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.27s
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
error: process didn't exit successfully: `/home/r/src/rust/rustc.2/build/bootstrap/debug/rustc -vV` (exit status: 127)
--- stderr
/home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/stage1/bin/rustc: error while loading shared libraries: libLLVM-14-rust-1.63.0-nightly.so: cannot open shared object file: No such file or directory

Build completed unsuccessfully in 0:00:00

That file exists in ./build/x86_64-unknown-linux-gnu/ci-llvm/lib/libLLVM-14-rust-1.63.0-nightly.so but not anywhere else.

@jyn514 thinks this is probably because the rustc_llvm build scripts fails to run after the version change.

Activity

ehuss

ehuss commented on Jun 25, 2022

@ehuss
Contributor

Posted #98513 with a (hacky) fix.

added a commit that references this issue on Jun 26, 2022
fba8dfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @ehuss@RalfJung

      Issue actions

        Linker error when building rustc after LLVM version change · Issue #98495 · rust-lang/rust