Detecting CXX OpenMP version failed with the following output: Change Dir: /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake cmTC_4be7e/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake -f CMakeFiles/cmTC_4be7e.dir/build.make CMakeFiles/cmTC_4be7e.dir/build gmake[1]: Entering directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_4be7e.dir/OpenMPCheckVersion.cpp.o /opt/dtk-21.04/bin/hipcc -fopenmp=libomp -std=gnu++11 -o CMakeFiles/cmTC_4be7e.dir/OpenMPCheckVersion.cpp.o -c /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:6:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/100000)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:7:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/10000)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:8:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/1000)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:9:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/100)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:10:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/10)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:11:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/1)%10)), ^ 6 errors generated when compiling for gfx900. gmake[1]: *** [CMakeFiles/cmTC_4be7e.dir/build.make:86: CMakeFiles/cmTC_4be7e.dir/OpenMPCheckVersion.cpp.o] Error 1 gmake[1]: Leaving directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:141: cmTC_4be7e/fast] Error 2 Performing C++ SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake cmTC_e2e66/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake -f CMakeFiles/cmTC_e2e66.dir/build.make CMakeFiles/cmTC_e2e66.dir/build gmake[1]: Entering directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_e2e66.dir/src.cxx.o /opt/dtk-21.04/bin/hipcc -DCMAKE_HAVE_LIBC_PTHREAD -std=gnu++11 -o CMakeFiles/cmTC_e2e66.dir/src.cxx.o -c /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp/src.cxx Linking CXX executable cmTC_e2e66 /usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_e2e66.dir/link.txt --verbose=1 /opt/dtk-21.04/bin/hipcc -DCMAKE_HAVE_LIBC_PTHREAD -Wl,-rpath=/opt/rh/devtoolset-7/root/usr/lib64 -Wl,-rpath=/opt/rh/devtoolset-7/root/usr/lib CMakeFiles/cmTC_e2e66.dir/src.cxx.o -o cmTC_e2e66 CMakeFiles/cmTC_e2e66.dir/src.cxx.o: In function `main': src.cxx:(.text+0x46): undefined reference to `pthread_atfork' clang-12: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [CMakeFiles/cmTC_e2e66.dir/build.make:107: cmTC_e2e66] Error 1 gmake[1]: Leaving directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:141: cmTC_e2e66/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_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/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake cmTC_6b912/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake -f CMakeFiles/cmTC_6b912.dir/build.make CMakeFiles/cmTC_6b912.dir/build gmake[1]: Entering directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_6b912.dir/CheckFunctionExists.cxx.o /opt/dtk-21.04/bin/hipcc -DCHECK_FUNCTION_EXISTS=pthread_create -std=gnu++11 -o CMakeFiles/cmTC_6b912.dir/CheckFunctionExists.cxx.o -c /home/huchen/FAISS/faiss/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx /home/huchen/FAISS/faiss/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:7:3: error: functions that differ only in their return type cannot be overloaded CHECK_FUNCTION_EXISTS(void); ^ :3: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, ~~~ ^ /home/huchen/FAISS/faiss/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:17:3: error: no matching function for call to 'pthread_create' CHECK_FUNCTION_EXISTS(); ^~~~~~~~~~~~~~~~~~~~~ :3: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 gfx900. gmake[1]: *** [CMakeFiles/cmTC_6b912.dir/build.make:86: CMakeFiles/cmTC_6b912.dir/CheckFunctionExists.cxx.o] Error 1 gmake[1]: Leaving directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:141: cmTC_6b912/fast] Error 2 Determining if the function pthread_create exists in the pthread failed with the following output: Change Dir: /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake cmTC_d2507/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake -f CMakeFiles/cmTC_d2507.dir/build.make CMakeFiles/cmTC_d2507.dir/build gmake[1]: Entering directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_d2507.dir/CheckFunctionExists.cxx.o /opt/dtk-21.04/bin/hipcc -DCHECK_FUNCTION_EXISTS=pthread_create -std=gnu++11 -o CMakeFiles/cmTC_d2507.dir/CheckFunctionExists.cxx.o -c /home/huchen/FAISS/faiss/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx /home/huchen/FAISS/faiss/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:7:3: error: functions that differ only in their return type cannot be overloaded CHECK_FUNCTION_EXISTS(void); ^ :3: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, ~~~ ^ /home/huchen/FAISS/faiss/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:17:3: error: no matching function for call to 'pthread_create' CHECK_FUNCTION_EXISTS(); ^~~~~~~~~~~~~~~~~~~~~ :3: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 gfx900. gmake[1]: *** [CMakeFiles/cmTC_d2507.dir/build.make:86: CMakeFiles/cmTC_d2507.dir/CheckFunctionExists.cxx.o] Error 1 gmake[1]: Leaving directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:141: cmTC_d2507/fast] Error 2 Detecting CXX OpenMP version failed with the following output: Change Dir: /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake cmTC_45fd1/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake -f CMakeFiles/cmTC_45fd1.dir/build.make CMakeFiles/cmTC_45fd1.dir/build gmake[1]: Entering directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_45fd1.dir/OpenMPCheckVersion.cpp.o /opt/dtk-21.04/bin/hipcc -fopenmp=libomp -std=gnu++11 -o CMakeFiles/cmTC_45fd1.dir/OpenMPCheckVersion.cpp.o -c /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:6:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/100000)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:7:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/10000)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:8:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/1000)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:9:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/100)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:10:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/10)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:11:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/1)%10)), ^ 6 errors generated when compiling for gfx900. gmake[1]: *** [CMakeFiles/cmTC_45fd1.dir/build.make:86: CMakeFiles/cmTC_45fd1.dir/OpenMPCheckVersion.cpp.o] Error 1 gmake[1]: Leaving directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:141: cmTC_45fd1/fast] Error 2 Detecting CXX OpenMP version failed with the following output: Change Dir: /home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake cmTC_bc418/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake -f CMakeFiles/cmTC_bc418.dir/build.make CMakeFiles/cmTC_bc418.dir/build gmake[1]: Entering directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_bc418.dir/OpenMPCheckVersion.cpp.o /opt/dtk-21.04/bin/hipcc -fopenmp=libomp -std=gnu++11 -o CMakeFiles/cmTC_bc418.dir/OpenMPCheckVersion.cpp.o -c /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:6:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/100000)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:7:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/10000)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:8:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/1000)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:9:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/100)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:10:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/10)%10)), ^ /home/huchen/FAISS/faiss/build/CMakeFiles/FindOpenMP/OpenMPCheckVersion.cpp:11:38: error: use of undeclared identifier '_OPENMP' ('0' + ((_OPENMP/1)%10)), ^ 6 errors generated when compiling for gfx900. gmake[1]: *** [CMakeFiles/cmTC_bc418.dir/build.make:86: CMakeFiles/cmTC_bc418.dir/OpenMPCheckVersion.cpp.o] Error 1 gmake[1]: Leaving directory '/home/huchen/FAISS/faiss/build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:141: cmTC_bc418/fast] Error 2