Closed
Description
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.