I'm trying to cross-compile on Ubuntu for Windows hosts using ./configure --quiet --host=x86_64-w64-mingw32
But my build fails: dup2.c: In function 'ms_windows_dup2': dup2.c:80:11: error: cast from function call of type 'intptr_t' {aka 'long long int'} to non-matching type 'void *' [-Werror=bad-function-cast] 80 | if ((HANDLE) _get_osfhandle (fd) == INVALID_HANDLE_VALUE) | ^ cc1: all warnings being treated as errors make[3]: *** [Makefile:2576: libgzip_a-dup2.o] Error 1 make[3]: Leaving directory '/home/runner/work/gzip-windows-build/gzip-windows-build/gzip/lib' What are the correct steps to cross-compile for Windows on Ubuntu 20 LTS?