Repository navigation
ci: run Linux jobs on ubuntu-26.04 with LLVM 22 - #262
Merged
Merged
Conversation
On ubuntu-26.04, phper-sys failed to generate bindings for PHP 7.3 and later, as seen in phper-framework#258. bindgen took its builtin headers from the first clang binary it found. llvm-18-dev ships no clang, so that was the runner's clang 21 on PATH, and clang 21's emmintrin.h does not parse under an older libclang. zend_types.h includes that header from PHP 7.3, which is why 7.0 to 7.2 still built. Install LLVM 22 and set LIBCLANG_PATH, LLVM_CONFIG_PATH and CLANG_PATH together so the library and headers come from the same release. The version is a matrix key, and part of the cache key because build.rs does not rerun when libclang changes. One extra job builds PHP 8.5 against LLVM 17, the oldest ubuntu-26.04 packages. Assisted-By: Claude Code
brettmc
marked this pull request as ready for review
October 30, 2026 01:06
jmjoy
approved these changes
Oct 30, 2026
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.
On ubuntu-26.04, phper-sys failed to generate bindings for PHP 7.3 and later, as seen in #258. bindgen took its builtin headers from the first clang binary it found. llvm-18-dev ships no clang, so that was the runner's clang 21 on PATH, and clang 21's emmintrin.h does not parse under an older libclang. zend_types.h includes that header from PHP 7.3, which is why 7.0 to 7.2 still built.
Install LLVM 22 and set LIBCLANG_PATH, LLVM_CONFIG_PATH and CLANG_PATH together so the library and headers come from the same release. The version is a matrix key, and part of the cache key because build.rs does not rerun when libclang changes. One extra job builds PHP 8.5 against LLVM 17, the oldest ubuntu-26.04 packages.
Assisted-By: Claude Code