[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
armv7a-linux-gnueabihf -mcpu=cortex-a9
-I/usr/arm-linux-gnueabihf/include/ -mfloat-abi=hard -ccc-gcc-name

*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?

-------------- 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