We use mingw v3.3.0 which is from 2014. The most recent version is v12.0.0 (released 2024).
A prototype Linux build environment using mingw-w64 v12.x compiled using GCC 8.5 can be found here: https://git.cendio.se/cendio/mingw-toolchain
A newer minGW (not sure which version) is needed to upgrade our glib2.
(In reply to Adam Halim from comment #2) > A newer minGW (not sure which version) is needed to upgrade our glib2. As it stands right now, we can build glib2-2.82.2 on all platforms except windows. I tested using Fedora's minGW instead of the one we have in cenbuild and was successful with the build. Hopefully this means we only need to upgrade minGW, and the rest should be smooth sailing.
Building MinGW 13 with GCC 15 works well for Win64, but it fails on Win32 with errors such as: > i686-pc-mingw32-gcc -DHAVE_CONFIG_H -I. -m32 -masm=att -I./include "-I/usr/i686-pc-mingw32/sys-root/mingw/include" -pipe -std=gnu99 -fno-builtin -D_CRTBLD -D_WIN32_WINNT=0x0f00 -D__MSVCRT_VERSION__=0x600 -D__USE_MINGW_ANSI_STDIO=0 -Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow -Wpacked -Winline -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes -O2 -g -MT misc/lib32_libmingwex_a-feholdexcept.o -MD -MP -MF misc/.deps/lib32_libmingwex_a-feholdexcept.Tpo -c -o misc/lib32_libmingwex_a-feholdexcept.o `test -f 'misc/feholdexcept.c' || echo './'`misc/feholdexcept.c > In file included from misc/feholdexcept.c:6: > misc/feholdexcept.c: In function 'feholdexcept': > misc/feholdexcept.c:17:26: error: '_SW_ZERODIVIDE' undeclared (first use in this function) > 17 | return feclearexcept(FE_ALL_EXCEPT); > | ^~~~~~~~~~~~~ This define is expected to be in float.h, so this smells a lot like this other issue we found: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120416 However, that gcc oddity was in our current version of GCC as well. And we don't see any issues there. The prototype above also worked.
Reported the above issue to MinGW: https://github.com/mingw-w64/mingw-w64/issues/104