Skip to content

Build the Linux clang library on ubuntu-22.04 (clang 14, libc++ 14) - #62

Merged
dorin-ga merged 1 commit into
mainfrom
ci/linux-ubuntu-22-04
Dec 3, 2026
Merged

dorin-ga merged 1 commit into
mainfrom
ci/linux-ubuntu-22-04

Conversation

@dorin-ga

@dorin-ga dorin-ga commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Problem

Unreal users cannot link the Linux build since 5.4.0 (Unreal plugin 6.2.1):

ld.lld : error : undefined symbol: __isoc23_strtoull
ld.lld : error : undefined symbol: __isoc23_strtoll
ld.lld : error : undefined symbol: std::__1::__hash_memory(void const*, unsigned long)

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 and std::__hash_memory from libc++ 19, so the link fails on every engine version.

Library Built with glibc 2.38 symbols libc++ 19 symbols
up to 5.3.1 clang 14, Ubuntu 22.04 no no
5.4.0, 5.4.1 clang 18, Ubuntu 24.04 yes no
5.4.2, 5.4.3 clang 21, Ubuntu 26.04 yes yes

Change

  • The ubuntu-latest + clang matrix entry runs on the ubuntu-22.04 image with clang-14, libc++-14-dev, libc++abi-14-dev, the configuration that shipped up to 5.3.1. matrix.os stays ubuntu-latest so the artifact name, and the download scripts in the engine SDKs, do not change.
  • The gcc job stays on ubuntu-latest.
  • New step after the Linux clang static build: nm -u on libGameAnalytics.a fails the job if it references __isoc23_* or std::__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.04 will be retired by GitHub at some point; the durable version of this is a manylinux_2_28 container with a pinned clang.

…+ 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-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.58%. Comparing base (564e846) to head (90800b0).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dorin-ga
dorin-ga requested a review from Gogoshika-ga December 3, 2026 13:21
@dorin-ga
dorin-ga merged commit cbca0bc into main Dec 3, 2026
26 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.

3 participants