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, mato suggested to download gcc and build it. I built gcc 6.2.0 from source code, and I can find 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.