Performing C++ SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/rh/devtoolset-9/root/usr/bin/gmake cmTC_b86bc/fast && /opt/rh/devtoolset-9/root/usr/bin/gmake -f CMakeFiles/cmTC_b86bc.dir/build.make CMakeFiles/cmTC_b86bc.dir/build gmake[1]: Entering directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_b86bc.dir/src.cxx.o /opt/dtk-23.10/cuda/bin/nvcc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_b86bc.dir/src.cxx.o -c /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp/src.cxx Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch. Linking CXX executable cmTC_b86bc /opt/cmake/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b86bc.dir/link.txt --verbose=1 /opt/dtk-23.10/cuda/bin/nvcc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_b86bc.dir/src.cxx.o -o cmTC_b86bc Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch. /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld: CMakeFiles/cmTC_b86bc.dir/src.cxx.o: in function `main': src.cxx:(.text+0x3f): undefined reference to `pthread_atfork' clang-15: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [CMakeFiles/cmTC_b86bc.dir/build.make:87: cmTC_b86bc] Error 1 gmake[1]: Leaving directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:121: cmTC_b86bc/fast] Error 2 Source file was: #include 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: /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/rh/devtoolset-9/root/usr/bin/gmake cmTC_ba764/fast && /opt/rh/devtoolset-9/root/usr/bin/gmake -f CMakeFiles/cmTC_ba764.dir/build.make CMakeFiles/cmTC_ba764.dir/build gmake[1]: Entering directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_ba764.dir/CheckFunctionExists.cxx.o /opt/dtk-23.10/cuda/bin/nvcc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_ba764.dir/CheckFunctionExists.cxx.o -c /data/norm/lmdeploy/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch. /data/norm/lmdeploy/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:7:3: error: functions that differ only in their return type cannot be overloaded CHECK_FUNCTION_EXISTS(void); ^ :1:31: note: expanded from here #define CHECK_FUNCTION_EXISTS pthread_create ^ /usr/include/pthread.h:235:12: note: previous declaration is here extern int pthread_create (pthread_t *__restrict __newthread, ~~~ ^ /data/norm/lmdeploy/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:17:3: error: no matching function for call to 'pthread_create' CHECK_FUNCTION_EXISTS(); ^~~~~~~~~~~~~~~~~~~~~ :1:31: note: expanded from here #define CHECK_FUNCTION_EXISTS pthread_create ^~~~~~~~~~~~~~ /usr/include/pthread.h:235:12: note: candidate function not viable: requires 4 arguments, but 0 were provided extern int pthread_create (pthread_t *__restrict __newthread, ^ 2 errors generated when compiling for gfx906. gmake[1]: *** [CMakeFiles/cmTC_ba764.dir/build.make:66: CMakeFiles/cmTC_ba764.dir/CheckFunctionExists.cxx.o] Error 1 gmake[1]: Leaving directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:121: cmTC_ba764/fast] Error 2 Determining if the function pthread_create exists in the pthread failed with the following output: Change Dir: /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/rh/devtoolset-9/root/usr/bin/gmake cmTC_f2c01/fast && /opt/rh/devtoolset-9/root/usr/bin/gmake -f CMakeFiles/cmTC_f2c01.dir/build.make CMakeFiles/cmTC_f2c01.dir/build gmake[1]: Entering directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_f2c01.dir/CheckFunctionExists.cxx.o /opt/dtk-23.10/cuda/bin/nvcc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_f2c01.dir/CheckFunctionExists.cxx.o -c /data/norm/lmdeploy/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch. /data/norm/lmdeploy/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:7:3: error: functions that differ only in their return type cannot be overloaded CHECK_FUNCTION_EXISTS(void); ^ :1:31: note: expanded from here #define CHECK_FUNCTION_EXISTS pthread_create ^ /usr/include/pthread.h:235:12: note: previous declaration is here extern int pthread_create (pthread_t *__restrict __newthread, ~~~ ^ /data/norm/lmdeploy/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:17:3: error: no matching function for call to 'pthread_create' CHECK_FUNCTION_EXISTS(); ^~~~~~~~~~~~~~~~~~~~~ :1:31: note: expanded from here #define CHECK_FUNCTION_EXISTS pthread_create ^~~~~~~~~~~~~~ /usr/include/pthread.h:235:12: note: candidate function not viable: requires 4 arguments, but 0 were provided extern int pthread_create (pthread_t *__restrict __newthread, ^ 2 errors generated when compiling for gfx906. gmake[1]: *** [CMakeFiles/cmTC_f2c01.dir/build.make:66: CMakeFiles/cmTC_f2c01.dir/CheckFunctionExists.cxx.o] Error 1 gmake[1]: Leaving directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:121: cmTC_f2c01/fast] Error 2 Performing C++ SOURCE FILE Test HAS_FLTO failed with the following output: Change Dir: /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/rh/devtoolset-9/root/usr/bin/gmake cmTC_3fbee/fast && /opt/rh/devtoolset-9/root/usr/bin/gmake -f CMakeFiles/cmTC_3fbee.dir/build.make CMakeFiles/cmTC_3fbee.dir/build gmake[1]: Entering directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_3fbee.dir/src.cxx.o /opt/dtk-23.10/cuda/bin/nvcc -DWMMA -DHAS_FLTO -flto -std=gnu++17 -o CMakeFiles/cmTC_3fbee.dir/src.cxx.o -c /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp/src.cxx Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch. Linking CXX executable cmTC_3fbee /opt/cmake/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3fbee.dir/link.txt --verbose=1 /opt/dtk-23.10/cuda/bin/nvcc -DWMMA -DHAS_FLTO -fuse-ld=gold CMakeFiles/cmTC_3fbee.dir/src.cxx.o -o cmTC_3fbee -flto Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch. /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: /opt/dtk-23.10/llvm/bin/../lib/LLVMgold.so: could not load plugin library: /opt/dtk-23.10/llvm/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: CMakeFiles/cmTC_3fbee.dir/src.cxx.o:1:3: invalid character /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: CMakeFiles/cmTC_3fbee.dir/src.cxx.o:1:3: syntax error, unexpected $end /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: CMakeFiles/cmTC_3fbee.dir/src.cxx.o: not an object or archive /lib/../lib64/Scrt1.o(.text+0x20): error: undefined reference to 'main' clang-15: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [CMakeFiles/cmTC_3fbee.dir/build.make:87: cmTC_3fbee] Error 1 gmake[1]: Leaving directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:121: cmTC_3fbee/fast] Error 2 Source file was: int main() { return 0; } Performing C++ SOURCE FILE Test HAS_FLTO_THIN failed with the following output: Change Dir: /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/rh/devtoolset-9/root/usr/bin/gmake cmTC_8944b/fast && /opt/rh/devtoolset-9/root/usr/bin/gmake -f CMakeFiles/cmTC_8944b.dir/build.make CMakeFiles/cmTC_8944b.dir/build gmake[1]: Entering directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_8944b.dir/src.cxx.o /opt/dtk-23.10/cuda/bin/nvcc -DWMMA -DHAS_FLTO_THIN -flto=thin -std=gnu++17 -o CMakeFiles/cmTC_8944b.dir/src.cxx.o -c /data/norm/lmdeploy/build/CMakeFiles/CMakeTmp/src.cxx Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch. Linking CXX executable cmTC_8944b /opt/cmake/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8944b.dir/link.txt --verbose=1 /opt/dtk-23.10/cuda/bin/nvcc -DWMMA -DHAS_FLTO_THIN -fuse-ld=gold CMakeFiles/cmTC_8944b.dir/src.cxx.o -o cmTC_8944b -flto=thin Warning: nvcc current only support gfx906 and gfx926 arch. All architecture parameters will be replaced by gfx906 and gfx926 arch. /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: /opt/dtk-23.10/llvm/bin/../lib/LLVMgold.so: could not load plugin library: /opt/dtk-23.10/llvm/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: CMakeFiles/cmTC_8944b.dir/src.cxx.o:1:3: invalid character /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: CMakeFiles/cmTC_8944b.dir/src.cxx.o:1:3: syntax error, unexpected $end /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../bin/ld.gold: error: CMakeFiles/cmTC_8944b.dir/src.cxx.o: not an object or archive /lib/../lib64/Scrt1.o(.text+0x20): error: undefined reference to 'main' clang-15: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [CMakeFiles/cmTC_8944b.dir/build.make:87: cmTC_8944b] Error 1 gmake[1]: Leaving directory '/data/norm/lmdeploy/build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:121: cmTC_8944b/fast] Error 2 Source file was: int main() { return 0; }