CMakeError.log 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Determining if the pthread_create exist failed with the following output:
  2. Change Dir: /mnt/hgfs/vm-exchange/SQLiteCpp/build/CMakeFiles/CMakeTmp
  3. Run Build Command:/usr/bin/make "cmTryCompileExec3067163014/fast"
  4. make: Warning: File `Makefile' has modification time 73 s in the future
  5. /usr/bin/make -f CMakeFiles/cmTryCompileExec3067163014.dir/build.make CMakeFiles/cmTryCompileExec3067163014.dir/build
  6. make[1]: Entering directory `/mnt/hgfs/vm-exchange/SQLiteCpp/build/CMakeFiles/CMakeTmp'
  7. make[1]: Warning: File `CMakeFiles/cmTryCompileExec3067163014.dir/flags.make' has modification time 73 s in the future
  8. /usr/bin/cmake -E cmake_progress_report /mnt/hgfs/vm-exchange/SQLiteCpp/build/CMakeFiles/CMakeTmp/CMakeFiles 1
  9. Building C object CMakeFiles/cmTryCompileExec3067163014.dir/CheckSymbolExists.c.o
  10. /usr/bin/cc -o CMakeFiles/cmTryCompileExec3067163014.dir/CheckSymbolExists.c.o -c /mnt/hgfs/vm-exchange/SQLiteCpp/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  11. Linking C executable cmTryCompileExec3067163014
  12. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3067163014.dir/link.txt --verbose=1
  13. /usr/bin/cc CMakeFiles/cmTryCompileExec3067163014.dir/CheckSymbolExists.c.o -o cmTryCompileExec3067163014 -rdynamic
  14. CMakeFiles/cmTryCompileExec3067163014.dir/CheckSymbolExists.c.o: In function `main':
  15. CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
  16. collect2: error: ld returned 1 exit status
  17. make[1]: Leaving directory `/mnt/hgfs/vm-exchange/SQLiteCpp/build/CMakeFiles/CMakeTmp'
  18. make[1]: *** [cmTryCompileExec3067163014] Error 1
  19. make: *** [cmTryCompileExec3067163014/fast] Error 2
  20. File /mnt/hgfs/vm-exchange/SQLiteCpp/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  21. /* */
  22. #include <pthread.h>
  23. int main(int argc, char** argv)
  24. {
  25. (void)argv;
  26. #ifndef pthread_create
  27. return ((int*)(&pthread_create))[argc];
  28. #else
  29. (void)argc;
  30. return 0;
  31. #endif
  32. }
  33. Determining if the function pthread_create exists in the pthreads failed with the following output:
  34. Change Dir: /mnt/hgfs/vm-exchange/SQLiteCpp/build/CMakeFiles/CMakeTmp
  35. Run Build Command:/usr/bin/make "cmTryCompileExec366352226/fast"
  36. make: /usr/bin/make -f CMakeFiles/cmTryCompileExec366352226.dir/build.make CMakeFiles/cmTryCompileExec366352226.dir/build
  37. Warning: File `Makefile' has modification time 73 s in the future
  38. make[1]: Entering directory `/mnt/hgfs/vm-exchange/SQLiteCpp/build/CMakeFiles/CMakeTmp'
  39. make[1]: Warning: File `CMakeFiles/cmTryCompileExec366352226.dir/flags.make' has modification time 73 s in the future
  40. /usr/bin/cmake -E cmake_progress_report /mnt/hgfs/vm-exchange/SQLiteCpp/build/CMakeFiles/CMakeTmp/CMakeFiles 1
  41. Building C object CMakeFiles/cmTryCompileExec366352226.dir/CheckFunctionExists.c.o
  42. /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec366352226.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
  43. Linking C executable cmTryCompileExec366352226
  44. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec366352226.dir/link.txt --verbose=1
  45. /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec366352226.dir/CheckFunctionExists.c.o -o cmTryCompileExec366352226 -rdynamic -lpthreads
  46. /usr/bin/ld: cannot find -lpthreads
  47. collect2: error: ld returned 1 exit status
  48. make[1]: *** [cmTryCompileExec366352226] Error 1
  49. make[1]: Leaving directory `/mnt/hgfs/vm-exchange/SQLiteCpp/build/CMakeFiles/CMakeTmp'
  50. make: *** [cmTryCompileExec366352226/fast] Error 2