I am trying to compile the Native SDK for Windows.
I do: cmake -B build -D SENTRY_BACKEND=crashpad
And I set the variable CXX=mingw32-gcc.exe
I get an error: is not able to compile a simple test program.
And in CMakeError.log
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_6cdf0/fast && C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_6cdf0.dir\build.make CMakeFiles/cmTC_6cdf0.dir/build
mingw32-make.exe[1]: Entering directory ‘C:/Users/shlomoa/Sentry/build/CMakeFiles/CMakeTmp’
Building CXX object CMakeFiles/cmTC_6cdf0.dir/CMakeCXXCompilerABI.cpp.obj
C:\mingw\bin\mingw32-gcc.exe -o CMakeFiles\cmTC_6cdf0.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_6cdf0.dir\build.make:83: recipe for target ‘CMakeFiles/cmTC_6cdf0.dir/CMakeCXXCompilerABI.cpp.obj’ failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_6cdf0.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_6cdf0/fast’ failed
mingw32-make.exe: *** [cmTC_6cdf0/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_e6e99/fast && C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_e6e99.dir\build.make CMakeFiles/cmTC_e6e99.dir/build
mingw32-make.exe[1]: Entering directory ‘C:/Users/shlomoa/Sentry/build/CMakeFiles/CMakeTmp’
Building CXX object CMakeFiles/cmTC_e6e99.dir/testCXXCompiler.cxx.obj
C:\mingw\bin\mingw32-gcc.exe -o CMakeFiles\cmTC_e6e99.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_e6e99.dir\build.make:83: recipe for target ‘CMakeFiles/cmTC_e6e99.dir/testCXXCompiler.cxx.obj’ failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_e6e99.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_e6e99/fast’ failed
mingw32-make.exe: *** [cmTC_e6e99/fast] Error 2