Closed
Description
Since there is no -alt
variation of CI action for dist-aarch64-apple, prebuilt llvm is never published for arm macs.
Hence compete bootstrap like > ./x.py build library
will always fail on arm macs with
Copying stage0 library from stage0 (aarch64-apple-darwin -> aarch64-apple-darwin / aarch64-apple-darwin)
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/<commit-hash>/rust-dev-nightly-aarch64-apple-darwin.tar.xz
curl: (22) The requested URL returned error: 404
error: failed to download llvm from ci
help: old builds get deleted after a certain time
help: if trying to compile an old commit of rustc, disable `download-ci-llvm` in config.toml:
[llvm]
download-ci-llvm = false
Although it's straightforward to fix by following the hint from error message and finding correct config.codegen.toml
(among other config.toml's), bootstrap experience could be better:
Config::download_ci_llvm()
could point to correct config file, since there are really few of them;Config::llvm_from_ci
could be set tofalse
for those host triplets that have no published llvm;- Prebuilt llvm could be published for
dist-aarch64-apple
ie creatingdist-aarch64-apple-alt
CI action; - Notion of fallback distros could be introduced ie
rust-dev-nightly-x86_64-apple-darwin.tar.xz
is fallback forrust-dev-nightly-aarch64-apple-darwin.tar.xz
.