Skip to content

bazel: remove huge toolchain_lllvm#3221

Merged
mgeisler merged 1 commit into
mainfrom
remove-llvm-toolchain
Jun 23, 2026
Merged

bazel: remove huge toolchain_lllvm#3221
mgeisler merged 1 commit into
mainfrom
remove-llvm-toolchain

Conversation

@mgeisler

Copy link
Copy Markdown
Collaborator

This reverts #3204 due to repeated build failures in CI.

The LLVM toolchain is huge, taking up 11 GB in the Bazel repository cache:

% cd  $(bazel info repository_cache)/contents/f7d96c1d09ac1778314f1a73179da702edd9e75e8ef9231c06fa7ef6229cf47d
% du -hs .
11G     .

This is way too large for the GitHub CI runners, which are documentated to have 14 GB of free disk space.

The result is seemingly random build failures where we run out of disk space. See run
27773830289
which had several failed translation builds.

The result of this is that we fall back on non-hermetic builds for the time being. This is the status quo from before adopting Bazel. We should look for another way to fix the

warning: the gold linker is deprecated and has known bugs with Rust

warnigns. Perhaps more targeted by uninstalling gold and making sure another linker is picked up in CI? Universally instructing rustc to use rust-lld does not work (#3219) and using the small hermetic_cc_toolchain (Zig-based) also failed (#3216).

This reverts #3204 due to repeated build failures in CI.

The LLVM toolchain is huge, taking up 11 GB in the Bazel repository
cache:

```
% cd  $(bazel info repository_cache)/contents/f7d96c1d09ac1778314f1a73179da702edd9e75e8ef9231c06fa7ef6229cf47d
% du -hs .
11G     .
```

This is way too large for the GitHub CI runners, which are
[documentated to have 14 GB of free disk space](https://docs.github.com/en/actions/reference/runners/github-hosted-runners).

The result is seemingly random build failures where we run out of disk
space. See [run
27773830289](https://github.com/google/comprehensive-rust/actions/runs/27773830289)
which had several failed translation builds.

The result of this is that we fall back on non-hermetic builds for the
time being. This is the status quo from before adopting Bazel. We
should look for another way to fix the

> warning: the gold linker is deprecated and has known bugs with Rust

warnigns. Perhaps more targeted by uninstalling `gold` and making sure
another linker is picked up in CI? Universally instructing `rustc` to
use `rust-lld` does not work (#3219) and using the small
`hermetic_cc_toolchain` (Zig-based) also failed (#3216).
@mgeisler mgeisler requested a review from qwandor June 21, 2026 07:36
@mgeisler mgeisler self-assigned this Jun 21, 2026
@mgeisler mgeisler merged commit ea7ebff into main Jun 23, 2026
77 of 78 checks passed
@mgeisler mgeisler deleted the remove-llvm-toolchain branch June 23, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants