Hello,
I am trying to install delphes in MA but I obtain the following error message in the compilation.log
MA5-ERROR: impossible to build the project. For more details, see the log file:
MA5-ERROR: /home/mustafa/hep/madanalysis5/tools/delphes/compilation.log
Any hint for help is appreciated
Cheers
Mustafa
compilation.log
>> Generating tmp/classes/ClassesDict.cc
>> Generating tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc
>> Compiling classes/DelphesClasses.cc
>> Generating tmp/modules/ModulesDict.cc
>> Compiling classes/DelphesCylindricalFormula.cc
>> Compiling classes/DelphesFactory.cc
>> Compiling classes/DelphesFormula.cc
>> Compiling classes/DelphesHepMCReader.cc
>> Compiling classes/DelphesLHEFReader.cc
>> Compiling classes/DelphesModule.cc
>> Compiling classes/DelphesPileUpReader.cc
>> Compiling classes/DelphesPileUpWriter.cc
>> Compiling classes/DelphesSTDHEPReader.cc
>> Compiling classes/DelphesStream.cc
>> Compiling classes/DelphesTF2.cc
>> Compiling classes/DelphesXDRReader.cc
classes/DelphesXDRReader.cc: In member function ‘void DelphesXDRReader::ReadRaw(void*, int)’:
classes/DelphesXDRReader.cc:76:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
76 | fread(value, 1, size + rndup, fFile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Compiling classes/DelphesXDRWriter.cc
>> Compiling external/ExRootAnalysis/ExRootConfReader.cc
>> Compiling external/ExRootAnalysis/ExRootFilter.cc
>> Compiling external/ExRootAnalysis/ExRootProgressBar.cc
classes/DelphesTF2.cc: In constructor ‘DelphesTF2::DelphesTF2()’:
classes/DelphesTF2.cc:35:27: error: no match for ‘operator=’ (operand types are ‘std::unique_ptr<TFormula>’ and ‘TFormula*’)
35 | fFormula = new TFormula();
| ^
In file included from /usr/include/c++/9/memory:80,
from /home/mustafa/hep/buildroot/include/ROOT/TypeTraits.hxx:15,
from /home/mustafa/hep/buildroot/include/TString.h:30,
from /home/mustafa/hep/buildroot/include/TNamed.h:26,
from /home/mustafa/hep/buildroot/include/TFormula.h:15,
from /home/mustafa/hep/buildroot/include/TF1.h:29,
from /home/mustafa/hep/buildroot/include/TF2.h:26,
from ./classes/DelphesTF2.h:22,
from classes/DelphesTF2.cc:19:
/usr/include/c++/9/bits/unique_ptr.h:305:7: note: candidate: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = TFormula; _Dp = std::default_delete<TFormula>]’
305 | operator=(unique_ptr&& __u) noexcept
| ^~~~~~~~
/usr/include/c++/9/bits/unique_ptr.h:305:30: note: no known conversion for argument 1 from ‘TFormula*’ to ‘std::unique_ptr<TFormula>&&’
305 | operator=(unique_ptr&& __u) noexcept
| ~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/unique_ptr.h:325:2: note: candidate: ‘template<class _Up, class _Ep> typename std::enable_if<std::__and_<std::__and_<std::is_convertible<typename std::unique_ptr<_Up, _Ep>::pointer, typename std::__uniq_ptr_impl<_Tp, _Dp>::pointer>, std::__not_<std::is_array<_Up> > >, std::is_assignable<_T2&, _U2&&> >::value, std::unique_ptr<_Tp, _Dp>&>::type std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Up = _Up; _Ep = _Ep; _Tp = TFormula; _Dp = std::default_delete<TFormula>]’
325 | operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
| ^~~~~~~~
/usr/include/c++/9/bits/unique_ptr.h:325:2: note: template argument deduction/substitution failed:
classes/DelphesTF2.cc:35:27: note: mismatched types ‘std::unique_ptr<_Tp, _Dp>’ and ‘TFormula*’
35 | fFormula = new TFormula();
| ^
In file included from /usr/include/c++/9/memory:80,
from /home/mustafa/hep/buildroot/include/ROOT/TypeTraits.hxx:15,
from /home/mustafa/hep/buildroot/include/TString.h:30,
from /home/mustafa/hep/buildroot/include/TNamed.h:26,
from /home/mustafa/hep/buildroot/include/TFormula.h:15,
from /home/mustafa/hep/buildroot/include/TF1.h:29,
from /home/mustafa/hep/buildroot/include/TF2.h:26,
from ./classes/DelphesTF2.h:22,
from classes/DelphesTF2.cc:19:
/usr/include/c++/9/bits/unique_ptr.h:334:7: note: candidate: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::nullptr_t) [with _Tp = TFormula; _Dp = std::default_delete<TFormula>; std::nullptr_t = std::nullptr_t]’
334 | operator=(nullptr_t) noexcept
| ^~~~~~~~
/usr/include/c++/9/bits/unique_ptr.h:334:17: note: no known conversion for argument 1 from ‘TFormula*’ to ‘std::nullptr_t’
334 | operator=(nullptr_t) noexcept
| ^~~~~~~~~
make: *** [Makefile:2430: tmp/classes/DelphesTF2.o] Error 1
make: *** Waiting for unfinished jobs....