You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I order to try local patches on a cross-compiled project, I built with ./x.py build --target x86_64-unknown-linux-gnu,riscv32i-unknown-none-elf then, in my project set rust-toolchain.toml to path = "/home/simon/projects/rust/build/x86_64-unknown-linux-gnu/stage1/". The first error message was:
= note: Could not find tool: lld
at: /home/simon/projects/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/bin/rust-lld
Consider `rustup component add llvm-tools-preview`
It was not obvious in ./x.py build --help or config.toml.example how to build llvm-tools-preview for a local toolchain, but folks on Zulip pointed me to adding [rust] lld = true to config.toml.
My config.toml also had profile = "compiler" which enables download-ci-llvm = "if-available". It looks like building LLD from source doesn’t work when LLVM artifacts are downloaded from CI.
This configuration should either download LLD from CI too, or print a better error message.
The text was updated successfully, but these errors were encountered:
I order to try local patches on a cross-compiled project, I built with
./x.py build --target x86_64-unknown-linux-gnu,riscv32i-unknown-none-elf
then, in my project setrust-toolchain.toml
topath = "/home/simon/projects/rust/build/x86_64-unknown-linux-gnu/stage1/"
. The first error message was:It was not obvious in
./x.py build --help
orconfig.toml.example
how to buildllvm-tools-preview
for a local toolchain, but folks on Zulip pointed me to adding[rust] lld = true
toconfig.toml
.Rebuilding the toolchain failed with:
My
config.toml
also hadprofile = "compiler"
which enablesdownload-ci-llvm = "if-available"
. It looks like building LLD from source doesn’t work when LLVM artifacts are downloaded from CI.This configuration should either download LLD from CI too, or print a better error message.
The text was updated successfully, but these errors were encountered: