Skip to content

Pin CMake 4.4.0 on Ubuntu 26.04 CI to fix boost-locale build - #15232

Merged
magnesj merged 2 commits into
devfrom
ci-pin-cmake-ubuntu-26
Nov 21, 2026
Merged

magnesj merged 2 commits into
devfrom
ci-pin-cmake-ubuntu-26

Conversation

@magnesj

@magnesj magnesj commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

The Ubuntu 26.04 job in ResInsight Build With Cache fails in the Configure step (e.g. run 44848316788) because vcpkg cannot build boost-locale:

CMake Error at libs/locale/CMakeLists.txt:236 (source_group):
  source_group ".../libs/locale/include/boost/locale"
  is not a prefix of file ".../libs/locale/include/boost/locale.hpp"

Cause

  • The ubuntu-26.04 runner image now ships CMake 4.5.0.
  • In CMake 4.5, source_group(TREE …) checks whether the root is a path prefix of each file (cmCMakePath::IsPrefix). CMake 4.4 and older only checked whether the strings share a prefix (cmHasPrefix). include/boost/locale.hpp passes the string check against the root include/boost/locale but fails the path check.
  • Boost.Locale 1.89, 1.90 and 1.91 all have the same lines, so bumping the vcpkg baseline does not help. Boost has fixed it on boostorg/locale develop, but no release includes the fix yet.

Fix
Install CMake 4.4.0 with jwlawson/actions-setup-cmake (pinned to a commit SHA) for the ubuntu-26.04 job only.

The first commit pinned 3.31.6, which did not work: vcpkg requires CMake >= 4.4.0 (scripts/vcpkg-tools.json), so it skipped 3.31.6 on PATH and used the system /usr/local/bin/cmake 4.5.0. Version 4.4.0 meets vcpkg's minimum and still uses the old prefix check.

Remove the step once a Boost release includes the fix.

🤖 Generated with Claude Code

CMake 4.5 on the ubuntu-26.04 runner image rejects the source_group(TREE)
call in Boost.Locale <= 1.91. Pin CMake until a Boost release includes the
upstream fix.
vcpkg requires CMake >= 4.4.0 and ignored 3.31.6 on PATH, falling back to
the system CMake 4.5. CMake 4.4 still uses a string-prefix check in
source_group(TREE), which Boost.Locale passes.
@magnesj magnesj changed the title Pin CMake 3.31.6 on Ubuntu 26.04 CI to fix boost-locale build Pin CMake 4.4.0 on Ubuntu 26.04 CI to fix boost-locale build Nov 21, 2026
@magnesj
magnesj merged commit 0caae5b into dev Nov 21, 2026
22 checks passed
@magnesj
magnesj deleted the ci-pin-cmake-ubuntu-26 branch November 21, 2026 15:58
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.

1 participant