Cross-compiling is most probably not working for ROOT at this moment. If people want to contribute we are more than happy to help.
In your particular case, I do not understand how you reach the point of failure since the builtin_llvm option is by default ON and will not try to locate LLVM anywhere. What version of ROOT are you using?
I overrode the build option to turn it off in my local configuration to try and link to an existing LLVM… Unfortunately, if I use 6.04.12 – and disable built-in LLVM, I get the above error. If I enable the built-in LLVM, I have complaints that the built-in LLVM doesn’t support stdc++11 flag… so then I tried 6.08.04 which gave me the following error about libatomic https://gist.github.com/kratsg/027c92d0b020a594c9669a04f1457ed0 .
overrode the build option to turn it off in my local configuration to try and link to an existing LLVM…
ROOT/Cling requires to use the libraries coming from the builtin version of LLVM (but can be compiled with any version that supports C++11).
When you see | CMake Error at interpreter/llvm/src/cmake/modules/CheckAtomic.cmake:52 (message): | Host compiler appears to require libatomic, but cannot find it. | Call Stack (most recent call first): | interpreter/llvm/src/cmake/config-ix.cmake:317 (include) | interpreter/llvm/src/CMakeLists.txt:458 (include) |
What is the host compiler?