The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test program.

已回答

Hi, I have a problem with MinGW compiler. Following output:

 

C:\Users\Adrián\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\202.7319.72\bin\cmake\win\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" C:\Users\Adrián\CLionProjects\Kruh
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe - broken
CMake Error at C:/Users/Adrián/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/202.7319.72/bin/cmake/win/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler

"C:/MinGW/bin/gcc.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/Users/Adrián/CLionProjects/Kruh/cmake-build-debug-mingw/CMakeFiles/3.17.3/CompilerIdCXX/tmp/CMakeFiles/CMakeTmp

Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_6b39f/fast && C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_6b39f.dir\build.make CMakeFiles/cmTC_6b39f.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/AdriĂźn/CLionProjects/Kruh/cmake-build-debug-mingw/CMakeFiles/3.17.3/CompilerIdCXX/tmp/CMakeFiles/CMakeTmp'
The system cannot find the path specified.
CMakeFiles\cmTC_6b39f.dir\build.make:84: recipe for target 'CMakeFiles/cmTC_6b39f.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_6b39f.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/AdriĂźn/CLionProjects/Kruh/cmake-build-debug-mingw/CMakeFiles/3.17.3/CompilerIdCXX/tmp/CMakeFiles/CMakeTmp'
Makefile:140: recipe for target 'cmTC_6b39f/fast' failed
mingw32-make.exe: *** [cmTC_6b39f/fast] Error 2

 

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
See also "C:/Users/Adrián/CLionProjects/Kruh/cmake-build-debug-mingw/CMakeFiles/3.17.3/CompilerIdCXX/tmp/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Adrián/CLionProjects/Kruh/cmake-build-debug-mingw/CMakeFiles/3.17.3/CompilerIdCXX/tmp/CMakeFiles/CMakeError.log".

[Finished]

0

请先登录再写评论。