Unofficial ROOT 6.26.10 package for Ubuntu 22.04

Those errors are only seen in the case you describe. This usually indicates that there is something ‘odd/unexpected’ about the environment (quite often a much older version of ROOT is found and unintentionally used during the compilation). To get the bottom of this, we need to make a few experiment.

First we need to get (one of) the command line that fails. To do, if you use make to build, do:

make VERBOSE=true |& tee make.log.txt

The last line before the first error is the command line we are looking for.

After looking at it (please share it here) for obvious misconfiguration, we can adjust it to switch from compiling to running just the preprocessor. From the preprocessor output, we should be able to get where thing go sour.