CMakeError.log 6.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Determining if the pthread_create exist failed with the following output:
  2. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp
  3. Run Build Command:"/usr/bin/make" "cmTC_345bf/fast"
  4. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp'
  5. /usr/bin/make -f CMakeFiles/cmTC_345bf.dir/build.make CMakeFiles/cmTC_345bf.dir/build
  6. make[2]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp'
  7. Building C object CMakeFiles/cmTC_345bf.dir/CheckSymbolExists.c.o
  8. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -o CMakeFiles/cmTC_345bf.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  9. Linking C executable cmTC_345bf
  10. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_345bf.dir/link.txt --verbose=1
  11. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -rdynamic CMakeFiles/cmTC_345bf.dir/CheckSymbolExists.c.o -o cmTC_345bf
  12. CMakeFiles/cmTC_345bf.dir/CheckSymbolExists.c.o: In function `main':
  13. CheckSymbolExists.c:(.text+0xe): undefined reference to `pthread_create'
  14. CheckSymbolExists.c:(.text+0x12): undefined reference to `pthread_create'
  15. collect2: error: ld returned 1 exit status
  16. CMakeFiles/cmTC_345bf.dir/build.make:97: recipe for target 'cmTC_345bf' failed
  17. make[2]: *** [cmTC_345bf] Error 1
  18. make[2]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp'
  19. Makefile:126: recipe for target 'cmTC_345bf/fast' failed
  20. make[1]: *** [cmTC_345bf/fast] Error 2
  21. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp'
  22. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  23. /* */
  24. #include <pthread.h>
  25. int main(int argc, char** argv)
  26. {
  27. (void)argv;
  28. #ifndef pthread_create
  29. return ((int*)(&pthread_create))[argc];
  30. #else
  31. (void)argc;
  32. return 0;
  33. #endif
  34. }
  35. Determining if the function pthread_create exists in the pthreads failed with the following output:
  36. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp
  37. Run Build Command:"/usr/bin/make" "cmTC_012e5/fast"
  38. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp'
  39. /usr/bin/make -f CMakeFiles/cmTC_012e5.dir/build.make CMakeFiles/cmTC_012e5.dir/build
  40. make[2]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp'
  41. Building C object CMakeFiles/cmTC_012e5.dir/CheckFunctionExists.c.o
  42. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_012e5.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
  43. Linking C executable cmTC_012e5
  44. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_012e5.dir/link.txt --verbose=1
  45. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_012e5.dir/CheckFunctionExists.c.o -o cmTC_012e5 -lpthreads
  46. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lpthreads
  47. collect2: error: ld returned 1 exit status
  48. CMakeFiles/cmTC_012e5.dir/build.make:97: recipe for target 'cmTC_012e5' failed
  49. make[2]: *** [cmTC_012e5] Error 1
  50. make[2]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp'
  51. Makefile:126: recipe for target 'cmTC_012e5/fast' failed
  52. make[1]: *** [cmTC_012e5/fast] Error 2
  53. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp'
  54. Performing C++ SOURCE FILE Test MSGPACK_ENABLE_GCC_CXX_ATOMIC failed with the following output:
  55. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp
  56. Run Build Command:"/usr/bin/make" "cmTC_2bbf9/fast"
  57. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp'
  58. /usr/bin/make -f CMakeFiles/cmTC_2bbf9.dir/build.make CMakeFiles/cmTC_2bbf9.dir/build
  59. make[2]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp'
  60. Building CXX object CMakeFiles/cmTC_2bbf9.dir/src.cxx.o
  61. /usr/bin/c++ -DMSGPACK_DEFAULT_API_VERSION=3 -std=c++98 -DMSGPACK_ENABLE_GCC_CXX_ATOMIC -o CMakeFiles/cmTC_2bbf9.dir/src.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp/src.cxx
  62. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: bits/atomicity.h: No such file or directory
  63. #include <bits/atomicity.h>
  64. ^~~~~~~~~~~~~~~~~~
  65. compilation terminated.
  66. CMakeFiles/cmTC_2bbf9.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_2bbf9.dir/src.cxx.o' failed
  67. make[2]: *** [CMakeFiles/cmTC_2bbf9.dir/src.cxx.o] Error 1
  68. make[2]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp'
  69. Makefile:126: recipe for target 'cmTC_2bbf9/fast' failed
  70. make[1]: *** [cmTC_2bbf9/fast] Error 2
  71. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/msgpack-3.1.1/release/CMakeFiles/CMakeTmp'
  72. Source file was:
  73. #include <bits/atomicity.h>
  74. int atomic_sub(int i) { return __gnu_cxx::__exchange_and_add(&i, -1) - 1; }
  75. int atomic_add(int i) { return __gnu_cxx::__exchange_and_add(&i, 1) + 1; }
  76. int main(int argc, char * argv[])
  77. {
  78. atomic_sub(1);
  79. atomic_add(1);
  80. }