59 lines
3.2 KiB
Plaintext
59 lines
3.2 KiB
Plaintext
Performing C++ SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
|
|
Change Dir: /home/duongtd/T800_ws/src/AMR_T800/Test/mission_adapters/build-standalone-codex-5j6ZZh/CMakeFiles/CMakeTmp
|
|
|
|
Run Build Command(s):/usr/bin/make cmTC_a28ea/fast && /usr/bin/make -f CMakeFiles/cmTC_a28ea.dir/build.make CMakeFiles/cmTC_a28ea.dir/build
|
|
make[1]: Entering directory '/home/duongtd/T800_ws/src/AMR_T800/Test/mission_adapters/build-standalone-codex-5j6ZZh/CMakeFiles/CMakeTmp'
|
|
Building CXX object CMakeFiles/cmTC_a28ea.dir/src.cxx.o
|
|
/usr/bin/c++ -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_a28ea.dir/src.cxx.o -c /home/duongtd/T800_ws/src/AMR_T800/Test/mission_adapters/build-standalone-codex-5j6ZZh/CMakeFiles/CMakeTmp/src.cxx
|
|
Linking CXX executable cmTC_a28ea
|
|
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a28ea.dir/link.txt --verbose=1
|
|
/usr/bin/c++ -DCMAKE_HAVE_LIBC_PTHREAD -rdynamic CMakeFiles/cmTC_a28ea.dir/src.cxx.o -o cmTC_a28ea
|
|
/usr/bin/ld: CMakeFiles/cmTC_a28ea.dir/src.cxx.o: in function `main':
|
|
src.cxx:(.text+0x46): undefined reference to `pthread_create'
|
|
/usr/bin/ld: src.cxx:(.text+0x52): undefined reference to `pthread_detach'
|
|
/usr/bin/ld: src.cxx:(.text+0x63): undefined reference to `pthread_join'
|
|
collect2: error: ld returned 1 exit status
|
|
make[1]: *** [CMakeFiles/cmTC_a28ea.dir/build.make:87: cmTC_a28ea] Error 1
|
|
make[1]: Leaving directory '/home/duongtd/T800_ws/src/AMR_T800/Test/mission_adapters/build-standalone-codex-5j6ZZh/CMakeFiles/CMakeTmp'
|
|
make: *** [Makefile:121: cmTC_a28ea/fast] Error 2
|
|
|
|
|
|
Source file was:
|
|
#include <pthread.h>
|
|
|
|
void* test_func(void* data)
|
|
{
|
|
return data;
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
pthread_t thread;
|
|
pthread_create(&thread, NULL, test_func, NULL);
|
|
pthread_detach(thread);
|
|
pthread_join(thread, NULL);
|
|
pthread_atfork(NULL, NULL, NULL);
|
|
pthread_exit(NULL);
|
|
|
|
return 0;
|
|
}
|
|
|
|
Determining if the function pthread_create exists in the pthreads failed with the following output:
|
|
Change Dir: /home/duongtd/T800_ws/src/AMR_T800/Test/mission_adapters/build-standalone-codex-5j6ZZh/CMakeFiles/CMakeTmp
|
|
|
|
Run Build Command(s):/usr/bin/make cmTC_95808/fast && /usr/bin/make -f CMakeFiles/cmTC_95808.dir/build.make CMakeFiles/cmTC_95808.dir/build
|
|
make[1]: Entering directory '/home/duongtd/T800_ws/src/AMR_T800/Test/mission_adapters/build-standalone-codex-5j6ZZh/CMakeFiles/CMakeTmp'
|
|
Building CXX object CMakeFiles/cmTC_95808.dir/CheckFunctionExists.cxx.o
|
|
/usr/bin/c++ -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_95808.dir/CheckFunctionExists.cxx.o -c /home/duongtd/T800_ws/src/AMR_T800/Test/mission_adapters/build-standalone-codex-5j6ZZh/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx
|
|
Linking CXX executable cmTC_95808
|
|
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_95808.dir/link.txt --verbose=1
|
|
/usr/bin/c++ -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_95808.dir/CheckFunctionExists.cxx.o -o cmTC_95808 -lpthreads
|
|
/usr/bin/ld: cannot find -lpthreads
|
|
collect2: error: ld returned 1 exit status
|
|
make[1]: *** [CMakeFiles/cmTC_95808.dir/build.make:87: cmTC_95808] Error 1
|
|
make[1]: Leaving directory '/home/duongtd/T800_ws/src/AMR_T800/Test/mission_adapters/build-standalone-codex-5j6ZZh/CMakeFiles/CMakeTmp'
|
|
make: *** [Makefile:121: cmTC_95808/fast] Error 2
|
|
|
|
|
|
|