11Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
22Change Dir: /home/erfan/Repositories/lmr-simulator/build/catkin_tools_prebuild/CMakeFiles/CMakeTmp
33
4- Run Build Command(s):/usr/bin/make cmTC_21c98 /fast && /usr/bin/make -f CMakeFiles/cmTC_21c98 .dir/build.make CMakeFiles/cmTC_21c98 .dir/build
4+ Run Build Command(s):/usr/bin/make cmTC_95eb9 /fast && /usr/bin/make -f CMakeFiles/cmTC_95eb9 .dir/build.make CMakeFiles/cmTC_95eb9 .dir/build
55make[1]: Entering directory '/home/erfan/Repositories/lmr-simulator/build/catkin_tools_prebuild/CMakeFiles/CMakeTmp'
6- Building C object CMakeFiles/cmTC_21c98 .dir/src.c.o
7- /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_21c98 .dir/src.c.o -c /home/erfan/Repositories/lmr-simulator/build/catkin_tools_prebuild/CMakeFiles/CMakeTmp/src.c
8- Linking C executable cmTC_21c98
9- /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_21c98 .dir/link.txt --verbose=1
10- /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -rdynamic CMakeFiles/cmTC_21c98 .dir/src.c.o -o cmTC_21c98
11- /usr/bin/ld: CMakeFiles/cmTC_21c98 .dir/src.c.o: in function `main':
6+ Building C object CMakeFiles/cmTC_95eb9 .dir/src.c.o
7+ /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_95eb9 .dir/src.c.o -c /home/erfan/Repositories/lmr-simulator/build/catkin_tools_prebuild/CMakeFiles/CMakeTmp/src.c
8+ Linking C executable cmTC_95eb9
9+ /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_95eb9 .dir/link.txt --verbose=1
10+ /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -rdynamic CMakeFiles/cmTC_95eb9 .dir/src.c.o -o cmTC_95eb9
11+ /usr/bin/ld: CMakeFiles/cmTC_95eb9 .dir/src.c.o: in function `main':
1212src.c:(.text+0x46): undefined reference to `pthread_create'
1313/usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
1414/usr/bin/ld: src.c:(.text+0x63): undefined reference to `pthread_join'
1515collect2: error: ld returned 1 exit status
16- make[1]: *** [CMakeFiles/cmTC_21c98 .dir/build.make:87: cmTC_21c98 ] Error 1
16+ make[1]: *** [CMakeFiles/cmTC_95eb9 .dir/build.make:87: cmTC_95eb9 ] Error 1
1717make[1]: Leaving directory '/home/erfan/Repositories/lmr-simulator/build/catkin_tools_prebuild/CMakeFiles/CMakeTmp'
18- make: *** [Makefile:121: cmTC_21c98 /fast] Error 2
18+ make: *** [Makefile:121: cmTC_95eb9 /fast] Error 2
1919
2020
2121Source file was:
@@ -41,18 +41,18 @@ int main(void)
4141Determining if the function pthread_create exists in the pthreads failed with the following output:
4242Change Dir: /home/erfan/Repositories/lmr-simulator/build/catkin_tools_prebuild/CMakeFiles/CMakeTmp
4343
44- Run Build Command(s):/usr/bin/make cmTC_53f75 /fast && /usr/bin/make -f CMakeFiles/cmTC_53f75 .dir/build.make CMakeFiles/cmTC_53f75 .dir/build
44+ Run Build Command(s):/usr/bin/make cmTC_8724b /fast && /usr/bin/make -f CMakeFiles/cmTC_8724b .dir/build.make CMakeFiles/cmTC_8724b .dir/build
4545make[1]: Entering directory '/home/erfan/Repositories/lmr-simulator/build/catkin_tools_prebuild/CMakeFiles/CMakeTmp'
46- Building C object CMakeFiles/cmTC_53f75 .dir/CheckFunctionExists.c.o
47- /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_53f75 .dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
48- Linking C executable cmTC_53f75
49- /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_53f75 .dir/link.txt --verbose=1
50- /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_53f75 .dir/CheckFunctionExists.c.o -o cmTC_53f75 -lpthreads
46+ Building C object CMakeFiles/cmTC_8724b .dir/CheckFunctionExists.c.o
47+ /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_8724b .dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
48+ Linking C executable cmTC_8724b
49+ /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8724b .dir/link.txt --verbose=1
50+ /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_8724b .dir/CheckFunctionExists.c.o -o cmTC_8724b -lpthreads
5151/usr/bin/ld: cannot find -lpthreads
5252collect2: error: ld returned 1 exit status
53- make[1]: *** [CMakeFiles/cmTC_53f75 .dir/build.make:87: cmTC_53f75 ] Error 1
53+ make[1]: *** [CMakeFiles/cmTC_8724b .dir/build.make:87: cmTC_8724b ] Error 1
5454make[1]: Leaving directory '/home/erfan/Repositories/lmr-simulator/build/catkin_tools_prebuild/CMakeFiles/CMakeTmp'
55- make: *** [Makefile:121: cmTC_53f75 /fast] Error 2
55+ make: *** [Makefile:121: cmTC_8724b /fast] Error 2
5656
5757
5858
0 commit comments