Installation issue in Ubuntu 26.04.1 LTS


At 63% of building from source this error occurs.

ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
Invoking:
Invoking:
Invoking:
LC_ALL=C x86_64-linux-gnu-g+±13 -xc++ -E -v /dev/null 2>&1 | sed -n -e ‘/^.include/,{' -e '/^ \/.*++/p' -e '}'LC_ALL=C x86_64-linux-gnu-g++-13 -xc++ -E -v /dev/null 2>&1 | sed -n -e '/^.include/,{’ -e ‘/^ /.++/p’ -e '}'LC_ALL=C x86_64-linux-gnu-g+±13 -xc++ -E -v /dev/null 2>&1 | sed -n -e ‘/^.include/,${’ -e '/^ /.++/p’ -e '}'Invoking:
LC_ALL=C x86_64-linux-gnu-g+±13 -xc++ -E -v /dev/null 2>&1 | sed -n -e ‘/^.include/,${’ -e ‘/^ /.*++/p’ -e ‘}’

LC_ALL=C x86_64-linux-gnu-g+±13 -xc++ -E -v /dev/null 2>&1 | sed -n -e ‘/^.include/,${’ -e ‘/^ /.*++/p’ -e ‘}’
Results was:
Results was:
Results was:
Results was:

Results was:

With exit code With exit code 0With exit code
0With exit code
0
0
With exit code 0

I think, system gcc version is 15.2.0 but root using 13 is the reason for this error. Am i right?

Please read tips for efficient and successful posting and posting code

ROOT Version: 6.40.04
Platform: Ubuntu 26.04.1 LTS
Compiler: Not Provided


You can use the pre-compiled binary distribution provided by the ROOT Team (for your “Ubuntu 26.04” platform):

This sounds like a well-known deficiency in the ROOT building procedure.

You seem to have another ROOT version installed somewhere (and “initialized” in your setup).

Before building a new ROOT version, always make sure that nothing in your environment variables (i.e., whatever the “${ROOTSYS}/bin/thisroot.sh” script sets, e.g., “${ROOTSYS}”, “${PATH}”, “${LD_LIBRARY_PATH}”, “${PYTHONPATH}”, “${CMAKE_PREFIX_PATH}”, and so on) points to another existing version of ROOT. Otherwise, you may end up with a broken build.

If you want to reconfigure/rebuild your ROOT, always start from a clean “build directory” (i.e., remove it and create a new one), so that no remnants of any “old build” are present.

Thanks a lot, it helps.