[llvm-dev] build issue in llvm-clang cross tool chain for arm target

Balasaheb Dabhade via llvm-dev llvm-dev at lists.llvm.org
Fri May 6 10:28:03 PDT 2016


Hello All,

I am building llvm-clang cross tool chain for arm target, after successful
build for Linux host now I am now building toolchain for *arm target*.
However, I am getting below error message which seems to be confusing and
not getting any idea how to resolve this issue.

*Command :*
#CC='clang' CXX='clang++' cmake -G Ninja /home/iiita/crossbuild/llvm
-DLLVM_ENABLE_LIBCXX=ON -DCMAKE_CROSSCOMPILING=True
-DCMAKE_INSTALL_PREFIX=/home/iiita/crossbuild/build
-DLLVM_TABLEGEN=/home/iiita/llvm-3.8/build/bin/llvm-tblgen
-DCLANG_TABLEGEN=/home/iiita/llvm-3.8/build/bin/clang-tblgen
-DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf -DLLVM_TARGET_ARCH=ARM
-DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CXX_FLAGS='-target
armv7a-linux-gnueabihf -mcpu=cortex-a9
-I/usr/arm-linux-gnueabihf/include/c++/4.7.3/arm-linux-gnueabihf/
-I/usr/arm-linux-gnueabihf/include/ -mfloat-abi=hard -ccc-gcc-name
arm-linux-gnueabihf-gcc'

*Error message:*
CMake Error at cmake/modules/CheckAtomic.cmake:33 (message):
  Host compiler must support std::atomic!
Call Stack (most recent call first):
  cmake/config-ix.cmake:296 (include)
  CMakeLists.txt:407 (include)


-- Configuring incomplete, errors occurred!
See also "/home/iiita/crossbuild/build/CMakeFiles/CMakeOutput.log".
See also "/home/iiita/crossbuild/build/CMakeFiles/CMakeError.log".


Does anyone know how to resolve this issue or any other way to build tool
chain for arm from source code?

Thanks,
Bala
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160506/1f1e25f2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeError.log
Type: text/x-log
Size: 12942 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160506/1f1e25f2/attachment.bin>


More information about the llvm-dev mailing list