Skip to content

Bootstrap fails "No such file" for llvm-objcopy #132903

@ehuss

Description

@ehuss
Contributor

Recently, build of rustc is failing with:

src.symlink_metadata() failed with No such file or directory (os error 2) ("src = /rust/build/aarch64-unknown-linux-gnu/stage1/lib/rustlib/aarch64-unknown-linux-gnu/bin/llvm-objcopy")

Steps:

  1. git clone https://github.com/rust-lang/rust.git
  2. cd rust
  3. ./x.py build

Meta

Currently on d4822c2

Tested on aarch64-unknown-linux-gnu and x86_64-unknown-linux-gnu

Activity

added
C-bugCategory: This is a bug.
T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
on Nov 11, 2024
added
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Nov 11, 2024
onur-ozkan

onur-ozkan commented on Nov 11, 2024

@onur-ozkan
Member

cc @jieyouxu (I think you did some work related to this very recently, if I am not mistaken)

jieyouxu

jieyouxu commented on Nov 11, 2024

@jieyouxu
Member

@ehuss does #132720 fix it?

(That PR is in the queue, hasn't landed yet)

jieyouxu

jieyouxu commented on Nov 11, 2024

@jieyouxu
Member

Maybe duplicate of #132719?

jieyouxu

jieyouxu commented on Nov 11, 2024

@jieyouxu
Member

#132719 is

src.symlink_metadata() failed with No such file or directory (os error 2) ("src = /home/runner/work/rustc_codegen_cranelift/rustc_codegen_cranelift/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-objcopy")

so yeah I'm fairly certain this is the same problem, i.e.

Shipping llvm-strip w/ a symlink breaks when bootstrap compiler doesn't contain any LLVM tools

Leaving this issue open for the time being in case ehuss is running into something different, but I'm fairly sure it's the same problem.

removed
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Nov 11, 2024
ehuss

ehuss commented on Nov 11, 2024

@ehuss
ContributorAuthor

Yes, I verified that this is fixed by #132720, and that this was introduced by #131405.

jieyouxu

jieyouxu commented on Nov 11, 2024

@jieyouxu
Member

Thanks, closing as a duplicate of #132719.

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

    C-bugCategory: This is a bug.T-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

        Participants

        @ehuss@jieyouxu@onur-ozkan@rustbot

        Issue actions

          Bootstrap fails "No such file" for llvm-objcopy · Issue #132903 · rust-lang/rust