- Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
- Change Dir: /home/andre/SOURCES/gr-iridium/build/CMakeFiles/CMakeTmp
- Run Build Command(s):/usr/bin/gmake cmTC_3c653/fast && /usr/bin/gmake -f CMakeFiles/cmTC_3c653.dir/build.make CMakeFiles/cmTC_3c653.dir/build
- gmake[1]: Entering directory '/home/andre/SOURCES/gr-iridium/build/CMakeFiles/CMakeTmp'
- Building C object CMakeFiles/cmTC_3c653.dir/src.c.o
- /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -std=gnu11 -o CMakeFiles/cmTC_3c653.dir/src.c.o -c /home/andre/SOURCES/gr-iridium/build/CMakeFiles/CMakeTmp/src.c
- Linking C executable cmTC_3c653
- /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3c653.dir/link.txt --verbose=1
- /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_3c653.dir/src.c.o -o cmTC_3c653
- /usr/bin/ld: CMakeFiles/cmTC_3c653.dir/src.c.o: in function `main':
- src.c:(.text+0x2b): undefined reference to `pthread_create'
- /usr/bin/ld: src.c:(.text+0x34): undefined reference to `pthread_detach'
- /usr/bin/ld: src.c:(.text+0x3d): undefined reference to `pthread_cancel'
- /usr/bin/ld: src.c:(.text+0x4b): undefined reference to `pthread_join'
- collect2: error: ld returned 1 exit status
- gmake[1]: *** [CMakeFiles/cmTC_3c653.dir/build.make:107: cmTC_3c653] Error 1
- gmake[1]: Leaving directory '/home/andre/SOURCES/gr-iridium/build/CMakeFiles/CMakeTmp'
- gmake: *** [Makefile:141: cmTC_3c653/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_cancel(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/andre/SOURCES/gr-iridium/build/CMakeFiles/CMakeTmp
- Run Build Command(s):/usr/bin/gmake cmTC_4955b/fast && /usr/bin/gmake -f CMakeFiles/cmTC_4955b.dir/build.make CMakeFiles/cmTC_4955b.dir/build
- gmake[1]: Entering directory '/home/andre/SOURCES/gr-iridium/build/CMakeFiles/CMakeTmp'
- Building C object CMakeFiles/cmTC_4955b.dir/CheckFunctionExists.c.o
- /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -std=gnu11 -o CMakeFiles/cmTC_4955b.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.17/Modules/CheckFunctionExists.c
- Linking C executable cmTC_4955b
- /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4955b.dir/link.txt --verbose=1
- /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_4955b.dir/CheckFunctionExists.c.o -o cmTC_4955b -lpthreads
- /usr/bin/ld: cannot find -lpthreads
- collect2: error: ld returned 1 exit status
- gmake[1]: *** [CMakeFiles/cmTC_4955b.dir/build.make:107: cmTC_4955b] Error 1
- gmake[1]: Leaving directory '/home/andre/SOURCES/gr-iridium/build/CMakeFiles/CMakeTmp'
- gmake: *** [Makefile:141: cmTC_4955b/fast] Error 2
Undefined
By: Guest | Date: Aug 20 2020 20:21 | Format: None | Expires: never | Size: 2.92 KB | Hits: 752
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago