Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

cmake .. throws that it can't find libatomic. #175

Closed
wonderbee77 opened this issue Jun 23, 2021 · 2 comments
Closed

cmake .. throws that it can't find libatomic. #175

wonderbee77 opened this issue Jun 23, 2021 · 2 comments

Comments

@wonderbee77
Copy link

CMake Warning at libcxx/cmake/Modules/CheckLibcxxAtomic.cmake:54 (message):
Host compiler appears to require libatomic, but cannot find it.
Call Stack (most recent call first):
libcxx/cmake/config-ix.cmake:76 (include)
libcxx/CMakeLists.txt:488 (include)

-- Linker detection: unknown
-- there is no pre-generated ABI list for the requested libc++ configuration. check-cxx-abilist target is not supported
-- Configuring done
-- Generating done
-- Build files have been written to: /root/libcudacxx/build

Is the above thing means it had build correctly? In Linux environment.

@wmaxey
Copy link
Member

wmaxey commented Jun 24, 2021

That's fine, this would be an expected failure. :)

We don't (yet) have any source file components so the build files created are primarily just configuration files for lit to use when testing.

@jrhemstad
Copy link
Collaborator

Based on https://stackoverflow.com/a/64112384, this check appears to be buggy anyways.

We can work around it by manually specifying:

set(HAVE_CXX_ATOMICS64_WITHOUT_LIB True)
set(HAVE_CXX_ATOMICS_WITHOUT_LIB True)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants