Closed petricm closed 7 years ago
Compilation with gcc 4.8 and ROOT 6.08 produces the following errors:
[ 60%] Building CXX object CMakeFiles/LCFIPlus.dir/src/VertexFinderTearDown.cc.o /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc: In member function ‘virtual void lcfiplus::TrainMVA::end()’: /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:186:16: error: ‘class TMVA::Factory’ has no member named ‘AddTree’ factory->AddTree( ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:193:16: error: ‘class TMVA::Factory’ has no member named ‘AddVariable’ factory->AddVariable( c.vars[iv], 'F' ); ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:199:16: error: ‘class TMVA::Factory’ has no member named ‘AddSpectator’ factory->AddSpectator( c.spec[is] ); ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:204:14: error: ‘class TMVA::Factory’ has no member named ‘PrepareTrainingAndTestTree’ factory->PrepareTrainingAndTestTree( "", "SplitMode=Random:NormMode=NumEvents:!V" ); ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:205:73: error: no matching function for call to ‘TMVA::Factory::BookMethod(TMVA::Types::EMVA&, TString&, TString&)’ factory->BookMethod( _tmvaBookType, _tmvaBookName, _tmvaBookOptions ); ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:205:73: note: candidates are: In file included from /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:24:0: /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/root/6.08.00/include/TMVA/Factory.h:105:19: note: TMVA::MethodBase* TMVA::Factory::BookMethod(TMVA::DataLoader*, TString, TString, TString) MethodBase* BookMethod( DataLoader *loader, TString theMethodName, TString methodTitle, TString theOption = "" ); ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/root/6.08.00/include/TMVA/Factory.h:105:19: note: no known conversion for argument 1 from ‘TMVA::Types::EMVA’ to ‘TMVA::DataLoader*’ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/root/6.08.00/include/TMVA/Factory.h:106:19: note: TMVA::MethodBase* TMVA::Factory::BookMethod(TMVA::DataLoader*, TMVA::Types::EMVA, TString, TString) MethodBase* BookMethod( DataLoader *loader, Types::EMVA theMethod, TString methodTitle, TString theOption = "" ); ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/root/6.08.00/include/TMVA/Factory.h:106:19: note: no known conversion for argument 1 from ‘TMVA::Types::EMVA’ to ‘TMVA::DataLoader*’ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/root/6.08.00/include/TMVA/Factory.h:107:19: note: TMVA::MethodBase* TMVA::Factory::BookMethod(TMVA::DataLoader*, TMVA::Types::EMVA, TString, TString, TMVA::Types::EMVA, TString) MethodBase* BookMethod( DataLoader *, TMVA::Types::EMVA /*theMethod*/, ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/root/6.08.00/include/TMVA/Factory.h:107:19: note: candidate expects 6 arguments, 3 provided [ 64%] Building CXX object CMakeFiles/LCFIPlus.dir/src/VertexMassRecovery.cc.o make[2]: *** [CMakeFiles/LCFIPlus.dir/src/TrainMVA.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [CMakeFiles/LCFIPlus.dir/all] Error 2 make: *** [all] Error 2 [ 3%] generating: /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/build/rootdict/dict.cc /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/build/rootdict/dict.h [ 7%] Building CXX object CMakeFiles/LCFIPlus.dir/rootdict/dict.cc.o [ 10%] Building CXX object CMakeFiles/LCFIPlus.dir/src/TrainMVA.cc.o /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc: In member function ‘virtual void lcfiplus::TrainMVA::end()’: /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:186:16: error: ‘class TMVA::Factory’ has no member named ‘AddTree’ factory->AddTree( ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:193:16: error: ‘class TMVA::Factory’ has no member named ‘AddVariable’ factory->AddVariable( c.vars[iv], 'F' ); ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:199:16: error: ‘class TMVA::Factory’ has no member named ‘AddSpectator’ factory->AddSpectator( c.spec[is] ); ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:204:14: error: ‘class TMVA::Factory’ has no member named ‘PrepareTrainingAndTestTree’ factory->PrepareTrainingAndTestTree( "", "SplitMode=Random:NormMode=NumEvents:!V" ); ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:205:73: error: no matching function for call to ‘TMVA::Factory::BookMethod(TMVA::Types::EMVA&, TString&, TString&)’ factory->BookMethod( _tmvaBookType, _tmvaBookName, _tmvaBookOptions ); ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:205:73: note: candidates are: In file included from /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/LCFIPlus/HEAD/src/TrainMVA.cc:24:0: /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/root/6.08.00/include/TMVA/Factory.h:105:19: note: TMVA::MethodBase* TMVA::Factory::BookMethod(TMVA::DataLoader*, TString, TString, TString) MethodBase* BookMethod( DataLoader *loader, TString theMethodName, TString methodTitle, TString theOption = "" ); ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/root/6.08.00/include/TMVA/Factory.h:105:19: note: no known conversion for argument 1 from ‘TMVA::Types::EMVA’ to ‘TMVA::DataLoader*’ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/root/6.08.00/include/TMVA/Factory.h:106:19: note: TMVA::MethodBase* TMVA::Factory::BookMethod(TMVA::DataLoader*, TMVA::Types::EMVA, TString, TString) MethodBase* BookMethod( DataLoader *loader, Types::EMVA theMethod, TString methodTitle, TString theOption = "" ); ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/root/6.08.00/include/TMVA/Factory.h:106:19: note: no known conversion for argument 1 from ‘TMVA::Types::EMVA’ to ‘TMVA::DataLoader*’ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/root/6.08.00/include/TMVA/Factory.h:107:19: note: TMVA::MethodBase* TMVA::Factory::BookMethod(TMVA::DataLoader*, TMVA::Types::EMVA, TString, TString, TMVA::Types::EMVA, TString) MethodBase* BookMethod( DataLoader *, TMVA::Types::EMVA /*theMethod*/, ^ /cvmfs/clicdp.cern.ch/iLCSoft/builds/2016-11-09/x86_64-slc6-gcc48-opt/root/6.08.00/include/TMVA/Factory.h:107:19: note: candidate expects 6 arguments, 3 provided make[2]: *** [CMakeFiles/LCFIPlus.dir/src/TrainMVA.cc.o] Error 1 make[1]: *** [CMakeFiles/LCFIPlus.dir/all] Error 2 make: *** [all] Error 2
Fixed by cb7cdcbacb3672c8006653d4f87f0449d81e068a
Compilation with gcc 4.8 and ROOT 6.08 produces the following errors: