Skip to content

Sync to upstream SVF: LLVM 21.1.0, drop ubuntu-toolchain-r PPA#78

Merged
yuleisui merged 2 commits into
SVF-tools:masterfrom
bjjwwang:sync/llvm-21-no-deadsnakes
May 2, 2026
Merged

Sync to upstream SVF: LLVM 21.1.0, drop ubuntu-toolchain-r PPA#78
yuleisui merged 2 commits into
SVF-tools:masterfrom
bjjwwang:sync/llvm-21-no-deadsnakes

Conversation

@bjjwwang
Copy link
Copy Markdown
Contributor

@bjjwwang bjjwwang commented May 2, 2026

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.

bjjwwang and others added 2 commits May 2, 2026 20:00
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>
@yuleisui yuleisui merged commit e2d6cd5 into SVF-tools:master May 2, 2026
2 checks passed
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