Fork me on GitHub

Opened 4 years ago

Closed 4 years ago

#1459 closed Bug (fixed)

Build issues

Reported by: Cepheides Owned by:
Priority: critical Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description

I am running on Ubuntu 18.04. I am trying to install Delphes by following the Quick Tour and I am trying to build Delphes with the command

make -j 4

However, when I run this command, here is my output:

>> Building libDelphesNoFastJet.so
make: Circular external/fastjet/JetDefinition.hh <- external/fastjet/ClusterSequence.hh dependency dropped.
>> Compiling external/fastjet/Dnn2piCylinder.cc
>> Compiling external/fastjet/contribs/RecursiveTools/RecursiveSoftDrop.cc
>> Compiling external/fastjet/plugins/ATLASCone/ATLASConePlugin.cc
>> Compiling external/fastjet/plugins/CDFCones/CDFJetCluPlugin.cc
>> Compiling external/fastjet/plugins/CDFCones/CDFMidPointPlugin.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/TrackJet/TrackJetPlugin.cc
>> Compiling validation/DelphesValidation.cpp
>> Compiling external/PUPPI/PuppiContainer.cc
>> Compiling external/PUPPI/puppiCleanContainer.cc
>> Compiling external/fastjet/ClusterSequence_CP2DChan.cc
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 |   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/nick/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/nick/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/nick/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 |   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/nick/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 |   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/nick/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 |   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/nick/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/nick/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/nick/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/nick/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/nick/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");
      |                 ^~~~~~~~~~~~~~~~~~
Makefile:2445: recipe for target 'tmp/validation/DelphesValidation.o' failed
make: *** [tmp/validation/DelphesValidation.o] Error 1
make: *** Waiting for unfinished jobs....

Any suggestions?

Change History (1)

comment:1 by Pavel Demin, 4 years ago

Resolution: fixed
Status: newclosed

The fix is in the new release (3.5.0).

Note: See TracTickets for help on using tickets.