Libatomic error when building root

Hi dear all,

I try to install root 6.10 on a redhat farm,

$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

but I came across an error when I try to cmake,

CMake Error at interpreter/llvm/src/cmake/modules/CheckAtomic.cmake:52 (message):
  Host compiler appears to require libatomic, but cannot find it.

I found a topic https://root-forum.cern.ch/t/building-root-from-source-libatomic-error/23673, mato suggested to download gcc and build it. I built gcc 6.2.0 from source code, and I can find libatomic.so in the path, but still get this error.

I solve the problem. I have to specify CMAKE_C_COMPILER and CMAKE_CXX_COMPILER manually.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.