When I try to build Rack from source on Windows, I get the following Cmake error log:
Detecting C compiler ABI info failed to compile with the following output:
Change Dir: C:/Users/shaikath/Desktop/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/PROGRA~2/GnuWin32/bin/make.exe cmTC_8cce0/fast && make.exe[2]: Entering directory `C:/Users/shaikath/Desktop/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeTmp'
C:/PROGRA~2/GnuWin32/bin/make.exe -f CMakeFiles/cmTC_8cce0.dir/build.make CMakeFiles/cmTC_8cce0.dir/build
make.exe[3]: Entering directory `C:/Users/shaikath/Desktop/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8cce0.dir/CMakeCCompilerABI.c.obj
/C/TDM-GCC-64/bin/gcc.exe -g -O3 -march=nocona -v -o CMakeFiles/cmTC_8cce0.dir/CMakeCCompilerABI.c.obj -c "/C/Program Files/CMake/share/cmake-3.19/Modules/CMakeCCompilerABI.c"
Using built-in specs.
COLLECT_GCC=C:\TDM-GCC-64\bin\gcc.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-git-9.2.0/configure --build=x86_64-w64-mingw32 --enable-targets=all --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-libgomp --enable-lto --enable-graphite --enable-cxx-flags=-DWINPTHREAD_STATIC --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-libstdcxx-debug --enable-threads=posix --enable-version-specific-runtime-libs --enable-fully-dynamic-string --enable-libstdcxx-threads --enable-libstdcxx-time --with-gnu-ld --disable-werror --disable-nls --disable-win32-registry --enable-large-address-aware --disable-rpath --disable-symvers --prefix=/mingw64tdm --with-local-prefix=/mingw64tdm --with-pkgversion=tdm64-1 --with-bugurl=http://tdm-gcc.tdragon.net/bugs
Thread model: posix
gcc version 9.2.0 (tdm64-1)
COLLECT_GCC_OPTIONS='-g' '-O3' '-march=nocona' '-v' '-o' 'CMakeFiles/cmTC_8cce0.dir/CMakeCCompilerABI.c.obj' '-c'
C:/TDM-GCC-64/bin/../libexec/gcc/x86_64-w64-mingw32/9.2.0/cc1.exe -quiet -v -iprefix C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/ -D_REENTRANT C:/Program Files/CMake/share/cmake-3.19/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -march=nocona -auxbase-strip CMakeFiles/cmTC_8cce0.dir/CMakeCCompilerABI.c.obj -g -O3 -version -o C:\Users\shaikath\AppData\Local\Temp\cckBTYOr.s
GNU C17 (tdm64-1) version 9.2.0 (x86_64-w64-mingw32)
compiled by GNU C version 9.2.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "C:/TDM-GCC-64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/9.2.0/include"
ignoring duplicate directory "C:/TDM-GCC-64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../include"
ignoring duplicate directory "C:/TDM-GCC-64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/9.2.0/include-fixed"
ignoring duplicate directory "C:/TDM-GCC-64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/include
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../include
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/include-fixed
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/include
End of search list.
GNU C17 (tdm64-1) version 9.2.0 (x86_64-w64-mingw32)
compiled by GNU C version 9.2.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 28379e31cc2f1f6d7a657691ed425dfd
COLLECT_GCC_OPTIONS='-g' '-O3' '-march=nocona' '-v' '-o' 'CMakeFiles/cmTC_8cce0.dir/CMakeCCompilerABI.c.obj' '-c'
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/as.exe -v -o CMakeFiles/cmTC_8cce0.dir/CMakeCCompilerABI.c.obj C:\Users\shaikath\AppData\Local\Temp\cckBTYOr.s
GNU assembler version 2.33.1 (x86_64-w64-mingw32) using BFD version (GNU Binutils) 2.33.1
COMPILER_PATH=C:/TDM-GCC-64/bin/../libexec/gcc/x86_64-w64-mingw32/9.2.0/;C:/TDM-GCC-64/bin/../libexec/gcc/;C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/
LIBRARY_PATH=C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/;C:/TDM-GCC-64/bin/../lib/gcc/;C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/lib/../lib/;C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../lib/;C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/lib/;C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../
COLLECT_GCC_OPTIONS='-g' '-O3' '-march=nocona' '-v' '-o' 'CMakeFiles/cmTC_8cce0.dir/CMakeCCompilerABI.c.obj' '-c'
Linking C executable cmTC_8cce0.exe
"/C/Program Files/CMake/bin/cmake.exe" -E rm -f CMakeFiles/cmTC_8cce0.dir/objects.a
/C/TDM-GCC-64/bin/ar.exe cr CMakeFiles/cmTC_8cce0.dir/objects.a @CMakeFiles/cmTC_8cce0.dir/objects1.rsp
process_begin: CreateProcess(NULL, /C/TDM-GCC-64/bin/ar.exe cr CMakeFiles/cmTC_8cce0.dir/objects.a @CMakeFiles/cmTC_8cce0.dir/objects1.rsp, ...) failed.
make (e=2): The system cannot find the file specified.
make.exe[3]: *** [cmTC_8cce0.exe] Error 2
make.exe[3]: Leaving directory `C:/Users/shaikath/Desktop/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeTmp'
make.exe[2]: *** [cmTC_8cce0/fast] Error 2
make.exe[2]: Leaving directory `C:/Users/shaikath/Desktop/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeTmp'
Determining if the C compiler works failed with the following output:
Change Dir: C:/Users/shaikath/Desktop/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/PROGRA~2/GnuWin32/bin/make.exe cmTC_42be3/fast && make.exe[2]: Entering directory `C:/Users/shaikath/Desktop/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeTmp'
C:/PROGRA~2/GnuWin32/bin/make.exe -f CMakeFiles/cmTC_42be3.dir/build.make CMakeFiles/cmTC_42be3.dir/build
make.exe[3]: Entering directory `C:/Users/shaikath/Desktop/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_42be3.dir/testCCompiler.c.obj
/C/TDM-GCC-64/bin/gcc.exe -g -O3 -march=nocona -o CMakeFiles/cmTC_42be3.dir/testCCompiler.c.obj -c /C/Users/shaikath/Desktop/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeTmp/testCCompiler.c
process_begin: CreateProcess(NULL, /C/TDM-GCC-64/bin/gcc.exe -g -O3 -march=nocona -o CMakeFiles/cmTC_42be3.dir/testCCompiler.c.obj -c /C/Users/shaikath/Desktop/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeTmp/testCCompiler.c, ...) failed.
make (e=2): The system cannot find the file specified.
make.exe[3]: *** [CMakeFiles/cmTC_42be3.dir/testCCompiler.c.obj] Error 2
make.exe[3]: Leaving directory `C:/Users/shaikath/Desktop/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeTmp'
make.exe[2]: *** [cmTC_42be3/fast] Error 2
make.exe[2]: Leaving directory `C:/Users/shaikath/Desktop/Rack/dep/glew-2.1.0/build/CMakeFiles/CMakeTmp'
Does anyone know what could cause this issue?