1738_29102025

This commit is contained in:
2025-10-29 17:38:43 +07:00
parent 7c1dcfd352
commit cdb9ded893
51 changed files with 2055 additions and 1216 deletions

View File

@@ -1,21 +1,21 @@
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/duongtd/robotics_core/costmap_2d/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_c018a/fast && /usr/bin/make -f CMakeFiles/cmTC_c018a.dir/build.make CMakeFiles/cmTC_c018a.dir/build
Run Build Command(s):/usr/bin/make cmTC_6fa4e/fast && /usr/bin/make -f CMakeFiles/cmTC_6fa4e.dir/build.make CMakeFiles/cmTC_6fa4e.dir/build
make[1]: Entering directory '/home/duongtd/robotics_core/costmap_2d/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c018a.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -fPIE -o CMakeFiles/cmTC_c018a.dir/src.c.o -c /home/duongtd/robotics_core/costmap_2d/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_c018a
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c018a.dir/link.txt --verbose=1
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_c018a.dir/src.c.o -o cmTC_c018a
/usr/bin/ld: CMakeFiles/cmTC_c018a.dir/src.c.o: in function `main':
Building C object CMakeFiles/cmTC_6fa4e.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -fPIE -o CMakeFiles/cmTC_6fa4e.dir/src.c.o -c /home/duongtd/robotics_core/costmap_2d/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_6fa4e
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6fa4e.dir/link.txt --verbose=1
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_6fa4e.dir/src.c.o -o cmTC_6fa4e
/usr/bin/ld: CMakeFiles/cmTC_6fa4e.dir/src.c.o: in function `main':
src.c:(.text+0x46): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x63): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_c018a.dir/build.make:87: cmTC_c018a] Error 1
make[1]: *** [CMakeFiles/cmTC_6fa4e.dir/build.make:87: cmTC_6fa4e] Error 1
make[1]: Leaving directory '/home/duongtd/robotics_core/costmap_2d/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_c018a/fast] Error 2
make: *** [Makefile:121: cmTC_6fa4e/fast] Error 2
Source file was:
@@ -41,18 +41,18 @@ int main(void)
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/duongtd/robotics_core/costmap_2d/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_08e7c/fast && /usr/bin/make -f CMakeFiles/cmTC_08e7c.dir/build.make CMakeFiles/cmTC_08e7c.dir/build
Run Build Command(s):/usr/bin/make cmTC_74663/fast && /usr/bin/make -f CMakeFiles/cmTC_74663.dir/build.make CMakeFiles/cmTC_74663.dir/build
make[1]: Entering directory '/home/duongtd/robotics_core/costmap_2d/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_08e7c.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -fPIE -o CMakeFiles/cmTC_08e7c.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
Linking C executable cmTC_08e7c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_08e7c.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_08e7c.dir/CheckFunctionExists.c.o -o cmTC_08e7c -lpthreads
Building C object CMakeFiles/cmTC_74663.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -fPIE -o CMakeFiles/cmTC_74663.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
Linking C executable cmTC_74663
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_74663.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_74663.dir/CheckFunctionExists.c.o -o cmTC_74663 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_08e7c.dir/build.make:87: cmTC_08e7c] Error 1
make[1]: *** [CMakeFiles/cmTC_74663.dir/build.make:87: cmTC_74663] Error 1
make[1]: Leaving directory '/home/duongtd/robotics_core/costmap_2d/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_08e7c/fast] Error 2
make: *** [Makefile:121: cmTC_74663/fast] Error 2