Andreas Tille <andr...@an3as.eu> writes: > /usr/bin/ld: cannot find -lpthreads
Thanks for posting a link to the full log! AFAICT, the actual errors appear much earlier, on lines 1573-1593: CMake Error: File /builds/science-team/arrayfire/debian/output/source_dir/extern/forge/CMakeModules/version.h.in does not exist. CMake Error at CMakeModules/AFconfigure_forge_submodule.cmake:47 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): CMakeLists.txt:117 (include) CMake Error at CMakeLists.txt:163 (add_subdirectory): add_subdirectory given source "extern/spdlog" which is not an existing directory. CMake Error at CMakeLists.txt:164 (add_subdirectory): add_subdirectory given source "extern/glad" which is not an existing directory. -- Performing Test has_ignored_attributes_flag -- Performing Test has_ignored_attributes_flag - Success -- Performing Test has_all_warnings_flag -- Performing Test has_all_warnings_flag - Success CMake Error at /usr/share/cmake-3.18/Modules/ExternalProject.cmake:2350 (message): error: could not find git for clone of clFFT-ext Call Stack (most recent call first): /usr/share/cmake-3.18/Modules/ExternalProject.cmake:3206 (_ep_add_download_command) CMakeModules/build_clFFT.cmake:33 (ExternalProject_Add) src/backend/opencl/CMakeLists.txt:15 (include) The subsequent output consists of dumps of CMake's internal logs, which sometimes provide additional clues but need to be taken in context; for instance, the -lpthreads error comes from -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE (ll. 1472-1480). -- Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org) http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu