[CMake] CodeBlocks - MinGW Makefiles - błąd przy generowaniu
Ostatnio zmodyfikowano 2017-08-02 22:11
marcolo2307 Temat założony przez niniejszego użytkownika |
[CMake] CodeBlocks - MinGW Makefiles - błąd przy generowaniu » 2017-08-02 22:11:22 Cześć! Od jakiegoś czasu nagle mam błąd z CMakiem - nie mogę skompilować nawet zwykłego int main() { } dla CodeBlocks z MinGW 6.3.0 Przykładowe wywołanie: C:\Users\marco\Desktop\x>cmake . -G "CodeBlocks - MinGW Makefiles" -- The C compiler identification is unknown -- The CXX compiler identification is GNU 6.3.0 -- Check for working C compiler: E:/MinGW/bin/gcc.exe -- Check for working C compiler: E:/MinGW/bin/gcc.exe -- broken CMake Error at D:/CMake/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message): The C compiler "E:/MinGW/bin/gcc.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp
Run Build Command:"E:/MinGW/bin/mingw32-make.exe" "cmTC_5755b/fast"
E:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_5755b.dir\build.make CMakeFiles/cmTC_5755b.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5755b.dir/testCCompiler.c.obj
E:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_5755b.dir\testCCompiler.c.obj -c C:\Users\marco\Desktop\x\CMakeFiles\CMakeTmp\testCCompiler.c
CMakeFiles\cmTC_5755b.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_5755b.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_5755b.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Makefile:125: recipe for target 'cmTC_5755b/fast' failed
mingw32-make.exe: *** [cmTC_5755b/fast] Error 2
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt
-- Configuring incomplete, errors occurred! See also "C:/Users/marco/Desktop/x/CMakeFiles/CMakeOutput.log". See also "C:/Users/marco/Desktop/x/CMakeFiles/CMakeError.log".
Do tego pliki CMakeRror: Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -D__CLASSIC_C__
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -D__CLASSIC_C__
The output was: 1
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Determining if the C compiler works failed with the following output: Change Dir: C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp
Run Build Command:"E:/MinGW/bin/mingw32-make.exe" "cmTC_3eced/fast" E:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_3eced.dir\build.make CMakeFiles/cmTC_3eced.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3eced.dir/testCCompiler.c.obj
E:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_3eced.dir\testCCompiler.c.obj -c C:\Users\marco\Desktop\x\CMakeFiles\CMakeTmp\testCCompiler.c
CMakeFiles\cmTC_3eced.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_3eced.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_3eced.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Makefile:125: recipe for target 'cmTC_3eced/fast' failed
mingw32-make.exe: *** [cmTC_3eced/fast] Error 2
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -D__CLASSIC_C__
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -D__CLASSIC_C__
The output was: 1
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Determining if the C compiler works failed with the following output: Change Dir: C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp
Run Build Command:"E:/MinGW/bin/mingw32-make.exe" "cmTC_d15ca/fast" E:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_d15ca.dir\build.make CMakeFiles/cmTC_d15ca.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d15ca.dir/testCCompiler.c.obj
E:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_d15ca.dir\testCCompiler.c.obj -c C:\Users\marco\Desktop\x\CMakeFiles\CMakeTmp\testCCompiler.c
CMakeFiles\cmTC_d15ca.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_d15ca.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_d15ca.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Makefile:125: recipe for target 'cmTC_d15ca/fast' failed
mingw32-make.exe: *** [cmTC_d15ca/fast] Error 2
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -D__CLASSIC_C__
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -D__CLASSIC_C__
The output was: 1
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Determining if the C compiler works failed with the following output: Change Dir: C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp
Run Build Command:"E:/MinGW/bin/mingw32-make.exe" "cmTC_381d5/fast" E:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_381d5.dir\build.make CMakeFiles/cmTC_381d5.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_381d5.dir/testCCompiler.c.obj
E:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_381d5.dir\testCCompiler.c.obj -c C:\Users\marco\Desktop\x\CMakeFiles\CMakeTmp\testCCompiler.c
CMakeFiles\cmTC_381d5.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_381d5.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_381d5.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Makefile:125: recipe for target 'cmTC_381d5/fast' failed
mingw32-make.exe: *** [cmTC_381d5/fast] Error 2
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -D__CLASSIC_C__
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -D__CLASSIC_C__
The output was: 1
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Determining if the C compiler works failed with the following output: Change Dir: C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp
Run Build Command:"E:/MinGW/bin/mingw32-make.exe" "cmTC_cb7bc/fast" E:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_cb7bc.dir\build.make CMakeFiles/cmTC_cb7bc.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_cb7bc.dir/testCCompiler.c.obj
E:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_cb7bc.dir\testCCompiler.c.obj -c C:\Users\marco\Desktop\x\CMakeFiles\CMakeTmp\testCCompiler.c
CMakeFiles\cmTC_cb7bc.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_cb7bc.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_cb7bc.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Makefile:125: recipe for target 'cmTC_cb7bc/fast' failed
mingw32-make.exe: *** [cmTC_cb7bc/fast] Error 2
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -D__CLASSIC_C__
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -D__CLASSIC_C__
The output was: 1
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Determining if the C compiler works failed with the following output: Change Dir: C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp
Run Build Command:"E:/MinGW/bin/mingw32-make.exe" "cmTC_5a0a1/fast" E:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_5a0a1.dir\build.make CMakeFiles/cmTC_5a0a1.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5a0a1.dir/testCCompiler.c.obj
E:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_5a0a1.dir\testCCompiler.c.obj -c C:\Users\marco\Desktop\x\CMakeFiles\CMakeTmp\testCCompiler.c
CMakeFiles\cmTC_5a0a1.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_5a0a1.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_5a0a1.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Makefile:125: recipe for target 'cmTC_5a0a1/fast' failed
mingw32-make.exe: *** [cmTC_5a0a1/fast] Error 2
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -D__CLASSIC_C__
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: E:/MinGW/bin/gcc.exe Build flags: Id flags: -D__CLASSIC_C__
The output was: 1
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Determining if the C compiler works failed with the following output: Change Dir: C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp
Run Build Command:"E:/MinGW/bin/mingw32-make.exe" "cmTC_5755b/fast" E:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_5755b.dir\build.make CMakeFiles/cmTC_5755b.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5755b.dir/testCCompiler.c.obj
E:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_5755b.dir\testCCompiler.c.obj -c C:\Users\marco\Desktop\x\CMakeFiles\CMakeTmp\testCCompiler.c
CMakeFiles\cmTC_5755b.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_5755b.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_5755b.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/marco/Desktop/x/CMakeFiles/CMakeTmp'
Makefile:125: recipe for target 'cmTC_5755b/fast' failed
mingw32-make.exe: *** [cmTC_5755b/fast] Error 2
I CMakeOutput: The system is: Windows - 10.0.15063 - AMD64 Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: E:/MinGW/bin/g++.exe Build flags: Id flags:
The output was: 0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.exe"
The CXX compiler identification is GNU, found in "C:/Users/marco/Desktop/x/CMakeFiles/3.9.0/CompilerIdCXX/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: E:/MinGW/bin/g++.exe Build flags: Id flags:
The output was: 0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.exe"
The CXX compiler identification is GNU, found in "C:/Users/marco/Desktop/x/CMakeFiles/3.9.0/CompilerIdCXX/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: E:/MinGW/bin/g++.exe Build flags: Id flags:
The output was: 0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.exe"
The CXX compiler identification is GNU, found in "C:/Users/marco/Desktop/x/CMakeFiles/3.9.0/CompilerIdCXX/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: E:/MinGW/bin/g++.exe Build flags: Id flags:
The output was: 0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.exe"
The CXX compiler identification is GNU, found in "C:/Users/marco/Desktop/x/CMakeFiles/3.9.0/CompilerIdCXX/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: E:/MinGW/bin/g++.exe Build flags: Id flags:
The output was: 0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.exe"
The CXX compiler identification is GNU, found in "C:/Users/marco/Desktop/x/CMakeFiles/3.9.0/CompilerIdCXX/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: E:/MinGW/bin/g++.exe Build flags: Id flags:
The output was: 0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.exe"
The CXX compiler identification is GNU, found in "C:/Users/marco/Desktop/x/CMakeFiles/3.9.0/CompilerIdCXX/a.exe"
Próbowałem reinstalacji zarówno CMake'a jak i MinGW. Wydaje mi się, że problem wystąpił sam z siebie, po prostu za którymś razem nie udało się wygenerować makefile'a. Projekty Visuala 2015 generowane są bez problemów. |
|
« 1 » |