I build ROOT from the sources (using cmake; from a cloned ROOT repo on github) on Ubuntu 15.04. Since the last pull (fetch upstream) I always run into the following compiler issues.
[ul]
…
[ 59%] Built target rootcling
[ 59%] Generating G__Net.cxx, …/…/lib/libNet_rdict.pcm, …/…/lib/libNet.rootmap
In file included from input_line_12:9:
In file included from /home/peters/code_peters/rootWork/include/TGridJobStatusList.h:24:
In file included from /home/peters/code_peters/rootWork/include/TList.h:26:
In file included from /home/peters/code_peters/rootWork/include/TSeqCollection.h:26:
In file included from /home/peters/code_peters/rootWork/include/TCollection.h:34:
In file included from /home/peters/code_peters/rootWork/include/TString.h:36:
/home/peters/code_peters/rootWork/include/TMathBase.h:33:10: error: ‘cstdlib’ file not found with include; use “quotes” instead
#include
^~~~~~~~~
"cstdlib"
In file included from input_line_12:9:
In file included from /home/peters/code_peters/rootWork/include/TGridJobStatusList.h:24:
In file included from /home/peters/code_peters/rootWork/include/TList.h:26:
In file included from /home/peters/code_peters/rootWork/include/TSeqCollection.h:26:
In file included from /home/peters/code_peters/rootWork/include/TCollection.h:34:
In file included from /home/peters/code_peters/rootWork/include/TString.h:36:
In file included from /home/peters/code_peters/rootWork/include/TMathBase.h:33:
/usr/include/c++/4.9/cstdlib:41:10: error: ‘bits/c++config.h’ file not found with include; use “quotes” instead #include <bits/c++config.h>
…
[/ul]
At building some locations of include files are apparently not found. I tried to add the path where I find cstdlib and the other missing ones to PATH and to CPATH, but this had no effect so far.
I tried as well :
cmake . -DEO_SOURCE_DIR:PATH=/usr/include/c++/4.9/
but this didn’t help as well.
Please could you advise me where I have to add the missing path to make ROOT compile again.
indeed $CPLUS_INCLUDE_PATH was set to a path to an older (not existing on my computer [any more?]) version of c++ . Setting CPLUS_INCLUDE_PATH to “” fixed the compilation issue.
On Arch, I’m trying to build with gcc 5.2.0, and I’m getting the following errors:
Generating dictionary math/mathcore/src/G__MathCore.cxx...
bin/rootcling -rootbuild -f math/mathcore/src/G__MathCore.cxx -s lib/libMathCore.so -rml libMathCore.so -rmf lib/libMathCore.rootmap -m lib/libCore_rdict.pcm -c -writeEmptyRootPCM -I/home/matthew/Sources/root/root-git /home/matthew/Sources/root/root-git/math/mathcore/inc/TComplex.h /home/matthew/Sources/root/root-git/math/mathcore/inc/TMath.h /home/matthew/Sources/root/root-git/math/mathcore/inc/TRandom.h /home/matthew/Sources/root/root-git/math/mathcore/inc/TRandom1.h /home/matthew/Sources/root/root-git/math/mathcore/inc/TRandom2.h /home/matthew/Sources/root/root-git/math/mathcore/inc/TRandom3.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/Random.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/RandomFunctions.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/TRandomEngine.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/MersenneTwisterEngine.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/MixMaxEngine.h /home/matthew/Sources/root/root-git/math/mathcore/inc/TStatistic.h /home/matthew/Sources/root/root-git/math/mathcore/inc/TKDTree.h /home/matthew/Sources/root/root-git/math/mathcore/inc/TKDTreeBinning.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/KDTree.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/TDataPoint.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/TDataPointN.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/IParamFunction.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/IFunction.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/ParamFunctor.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/Functor.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/Minimizer.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/MinimizerOptions.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/MinimTransformFunction.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/MinimTransformVariable.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/BasicMinimizer.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/IntegratorOptions.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/IOptions.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/GenAlgoOptions.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/Integrator.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/VirtualIntegrator.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/AllIntegrationTypes.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/AdaptiveIntegratorMultiDim.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/IntegratorMultiDim.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/Factory.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/FitMethodFunction.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/GaussIntegrator.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/GaussLegendreIntegrator.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/RootFinder.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/IRootFinderMethod.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/RichardsonDerivator.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/BrentMethods.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/BrentMinimizer1D.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/BrentRootFinder.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/DistSampler.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/DistSamplerOptions.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/GoFTest.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/ChebyshevPol.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/SpecFuncMathCore.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Math/DistFuncMathCore.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/DataVector.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/DataRange.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/PoissonLikelihoodFCN.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/DataVectorfwd.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/LogLikelihoodFCN.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/SparseData.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/FitResult.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/Fitter.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/FitUtilParallel.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/FitUtil.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/BinData.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/FcnAdapter.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/Chi2FCN.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/BinPoint.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/BasicFCN.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/ParameterSettings.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/DataOptions.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/FitConfig.h /home/matthew/Sources/root/root-git/math/mathcore/inc/Fit/UnBinData.h /home/matthew/Sources/root/root-git/math/mathcore/inc/LinkDef.h
In file included from input_line_12:6:
In file included from include/TComplex.h:25:
In file included from include/TMath.h:30:
include/TMathBase.h:33:10: error: 'cstdlib' file not found with <angled> include; use "quotes" instead
#include <cstdlib>
^~~~~~~~~
"cstdlib"
In file included from input_line_12:6:
In file included from include/TComplex.h:25:
In file included from include/TMath.h:30:
In file included from include/TMathBase.h:33:
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/cstdlib:41:10: error: 'bits/c++config.h' file not found
with <angled> include; use "quotes" instead
#include <bits/c++config.h>
^
In file included from input_line_12:6:
In file included from include/TComplex.h:25:
In file included from include/TMath.h:30:
In file included from include/TMathBase.h:34:
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/cmath:42:10: error: 'bits/cpp_type_traits.h' file not
found with <angled> include; use "quotes" instead
#include <bits/cpp_type_traits.h>
^
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/cmath:43:10: error: 'ext/type_traits.h' file not found
with <angled> include; use "quotes" instead
#include <ext/type_traits.h>
^
In file included from input_line_12:6:
In file included from include/TComplex.h:25:
In file included from include/TMath.h:34:
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/algorithm:60:
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/utility:70:10: error: 'bits/stl_pair.h' file not found
with <angled> include; use "quotes" instead
#include <bits/stl_pair.h>
^
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/utility:74:10: error: 'bits/move.h' file not found with
<angled> include; use "quotes" instead
#include <bits/move.h>
^
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/utility:75:10: error: 'initializer_list' file not found
with <angled> include; use "quotes" instead
#include <initializer_list>
^
In file included from input_line_12:6:
In file included from include/TComplex.h:25:
In file included from include/TMath.h:34:
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/algorithm:61:10: error: 'bits/stl_algobase.h' file not
found with <angled> include; use "quotes" instead
#include <bits/stl_algobase.h>
^
In file included from input_line_12:6:
In file included from include/TComplex.h:25:
In file included from include/TMath.h:34:
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/algorithm:62:
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/stl_algo.h:60:
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/algorithmfwd.h:36:10: error: 'bits/stl_pair.h'
file not found with <angled> include; use "quotes" instead
#include <bits/stl_pair.h>
^
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/algorithmfwd.h:37:10: error:
'bits/stl_iterator_base_types.h' file not found with <angled> include; use "quotes" instead
#include <bits/stl_iterator_base_types.h>
^
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/algorithmfwd.h:39:10: error: 'initializer_list'
file not found with <angled> include; use "quotes" instead
#include <initializer_list>
^
In file included from input_line_12:6:
In file included from include/TComplex.h:25:
In file included from include/TMath.h:34:
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/algorithm:62:
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/stl_algo.h:61:
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/stl_heap.h:58:10: error: 'debug/debug.h' file not
found with <angled> include; use "quotes" instead
#include <debug/debug.h>
^
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/stl_heap.h:59:10: error: 'bits/move.h' file not
found with <angled> include; use "quotes" instead
#include <bits/move.h>
^
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/stl_heap.h:60:10: error: 'bits/predefined_ops.h'
file not found with <angled> include; use "quotes" instead
#include <bits/predefined_ops.h>
^
In file included from input_line_12:6:
In file included from include/TComplex.h:25:
In file included from include/TMath.h:34:
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/algorithm:62:
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/stl_algo.h:62:
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/stl_tempbuf.h:59:10: error: 'bits/stl_algobase.h'
file not found with <angled> include; use "quotes" instead
#include <bits/stl_algobase.h>
^
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/stl_tempbuf.h:60:10: error:
'bits/stl_construct.h' file not found with <angled> include; use "quotes" instead
#include <bits/stl_construct.h>
^
In file included from input_line_12:6:
In file included from include/TComplex.h:25:
In file included from include/TMath.h:34:
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/algorithm:62:
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/stl_algo.h:66:
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/random:38:
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/cmath:42:10: error: 'bits/cpp_type_traits.h' file not
found with <angled> include; use "quotes" instead
#include <bits/cpp_type_traits.h>
^
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/cmath:43:10: error: 'ext/type_traits.h' file not found
with <angled> include; use "quotes" instead
#include <ext/type_traits.h>
^
In file included from input_line_12:6:
In file included from include/TComplex.h:25:
In file included from include/TMath.h:34:
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/algorithm:62:
In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/bits/stl_algo.h:66:
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/random:40:10: error: 'string' file not found with
<angled> include; use "quotes" instead
#include <string>
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Error: bin/rootcling: compilation failure (lib/libMathCore8fa569fb8a_dictUmbrella.h)
/home/matthew/Sources/root/root-git/math/mathcore/Module.mk:136: recipe for target 'math/mathcore/src/G__MathCore.cxx' failed
make: *** [math/mathcore/src/G__MathCore.cxx] Error 1