Error in compiling Darktable 3.8 master on Windows 10?

I followed this build guide: https://github.com/darktable-org/darktable/blob/master/packaging/windows/BUILD.md
All works fine until: cmake --build .

When I get this error message:
C:/msys64/mingw64/include/c++/11.2.0/x86_64-w64-mingw32/bits/c++config.h:573:2: error: #warningSTRICT_ANSI seems to have been undefined; this is not supported” [-Werror=cpp]
573 | #warningSTRICT_ANSI seems to have been undefined; this is not supported”
| ^~~~~~~
compilation terminated due to -Wfatal-errors.
cc1plus.exe: all warnings being treated as errors
make[2]: *** [bin/CMakeFiles/lib_darktable.dir/build.make:404: bin/CMakeFiles/lib_darktable.dir/common/exif.cc.obj] Error 1
make[2]: *** Waiting for unfinished jobs…
[ 17%] Built target darktable-rs-identify
make[1]: *** [CMakeFiles/Makefile2:2179: bin/CMakeFiles/lib_darktable.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

Any ideas anybody? I would really appreciate some help!

It looks like it started failing in CI as well 3 days ago, exactly when MINGW64 switched to GCC 11… No idea about the fix just yet.

I wonder how many are compiling Darktable on Windows 10? Nobody else with this problem?

Reported and the fix is on the way.

Thank you, kmilos! Where do I find the workaround when it is ready?

You either check out the related PR, or wait until it’s merged into master.

PR? What is that?

Pull Request