`sys-devel/llvm` keeps failing to to build for me on the Gentoo instance I have running on/under Windows Subsystem for Linux v2 with an error saying that it can't find (most of) the host compiler's built-in or library support for C++ atomics:
Code: Select all
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Failed
-- Looking for __atomic_fetch_add_4 in atomic
-- Looking for __atomic_fetch_add_4 in atomic - found
-- Performing Test HAVE_CXX_ATOMICS_WITH_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITH_LIB - Failed
CMake Error at cmake/modules/CheckAtomic.cmake:56 (message):
Host compiler must support std::atomic!
Call Stack (most recent call first):
cmake/config-ix.cmake:374 (include)
CMakeLists.txt:684 (include)
-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/sys-devel/llvm-13.0.1/work/llvm-13.0.1_build-abi_x86_64.amd64/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/sys-devel/llvm-13.0.1/work/llvm-13.0.1_build-abi_x86_64.amd64/CMakeFiles/CMakeError.log".
ERROR: sys-devel/llvm-13.0.1::gentoo failed (configure phase):
cmake failed
Call stack:
ebuild.sh, line 127: Called src_configure
environment, line 3872: Called multilib-minimal_src_configure
environment, line 2701: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
environment, line 588: Called multilib-minimal_abi_src_configure
environment, line 2695: Called multilib_src_configure
environment, line 3207: Called cmake_src_configure
environment, line 1552: Called die
The specific snippet of code:
"${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
If you need support, post the output of `emerge --info '=sys-devel/llvm-13.0.1::gentoo'`,
the complete build log and the output of `emerge -pqv '=sys-devel/llvm-13.0.1::gentoo'`.
The complete build log is located at '/var/tmp/portage/sys-devel/llvm-13.0.1/temp/build.log'.
The ebuild environment file is located at '/var/tmp/portage/sys-devel/llvm-13.0.1/temp/environment'.
Working directory: '/var/tmp/portage/sys-devel/llvm-13.0.1/work/llvm-13.0.1_build-abi_x86_64.amd64'
S: '/var/tmp/portage/sys-devel/llvm-13.0.1/work/llvm'
(Note: I'm going to see if the test program CMake used for that test compiles locally outside of any build attempt and report back on that.)


