Is a working mingw-w64 toolchain available on Alpine? #6

Closed
opened 2026-08-06 20:28:46 +00:00 by haylan · 2 comments
Owner

Question

Is a working Windows cross-compile toolchain available via Alpine's apk repositories, equivalent
to Debian/Ubuntu's mingw-w64 package (posix-threads variant, since this image currently runs
update-alternatives --set x86_64-w64-mingw32-gcc/g++ ... -posix)? Confirm package name(s),
whether the posix-threads variant is the default or needs an explicit alternative/package choice
on Alpine, and whether it's known to successfully build Godot Windows export templates via SCons.

Part of Smaller/faster godot-ci image (map).

## Question Is a working Windows cross-compile toolchain available via Alpine's `apk` repositories, equivalent to Debian/Ubuntu's `mingw-w64` package (posix-threads variant, since this image currently runs `update-alternatives --set x86_64-w64-mingw32-gcc/g++ ... -posix`)? Confirm package name(s), whether the posix-threads variant is the default or needs an explicit alternative/package choice on Alpine, and whether it's known to successfully build Godot Windows export templates via SCons. Part of [Smaller/faster godot-ci image (map)](https://git.arthurerlich.de/haylan/godot-ci/issues/2).
haylan added the wayfinder:research label 2026-08-06 20:28:46 +00:00
Author
Owner

Researched this. Verdict: Alpine's community/edge repo does ship a mingw-w64-gcc cross toolchain, and it is posix-threads-only (built with --enable-threads=posix, no win32 alternative, so no update-alternatives step needed/possible). Caveat: it's currently edge-only (not in a stable Alpine release), and no primary source documents anyone actually building Godot's Windows export templates with it via SCons — Godot's own docs and build-containers repo only reference Debian/Ubuntu. Full write-up with sources: https://git.arthurerlich.de/haylan/godot-ci/src/branch/research/mingw-w64-alpine/docs/research/mingw-w64-alpine.md

Researched this. Verdict: Alpine's community/edge repo does ship a mingw-w64-gcc cross toolchain, and it is posix-threads-only (built with --enable-threads=posix, no win32 alternative, so no update-alternatives step needed/possible). Caveat: it's currently edge-only (not in a stable Alpine release), and no primary source documents anyone actually building Godot's Windows export templates with it via SCons — Godot's own docs and build-containers repo only reference Debian/Ubuntu. Full write-up with sources: https://git.arthurerlich.de/haylan/godot-ci/src/branch/research/mingw-w64-alpine/docs/research/mingw-w64-alpine.md
Author
Owner

Resolution already recorded on Smaller/faster godot-ci image (map)'s Decisions-so-far and acted on in ticket #7's resolution. Closing — this was left open by an oversight, not because it's still active.

Resolution already recorded on [Smaller/faster godot-ci image (map)](https://git.arthurerlich.de/haylan/godot-ci/issues/2)'s Decisions-so-far and acted on in [ticket #7](https://git.arthurerlich.de/haylan/godot-ci/issues/7)'s resolution. Closing — this was left open by an oversight, not because it's still active.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: haylan/godot-ci#6