Not making
Opened this issue · 2 comments
arahnale commented
I run:
cmake ridl
and get an error:
Determining if the pthread_create exist failed with the following output:
Change Dir: /root/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_1b36d/fast"
/usr/bin/make -f CMakeFiles/cmTC_1b36d.dir/build.make CMakeFiles/cmTC_1b36d.dir/build
make[1]: Entering directory '/root/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_1b36d.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_1b36d.dir/CheckSymbolExists.c.o -c /root/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_1b36d
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1b36d.dir/link.txt --verbose=1
/usr/bin/cc -rdynamic CMakeFiles/cmTC_1b36d.dir/CheckSymbolExists.c.o -o cmTC_1b36d
CMakeFiles/cmTC_1b36d.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_1b36d.dir/build.make:97: recipe for target 'cmTC_1b36d' failed
make[1]: *** [cmTC_1b36d] Error 1
make[1]: Leaving directory '/root/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_1b36d/fast' failed
make: *** [cmTC_1b36d/fast] Error 2
File /root/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /root/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_3f22c/fast"
/usr/bin/make -f CMakeFiles/cmTC_3f22c.dir/build.make CMakeFiles/cmTC_3f22c.dir/build
make[1]: Entering directory '/root/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3f22c.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_3f22c.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_3f22c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3f22c.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_3f22c.dir/CheckFunctionExists.c.o -o cmTC_3f22c -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_3f22c.dir/build.make:97: recipe for target 'cmTC_3f22c' failed
make[1]: *** [cmTC_3f22c] Error 1
make[1]: Leaving directory '/root/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_3f22c/fast' failed
make: *** [cmTC_3f22c/fast] Error 2
My OS: Ubuntu 18.04
StephanvanSchaik commented
Which version of CMake do you have installed?
valetvalet13 commented
welcome, I am writing to you in contacts dear arahnale. I see that you are offline for three months. I need your consultation. If you go to your telegram you will see messages from me