[CMake] CMake will not be able to correctly generate this project.

Gregory Anderson gymjb at stu.ca
Thu Jan 3 11:09:48 EST 2008


I have had some troubles with cmake (or maybe gcc).  I keep getting this
error whenever I try to use it.  gcc is installed.


[root at localhost ~]# cmake /home/gregory/tarballs/canorus-0.5beta.R682
-- Check for working C compiler: /usr/lib/ccache/gcc
-- Check for working C compiler: /usr/lib/ccache/gcc -- broken
CMake Error: The C compiler "/usr/lib/ccache/gcc" is not able to compile
a simple test program.
It fails with the following output:
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory
`/home/gregory/tarballs/canorus-0.5beta.R682/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E
cmake_progress_report /home/gregory/tarballs/canorus-0.5beta.R682/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o
/usr/lib/ccache/gcc   -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o
-c /home/gregory/tarballs/canorus-0.5beta.R682/CMakeFiles/CMakeTmp/testCCompiler.c
/home/gregory/tarballs/canorus-0.5beta.R682/CMakeFiles/CMakeTmp/testCCompiler.c:4:19: error: stdio.h: No such file or directory
/home/gregory/tarballs/canorus-0.5beta.R682/CMakeFiles/CMakeTmp/testCCompiler.c: In function ‘main’:
/home/gregory/tarballs/canorus-0.5beta.R682/CMakeFiles/CMakeTmp/testCCompiler.c:12: warning: incompatible implicit declaration of built-in function ‘printf’
gmake[1]: Leaving directory
`/home/gregory/tarballs/canorus-0.5beta.R682/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 1
gmake: *** [cmTryCompileExec/fast] Error 2


CMake will not be able to correctly generate this project.
-- Configuring done


Can anyone point me in the right direction?
Thanks in advance,
Greg





More information about the CMake mailing list