Skip to content

ci: run Linux jobs on ubuntu-26.04 with LLVM 22 - #262

Merged
jmjoy merged 1 commit into
phper-framework:masterfrom
brettmc:ci/ubuntu-26.04-llvm-22
Oct 30, 2026
Merged

jmjoy merged 1 commit into
phper-framework:masterfrom
brettmc:ci/ubuntu-26.04-llvm-22

Conversation

@brettmc

@brettmc brettmc commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

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

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
brettmc marked this pull request as ready for review October 30, 2026 01:06
@brettmc
brettmc requested a review from jmjoy October 30, 2026 01:06
@jmjoy
jmjoy merged commit 8631b7a into phper-framework:master Oct 30, 2026
22 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