Skip to content

Build the msys2 CI job in the UCRT64 environment - #943

Merged
foxtacles merged 1 commit into
isledecomp:masterfrom
foxtacles:ci-msys2-ucrt64
Nov 23, 2026
Merged

foxtacles merged 1 commit into
isledecomp:masterfrom
foxtacles:ci-msys2-ucrt64

Conversation

@foxtacles

@foxtacles foxtacles commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

The msys2 mingw64 CI job fails while setting up MSYS2: error: target not found: mingw-w64-x86_64-qt6-static. MSYS2 no longer provides qt6-static for the MINGW64 environment; it is only available for UCRT64, CLANG64 and CLANGARM64 now.

The job now builds in UCRT64 (mingw-w64-ucrt-x86_64-*), which still has qt6-static and all the other packages the job installs, so isle-config stays statically linked against Qt (#868) and the Windows x64 tarball keeps working without Qt DLLs. UCRT is part of Windows 10 and later and is what the MSVC builds use as well.

UCRT64's static Qt is 6.12, whose Qt6Core links the static OpenSSL libraries. Those need Winsock, crypt32 and bcrypt, which come after them nowhere on the link line, so isle-config's link failed with undefined references to WSAGetLastError, CertOpenSystemStoreW, BCryptGenRandom and friends. These system libraries are now added at the end of the link line, next to rpcrt4.

The job keeps its name msys2 mingw64 because that name is a required status check; renaming it would also need the branch protection's required checks updated.

The Vita and MSVC (x64) jobs fail here for unrelated reasons, fixed in #942 and #944.

🤖 Generated with Claude Code

https://claude.ai/code/session_0179vyTGZwyMZgoazji12e2B

MSYS2 no longer provides qt6-static for the MINGW64 environment, so
the msys2 job failed to install its packages. It now builds in UCRT64,
which still has qt6-static and all the other packages the job uses, so
isle-config stays statically linked against Qt. The job keeps its name
because it is a required check.

UCRT64's static Qt 6.12 links Qt6Core against the static OpenSSL
libraries, which need Winsock, crypt32 and bcrypt. They come last in
Qt's link interface, so these system libraries are now added at the
end of isle-config's link line, next to rpcrt4.
@foxtacles
foxtacles enabled auto-merge (squash) November 23, 2026 04:46
@foxtacles
foxtacles merged commit d8eff08 into isledecomp:master Nov 23, 2026
21 checks passed
@foxtacles
foxtacles deleted the ci-msys2-ucrt64 branch November 23, 2026 05:04
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