Home | News | Documentation | Download

Cannot extract standard library include paths - Linux


ROOT Version: 6.18/00
Platform: Linux (Manjaro)


Built ROOT from source (It was working fine till the last time I tested it which wasn’t so many days ago so something else might have updated to cause incompatibilities?)

I get the following logs when trying to import ROOT. Strangely enough, even with these error logs, ROOT seems to be working fine.

[reik@reik-msi ~]$ root -l
grep: stack overflow
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
  LC_ALL=C c++  -O3 -DNDEBUG -xc++ -E -v /dev/null 2>&1 >/dev/null | awk '/^#include </,/^End of search/{if (!/^#include </ && !/^End of search/){ print }}' | GREP_OPTIONS= grep -E "(c|g)\+\+"
Results was:
grep: stack overflow
With exit code 512
root [0]

What is the output of the command below on your machine?

$ LC_ALL=C c++ -O3 -DNDEBUG -xc++ -E -v /dev/null 2>&1 >/dev/null

Manjaro had a repo release cycle yesterday and after the update, I do not get the error log again. I think it was a broken gcc update or something from Manjaro.

Here is the log just in case -

[reik@reik-msi ~]$ LC_ALL=C c++ -O3 -DNDEBUG -xc++ -E -v /dev/null 2>&1 >/dev/null
Using built-in specs.
COLLECT_GCC=c++
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp --enable-cet=auto
Thread model: posix
gcc version 9.1.0 (GCC) 
COLLECT_GCC_OPTIONS='-O3' '-D' 'NDEBUG' '-E' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/cc1plus -E -quiet -v -D_GNU_SOURCE -D NDEBUG /dev/null -mtune=generic -march=x86-64 -O3
ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/include"
ignoring nonexistent directory "SUBSTITUTE_INSTALL_DIR_HERE/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/intel/compilers_and_libraries_2019.4.243/linux/ipp/include
 /opt/intel/compilers_and_libraries_2019.4.243/linux/tbb/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../include/c++/9.1.0
 /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../include/c++/9.1.0/x86_64-pc-linux-gnu
 /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../include/c++/9.1.0/backward
 /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include-fixed
 /usr/include
End of search list.
COMPILER_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/
LIBRARY_PATH=/opt/intel/compilers_and_libraries_2019.4.243/linux/mpi/intel64/libfabric/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/opt/intel/compilers_and_libraries_2019.4.243/linux/mpi/intel64/libfabric/lib/:/opt/intel/compilers_and_libraries_2019.4.243/linux/ipp/lib/intel64/:/opt/intel/compilers_and_libraries_2019.4.243/linux/tbb/lib/intel64/gcc4.7/:/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-O3' '-D' 'NDEBUG' '-E' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'