Hi
I try to compile root version 6.08.06 on Linux 2.6.32 x86_64 with gcc 6.1.1, and with headers and libraries in a non standard place.
It always fails at the rootcling step:
[ 63%] Built target rootcling
Scanning dependencies of target G__Minuit
[ 63%] Generating G__Minuit.cxx, ../../lib/libMinuit_rdict.pcm, ../../lib/libMinuit.rootmap
Scanning dependencies of target G__Fumili
Scanning dependencies of target G__MathMore
Scanning dependencies of target G__Matrix
[ 63%] Generating G__Fumili.cxx, ../../lib/libFumili_rdict.pcm, ../../lib/libFumili.rootmap
[ 63%] Generating G__MathMore.cxx, ../../lib/libMathMore_rdict.pcm, ../../lib/libMathMore.rootmap
Scanning dependencies of target G__MathCore
[ 63%] Generating G__Matrix.cxx, ../../lib/libMatrix_rdict.pcm, ../../lib/libMatrix.rootmap
[ 63%] Generating G__MathCore.cxx, ../../lib/libMathCore_rdict.pcm, ../../lib/libMathCore.rootmap
Scanning dependencies of target G__MultiProc
[ 63%] Generating G__MultiProc.cxx, ../../lib/libMultiProc_rdict.pcm, ../../lib/libMultiProc.rootmap
Scanning dependencies of target G__Physics
[ 63%] Generating G__Physics.cxx, ../../lib/libPhysics_rdict.pcm, ../../lib/libPhysics.rootmap
Scanning dependencies of target G__PyMVA
[ 63%] Generating G__PyMVA.cxx, ../../lib/libPyMVA_rdict.pcm, ../../lib/libPyMVA.rootmap
In file included from input_line_3:2:
In file included from /software/lib/gcc/x86_64-redhat-linux/6.1.1/../../../../include/c++/6.1.1/string:52:
In file included from /software/lib/gcc/x86_64-redhat-linux/6.1.1/../../../../include/c++/6.1.1/bits/basic_string.h:5402:
In file included from /software/lib/gcc/x86_64-redhat-linux/6.1.1/../../../../include/c++/6.1.1/ext/string_conversions.h:41:
In file included from /software/lib/gcc/x86_64-redhat-linux/6.1.1/../../../../include/c++/6.1.1/cstdlib:75:
/builddir/build/BUILD/root-6.08.06/mybuild/etc/cling/lib/clang/3.9.0/include/stdlib.h:8:15: fatal error: 'stdlib.h' file not found
#include_next <stdlib.h>
^
*** Break *** segmentation violation
Error in <TUnixSystem::StackTrace> script /software/Development/root/6.08.06-minimal/etc/root/gdb-backtrace.sh is missing
In file included from input_line_3:2:
In file included from /software/lib/gcc/x86_64-redhat-linux/6.1.1/../../../../include/c++/6.1.1/string:52:
In file included from /software/lib/gcc/x86_64-redhat-linux/6.1.1/../../../../include/c++/6.1.1/bits/basic_string.h:5402:
In file included from /software/lib/gcc/x86_64-redhat-linux/6.1.1/../../../../include/c++/6.1.1/ext/string_conversions.h:41:
In file included from /software/lib/gcc/x86_64-redhat-linux/6.1.1/../../../../include/c++/6.1.1/cstdlib:75:
/builddir/build/BUILD/root-6.08.06/mybuild/etc/cling/lib/clang/3.9.0/include/stdlib.h:8:15: fatal error: 'stdlib.h' file not found
#include_next <stdlib.h>
^
*** Break *** segmentation violation
Error in <TUnixSystem::StackTrace> script /software/Development/root/6.08.06-minimal/etc/root/gdb-backtrace.sh is missing
make[2]: *** [tmva/pymva/G__PyMVA.cxx] Error 139
make[2]: *** [math/mathmore/G__MathMore.cxx] Error 139
make[1]: *** [tmva/pymva/CMakeFiles/G__PyMVA.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [math/mathmore/CMakeFiles/G__MathMore.dir/all] Error 2
[ 63%] Built target G__Physics
[ 63%] Built target G__Minuit
[ 63%] Built target G__Fumili
[ 63%] Built target G__MultiProc
[ 63%] Built target G__Matrix
[ 63%] Built target G__MathCore
make: *** [all] Error 2
I tried to add what I think is the right path for stdlib.h where “Cling will look for C++ headers” but without success.
I have the same issue with cmake or configure.
I used:
cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -Dgnuinstall=ON
make
We’re in the middle of the summer vacation period; we’ll see who will do this when. I don’t think we support system headers in a non-standard location; part of ROOT-8900 will be to determine whether that’s a reasonable feature for us to support.