Repository navigation
Build Linux natives in a debian:11 container so they load on glibc 2.31+ - #67
Merged
Merged
Conversation
The published linux_64 / linux_arm64 libwebview.so were compiled on the ubuntu-24.04 runners' own toolchain and so required GLIBC_2.38 (__isoc23_sscanf) and GLIBCXX_3.4.32 (std::ios_base_library_init). System.load failed on Ubuntu 22.04 and 20.04 with "version `GLIBC_2.38' not found", so no window opened. Both workflows now compile the Linux natives inside debian:11 (glibc 2.31, GCC 10) with WebKitGTK 2.44 headers, so every optional WEBKIT_CHECK_VERSION feature stays compiled in. apt is pinned to the permanent bullseye main suite on archive.debian.org because the EOL bullseye-security pool has already been emptied. A new gate fails the build on any symbol newer than GLIBC_2.31 / GLIBCXX_3.4.28 / CXXABI_1.3.12. Canvas 8 updated (Requirements, Approach, Structure, Operations 6/7/8, Safeguards) and regenerated into the workflows, README and build-linux.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KJGbJfSqGDbZWCbUnoKYVx
shannah
marked this pull request as ready for review
October 2, 2026 16:12
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.
Problem
The published
linux_64/linux_arm64libwebview.so(checked in 1.8.1 and 1.10.0) are built on theubuntu-24.04runners' own toolchain, so they require:__isoc23_sscanf@GLIBC_2.38, from thesscanfinsrc_c/webview.hcompiled against glibc ≥ 2.38 headersstd::ios_base_library_init@GLIBCXX_3.4.32, from GCC 13's<iostream>System.loadfails on Ubuntu 22.04 and 20.04 withversion `GLIBC_2.38' not found, so a Linux app built on this library can't open its window there. This is what blocked an agentic-app-framework app on Ubuntu 22.04.Change
build.ymlandmaven-release.ymlnow compile the Linux natives inside adebian:11container (glibc 2.31, GCC 10). The runners are stillubuntu-24.04/ubuntu-24.04-arm, so each arch still builds natively. Bullseye's WebKitGTK 2.44 headers keep everyWEBKIT_CHECK_VERSION-gated optional feature (2.12 / 2.36 / 2.40) compiled in. WebKit is still loaded at runtime (4.1, falling back to 4.0).bullseye mainsuite onarchive.debian.org. Bullseye is EOL and its-securitypool has already been emptied while its index still lists packages, so an unpinned install fails with 404s. Signatures are still verified; only the expiredValid-Untilcheck is skipped.objdump -Tshows any symbol newer thanGLIBC_2.31,GLIBCXX_3.4.28orCXXABI_1.3.12. Without it, a future runner-image or code change could raise the requirement again unnoticed.build-linux.shnotes that a local build has the host's floor, not the shipped one.Verification (local, x64)
Ran the workflow's Linux step as written. New
.somaximums:GLIBC_2.14,GLIBCXX_3.4.22,CXXABI_1.3.11. Both gates pass.Gate run against the published 1.8.1
.so: fails and lists every offending symbol (2.32–2.38, GLIBCXX 3.4.29–3.4.32, CXXABI 1.3.13).System.loadin stock containers:GLIBC_2.32 not foundGLIBC_2.38 not foundA successful load also means
JNI_OnLoadfound and loaded the system WebKitGTK.Not tested locally: the arm64 leg. It's the same step, the
debian:11image is multi-arch, and the archive has arm64libwebkit2gtk-4.0-dev2.44.2. CI will be the first run.Follow-ups (not in this PR)
🤖 Generated with Claude Code
https://claude.ai/code/session_01KJGbJfSqGDbZWCbUnoKYVx
Generated by Claude Code