Can't compile Native SDK

I downloaded the native SDK and tried to compile it for Windows.
cmake -B build -D SENTRY_BACKEND=crashpad
I received the following error:
“C:/mingw/bin/mingw32-gcc.exe” is not able to compile a simple test program.
And in the lerror og file:
Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: C:/mingw/bin/mingw32-gcc.exe
Build flags:
Id flags:

The output was:
1
mingw32-gcc.exe: error: CreateProcess: No such file or directory

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: C:/mingw/bin/mingw32-gcc.exe
Build flags:
Id flags: -c

The output was:
1
mingw32-gcc.exe: error: CreateProcess: No such file or directory

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: C:/mingw/bin/mingw32-gcc.exe
Build flags:
Id flags: --c++

The output was:
1
mingw32-gcc.exe: error: unrecognized command line option ‘–c++’

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: C:/mingw/bin/mingw32-gcc.exe
Build flags:
Id flags: --ec++

The output was:
1
mingw32-gcc.exe: error: unrecognized command line option ‘–ec++’; did you mean ‘-Weffc++’?

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: C:/mingw/bin/mingw32-gcc.exe
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3

The output was:
1
mingw32-gcc.exe: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
mingw32-gcc.exe: error: CreateProcess: No such file or directory

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: C:/mingw/bin/mingw32-gcc.exe
Build flags:
Id flags:

The output was:
1
mingw32-gcc.exe: error: CreateProcess: No such file or directory

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: C:/mingw/bin/mingw32-gcc.exe
Build flags:
Id flags: -c

The output was:
1
mingw32-gcc.exe: error: CreateProcess: No such file or directory

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: C:/mingw/bin/mingw32-gcc.exe
Build flags:
Id flags: --c++

The output was:
1
mingw32-gcc.exe: error: unrecognized command line option ‘–c++’

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: C:/mingw/bin/mingw32-gcc.exe
Build flags:
Id flags: --ec++

The output was:
1
mingw32-gcc.exe: error: unrecognized command line option ‘–ec++’; did you mean ‘-Weffc++’?

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: C:/mingw/bin/mingw32-gcc.exe
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3

The output was:
1
mingw32-gcc.exe: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
mingw32-gcc.exe: error: CreateProcess: No such file or directory

Checking whether the CXX compiler is IAR using “” did not match “IAR .+ Compiler”:
mingw32-gcc.exe: fatal error: no input files
compilation terminated.
Checking whether the CXX compiler is IAR using “” did not match “IAR .+ Compiler”:
mingw32-gcc.exe: fatal error: no input files
compilation terminated.
Detecting CXX compiler ABI info failed to compile with the following output:
Change Dir: C:/Users/shlomoa/Sentry/build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_90a85/fast && C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_90a85.dir\build.make CMakeFiles/cmTC_90a85.dir/build

mingw32-make.exe[1]: Entering directory ‘C:/Users/shlomoa/Sentry/build/CMakeFiles/CMakeTmp’

Building CXX object CMakeFiles/cmTC_90a85.dir/CMakeCXXCompilerABI.cpp.obj

C:\mingw\bin\mingw32-gcc.exe -o CMakeFiles\cmTC_90a85.dir\CMakeCXXCompilerABI.cpp.obj -c “C:\Program Files\CMake\share\cmake-3.19\Modules\CMakeCXXCompilerABI.cpp”

mingw32-gcc.exe: error: CreateProcess: No such file or directory

CMakeFiles\cmTC_90a85.dir\build.make:83: recipe for target ‘CMakeFiles/cmTC_90a85.dir/CMakeCXXCompilerABI.cpp.obj’ failed

mingw32-make.exe[1]: *** [CMakeFiles/cmTC_90a85.dir/CMakeCXXCompilerABI.cpp.obj] Error 1

mingw32-make.exe[1]: Leaving directory ‘C:/Users/shlomoa/Sentry/build/CMakeFiles/CMakeTmp’

Makefile:139: recipe for target ‘cmTC_90a85/fast’ failed

mingw32-make.exe: *** [cmTC_90a85/fast] Error 2

Determining if the CXX compiler works failed with the following output:
Change Dir: C:/Users/shlomoa/Sentry/build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_ff447/fast && C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_ff447.dir\build.make CMakeFiles/cmTC_ff447.dir/build

mingw32-make.exe[1]: Entering directory ‘C:/Users/shlomoa/Sentry/build/CMakeFiles/CMakeTmp’

Building CXX object CMakeFiles/cmTC_ff447.dir/testCXXCompiler.cxx.obj

C:\mingw\bin\mingw32-gcc.exe -o CMakeFiles\cmTC_ff447.dir\testCXXCompiler.cxx.obj -c C:\Users\shlomoa\Sentry\build\CMakeFiles\CMakeTmp\testCXXCompiler.cxx

mingw32-gcc.exe: error: CreateProcess: No such file or directory

CMakeFiles\cmTC_ff447.dir\build.make:83: recipe for target ‘CMakeFiles/cmTC_ff447.dir/testCXXCompiler.cxx.obj’ failed

mingw32-make.exe[1]: *** [CMakeFiles/cmTC_ff447.dir/testCXXCompiler.cxx.obj] Error 1

mingw32-make.exe[1]: Leaving directory ‘C:/Users/shlomoa/Sentry/build/CMakeFiles/CMakeTmp’

Makefile:139: recipe for target ‘cmTC_ff447/fast’ failed

mingw32-make.exe: *** [cmTC_ff447/fast] Error 2