Repository navigation
Build the Linux clang library on ubuntu-22.04 (clang 14, libc++ 14) - #62
Merged
Merged
Conversation
…+ 14 The Linux static library is linked by Unreal and other engines with their own cross toolchains, whose sysroots are old: UE 5.2 ships glibc 2.17 and libc++ 15, UE 5.8 ships glibc 2.28. Since ubuntu-latest moved to 24.04 (5.4.0) and then 26.04 (5.4.2), the library references __isoc23_strtoll/__isoc23_strtoull (glibc 2.38) and std::__hash_memory (libc++ 19), and Unreal's Linux link fails with "undefined symbol" on every engine version. Pin the ubuntu clang job to the ubuntu-22.04 image with clang 14 and libc++ 14, the configuration that shipped up to 5.3.1. The artifact keeps its "ubuntu-latest-clang-Release" name so the SDK download scripts do not change. The gcc job stays on ubuntu-latest for test coverage on a current distro. Add a check that fails the Linux clang static build when the library references any of those symbols, so a runner image change cannot ship an unlinkable library again.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #62 +/- ##
==========================================
- Coverage 59.16% 58.58% -0.59%
==========================================
Files 23 23
Lines 3076 3076
Branches 1523 1523
==========================================
- Hits 1820 1802 -18
- Misses 930 950 +20
+ Partials 326 324 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Gogoshika-ga
approved these changes
Dec 3, 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.
Problem
Unreal users cannot link the Linux build since 5.4.0 (Unreal plugin 6.2.1):
The Linux clang artifact is built on
ubuntu-latest, which moved to 24.04 (glibc 2.39, clang 18) and then 26.04 (clang 21, libc++ 21). Unreal links with its own cross toolchain: UE 5.2 has a glibc 2.17 / libc++ 15 sysroot, UE 5.8 glibc 2.28.__isoc23_*only exists from glibc 2.38 andstd::__hash_memoryfrom libc++ 19, so the link fails on every engine version.Change
ubuntu-latest+ clang matrix entry runs on theubuntu-22.04image withclang-14,libc++-14-dev,libc++abi-14-dev, the configuration that shipped up to 5.3.1.matrix.osstaysubuntu-latestso the artifact name, and the download scripts in the engine SDKs, do not change.ubuntu-latest.nm -uonlibGameAnalytics.afails the job if it references__isoc23_*orstd::__hash_memory. Verified locally: the 5.3.1 library passes, the 5.4.3 library fails.Follow-up
Release 5.4.4 from this, then Unreal 6.3.2 with the new library and a Linux cross-compile check before publishing.
ubuntu-22.04will be retired by GitHub at some point; the durable version of this is amanylinux_2_28container with a pinned clang.