bootstrap build order - missing lld for autodiff/offload
Open
@ZuseZ4 is already working on this.
Since Aug 5, 2026.
C-bug
F-autodiff
F-gpu_offload
T-bootstrap
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Summary
Mostly an issue for new setups (e.g. clean server nodes)
I usually want to build autodiff, offload, clang, lld, llvm and rustc.
Autodiff has the problem that it has few, but huge, object files, so gnu-ld takes multiple minutes to link, and later offload steps straight-up fail without another lld on path. I should move the enzyme/lld builds to be one of the last steps, so that lld is available by then.
Command used
./x build --stage 1 library
Expected behaviour
We first run the lld step, then other ones.
Actual behaviour
Bootstrap configuration (bootstrap.toml)
https://rustc-dev-guide.rust-lang.org/offload/installation.html#build-instructions
Operating system
linux
HEAD
latest main
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.