Skip to content

FIX: Install only clang, lld and llvm from apt.llvm.org - #63

Merged
magicaldave merged 1 commit into
mainfrom
fix/apt-llvm-minimal
Nov 11, 2026
Merged

magicaldave merged 1 commit into
mainfrom
fix/apt-llvm-minimal

Conversation

@magicaldave

Copy link
Copy Markdown
Member

During the Azure Ubuntu mirror's DNS outage on 2026-11-11, every Ubuntu job of l3i failed in setup-llvm.sh. They all failed on one download, libipt2, from the Ubuntu archive. Nothing StroggForge needs uses it: llvm.sh installs lldb and clangd as well as clang and lld, and liblldb depends on libipt2.

This adds the apt.llvm.org repository directly and installs clang-N lld-N llvm-N with --no-install-recommends. It still uses llvm.sh's key, the per-major suite, and the unsuffixed suite for the major in development. apt treats an unreachable Ubuntu index as a warning, so the outage no longer fails the job.

Validation

  • ubuntu:22.04 container: setup took 10s. It installed 17 packages; a plain container needs 43 for clang, lld and llvm alone, against 100 for llvm.sh's set. No lldb, clangd or libipt2 was installed. clang, clang++, ld.lld, lld-link, llvm-ar, llvm-nm and llvm-objcopy are all LLVM 23.1.6, and a thin-LTO C++ program links with lld and runs.
  • l3i's full CI during the outage, against this branch with its self-references pinned (run 43058830726): every job passed, including Ubuntu (test step 4m20s against 9m01s on v55) and the lint job with MSRV. On v71 those two failed in rust-setup after ~490s.
  • shellcheck and bash -n pass.

Shipping this takes a v72 bump. Until then, consumers on v71 recover when the mirror does.

🤖 Generated with Claude Code

…mmends, rather than llvm.sh's lldb and clangd: lldb pulled libipt2 and some fifty more packages from the Ubuntu archive, and libipt2 was the one download that failed every Ubuntu job while that archive's Azure mirror would not resolve
@magicaldave
magicaldave merged commit ace6825 into main Nov 11, 2026
5 checks passed
@magicaldave
magicaldave deleted the fix/apt-llvm-minimal branch November 11, 2026 16:53
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.

1 participant