Skip to content

Fix CI: fall back to Qt's archive, use bundled md4c on Windows - #71

Merged
vadi2 merged 1 commit into
Mudlet:developmentfrom
jmckisson:fix-ci-qt-downloads
Nov 13, 2026
Merged

vadi2 merged 1 commit into
Mudlet:developmentfrom
jmckisson:fix-ci-qt-downloads

Conversation

@jmckisson

@jmckisson jmckisson commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Every build has been failing since at least #69 (Nov 7), before reaching the build itself. Because of that, no launcher releases have gone out since then. There are two separate upstream causes.

Linux and macOS: Qt archived 6.9.1

build-qt-statemachine.sh downloads the SCXML source from download.qt.io/official_releases/qt/6.9/6.9.1/.... That URL now returns 404, because Qt has moved 6.9.1 to download.qt.io/archive/....

Fix: try official_releases/ first and fall back to archive/. The same change is applied to the SCXML fallback download in compile-qt-win.sh.

Windows: Qt 6.12.0 doesn't build against MSYS2's md4c

QT_VERSION on Windows comes from MSYS2's qt6-base package, which is now 6.12.0. That's a new cache key, so the job compiles static Qt 6.12.0 from source. The compile fails in qtextmarkdownimporter.cpp:

error: static assertion failed due to requirement 'int(QTextMarkdownImporter::DialectGitHub) == (MD_DIALECT_GITHUB | MD_FLAG_UNDERLINE | ...)'
note: expression evaluates to '1068812 == 1593100'

The cause is that Qt picks up MSYS2's system md4c 0.6.0, whose flag values don't match what Qt 6.12 expects. The later "Qt6Core not found" and ScXML errors in the log follow from this.

Fix: configure with -DFEATURE_system_textmarkdownreader=OFF, so Qt builds its bundled md4c. This is a static build, so nothing needs the system copy.

Testing

  • Checked that the archive/ URL for 6.9.1 returns 200 and the official_releases/ URL returns 404
  • CI passes on this PR

The first Windows run will be slow, because it compiles Qt 6.12.0 and fills the qt-clang-6.12.0 cache.

🤖 Generated with Claude Code

Qt moved 6.9.1 from official_releases/ to archive/, so the SCXML source
download 404s and the Linux and macOS jobs fail. Try official_releases/
first and fall back to archive/, in both places that download it.

On Windows, QT_VERSION follows MSYS2's qt6-base, now 6.12.0, and building
that from source against MSYS2's md4c 0.6.0 trips a static_assert in
qtextmarkdownimporter.cpp. Build with the bundled md4c instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@vadi2 vadi2 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified before approving:

  • official_releases/ 6.9.1 SCXML returns 404 and archive/ returns a 302 to a mirror serving it; #70's Linux/macOS jobs fail on exactly that download.
  • #70's Windows log installs md4c-0.6.0-1 and fails the qtextmarkdownimporter.cpp:54 static_assert (1068812 == 1593100). md4c 0.6.0 added ADMONITIONS|FOOTNOTES to MD_DIALECT_GITHUB.
  • system-textmarkdownreader is the real feature (qtbase v6.12.0 src/gui/configure.cmake:1297), and placing it after -- passes it through to CMake.
  • This PR's Windows job compiled Qt 6.12.0 from source (not a cache hit), so the md4c fix was actually exercised. All three platforms are green.
  • Fallback loop tested with a mocked wget: 404 then archive, partial file then archive, and both failing (still exits 1).

Minor, non-blocking: "A static build has no use for the system copy anyway" isn't quite accurate, since this same configure links system OpenSSL/zlib etc. The real reason is the md4c version mismatch.


Generated by Claude Code

@vadi2
vadi2 merged commit 42e462f into Mudlet:development Nov 13, 2026
5 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.

2 participants