Skip to content

Ship Qt 6.8.1 and GCC 15 in place of Ubuntu's Qt 6.4 - #1

Merged
Yaraslaut merged 1 commit into
masterfrom
toolchain/qt-6.8-gcc-15
Nov 27, 2026
Merged

Yaraslaut merged 1 commit into
masterfrom
toolchain/qt-6.8-gcc-15

Conversation

@Yaraslaut

Copy link
Copy Markdown
Member

Summary

  • Replaces Ubuntu 24.04's Qt 6.4 (out of support; no consumer uses it, since morph's CI installs Qt 6.8.1 itself) with Qt 6.8.1 (WebSockets, Multimedia) from aqtinstall, at $QT_ROOT_DIR, found by find_package(Qt6) with no hint.
  • Adds GCC 15 as gcc-15/g++-15 for morph's GCC jobs. gcc/g++ stay GCC 14.
  • Clang stays on GCC 14's libstdc++. The PPA's libstdc++ 15 would otherwise become clang's default; clang.cfg/clang++.cfg pin --gcc-install-dir to 14, so pace's clang builds and seeds are unchanged.
  • Installs Qt's runtime libraries explicitly and sets LANG=C.UTF-8 as on hosted runners.

Verification

Built locally from this Dockerfile (ubuntu:24.04 base, empty seed) and ran the updated smoke step against it:

  • g++-15 builds and runs; gcc is 14; clang reports Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/14.
  • Every libQt6*.so.6 and the offscreen platform plugin resolve (libQt6Quick3DSpatialAudio excluded: it ships with qtmultimedia but links Qt Quick 3D, which nobody installs).
  • A CMake project using Qt6::Gui/WebSockets/Multimedia/Quick configures with no hint, builds, and runs on the offscreen platform.
  • morph configures in the image with g++-15 and finds Qt 6.8.1 (Qt6_DIR=/opt/Qt/6.8.1/gcc_64/lib/cmake/Qt6).

Not verified: the publish workflow's own run (this PR runs it up to the smoke test), and the warm-up of pace's seeds against the new image. The clang pin is meant to leave pace's cache keys unchanged, but I haven't measured that.

Cost

The image grows to 3.9 GB, mostly Qt; every job that pulls it, pace's included, downloads that.

🤖 Generated with Claude Code

https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb

Ubuntu 24.04's Qt is 6.4, which is out of support and older than morph needs:
morph's CI installs Qt 6.8.1 through aqtinstall on every Qt job, so nothing
used the image's Qt. The image now installs Qt 6.8.1 (WebSockets, Multimedia)
the same way, in its own stage, at $QT_ROOT_DIR, with CMAKE_PREFIX_PATH set so
find_package(Qt6) needs no hint. The runtime libraries its libraries and the
offscreen platform plugin load are installed explicitly, since qt6-base-dev
no longer pulls them in.

GCC 15 comes from the ubuntu-toolchain-r PPA as gcc-15/g++-15, for morph's
GCC jobs. gcc and g++ stay GCC 14. Installing GCC 15 also installs libstdc++ 15,
which clang would pick up over 14; clang.cfg and clang++.cfg pin it to GCC 14,
so pace's clang builds compile against the same library as its native legs.

The smoke test checks all three: g++-15 builds and runs a program, gcc is
GCC 14 and clang selects GCC 14, every Qt library and the offscreen plugin
resolve, and a CMake project finds Qt with no hint and runs offscreen. Run
locally against an image built from this Dockerfile, it passes; morph also
configures in it with g++-15 and finds Qt 6.8.1. The image grows to 3.9 GB.

LANG is set to C.UTF-8, the hosted runner's, which Qt otherwise warns about.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
@Yaraslaut
Yaraslaut merged commit 3e0aa53 into master Nov 27, 2026
4 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.

1 participant