[CMake] cmake cvs doesn't work right now
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Jan 2 10:15:30 EST 2006
Hi,
the following CMakeLists.txt currently doesn't work:
MESSAGE(STATUS "hallo")
It gives:
~/src/cmakepthreads$ cmake .
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- broken
The C compiler "/usr/bin/gcc" is not able to compile a simple test
program.
It fails with the following output:
gmake: *** No rule to make target `cmTryCompileExec'. Stop.
CMake will not be able to correctly generate this project.
-- Configuring done
hammer:~/src/cmakepthreads$
Here's CMakeError.log:
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
gmake[3]: Entering directory
`/home/src/my_stuff/kdecmake/samples/kpager/CMakeTmp'
Building C object CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.o
gcc -DCHECK_FUNCTION_EXISTS=pthread_create -o
CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.o
-c /usr/local/share/CMake/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec
/usr/local/bin/cmake -E remove -f cmTryCompileExec
gcc -DCHECK_FUNCTION_EXISTS=pthread_create -fPIC
"CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.o" -o
cmTryCompileExec -rdynamic -lpthreads
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../../i486-slackware-linux/bin/ld:
cannot find -lpthreads
collect2: ld returned 1 exit status
gmake[3]: Leaving directory
`/home/src/my_stuff/kdecmake/samples/kpager/CMakeTmp'
gmake[3]: *** [cmTryCompileExec] Error 1
gmake[2]: Leaving directory
`/home/src/my_stuff/kdecmake/samples/kpager/CMakeTmp'
gmake[2]: *** [CMakeFiles/cmTryCompileExec.dir/all] Error 2
gmake[1]: Leaving directory
`/home/src/my_stuff/kdecmake/samples/kpager/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/rule] Error 2
gmake: *** [cmTryCompileExec] Error 2
On my system, there's a libpthread.so, but no libpthreads.so.
Bye
Alex
--
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++
More information about the CMake
mailing list