llvm37 build failure, libatomic?

Gary Aitken freebsd at dreamchaser.org
Thu Apr 7 14:56:42 UTC 2016


Hi all,

Updated ports (it's been quite a while) and attempting to rebuild x11
fails for llvm37 claiming the compiler needs libatomic and it's not there.
What's the deal with libatomic?

Attempting to build just llvm37:

===>>> Starting build for devel/llvm37 <<<===

===>>> All dependencies are up to date

===>  Cleaning for llvm37-3.7.1_1
===>  Found saved configuration for llvm37-3.7.1_1
===>   llvm37-3.7.1_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by llvm37-3.7.1_1 for building
===>  Extracting for llvm37-3.7.1_1
=> SHA256 Checksum OK for llvm-3.7.1.src.tar.xz.
=> SHA256 Checksum OK for cfe-3.7.1.src.tar.xz.
=> SHA256 Checksum OK for compiler-rt-3.7.1.src.tar.xz.
=> SHA256 Checksum OK for clang-tools-extra-3.7.1.src.tar.xz.
=> SHA256 Checksum OK for lld-3.7.1.src.tar.xz.
=> SHA256 Checksum OK for lldb-3.7.1.src.tar.xz.
=> SHA256 Checksum OK for openmp-3.7.1.src.tar.xz.
/bin/mv /usr/ports/devel/llvm37/work/cfe-3.7.1.src /usr/ports/devel/llvm37/work/llvm-3.7.1.src/tools/clang
/bin/mkdir -p /usr/ports/devel/llvm37/work/llvm-3.7.1.src/tools/clang/tools/scan-view/share
cd /usr/ports/devel/llvm37/work/llvm-3.7.1.src/tools/clang/tools/scan-view &&  /bin/mv Resources/bugcatcher.ico Resources/FileRadar.scpt  Resources/GetRadarVersion.scpt share
...
===>  Configuring for llvm37-3.7.1_1
===>  Performing out-of-source build
/bin/mkdir -p /usr/ports/devel/llvm37/work/.build
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- works
...
-- Looking for dlopen
-- Looking for dlopen - not found
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Performing Test HAVE_INT64_T
-- Performing Test HAVE_INT64_T - Failed
-- Performing Test HAVE_UINT64_T
-- Performing Test HAVE_UINT64_T - Failed
-- Performing Test HAVE_U_INT64_T
-- Performing Test HAVE_U_INT64_T - Failed
-- 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 - not found
CMake Error at cmake/modules/CheckAtomic.cmake:36 (message):
  Host compiler appears to require libatomic, but cannot find it.
Call Stack (most recent call first):
  cmake/config-ix.cmake:291 (include)
  CMakeLists.txt:360 (include)


-- Configuring incomplete, errors occurred!
See also "/usr/ports/devel/llvm37/work/.build/CMakeFiles/CMakeOutput.log".
See also "/usr/ports/devel/llvm37/work/.build/CMakeFiles/CMakeError.log".


More information about the freebsd-questions mailing list