Skip to content

x.py install fails with stage2/lib/rustlib/x86_64-unknown-linux-gnu/bin/rust-lld not found #143646

Closed as duplicate

Description

@dilyanpalauzov

I download https://static.rust-lang.org/dist/rustc-1.88.0-src.tar.xz , then execute ./configure --enable-optimize-llvm --enable-extended --llvm-root=/usr/local --enable-profiler --enable-llvm-link-shared --enable-sanitizers --disable-docs --target=x86_64-unknown-linux-gnu --enable-vendor && x.py build && x.py install. It fails with

Installing stage2 std (x86_64-unknown-linux-gnu)
install: uninstalling component 'rust-std-x86_64-unknown-linux-gnu'
install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh
install: installing component 'rust-std-x86_64-unknown-linux-gnu'

    rust std installed.

Building tool rustdoc_tool_binary (stage1 -> stage2, x86_64-unknown-linux-gnu)
    Finished `release` profile [optimized] target(s) in 7.22s
Building tool rust-analyzer-proc-macro-srv (stage1 -> stage2, x86_64-unknown-linux-gnu)
    Finished `release` profile [optimized] target(s) in 7.04s

thread 'main' panicked at src/bootstrap/src/lib.rs:1779:24:
src.symlink_metadata() failed with No such file or directory (os error 2) ("src = /src/rustc-1.88.0-src/A/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/bin/rust-lld")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Panic was initiated from src/bootstrap/src/lib.rs:1779:24
Build completed unsuccessfully in 0:05:30

Activity

  1. added
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    C-bugCategory: This is a bug.
    on Jul 8, 2025
  2. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Jul 8, 2025
  3. dilyanpalauzov commented on Jul 8, 2025

    @dilyanpalauzov
    Author

    The work-around from #143076 (comment) does work for me, except:

    Inside that directory, hardlink ld.lld, ld64.lld, lld-link, wasm-ld to rust-lld

    Instead I copied ld.lld, ld64.lld, lld-link, wasm-ld to bin/gcc-ld. That is I have not hardlink-ed the files to rust-lld (which I do not understand what means).

  4. Kobzol commented on Jul 8, 2025

    @Kobzol
    Member

    These files are normally just links that link to the rust-lld binary. Thanks for the report! It's pretty much the same as #143076, so closing as a duplicate. You can continue the discussion there if you want!

  5. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Jul 9, 2025
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

      Issue actions