Problem while installing Delphes via MG5

Hello,

After successfully installing root (6.26/06), MadGraph5 (3.4.1) and phythia8, I tried installing delphes by running
install Delphes
on the MadGraph platform, which yielded the following error:

[...]
compile Delphes. This might take a while.
>> Generating tmp/classes/ClassesDict.cc
>> Compiling tmp/classes/ClassesDict.cc
>> Generating tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc
>> Compiling tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc
In file included from tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc:11:
external/ExRootAnalysis/ExRootTreeWriter.h:36:8: warning: 'ExRootTreeWriter::Clear' hides overloaded virtual function [-Woverloaded-virtual]
  void Clear();
       ^
/usr/local/Cellar/root/6.26.06_1/include/root/TNamed.h:42:21: note: hidden overloaded virtual function 'TNamed::Clear' declared here: different number of parameters (1 vs 0)
   virtual void     Clear(Option_t *option ="");
                    ^
In file included from tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc:11:
external/ExRootAnalysis/ExRootTreeWriter.h:38:8: warning: 'ExRootTreeWriter::Write' hides overloaded virtual functions [-Woverloaded-virtual]
  void Write();
       ^
/usr/local/Cellar/root/6.26.06_1/include/root/TObject.h:163:24: note: hidden overloaded virtual function 'TObject::Write' declared here: different number of parameters (3 vs 0)
   virtual Int_t       Write(const char *name=0, Int_t option=0, Int_t bufsize=0);
                       ^
/usr/local/Cellar/root/6.26.06_1/include/root/TObject.h:164:24: note: hidden overloaded virtual function 'TObject::Write' declared here: different number of parameters (3 vs 0)
   virtual Int_t       Write(const char *name=0, Int_t option=0, Int_t bufsize=0) const;
                       ^
2 warnings generated.
>> Generating tmp/modules/ModulesDict.cc
>> Compiling tmp/modules/ModulesDict.cc
In file included from tmp/modules/ModulesDict.cc:28:
./modules/Delphes.h:50:8: warning: 'Delphes::Clear' hides overloaded virtual function [-Woverloaded-virtual]
  void Clear();
       ^
/usr/local/Cellar/root/6.26.06_1/include/root/TTask.h:61:18: note: hidden overloaded virtual function 'TTask::Clear' declared here: different number of parameters (1 vs 0)
   virtual void  Clear(Option_t *option="");
                 ^
1 warning generated.
>> Compiling classes/DelphesClasses.cc
classes/DelphesClasses.cc:222:3: warning: initializer order does not match the declaration order [-Wreorder-ctor]
  TrackCovariance(5),
  ^~~~~~~~~~~~~~~~~~
  L(0)
classes/DelphesClasses.cc:222:3: note: field 'TrackCovariance' will be initialized after field 'L'
  TrackCovariance(5),
  ^~~~~~~~~~~~~~~~~~
classes/DelphesClasses.cc:224:10: note: field 'ErrorD0' will be initialized after field 'DZ'
  D0(0), ErrorD0(0),
         ^~~~~~~~~~
classes/DelphesClasses.cc:226:9: note: field 'ErrorP' will be initialized after field 'C'
  P(0), ErrorP(0),
        ^~~~~~~~~
classes/DelphesClasses.cc:231:17: note: field 'Zd' will be initialized after field 'Nclusters'
  Xd(0), Yd(0), Zd(0),
                ^~~~~
classes/DelphesClasses.cc:238:3: note: field 'ChargedEnergyFraction' will be initialized after field 'Beta'
  ChargedEnergyFraction(0),  // neutral energy fraction
  ^~~~~~~~~~~~~~~~~~~~~~~~
classes/DelphesClasses.cc:337:39: warning: unused parameter 'newname' [-Wunused-parameter]
TObject *Candidate::Clone(const char *newname) const
                                      ^
classes/DelphesClasses.cc:487:33: warning: unused parameter 'option' [-Wunused-parameter]
void Candidate::Clear(Option_t *option)
                                ^
3 warnings generated.
>> Compiling classes/DelphesCylindricalFormula.cc
classes/DelphesCylindricalFormula.cc:36:66: warning: unused parameter 'name' [-Wunused-parameter]
DelphesCylindricalFormula::DelphesCylindricalFormula(const char *name, const char *expression) :
                                                                 ^
classes/DelphesCylindricalFormula.cc:36:84: warning: unused parameter 'expression' [-Wunused-parameter]
DelphesCylindricalFormula::DelphesCylindricalFormula(const char *name, const char *expression) :
                                                                                   ^
2 warnings generated.
>> Compiling classes/DelphesFactory.cc
classes/DelphesFactory.cc:61:38: warning: unused parameter 'option' [-Wunused-parameter]
void DelphesFactory::Clear(Option_t *option)
                                     ^
1 warning generated.
>> Compiling classes/DelphesFormula.cc
classes/DelphesFormula.cc:37:44: warning: unused parameter 'name' [-Wunused-parameter]
DelphesFormula::DelphesFormula(const char *name, const char *expression) :
                                           ^
classes/DelphesFormula.cc:37:62: warning: unused parameter 'expression' [-Wunused-parameter]
DelphesFormula::DelphesFormula(const char *name, const char *expression) :
                                                             ^
2 warnings generated.
>> Compiling classes/DelphesHepMC2Reader.cc
classes/DelphesHepMC2Reader.cc:324:76: warning: unused parameter 'eventNumber' [-Wunused-parameter]
void DelphesHepMC2Reader::AnalyzeEvent(ExRootTreeBranch *branch, long long eventNumber,
                                                                           ^
1 warning generated.
>> Compiling classes/DelphesHepMC3Reader.cc
classes/DelphesHepMC3Reader.cc:341:76: warning: unused parameter 'eventNumber' [-Wunused-parameter]
void DelphesHepMC3Reader::AnalyzeEvent(ExRootTreeBranch *branch, long long eventNumber,
                                                                           ^
classes/DelphesHepMC3Reader.cc:468:16: warning: comparison of integers of different signs: 'int' and 'std::vector<std::pair<TLorentzVector *, TObjArray *>>::size_type'
      (aka 'unsigned long') [-Wsign-compare]
  for(i = 0; i < fVertices.size(); ++i)
             ~ ^ ~~~~~~~~~~~~~~~~
In file included from classes/DelphesHepMC3Reader.cc:27:
./classes/DelphesHepMC3Reader.h:79:39: warning: private field 'fSignalCode' is not used [-Wunused-private-field]
  int fEventNumber, fMPI, fProcessID, fSignalCode, fVertexCounter, fParticleCounter;
                                      ^
3 warnings generated.
>> Compiling classes/DelphesLHEFReader.cc
>> Compiling classes/DelphesModule.cc
In file included from classes/DelphesModule.cc:34:
external/ExRootAnalysis/ExRootTreeWriter.h:36:8: warning: 'ExRootTreeWriter::Clear' hides overloaded virtual function [-Woverloaded-virtual]
  void Clear();
       ^
/usr/local/Cellar/root/6.26.06_1/include/root/TNamed.h:42:21: note: hidden overloaded virtual function 'TNamed::Clear' declared here: different number of parameters (1 vs 0)
   virtual void     Clear(Option_t *option ="");
                    ^
In file included from classes/DelphesModule.cc:34:
external/ExRootAnalysis/ExRootTreeWriter.h:38:8: warning: 'ExRootTreeWriter::Write' hides overloaded virtual functions [-Woverloaded-virtual]
  void Write();
       ^
/usr/local/Cellar/root/6.26.06_1/include/root/TObject.h:163:24: note: hidden overloaded virtual function 'TObject::Write' declared here: different number of parameters (3 vs 0)
   virtual Int_t       Write(const char *name=0, Int_t option=0, Int_t bufsize=0);
                       ^
/usr/local/Cellar/root/6.26.06_1/include/root/TObject.h:164:24: note: hidden overloaded virtual function 'TObject::Write' declared here: different number of parameters (3 vs 0)
   virtual Int_t       Write(const char *name=0, Int_t option=0, Int_t bufsize=0) const;
                       ^
2 warnings generated.
>> Compiling classes/DelphesPileUpReader.cc
>> Compiling classes/DelphesPileUpWriter.cc
>> Compiling classes/DelphesSTDHEPReader.cc
classes/DelphesSTDHEPReader.cc:435:76: warning: unused parameter 'eventNumber' [-Wunused-parameter]
void DelphesSTDHEPReader::AnalyzeEvent(ExRootTreeBranch *branch, long long eventNumber,
                                                                           ^
1 warning generated.
>> Compiling classes/DelphesStream.cc
classes/DelphesStream.cc:93:31: warning: result of comparison of constant -9223372036854775808 with expression of type 'int' is always false
      [-Wtautological-constant-out-of-range-compare]
    if(fFirstLongMin && value == LONG_MIN)
                        ~~~~~ ^  ~~~~~~~~
classes/DelphesStream.cc:98:36: warning: result of comparison of constant 9223372036854775807 with expression of type 'int' is always false
      [-Wtautological-constant-out-of-range-compare]
    else if(fFirstLongMax && value == LONG_MAX)
                             ~~~~~ ^  ~~~~~~~~
2 warnings generated.
>> Compiling classes/DelphesTF2.cc
>> Compiling classes/DelphesXDRReader.cc
>> Compiling classes/DelphesXDRWriter.cc
>> Compiling external/ExRootAnalysis/ExRootConfReader.cc
>> Compiling external/ExRootAnalysis/ExRootFilter.cc
>> Compiling external/ExRootAnalysis/ExRootProgressBar.cc
>> Compiling external/ExRootAnalysis/ExRootResult.cc
>> Compiling external/ExRootAnalysis/ExRootTask.cc
>> Compiling external/ExRootAnalysis/ExRootTreeBranch.cc
>> Compiling external/ExRootAnalysis/ExRootTreeReader.cc
>> Compiling external/ExRootAnalysis/ExRootTreeWriter.cc
In file included from external/ExRootAnalysis/ExRootTreeWriter.cc:10:
external/ExRootAnalysis/ExRootTreeWriter.h:36:8: warning: 'ExRootTreeWriter::Clear' hides overloaded virtual function [-Woverloaded-virtual]
  void Clear();
       ^
/usr/local/Cellar/root/6.26.06_1/include/root/TNamed.h:42:21: note: hidden overloaded virtual function 'TNamed::Clear' declared here: different number of parameters (1 vs 0)
   virtual void     Clear(Option_t *option ="");
                    ^
In file included from external/ExRootAnalysis/ExRootTreeWriter.cc:10:
external/ExRootAnalysis/ExRootTreeWriter.h:38:8: warning: 'ExRootTreeWriter::Write' hides overloaded virtual functions [-Woverloaded-virtual]
  void Write();
       ^
/usr/local/Cellar/root/6.26.06_1/include/root/TObject.h:163:24: note: hidden overloaded virtual function 'TObject::Write' declared here: different number of parameters (3 vs 0)
   virtual Int_t       Write(const char *name=0, Int_t option=0, Int_t bufsize=0);
                       ^
/usr/local/Cellar/root/6.26.06_1/include/root/TObject.h:164:24: note: hidden overloaded virtual function 'TObject::Write' declared here: different number of parameters (3 vs 0)
   virtual Int_t       Write(const char *name=0, Int_t option=0, Int_t bufsize=0) const;
                       ^
2 warnings generated.
>> Compiling external/ExRootAnalysis/ExRootUtilities.cc
>> Compiling external/Hector/H_AbstractBeamLine.cc
>> Compiling external/Hector/H_Aperture.cc
external/Hector/H_Aperture.cc:85:39: warning: unused parameter 'x' [-Wunused-parameter]
bool H_Aperture::isInside(const float x, const float y) const {
                                      ^
external/Hector/H_Aperture.cc:85:54: warning: unused parameter 'y' [-Wunused-parameter]
bool H_Aperture::isInside(const float x, const float y) const {
                                                     ^
2 warnings generated.
>> Compiling external/Hector/H_Beam.cc
In file included from external/Hector/H_Beam.cc:21:
external/Hector/H_Beam.h:108:10: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
                inline const float getEmittanceX() const {
                       ^~~~~~
external/Hector/H_Beam.h:112:16: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
        inline const float getEmittanceY() const { 
               ^~~~~~
external/Hector/H_Beam.h:148:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
                const int getNumberOfBeamParticles() const {return Nparticles;}
                ^~~~~~
3 warnings generated.
>> Compiling external/Hector/H_BeamLine.cc
>> Compiling external/Hector/H_BeamLineParser.cc
>> Compiling external/Hector/H_BeamParticle.cc
external/Hector/H_BeamParticle.cc:483:25: warning: variable 'temp_s' set but not used [-Wunused-but-set-variable]
        double temp_x, temp_y, temp_s, temp_tx, temp_ty;
                               ^
external/Hector/H_BeamParticle.cc:533:25: warning: variable 'temp_s' set but not used [-Wunused-but-set-variable]
        double temp_x, temp_y, temp_s, temp_tx, temp_ty;
                               ^
2 warnings generated.
>> Compiling external/Hector/H_CircularAperture.cc
>> Compiling external/Hector/H_Dipole.cc
>> Compiling external/Hector/H_Drift.cc
external/Hector/H_Drift.cc:39:37: warning: unused parameter 'eloss' [-Wunused-parameter]
void H_Drift::setMatrix(const float eloss, const float p_mass, const float p_charge) const {
                                    ^
external/Hector/H_Drift.cc:39:56: warning: unused parameter 'p_mass' [-Wunused-parameter]
void H_Drift::setMatrix(const float eloss, const float p_mass, const float p_charge) const {
                                                       ^
external/Hector/H_Drift.cc:39:76: warning: unused parameter 'p_charge' [-Wunused-parameter]
void H_Drift::setMatrix(const float eloss, const float p_mass, const float p_charge) const {
                                                                           ^
3 warnings generated.
>> Compiling external/Hector/H_EllipticAperture.cc
>> Compiling external/Hector/H_HorizontalKicker.cc
>> Compiling external/Hector/H_HorizontalQuadrupole.cc
>> Compiling external/Hector/H_Kicker.cc
>> Compiling external/Hector/H_Marker.cc
external/Hector/H_Marker.cc:35:38: warning: unused parameter 'eloss' [-Wunused-parameter]
void H_Marker::setMatrix(const float eloss, const float p_mass, const float p_charge) const {
                                     ^
external/Hector/H_Marker.cc:35:57: warning: unused parameter 'p_mass' [-Wunused-parameter]
void H_Marker::setMatrix(const float eloss, const float p_mass, const float p_charge) const {
                                                        ^
external/Hector/H_Marker.cc:35:77: warning: unused parameter 'p_charge' [-Wunused-parameter]
void H_Marker::setMatrix(const float eloss, const float p_mass, const float p_charge) const {
                                                                            ^
3 warnings generated.
>> Compiling external/Hector/H_OpticalElement.cc
external/Hector/H_OpticalElement.cc:155:41: warning: unused parameter 'meight' [-Wunused-parameter]
void H_OpticalElement::draw(const float meight, const float height) const{
                                        ^
external/Hector/H_OpticalElement.cc:155:61: warning: unused parameter 'height' [-Wunused-parameter]
void H_OpticalElement::draw(const float meight, const float height) const{
                                                            ^
2 warnings generated.
>> Compiling external/Hector/H_Parameters.cc
>> Compiling external/Hector/H_Quadrupole.cc
>> Compiling external/Hector/H_RecRPObject.cc
external/Hector/H_RecRPObject.cc:129:62: warning: unused parameter 'facn' [-Wunused-parameter]
float H_RecRPObject::getECorrectionFactor(const unsigned int facn, const unsigned int method) {
                                                             ^
external/Hector/H_RecRPObject.cc:129:87: warning: unused parameter 'method' [-Wunused-parameter]
float H_RecRPObject::getECorrectionFactor(const unsigned int facn, const unsigned int method) {
                                                                                      ^
[...]

Does anyone know how to fix this?

ROOT Version: 6.26/06
Platform:_ macOS 12.6

Those issues/warnings seems to all stems from the code in Hector/ ExRootAnalysis/Delphes source code and should be addressed there.