Fork me on GitHub

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#1471 closed Bug (fixed)

Unable to install Delphes

Reported by: Ellen Riefel Owned by:
Priority: major Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description

Hi!

I am trying to install Delphes v3.4.2, when installing I get the following error:

make: * [Makefile:2447: tmp/validation/DelphesValidation.o] Error 1

I have pasted the full log on the bottom of this ticket. I have both tried installing it inside Madgraph with 'install Delphes' and manually, and I have also tried v3.4.1 and v 3.4.0, but all gave the same error.
I am running Ubuntu 20.04.1 LTS, with Madgraph v3.8.2 and ROOT 6.22/06.

Could this be because my ROOT version is not compatible with Delphes? If so, any idea which versions are compatible? Or any other tips?

Thanks so much!

Ellen

> make
>> Generating tmp/classes/ClassesDict.cc
>> Compiling tmp/classes/ClassesDict.cc
>> Generating tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc
>> Compiling tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc
>> Generating tmp/modules/ModulesDict.cc
>> Compiling tmp/modules/ModulesDict.cc
>> Compiling classes/DelphesClasses.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
>> 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
>> Compiling external/ExRootAnalysis/ExRootUtilities.cc
>> Compiling external/Hector/H_AbstractBeamLine.cc
>> Compiling external/Hector/H_Aperture.cc
>> Compiling external/Hector/H_Beam.cc
>> Compiling external/Hector/H_BeamLine.cc
>> Compiling external/Hector/H_BeamLineParser.cc
>> Compiling external/Hector/H_BeamParticle.cc
external/Hector/H_BeamParticle.cc: In member function ‘void H_BeamParticle::computePath(const H_AbstractBeamLine*, bool)’:
external/Hector/H_BeamParticle.cc:483:25: warning: variable ‘temp_s’ set but not used [-Wunused-but-set-variable]
  483 |  double temp_x, temp_y, temp_s, temp_tx, temp_ty;
      |                         ^~~~~~
external/Hector/H_BeamParticle.cc: In member function ‘void H_BeamParticle::computePath(const H_AbstractBeamLine&, bool)’:
external/Hector/H_BeamParticle.cc:533:25: warning: variable ‘temp_s’ set but not used [-Wunused-but-set-variable]
  533 |  double temp_x, temp_y, temp_s, temp_tx, temp_ty;
      |                         ^~~~~~
>> Compiling external/Hector/H_CircularAperture.cc
>> Compiling external/Hector/H_Dipole.cc
>> Compiling external/Hector/H_Drift.cc
>> 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
>> Compiling external/Hector/H_OpticalElement.cc
>> Compiling external/Hector/H_Parameters.cc
>> Compiling external/Hector/H_Quadrupole.cc
>> Compiling external/Hector/H_RecRPObject.cc
>> Compiling external/Hector/H_RectEllipticAperture.cc
>> Compiling external/Hector/H_RectangularAperture.cc
>> Compiling external/Hector/H_RectangularCollimator.cc
>> Compiling external/Hector/H_RectangularDipole.cc
>> Compiling external/Hector/H_RomanPot.cc
>> Compiling external/Hector/H_SectorDipole.cc
>> Compiling external/Hector/H_TransportMatrices.cc
>> Compiling external/Hector/H_VerticalKicker.cc
>> Compiling external/Hector/H_VerticalQuadrupole.cc
>> Compiling modules/AngularSmearing.cc
>> Compiling modules/BTagging.cc
>> Compiling modules/BeamSpotFilter.cc
>> Compiling modules/Calorimeter.cc
>> Compiling modules/Cloner.cc
>> Compiling modules/ConstituentFilter.cc
>> Compiling modules/Delphes.cc
>> Compiling modules/DenseTrackFilter.cc
>> Compiling modules/DualReadoutCalorimeter.cc
modules/DualReadoutCalorimeter.cc: In member function ‘virtual void DualReadoutCalorimeter::Process()’:
modules/DualReadoutCalorimeter.cc:225:12: warning: unused variable ‘ecalSigma’ [-Wunused-variable]
  225 |   Double_t ecalSigma, hcalSigma, sigma;
      |            ^~~~~~~~~
modules/DualReadoutCalorimeter.cc:225:23: warning: unused variable ‘hcalSigma’ [-Wunused-variable]
  225 |   Double_t ecalSigma, hcalSigma, sigma;
      |                       ^~~~~~~~~
modules/DualReadoutCalorimeter.cc: In member function ‘void DualReadoutCalorimeter::FinalizeTower()’:
modules/DualReadoutCalorimeter.cc:510:12: warning: unused variable ‘ecalNeutralEnergy’ [-Wunused-variable]
  510 |   Double_t ecalNeutralEnergy, hcalNeutralEnergy, neutralEnergy;
      |            ^~~~~~~~~~~~~~~~~
modules/DualReadoutCalorimeter.cc:510:31: warning: unused variable ‘hcalNeutralEnergy’ [-Wunused-variable]
  510 |   Double_t ecalNeutralEnergy, hcalNeutralEnergy, neutralEnergy;
      |                               ^~~~~~~~~~~~~~~~~
modules/DualReadoutCalorimeter.cc:513:12: warning: unused variable ‘ecalNeutralSigma’ [-Wunused-variable]
  513 |   Double_t ecalNeutralSigma, hcalNeutralSigma, neutralSigma;
      |            ^~~~~~~~~~~~~~~~
modules/DualReadoutCalorimeter.cc:513:30: warning: unused variable ‘hcalNeutralSigma’ [-Wunused-variable]
  513 |   Double_t ecalNeutralSigma, hcalNeutralSigma, neutralSigma;
      |                              ^~~~~~~~~~~~~~~~
>> Compiling modules/Efficiency.cc
>> Compiling modules/EnergyScale.cc
>> Compiling modules/EnergySmearing.cc
>> Compiling modules/ExampleModule.cc
>> Compiling modules/Hector.cc
>> Compiling modules/IdentificationMap.cc
>> Compiling modules/ImpactParameterSmearing.cc
>> Compiling modules/Isolation.cc
>> Compiling modules/JetFakeParticle.cc
>> Compiling modules/JetFlavorAssociation.cc
>> Compiling modules/JetPileUpSubtractor.cc
>> Compiling modules/LeptonDressing.cc
>> Compiling modules/Merger.cc
>> Compiling modules/MomentumSmearing.cc
>> Compiling modules/OldCalorimeter.cc
modules/OldCalorimeter.cc: In member function ‘virtual void OldCalorimeter::Init()’:
modules/OldCalorimeter.cc:92:51: warning: variable ‘sizeFractions’ set but not used [-Wunused-but-set-variable]
   92 |   Long_t i, j, k, size, sizeEtaBins, sizePhiBins, sizeFractions;
      |                                                   ^~~~~~~~~~~~~
>> Compiling modules/ParticlePropagator.cc
modules/ParticlePropagator.cc: In member function ‘virtual void ParticlePropagator::Process()’:
modules/ParticlePropagator.cc:136:22: warning: variable ‘bsz’ set but not used [-Wunused-but-set-variable]
  136 |   Double_t bsx, bsy, bsz;
      |                      ^~~
>> Compiling modules/PdgCodeFilter.cc
>> Compiling modules/PhotonConversions.cc
>> Compiling modules/PhotonID.cc
>> Compiling modules/PileUpJetID.cc
modules/PileUpJetID.cc: In member function ‘virtual void PileUpJetID::Process()’:
modules/PileUpJetID.cc:173:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<float, float> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  173 |         for(int i = 0; i < constituent->ECalEnergyTimePairs.size(); i++)
      |                        ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Compiling modules/PileUpMerger.cc
>> Compiling modules/RecoPuFilter.cc
modules/RecoPuFilter.cc: In member function ‘virtual void RecoPuFilter::Init()’:
modules/RecoPuFilter.cc:72:10: warning: unused variable ‘i’ [-Wunused-variable]
   72 |   Size_t i, size;
      |          ^
modules/RecoPuFilter.cc:72:13: warning: unused variable ‘size’ [-Wunused-variable]
   72 |   Size_t i, size;
      |             ^~~~
modules/RecoPuFilter.cc: In member function ‘virtual void RecoPuFilter::Process()’:
modules/RecoPuFilter.cc:94:9: warning: unused variable ‘pdgCode’ [-Wunused-variable]
   94 |   Int_t pdgCode;
      |         ^~~~~~~
modules/RecoPuFilter.cc:95:10: warning: unused variable ‘pass’ [-Wunused-variable]
   95 |   Bool_t pass;
      |          ^~~~
modules/RecoPuFilter.cc:96:12: warning: unused variable ‘pt’ [-Wunused-variable]
   96 |   Double_t pt;
      |            ^~
>> Compiling modules/SimpleCalorimeter.cc
>> Compiling modules/StatusPidFilter.cc
>> Compiling modules/TaggingParticlesSkimmer.cc
>> Compiling modules/TauTagging.cc
>> Compiling modules/TimeSmearing.cc
>> Compiling modules/TrackCountingBTagging.cc
>> Compiling modules/TrackCountingTauTagging.cc
modules/TrackCountingTauTagging.cc: In member function ‘virtual void TrackCountingTauTagging::Process()’:
modules/TrackCountingTauTagging.cc:209:9: warning: variable ‘pdgCode’ set but not used [-Wunused-but-set-variable]
  209 |   Int_t pdgCode, charge, i, identifier;
      |         ^~~~~~~
>> Compiling modules/TrackPileUpSubtractor.cc
>> Compiling modules/TrackSmearing.cc
>> Compiling modules/TreeWriter.cc
modules/TreeWriter.cc: In member function ‘void TreeWriter::ProcessTracks(ExRootTreeBranch*, TObjArray*)’:
modules/TreeWriter.cc:314:38: warning: variable ‘rapidity’ set but not used [-Wunused-but-set-variable]
  314 |   Double_t pt, signz, cosTheta, eta, rapidity, p, ctgTheta, phi;
      |                                      ^~~~~~~~
modules/TreeWriter.cc: In member function ‘void TreeWriter::ProcessTowers(ExRootTreeBranch*, TObjArray*)’:
modules/TreeWriter.cc:400:39: warning: variable ‘rapidity’ set but not used [-Wunused-but-set-variable]
  400 |   Double_t pt, signPz, cosTheta, eta, rapidity;
      |                                       ^~~~~~~~
modules/TreeWriter.cc: In member function ‘void TreeWriter::ProcessPhotons(ExRootTreeBranch*, TObjArray*)’:
modules/TreeWriter.cc:446:39: warning: variable ‘rapidity’ set but not used [-Wunused-but-set-variable]
  446 |   Double_t pt, signPz, cosTheta, eta, rapidity;
      |                                       ^~~~~~~~
modules/TreeWriter.cc: In member function ‘void TreeWriter::ProcessElectrons(ExRootTreeBranch*, TObjArray*)’:
modules/TreeWriter.cc:498:39: warning: variable ‘rapidity’ set but not used [-Wunused-but-set-variable]
  498 |   Double_t pt, signPz, cosTheta, eta, rapidity;
      |                                       ^~~~~~~~
modules/TreeWriter.cc: In member function ‘void TreeWriter::ProcessMuons(ExRootTreeBranch*, TObjArray*)’:
modules/TreeWriter.cc:553:39: warning: variable ‘rapidity’ set but not used [-Wunused-but-set-variable]
  553 |   Double_t pt, signPz, cosTheta, eta, rapidity;
      |                                       ^~~~~~~~
modules/TreeWriter.cc: In member function ‘void TreeWriter::ProcessJets(ExRootTreeBranch*, TObjArray*)’:
modules/TreeWriter.cc:611:39: warning: variable ‘rapidity’ set but not used [-Wunused-but-set-variable]
  611 |   Double_t pt, signPz, cosTheta, eta, rapidity;
      |                                       ^~~~~~~~
>> Compiling modules/UniqueObjectFinder.cc
>> Compiling modules/VertexFinder.cc
modules/VertexFinder.cc:85:15: warning: ‘Bool_t secondAscending(std::pair<unsigned int, double>, std::pair<unsigned int, double>)’ defined but not used [-Wunused-function]
   85 | static Bool_t secondAscending(pair<UInt_t, Double_t> pair0, pair<UInt_t, Double_t> pair1)
      |               ^~~~~~~~~~~~~~~
>> Compiling modules/VertexFinderDA4D.cc
modules/VertexFinderDA4D.cc: In member function ‘std::vector<Candidate*> VertexFinderDA4D::vertices()’:
modules/VertexFinderDA4D.cc:359:22: warning: variable ‘l’ set but not used [-Wunused-but-set-variable]
  359 |   Double_t z, dz, t, l, dt, d0, d0error;
      |                      ^
modules/VertexFinderDA4D.cc: In function ‘void dump(double, const std::vector<vertex_t>&, const std::vector<track_t>&)’:
modules/VertexFinderDA4D.cc:699:12: warning: unused variable ‘tz’ [-Wunused-variable]
  699 |     double tz = tks[i].z;
      |            ^~
modules/VertexFinderDA4D.cc:700:12: warning: unused variable ‘tt’ [-Wunused-variable]
  700 |     double tt = tks[i].t;
      |            ^~
>> Compiling modules/VertexSorter.cc
>> Compiling modules/Weighter.cc
>> Compiling external/tcl/panic.c
>> Compiling external/tcl/tclAlloc.c
>> Compiling external/tcl/tclAsync.c
>> Compiling external/tcl/tclBasic.c
>> Compiling external/tcl/tclCkalloc.c
>> Compiling external/tcl/tclCmdAH.c
>> Compiling external/tcl/tclCmdIL.c
>> Compiling external/tcl/tclCmdMZ.c
>> Compiling external/tcl/tclCompExpr.c
>> Compiling external/tcl/tclCompile.c
external/tcl/tclCompile.c: In function ‘TclObjIndexForString’:
external/tcl/tclCompile.c:6513:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 6513 |      objIndex = (int) Tcl_GetHashValue(hPtr);
      |                 ^
In file included from external/tcl/tclInt.h:33,
                 from external/tcl/tclCompile.c:17:
external/tcl/tcl.h:820:55: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  820 | #define Tcl_SetHashValue(h, value) ((h)->clientData = (ClientData) (value))
      |                                                       ^
external/tcl/tclCompile.c:6554:2: note: in expansion of macro ‘Tcl_SetHashValue’
 6554 |  Tcl_SetHashValue(hPtr, objIndex);
      |  ^~~~~~~~~~~~~~~~
>> Compiling external/tcl/tclExecute.c
In file included from external/tcl/tclExecute.c:15:
external/tcl/tclExecute.c: In function ‘TclExecuteByteCode’:
external/tcl/tclInt.h:1752:21: warning: the address of ‘length’ will always evaluate as ‘true’ [-Waddress]
 1752 |         ((lengthPtr)? \
      |                     ^
external/tcl/tclExecute.c:565:15: note: in expansion of macro ‘TclGetStringFromObj’
  565 |       bytes = TclGetStringFromObj(valuePtr, &length);
      |               ^~~~~~~~~~~~~~~~~~~
external/tcl/tclInt.h:1752:21: warning: the address of ‘length’ will always evaluate as ‘true’ [-Waddress]
 1752 |         ((lengthPtr)? \
      |                     ^
external/tcl/tclExecute.c:583:12: note: in expansion of macro ‘TclGetStringFromObj’
  583 |    bytes = TclGetStringFromObj(valuePtr, &length);
      |            ^~~~~~~~~~~~~~~~~~~
external/tcl/tclInt.h:1752:21: warning: the address of ‘length’ will always evaluate as ‘true’ [-Waddress]
 1752 |         ((lengthPtr)? \
      |                     ^
external/tcl/tclExecute.c:1516:12: note: in expansion of macro ‘TclGetStringFromObj’
 1516 |       s1 = TclGetStringFromObj(valuePtr, &length);
      |            ^~~~~~~~~~~~~~~~~~~
external/tcl/tclInt.h:1752:21: warning: the address of ‘length’ will always evaluate as ‘true’ [-Waddress]
 1752 |         ((lengthPtr)? \
      |                     ^
external/tcl/tclExecute.c:1517:12: note: in expansion of macro ‘TclGetStringFromObj’
 1517 |       s2 = TclGetStringFromObj(value2Ptr, &length);
      |            ^~~~~~~~~~~~~~~~~~~
external/tcl/tclExecute.c: At top level:
external/tcl/tclExecute.c:190:14: warning: ‘PrintByteCodeInfo’ declared ‘static’ but never defined [-Wunused-function]
  190 | static void  PrintByteCodeInfo _ANSI_ARGS_((ByteCode *codePtr));
      |              ^~~~~~~~~~~~~~~~~
>> Compiling external/tcl/tclGet.c
>> Compiling external/tcl/tclHash.c
>> Compiling external/tcl/tclIndexObj.c
external/tcl/tclIndexObj.c: In function ‘Tcl_GetIndexFromObj’:
external/tcl/tclIndexObj.c:89:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   89 |  *indexPtr = (int) objPtr->internalRep.twoPtrValue.ptr2;
      |              ^
external/tcl/tclIndexObj.c:131:44: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  131 |     objPtr->internalRep.twoPtrValue.ptr2 = (VOID *) index;
      |                                            ^
external/tcl/tclIndexObj.c: In function ‘Tcl_WrongNumArgs’:
external/tcl/tclIndexObj.c:293:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  293 |       tablePtr[(int) objv[i]->internalRep.twoPtrValue.ptr2],
      |                ^
>> Compiling external/tcl/tclLink.c
>> Compiling external/tcl/tclListObj.c
In file included from external/tcl/tclListObj.c:16:
external/tcl/tclListObj.c: In function ‘SetListFromAny’:
external/tcl/tclInt.h:1752:21: warning: the address of ‘length’ will always evaluate as ‘true’ [-Waddress]
 1752 |         ((lengthPtr)? \
      |                     ^
external/tcl/tclListObj.c:791:14: note: in expansion of macro ‘TclGetStringFromObj’
  791 |     string = TclGetStringFromObj(objPtr, &length);
      |              ^~~~~~~~~~~~~~~~~~~
>> Compiling external/tcl/tclNamesp.c
>> Compiling external/tcl/tclObj.c
external/tcl/tclObj.c: In function ‘TclAllocateFreeObjects’:
external/tcl/tclObj.c:461:3: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  461 |  ((int)(&(tmp[1])) - (int)(&(tmp[0])));
      |   ^
external/tcl/tclObj.c:461:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  461 |  ((int)(&(tmp[1])) - (int)(&(tmp[0])));
      |                      ^
In file included from external/tcl/tclObj.c:15:
external/tcl/tclObj.c: In function ‘SetBooleanFromAny’:
external/tcl/tclInt.h:1752:21: warning: the address of ‘length’ will always evaluate as ‘true’ [-Waddress]
 1752 |         ((lengthPtr)? \
      |                     ^
external/tcl/tclObj.c:828:14: note: in expansion of macro ‘TclGetStringFromObj’
  828 |     string = TclGetStringFromObj(objPtr, &length);
      |              ^~~~~~~~~~~~~~~~~~~
external/tcl/tclObj.c: In function ‘SetDoubleFromAny’:
external/tcl/tclInt.h:1752:21: warning: the address of ‘length’ will always evaluate as ‘true’ [-Waddress]
 1752 |         ((lengthPtr)? \
      |                     ^
external/tcl/tclObj.c:1129:14: note: in expansion of macro ‘TclGetStringFromObj’
 1129 |     string = TclGetStringFromObj(objPtr, &length);
      |              ^~~~~~~~~~~~~~~~~~~
external/tcl/tclObj.c: In function ‘SetIntFromAny’:
external/tcl/tclInt.h:1752:21: warning: the address of ‘length’ will always evaluate as ‘true’ [-Waddress]
 1752 |         ((lengthPtr)? \
      |                     ^
external/tcl/tclObj.c:1419:14: note: in expansion of macro ‘TclGetStringFromObj’
 1419 |     string = TclGetStringFromObj(objPtr, &length);
      |              ^~~~~~~~~~~~~~~~~~~
>> Compiling external/tcl/tclParse.c
>> Compiling external/tcl/tclPreserve.c
>> Compiling external/tcl/tclProc.c
external/tcl/tclProc.c: In function ‘TclObjInterpProc’:
external/tcl/tclProc.c:833:43: warning: unused variable ‘length’ [-Wunused-variable]
  833 |     int nameLen, localCt, numArgs, argCt, length, i, result;
      |                                           ^~~~~~
external/tcl/tclProc.c:832:22: warning: unused variable ‘bytes’ [-Wunused-variable]
  832 |     char *procName, *bytes;
      |                      ^~~~~
external/tcl/tclProc.c: In function ‘TclCreateProc’:
external/tcl/tclProc.c:347:40: warning: ‘localPtr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  347 |                     || (strcmp(localPtr->name, fieldValues[0]))
      |                                ~~~~~~~~^~~~~~
>> Compiling external/tcl/tclResolve.c
>> Compiling external/tcl/tclStringObj.c
In file included from external/tcl/tclInt.h:33,
                 from external/tcl/tclStringObj.c:20:
external/tcl/tclStringObj.c: In function ‘Tcl_AppendStringsToObj’:
external/tcl/tcl.h:156:69: warning: right-hand operand of comma expression has no effect [-Wunused-value]
  156 | #   define TCL_VARARGS_START(type, name, list) (va_start(list, name), name)
      |                                                ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
external/tcl/tclStringObj.c:337:5: note: in expansion of macro ‘TCL_VARARGS_START’
  337 |     TCL_VARARGS_START(Tcl_Obj *,arg1,argList);
      |     ^~~~~~~~~~~~~~~~~
>> Compiling external/tcl/tclUtil.c
In file included from external/tcl/tclUtil.c:16:
external/tcl/tclUtil.c: In function ‘Tcl_ConcatObj’:
external/tcl/tclInt.h:1752:21: warning: the address of ‘length’ will always evaluate as ‘true’ [-Waddress]
 1752 |         ((lengthPtr)? \
      |                     ^
external/tcl/tclUtil.c:980:12: note: in expansion of macro ‘TclGetStringFromObj’
  980 |  element = TclGetStringFromObj(objPtr, &length);
      |            ^~~~~~~~~~~~~~~~~~~
external/tcl/tclInt.h:1752:21: warning: the address of ‘elemLength’ will always evaluate as ‘true’ [-Waddress]
 1752 |         ((lengthPtr)? \
      |                     ^
external/tcl/tclUtil.c:1010:16: note: in expansion of macro ‘TclGetStringFromObj’
 1010 |      element = TclGetStringFromObj(objPtr, &elemLength);
      |                ^~~~~~~~~~~~~~~~~~~
In file included from external/tcl/tclInt.h:33,
                 from external/tcl/tclUtil.c:16:
external/tcl/tclUtil.c: In function ‘Tcl_AppendResult’:
external/tcl/tcl.h:156:69: warning: right-hand operand of comma expression has no effect [-Wunused-value]
  156 | #   define TCL_VARARGS_START(type, name, list) (va_start(list, name), name)
      |                                                ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
external/tcl/tclUtil.c:1483:5: note: in expansion of macro ‘TCL_VARARGS_START’
 1483 |     TCL_VARARGS_START(Tcl_Interp *,arg1,argList);
      |     ^~~~~~~~~~~~~~~~~
In file included from external/tcl/tclUtil.c:16:
external/tcl/tclUtil.c: In function ‘TclGetIntForIndex’:
external/tcl/tclInt.h:1752:21: warning: the address of ‘length’ will always evaluate as ‘true’ [-Waddress]
 1752 |         ((lengthPtr)? \
      |                     ^
external/tcl/tclUtil.c:2578:13: note: in expansion of macro ‘TclGetStringFromObj’
 2578 |     bytes = TclGetStringFromObj(objPtr, &length);
      |             ^~~~~~~~~~~~~~~~~~~
>> Compiling external/tcl/tclVar.c
In file included from external/tcl/tclVar.c:20:
external/tcl/tclVar.c: In function ‘Tcl_LappendObjCmd’:
external/tcl/tclInt.h:1752:21: warning: the address of ‘nameBytes’ will always evaluate as ‘true’ [-Waddress]
 1752 |         ((lengthPtr)? \
      |                     ^
external/tcl/tclVar.c:2676:13: note: in expansion of macro ‘TclGetStringFromObj’
 2676 |      name = TclGetStringFromObj(objv[1], &nameBytes);
      |             ^~~~~~~~~~~~~~~~~~~
>> Building libDelphesNoFastJet.so
>> Generating tmp/modules/FastJetDict.cc
>> Compiling tmp/modules/FastJetDict.cc
>> Compiling external/PUPPI/PuppiAlgo.cc
>> Compiling external/PUPPI/PuppiContainer.cc
>> Compiling external/PUPPI/puppiCleanContainer.cc
>> Compiling external/fastjet/AreaDefinition.cc
>> Compiling external/fastjet/BasicRandom.cc
>> Compiling external/fastjet/ClosestPair2D.cc
make: Circular external/fastjet/JetDefinition.hh <- external/fastjet/ClusterSequence.hh dependency dropped.
>> Compiling external/fastjet/ClusterSequence.cc
>> Compiling external/fastjet/ClusterSequence1GhostPassiveArea.cc
>> Compiling external/fastjet/ClusterSequenceActiveArea.cc
>> Compiling external/fastjet/ClusterSequenceActiveAreaExplicitGhosts.cc
>> Compiling external/fastjet/ClusterSequenceArea.cc
>> Compiling external/fastjet/ClusterSequenceAreaBase.cc
>> Compiling external/fastjet/ClusterSequencePassiveArea.cc
>> Compiling external/fastjet/ClusterSequenceStructure.cc
>> Compiling external/fastjet/ClusterSequenceVoronoiArea.cc
>> Compiling external/fastjet/ClusterSequence_CP2DChan.cc
>> Compiling external/fastjet/ClusterSequence_Delaunay.cc
>> Compiling external/fastjet/ClusterSequence_DumbN3.cc
>> Compiling external/fastjet/ClusterSequence_N2.cc
>> Compiling external/fastjet/ClusterSequence_TiledN2.cc
>> Compiling external/fastjet/CompositeJetStructure.cc
>> Compiling external/fastjet/Dnn2piCylinder.cc
>> Compiling external/fastjet/Dnn3piCylinder.cc
>> Compiling external/fastjet/Dnn4piCylinder.cc
>> Compiling external/fastjet/DnnPlane.cc
>> Compiling external/fastjet/Error.cc
>> Compiling external/fastjet/FunctionOfPseudoJet.cc
>> Compiling external/fastjet/GhostedAreaSpec.cc
>> Compiling external/fastjet/JetDefinition.cc
>> Compiling external/fastjet/LazyTiling25.cc
>> Compiling external/fastjet/LazyTiling9.cc
>> Compiling external/fastjet/LazyTiling9Alt.cc
>> Compiling external/fastjet/LazyTiling9SeparateGhosts.cc
>> Compiling external/fastjet/LimitedWarning.cc
>> Compiling external/fastjet/MinHeap.cc
>> Compiling external/fastjet/PseudoJet.cc
>> Compiling external/fastjet/PseudoJetStructureBase.cc
>> Compiling external/fastjet/RangeDefinition.cc
>> Compiling external/fastjet/RectangularGrid.cc
>> Compiling external/fastjet/Selector.cc
>> Compiling external/fastjet/TilingExtent.cc
>> Compiling external/fastjet/Voronoi.cc
>> Compiling external/fastjet/contribs/Nsubjettiness/AxesDefinition.cc
>> Compiling external/fastjet/contribs/Nsubjettiness/ExtraRecombiners.cc
>> Compiling external/fastjet/contribs/Nsubjettiness/MeasureDefinition.cc
>> Compiling external/fastjet/contribs/Nsubjettiness/Njettiness.cc
>> Compiling external/fastjet/contribs/Nsubjettiness/NjettinessPlugin.cc
>> Compiling external/fastjet/contribs/Nsubjettiness/Nsubjettiness.cc
>> Compiling external/fastjet/contribs/Nsubjettiness/TauComponents.cc
>> Compiling external/fastjet/contribs/Nsubjettiness/XConePlugin.cc
>> Compiling external/fastjet/contribs/RecursiveTools/BottomUpSoftDrop.cc
>> Compiling external/fastjet/contribs/RecursiveTools/IteratedSoftDrop.cc
>> Compiling external/fastjet/contribs/RecursiveTools/ModifiedMassDropTagger.cc
>> Compiling external/fastjet/contribs/RecursiveTools/Recluster.cc
>> Compiling external/fastjet/contribs/RecursiveTools/RecursiveSoftDrop.cc
>> Compiling external/fastjet/contribs/RecursiveTools/RecursiveSymmetryCutBase.cc
>> Compiling external/fastjet/contribs/RecursiveTools/SoftDrop.cc
>> Compiling external/fastjet/contribs/SoftKiller/SoftKiller.cc
>> Compiling external/fastjet/contribs/ValenciaPlugin/ValenciaPlugin.cc
>> Compiling external/fastjet/plugins/ATLASCone/ATLASConePlugin.cc
>> Compiling external/fastjet/plugins/ATLASCone/Jet.cc
>> Compiling external/fastjet/plugins/ATLASCone/JetConeFinderTool.cc
>> Compiling external/fastjet/plugins/ATLASCone/JetSplitMergeTool.cc
>> Compiling external/fastjet/plugins/CDFCones/CDFJetCluPlugin.cc
>> Compiling external/fastjet/plugins/CDFCones/CDFMidPointPlugin.cc
>> Compiling external/fastjet/plugins/CDFCones/JetCluAlgorithm.cc
>> Compiling external/fastjet/plugins/CDFCones/MidPointAlgorithm.cc
>> Compiling external/fastjet/plugins/CMSIterativeCone/CMSIterativeConePlugin.cc
>> Compiling external/fastjet/plugins/D0RunICone/D0RunIBaseConePlugin.cc
>> Compiling external/fastjet/plugins/D0RunIICone/D0RunIIConePlugin.cc
>> Compiling external/fastjet/plugins/EECambridge/EECambridgePlugin.cc
>> Compiling external/fastjet/plugins/GridJet/GridJetPlugin.cc
>> Compiling external/fastjet/plugins/Jade/JadePlugin.cc
>> Compiling external/fastjet/plugins/NestedDefs/NestedDefsPlugin.cc
>> Compiling external/fastjet/plugins/SISCone/SISConePlugin.cc
>> Compiling external/fastjet/plugins/SISCone/area.cc
>> Compiling external/fastjet/plugins/SISCone/geom_2d.cc
>> Compiling external/fastjet/plugins/SISCone/hash.cc
>> Compiling external/fastjet/plugins/SISCone/momentum.cc
>> Compiling external/fastjet/plugins/SISCone/protocones.cc
>> Compiling external/fastjet/plugins/SISCone/quadtree.cc
>> Compiling external/fastjet/plugins/SISCone/ranlux.cc
>> Compiling external/fastjet/plugins/SISCone/reference.cc
>> Compiling external/fastjet/plugins/SISCone/siscone.cc
>> Compiling external/fastjet/plugins/SISCone/siscone_error.cc
>> Compiling external/fastjet/plugins/SISCone/split_merge.cc
>> Compiling external/fastjet/plugins/SISCone/vicinity.cc
>> Compiling external/fastjet/plugins/TrackJet/TrackJetPlugin.cc
>> Compiling external/fastjet/tools/BackgroundEstimatorBase.cc
>> Compiling external/fastjet/tools/CASubJetTagger.cc
>> Compiling external/fastjet/tools/Filter.cc
>> Compiling external/fastjet/tools/GridMedianBackgroundEstimator.cc
>> Compiling external/fastjet/tools/JHTopTagger.cc
>> Compiling external/fastjet/tools/JetMedianBackgroundEstimator.cc
>> Compiling external/fastjet/tools/MassDropTagger.cc
>> Compiling external/fastjet/tools/Pruner.cc
>> Compiling external/fastjet/tools/Recluster.cc
>> Compiling external/fastjet/tools/RestFrameNSubjettinessTagger.cc
>> Compiling external/fastjet/tools/Subtractor.cc
>> Compiling external/fastjet/tools/TopTaggerBase.cc
>> Compiling modules/FastJetFinder.cc
modules/FastJetFinder.cc: In member function ‘virtual void FastJetFinder::Process()’:
modules/FastJetFinder.cc:381:20: warning: catching polymorphic type ‘class fastjet::Error’ by value [-Wcatch-value=]
  381 |     catch(fastjet::Error)
      |                    ^~~~~
>> Compiling modules/FastJetGridMedianEstimator.cc
>> Compiling modules/RunPUPPI.cc
>> Building libDelphes.so
>> Copying ClassesDict_rdict.pcm
>> Copying ExRootAnalysisDict_rdict.pcm
>> Copying ModulesDict_rdict.pcm
>> Copying FastJetDict_rdict.pcm
>> Compiling converters/hepmc2pileup.cpp
>> Building hepmc2pileup
>> Compiling converters/lhco2root.cpp
>> Building lhco2root
>> Compiling converters/pileup2root.cpp
>> Building pileup2root
>> Compiling converters/root2lhco.cpp
converters/root2lhco.cpp: In member function ‘void LHCOWriter::AnalyseTauJets()’:
converters/root2lhco.cpp:342:10: warning: unused variable ‘track’ [-Wunused-variable]
  342 |   Track *track;
      |          ^~~~~
>> Building root2lhco
>> Compiling converters/root2pileup.cpp
>> Building root2pileup
>> Compiling converters/stdhep2pileup.cpp
>> Building stdhep2pileup
>> Compiling examples/CaloGrid.cpp
>> Building CaloGrid
>> Compiling examples/Example1.cpp
In file included from examples/Example1.cpp:50:
examples/Example1.C: In function ‘void Example1(const char*)’:
examples/Example1.C:32:17: warning: unused variable ‘branchEvent’ [-Wunused-variable]
   32 |   TClonesArray *branchEvent = treeReader->UseBranch("Event");
      |                 ^~~~~~~~~~~
>> Building Example1
>> Compiling validation/DelphesValidation.cpp
validation/DelphesValidation.cpp: In function ‘std::pair<double, double> GausFit(TH1*)’:
validation/DelphesValidation.cpp:1196:109: error: invalid use of incomplete type ‘class TF1’
 1196 | hist->GetMean() - 2 * hist->GetRMS(), hist->GetMean() + 2 * hist->GetRMS());
      |                                                                           ^

In file included from validation/DelphesValidation.cpp:32:
/home/ellen/Software/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’
   36 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1199:37: error: invalid use of incomplete type ‘class TF1’
 1199 |   TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
      |                                     ^~
In file included from validation/DelphesValidation.cpp:32:
/home/ellen/Software/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’
   36 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1199:63: error: invalid use of incomplete type ‘class TF1’
 1199 |   TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
      |                                                               ^~
In file included from validation/DelphesValidation.cpp:32:
/home/ellen/Software/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’
   36 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1199:84: error: invalid use of incomplete type ‘class TF1’
 1199 |  = new TF1("f2", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
      |                                                                           ^~

In file included from validation/DelphesValidation.cpp:32:
/home/ellen/Software/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’
   36 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1199:110: error: invalid use of incomplete type ‘class TF1’
 1199 | 1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
      |                                                                           ^~

In file included from validation/DelphesValidation.cpp:32:
/home/ellen/Software/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’
   36 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1199:127: error: invalid use of incomplete type ‘class TF1’
 1199 | ) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
      |                                                                           ^

In file included from validation/DelphesValidation.cpp:32:
/home/ellen/Software/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’
   36 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1202:20: error: invalid use of incomplete type ‘class TF1’
 1202 |   Double_t sig = f2->GetParameter(2);
      |                    ^~
In file included from validation/DelphesValidation.cpp:32:
/home/ellen/Software/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’
   36 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1203:23: error: invalid use of incomplete type ‘class TF1’
 1203 |   Double_t sigErr = f2->GetParError(2);
      |                       ^~
In file included from validation/DelphesValidation.cpp:32:
/home/ellen/Software/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’
   36 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1205:10: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
 1205 |   delete f1;
      |          ^~
validation/DelphesValidation.cpp:1196:8: warning: ‘f1’ has incomplete type
 1196 |   TF1 *f1 = new TF1("f1", "gaus", hist->GetMean() - 2 * hist->GetRMS(), hist->GetMean() + 2 * hist->GetRMS());
      |        ^~
In file included from validation/DelphesValidation.cpp:32:
/home/ellen/Software/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’
   36 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1205:10: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
 1205 |   delete f1;
      |          ^~
validation/DelphesValidation.cpp:1206:10: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
 1206 |   delete f2;
      |          ^~
validation/DelphesValidation.cpp:1199:8: warning: ‘f2’ has incomplete type
 1199 |   TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2 * f1->GetParameter(2), f1->GetParameter(1) + 2 * f1->GetParameter(2));
      |        ^~
In file included from validation/DelphesValidation.cpp:32:
/home/ellen/Software/root/include/TGraph.h:36:7: note: forward declaration of ‘class TF1’
   36 | class TF1;
      |       ^~~
validation/DelphesValidation.cpp:1206:10: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
 1206 |   delete f2;
      |          ^~
validation/DelphesValidation.cpp: In function ‘void DelphesValidation(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)’:
validation/DelphesValidation.cpp:1497:17: warning: unused variable ‘branchParticleBJet’ [-Wunused-variable]
 1497 |   TClonesArray *branchParticleBJet = treeReaderBJet->UseBranch("Particle");
      |                 ^~~~~~~~~~~~~~~~~~
validation/DelphesValidation.cpp:1500:17: warning: unused variable ‘branchParticleCJet’ [-Wunused-variable]
 1500 |   TClonesArray *branchParticleCJet = treeReaderCJet->UseBranch("Particle");
      |                 ^~~~~~~~~~~~~~~~~~
make: *** [Makefile:2447: tmp/validation/DelphesValidation.o] Error 1

Change History (3)

comment:1 by Pavel Demin, 4 years ago

This error was already discussed in #1448 and the fix is in the git repository.

Please try the latest version from the following link:

​​​https://github.com/delphes/delphes/archive/master.zip

comment:2 by Ellen Riefel, 4 years ago

Sorry I did not find that that ticket, but that worked. Thanks so much!

comment:3 by Ellen Riefel, 4 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.