8000 `CheckAtomic.cmake` Fails on Windows with LLVM Clang · Issue #158 · qcoro/qcoro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CheckAtomic.cmake Fails on Windows with LLVM Clang #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DeveloperPaul123 opened this issue Mar 14, 2023 · 0 comments · Fixed by #159
Closed

CheckAtomic.cmake Fails on Windows with LLVM Clang #158

DeveloperPaul123 opened this issue Mar 14, 2023 · 0 comments · Fixed by #159

Comments

@DeveloperPaul123
Copy link
Contributor

I was trying to get qcoro to build with Ninja and LLVM Clang on Windows but it seems that the std::atomic check in CheckAtomic always fails.

Short log

1> [CMake] -- The CXX compiler identification is Clang 15.0.7 with GNU-like command-line
1> [CMake] -- Detecting CXX compiler ABI info
1> [CMake] -- Detecting CXX compiler ABI info - done
1> [CMake] -- Check for working CXX compiler: C:/Program Files/LLVM/bin/clang++.exe - skipped
1> [CMake] -- Detecting CXX compile features
1> [CMake] -- Detecting CXX compile features - done
1> [CMake] -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
1> [CMake] -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
1> [CMake] -- Looking for pthread_create in pthreads
1> [CMake] -- Looking for pthread_create in pthreads - not found
1> [CMake] -- Looking for pthread_create in pthread
1> [CMake] -- Looking for pthread_create in pthread - not found
1> [CMake] -- Check if compiler accepts -pthread
1> [CMake] -- Check if compiler accepts -pthread - no
1> [CMake] -- Found Threads: TRUE  
1> [CMake] -- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
1> [CMake] -- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Failed
1> [CMake] -- Performing Test HAVE_CXX_ATOMICS_WITH_LIB
1> [CMake] -- Performing Test HAVE_CXX_ATOMICS_WITH_LIB - Failed
1> [CMake] CMake Error at cmake/CheckAtomic.cmake:37 (message):
1> [CMake]   Host compiler must support std::atomic!
1> [CMake] Call Stack (most recent call first):
1> [CMake]   CMakeLists.txt:44 (include)
1> [CMake] -- Configuring incomplete, errors occurred!

Cmake error/output logs:

CMakeError.log
CMakeOutput.log

@danvratil danvratil linked a pull request Mar 14, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0