Skip to content

tools depending on rustc crates can't build with rust.download-rustc=true and llvm.download-ci-llvm=false options #123586

Closed
@onur-ozkan

Description

@onur-ozkan

When trying to build tools that rely on rustc crates using the rust.download-rustc=true and llvm.download-ci-llvm=false options, ld can not find the LLVM it needs.

$ x build miri
...
...
...
  = note: /usr/bin/ld: cannot find -lLLVM-18-rust-1.79.0-nightly: No such file or directory
          collect2: error: ld returned 1 exit status


error: could not compile `rustdoc-tool` (bin "rustdoc_tool_binary") due to 1 previous error
Build completed unsuccessfully in 0:01:02

I have also attempted to build rustdoc and clippy and they too failed due to the same issue. So I am quite sure this happens on any tool that uses rustc crates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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