[llvm-dev] facing issue for building llvm-clang cross tool chain for arm target

Balasaheb Dabhade via llvm-dev llvm-dev at lists.llvm.org
Sun May 8 07:13:37 PDT 2016

Hi All,

I am building llvm-clang cross tool chain for arm target and getting below
error message when I tried to execute below command :

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

*-- 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: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 this build issue because of external library not installed or LLVM
itself has issue with arm support?*

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160508/b910299d/attachment.html>

More information about the llvm-dev mailing list