You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you look at the CMake configuration log, you will see that the error actually doesn't have anything to do with thread support, but rather with the C compiler (in my case gcc) being provided arguments that only work with clang:
kou
changed the title
CMake Configuration Broken When Setting CMAKE_CXX_COMPILER=clang++
[C++] CMake Configuration Broken When Setting CMAKE_CXX_COMPILER=clang++
Jan 21, 2025
WillAyd
added a commit
to WillAyd/arrow
that referenced
this issue
Jan 22, 2025
Describe the bug, including details regarding any error messages, version, and platform.
If you add
-DCMAKE_CXX_COMPILER=clang++
you get a rather confusing error message about the threads library not being found:$ cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G Ninja -DARROW_COMPUTE=ON -DARROW_BUILD_TESTS=ON -DCMAKE_CXX_COMPILER=clang++ CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Threads (missing: Threads_FOUND) Call Stack (most recent call first): /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.28/Modules/FindThreads.cmake:226 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) cmake_modules/ThirdpartyToolchain.cmake:1050 (find_package) CMakeLists.txt:546 (include)
If you look at the CMake configuration log, you will see that the error actually doesn't have anything to do with thread support, but rather with the C compiler (in my case gcc) being provided arguments that only work with clang:
Component(s)
C++
The text was updated successfully, but these errors were encountered: