Repository navigation
Linux CI and release: official LLVM package instead of Dropbox - #375
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.shunpacks it into3rdParty/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.find_packagefails), leaving about 9.6 GB.lib/clang/<major>/include, as on Windows. The official package also has compiler-rt libs there (16 MB of headers vs 109 MB).Compatibility
config_macros.cmakealready switches the project to-fno-rttiin that case. There are notypeinfolink errors.Test plan
lib/clang/22/include, 16 MB)ubuntu-22.04, the first run on a hosted runner (disk headroom is printed bydf -hafter the install)create-release.yml's Linux matrix only runs on av*tag🤖 Generated with Claude Code