Skip to content
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

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

Closed
ehuss opened this issue Nov 11, 2024 · 6 comments
Closed

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

ehuss opened this issue Nov 11, 2024 · 6 comments
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@ehuss
Copy link
Contributor

ehuss commented Nov 11, 2024

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

@ehuss ehuss added C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Nov 11, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Nov 11, 2024
@onur-ozkan
Copy link
Member

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

@jieyouxu
Copy link
Member

jieyouxu commented Nov 11, 2024

@ehuss does #132720 fix it?

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

@jieyouxu
Copy link
Member

Maybe duplicate of #132719?

@jieyouxu
Copy link
Member

jieyouxu commented Nov 11, 2024

#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.

@jieyouxu jieyouxu removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Nov 11, 2024
@ehuss
Copy link
Contributor Author

ehuss commented Nov 11, 2024

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

@jieyouxu
Copy link
Member

Thanks, closing as a duplicate of #132719.

@jieyouxu jieyouxu closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

4 participants