Sync to upstream SVF: LLVM 21.1.0, drop ubuntu-toolchain-r PPA#78
Merged
Merged
Conversation
Match the upstream SVF/build.sh pin (MajorLLVMVer=21) and remove the ppa:ubuntu-toolchain-r/test add-apt-repository step. Launchpad's PPA infrastructure has been intermittently unreachable from CI runners (HTTP 504 / 2-minute timeout from add-apt-repository), and ubuntu-24.04's default gcc-13 is sufficient for the SVF example build. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
LLVM 21 no longer pulls in <llvm/Support/ManagedStatic.h> transitively
through the SVF / SVF-LLVM headers, so svf-example.cpp:186's call to
llvm::llvm_shutdown() fails to compile:
src/svf-example.cpp:186:9: error: 'llvm_shutdown' is not a member of
'llvm'
The function is still part of LLVM 21's public ABI (still declared in
llvm/Support/ManagedStatic.h, line 116) — just no longer transitively
visible. Add the explicit include.
Verified locally:
- npm install svf-lib (v1.0.2555) + LLVM 21.1.0 prebuilt + Z3
- cmake -B build -S ./ && cmake --build build
- The svf-example.cpp.o object compiles and links successfully.
Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Match the upstream SVF/build.sh pin (MajorLLVMVer=21) and remove the ppa:ubuntu-toolchain-r/test add-apt-repository step. Launchpad's PPA infrastructure has been intermittently unreachable from CI runners (HTTP 504 / 2-minute timeout from add-apt-repository), and ubuntu-24.04's default gcc-13 is sufficient for the SVF example build.