The contrib/devtools/shell-win64-cross.nix script used in CI builds a GCC cross-compiler configured with --enable-threads=mcf:
$ NIX_BUILD_SHELL=bash HOST=x86_64-w64-mingw32ucrt nix-shell contrib/devtools/shell-win64-cross.nix
$ $CXX -v
Using built-in specs.
COLLECT_GCC=/nix/store/i67bfgf5xy32wzh6cck9jpxcjkvnq9k5-x86_64-w64-mingw32-gcc-14.3.0/bin/x86_64-w64-mingw32-g++
COLLECT_LTO_WRAPPER=/nix/store/i67bfgf5xy32wzh6cck9jpxcjkvnq9k5-x86_64-w64-mingw32-gcc-14.3.0/libexec/gcc/x86_64-w64-mingw32/14.3.0/lto-wrapper
Target: x86_64-w64-mingw32
Configured with: ../gcc-14.3.0/configure --prefix=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-x86_64-w64-mingw32-gcc-14.3.0 --with-gmp-include=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gmp-with-cxx-6.3.0-dev/include --with-gmp-lib=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gmp-with-cxx-6.3.0/lib --with-mpfr-include=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-mpfr-4.2.2-dev/include --with-mpfr-lib=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-mpfr-4.2.2/lib --with-mpc=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libmpc-1.4.0 --with-native-system-header-dir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-mingw-w64-x86_64-w64-mingw32-13.0.0-dev/include --with-build-sysroot=/ --with-gxx-include-dir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-x86_64-w64-mingw32-gcc-14.3.0/include/c++/14.3.0/ --program-prefix=x86_64-w64-mingw32- --enable-lto --disable-libstdcxx-pch --without-included-gettext --with-system-zlib --enable-static --enable-languages=c,c++ --disable-multilib --enable-plugin --with-isl=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-isl-0.20 --with-as=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-x86_64-w64-mingw32-binutils-wrapper-2.46/bin/x86_64-w64-mingw32-as --with-headers=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-mingw-w64-x86_64-w64-mingw32-13.0.0-dev/include --enable-__cxa_atexit --enable-long-long --enable-threads=mcf --enable-nls --disable-bootstrap --enable-default-pie --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=x86_64-w64-mingw32
Thread model: mcf
Supported LTO compression algorithms: zlib
gcc version 14.3.0 (GCC)
The Guix release builds, however, use a GCC configured with the posix thread model.
Therefore, the CI jobs exercise a toolchain whose threading differs from the one used for release binaries. This reduces the value of the Windows cross-compilation CI jobs.
Somewhat related: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054148.