Ich habe auf meinem Laptop Kdevelop installiert um auch da ein wenig zu programmieren. Jedoch bekomme ich wenn ich ein Programm "Erstellen" will, also kompilieren will, immer diese Ausgabe:
Code
/home/mark/projects/test/build> /usr/bin/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug /home/mark/projects/test
-- The C compiler identification is Clang 7.0.1
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/usr/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/mark/projects/test/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_f2f02/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_f2f02.dir/build.make CMakeFiles/cmTC_f2f02.dir/build
gmake[1]: Entering directory '/home/mark/projects/test/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f2f02.dir/testCCompiler.c.o
/usr/bin/clang -o CMakeFiles/cmTC_f2f02.dir/testCCompiler.c.o -c /home/mark/projects/test/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_f2f02
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f2f02.dir/link.txt --verbose=1
/usr/bin/clang -rdynamic CMakeFiles/cmTC_f2f02.dir/testCCompiler.c.o -o cmTC_f2f02
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find crtend.o: No such file or directory
/usr/bin/ld: cannot find crtn.o: No such file or directory
clang-7.0.1: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_f2f02.dir/build.make:98: cmTC_f2f02] Error 1
gmake[1]: Leaving directory '/home/mark/projects/test/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:126: cmTC_f2f02/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/home/mark/projects/test/build/CMakeFiles/CMakeOutput.log".
See also "/home/mark/projects/test/build/CMakeFiles/CMakeError.log".
*** Fehler: Beendigungscode 1 ***
Alles anzeigen
und ich habe nur versucht das Standard "Hallo Welt" Programm zu kompilieren.
C
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
puts("Hello, World!");
return 0;
}
Hat irgendjemand eine Ahnung wie sich das Problem beheben lässt? Auf meinem PC läuft alles Problem los.
Cmake habe ich auch installiert, da es ja leider nicht standardmäßig mitgeliefert wird.