spacepaste

  1.  
  2. Determining if the pthread_create exist failed with the following output:
  3. Change Dir: /home/timofonic/.cache/pacaur/mysql-workbench-git/src/mysql-workbench/CMakeFiles/CMakeTmp
  4. Run Build Command:"/usr/bin/make" "cmTC_94ec8/fast"
  5. /usr/bin/make -f CMakeFiles/cmTC_94ec8.dir/build.make CMakeFiles/cmTC_94ec8.dir/build
  6. make[1]: Entering directory '/home/timofonic/.cache/pacaur/mysql-workbench-git/src/mysql-workbench/CMakeFiles/CMakeTmp'
  7. Building C object CMakeFiles/cmTC_94ec8.dir/CheckSymbolExists.c.o
  8. /usr/lib/ccache/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -o CMakeFiles/cmTC_94ec8.dir/CheckSymbolExists.c.o -c /home/timofonic/.cache/pacaur/mysql-workbench-git/src/mysql-workbench/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  9. Linking C executable cmTC_94ec8
  10. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_94ec8.dir/link.txt --verbose=1
  11. /usr/lib/ccache/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -rdynamic CMakeFiles/cmTC_94ec8.dir/CheckSymbolExists.c.o -o cmTC_94ec8
  12. CMakeFiles/cmTC_94ec8.dir/CheckSymbolExists.c.o: In function `main':
  13. CheckSymbolExists.c:(.text.startup+0x3): undefined reference to `pthread_create'
  14. collect2: error: ld returned 1 exit status
  15. make[1]: *** [CMakeFiles/cmTC_94ec8.dir/build.make:98: cmTC_94ec8] Error 1
  16. make[1]: Leaving directory '/home/timofonic/.cache/pacaur/mysql-workbench-git/src/mysql-workbench/CMakeFiles/CMakeTmp'
  17. make: *** [Makefile:126: cmTC_94ec8/fast] Error 2
  18. File /home/timofonic/.cache/pacaur/mysql-workbench-git/src/mysql-workbench/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  19. /* */
  20. #include <pthread.h>
  21. int main(int argc, char** argv)
  22. {
  23. (void)argv;
  24. #ifndef pthread_create
  25. return ((int*)(&pthread_create))[argc];
  26. #else
  27. (void)argc;
  28. return 0;
  29. #endif
  30. }
  31. Determining if the function pthread_create exists in the pthreads failed with the following output:
  32. Change Dir: /home/timofonic/.cache/pacaur/mysql-workbench-git/src/mysql-workbench/CMakeFiles/CMakeTmp
  33. Run Build Command:"/usr/bin/make" "cmTC_28cf3/fast"
  34. /usr/bin/make -f CMakeFiles/cmTC_28cf3.dir/build.make CMakeFiles/cmTC_28cf3.dir/build
  35. make[1]: Entering directory '/home/timofonic/.cache/pacaur/mysql-workbench-git/src/mysql-workbench/CMakeFiles/CMakeTmp'
  36. Building C object CMakeFiles/cmTC_28cf3.dir/CheckFunctionExists.c.o
  37. /usr/lib/ccache/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_28cf3.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.9/Modules/CheckFunctionExists.c
  38. Linking C executable cmTC_28cf3
  39. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_28cf3.dir/link.txt --verbose=1
  40. /usr/lib/ccache/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -rdynamic CMakeFiles/cmTC_28cf3.dir/CheckFunctionExists.c.o -o cmTC_28cf3 -lpthreads
  41. /usr/bin/ld: cannot find -lpthreads
  42. collect2: error: ld returned 1 exit status
  43. make[1]: *** [CMakeFiles/cmTC_28cf3.dir/build.make:98: cmTC_28cf3] Error 1
  44. make[1]: Leaving directory '/home/timofonic/.cache/pacaur/mysql-workbench-git/src/mysql-workbench/CMakeFiles/CMakeTmp'
  45. make: *** [Makefile:126: cmTC_28cf3/fast] Error 2
  46.