Skip to content

Linux CI and release: official LLVM package instead of Dropbox - #375

Merged
ASDAlexander77 merged 1 commit into
mainfrom
llvm-prebuilt-linux-ci
Sep 27, 2026
Merged

ASDAlexander77 merged 1 commit into
mainfrom
llvm-prebuilt-linux-ci

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Linux CI and the Linux release job stop depending on the hand-built LLVM tarball on Dropbox. That link now returns "Link Temporarily Disabled" (a traffic limit), so every Linux check currently fails in its first minute. This follows #374, which did the same for Windows.

How

  • Official package: LLVM-22.1.8-Linux-X64.tar.xz (llvm/llvm-project release). Unlike the Windows package it has MLIR as well as LLVM, Clang, LLD, lld/wasm-ld and the resource dir, so no custom archive is needed on Linux.
  • scripts/install_llvm_prebuilt_release.sh unpacks it into 3rdParty/llvm/release, the prefix the custom build made, so nothing that looks there changes. Nothing is compiled. If MLIR is already there it does nothing.
  • Size: 12 GB unpacked. flang, lldb and bolt are left out, which none of the LLVM/Clang/MLIR CMake packages reference (every file they do reference must exist, or find_package fails), leaving about 9.6 GB.
  • No 3rdParty cache on Linux: the prefix is too big for the actions cache, so each run downloads 1.9 GB from GitHub. GC was rebuilt every run already.
  • Link deps: the package's CMake targets link zlib, zstd and libxml2, which are now installed along with ninja-build.
  • Release tarball: stages only lib/clang/<major>/include, as on Windows. The official package also has compiler-rt libs there (16 MB of headers vs 109 MB).

Compatibility

  • The libs are ELF objects (the fat-LTO bitcode is stripped) built against libstdc++ with the C++11 ABI, so they link with GCC.
  • The tools need GLIBC 2.34 / GLIBCXX 3.4.30, which ubuntu-22.04, 24.04 and 26.04 all have.
  • RTTI/EH are off, and config_macros.cmake already switches the project to -fno-rtti in that case. There are no typeinfo link errors.

Test plan

  • WSL (Ubuntu, GCC 15), fresh clone of main: the script installs in 8 s from the downloaded package; configure with the default paths, build, then 2949/2949 passed, with the test scripts on the official lld and LLVM libs
  • Release staging checked against the official prefix (lib/clang/22/include, 16 MB)
  • This PR's Linux check on ubuntu-22.04, the first run on a hosted runner (disk headroom is printed by df -h after the install)
  • create-release.yml's Linux matrix only runs on a v* tag

🤖 Generated with Claude Code

…chive

The Linux test workflow and the Linux release job downloaded a hand-built
LLVM tarball from Dropbox, which now answers "Link Temporarily Disabled"
(traffic limit), so every Linux check fails in the first minute. The official
LLVM-22.1.8-Linux-X64.tar.xz - unlike the Windows package - has MLIR as well
as LLVM, Clang, LLD, lld/wasm-ld and the resource directory, so on Linux it is
all that is needed. The new scripts/install_llvm_prebuilt_release.sh unpacks
it into 3rdParty/llvm/release, the prefix the custom build made, so nothing
that looks there changes. Nothing is compiled.

The package is 12 GB unpacked, mostly tools. flang, lldb and bolt are left
out (none of the LLVM, Clang and MLIR CMake packages references them; every
file those do reference must exist, or find_package fails), leaving about
9.6 GB. That is too big for the actions cache, so the Linux jobs drop their
3rdParty caches and download from GitHub every run; GC was rebuilt every run
already. The package's CMake targets link zlib, zstd and libxml2, now
installed with ninja-build.

The release tarball stages only clang's resource headers, as on Windows: the
official package also has compiler-rt's libraries under lib/clang/<major>/lib
(16 MB of headers vs 109 MB).

Verified in WSL (Ubuntu, GCC 15) on a fresh clone of main: the script
installs in 8 seconds from the downloaded package; tslang configured with the
default paths builds and passes 2949/2949 with the test scripts on the
official lld and libraries. Package needs GLIBC 2.34 / GLIBCXX 3.4.30, which
ubuntu-22.04 and later have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit 0a0906e into main Sep 27, 2026
2 checks passed
@ASDAlexander77
ASDAlexander77 deleted the llvm-prebuilt-linux-ci branch September 27, 2026 17:00
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