# Rootcling Errors on Rocky Linux

**URL:** <https://root-forum.cern.ch/t/rootcling-errors-on-rocky-linux/57245>\
**Category:** ROOT\
**Tags:** root, rootcling\
**Created:** [November 24, 2023, 12:22pm UTC](https://root-forum.cern.ch/t/rootcling-errors-on-rocky-linux/57245 "2023-11-24T12:22:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jonas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonas/32/24756_2.png) [@jonas](https://root-forum.cern.ch/u/jonas)\
**Post date:** [November 25, 2023, 3:57pm UTC](https://root-forum.cern.ch/t/rootcling-errors-on-rocky-linux/57245/2 "2023-11-25T15:57:57Z")

</div>

Hi @cjt00, welcome back to the ROOT forum!

Hmm, looks like something is wrong with the compiler setup of gcc and clang. The headers from the GCC STL are trying to include some headers from clang, for whatever reason.

> The only obvious change I can think of that might have caused this the move to a new OS, previously I was working with SL7 on which all of this works fine. I’ve checked with the same version of root, same compiler etc on the old SL7 system and the above command works just fine.
> 
> _ROOT Version:_ 6.18.04  
> _Platform:_ Rocky Linux 8.9  
> _Compiler:_ GCC 8.2.0

With “same version of ROOT”, do you mean the exact same ROOT build on cvmfs? If yes, this seems like it would never work. SL 7 is based on RHEL 7, and Rocky 8.9 is based on RHEL 8. It’s guaranteed that something goes wrong if you mix and match packages from different major RHEL versions like that. How did you make sure to even have the same compiler version? Maybe that’s where the problem with the environment comes from.

Maybe this post is also helpful to you:

> [@Unpleasantly late ROOT 6.10.04 compilation error with GCC 7.1](https://root-forum.cern.ch/t/unpleasantly-late-root-6-10-04-compilation-error-with-gcc-7-1/26074/6):
>
> Looks like all your problems stem from your gcc distribution. The CMake file shipped with ROOT copies the wchar.h file from your distribution before compilation (core/clingutils/CMakeLists.txt): # These headers do not have complete include guards on all platforms we # support. This means that the PCH cannot provide their representation at # runtime and clang will hit disk, triggering a possible incompatibility # of that file in build-time versus run-time (different length etc). # Capture their …

Cheers,  
Jonas

---

_[View the full topic](https://root-forum.cern.ch/t/rootcling-errors-on-rocky-linux/57245)._
