Fork me on GitHub

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#306 closed Bug (fixed)

Error compiling Delphes 3.1.2 on lxplus

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

Description (last modified by Pavel Demin)

Dear Delphes Team,

Following the instructions I successfully installed Delphes 3.1.2 on lxplus.

But running the make step "make -j 4", gave the following errors:

>> Generating tmp/classes/ClassesDict.cc
>> Generating tmp/modules/ModulesDict.cc
>> Compiling classes/DelphesHepMCReader.cc
>> Generating tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc
classes/DelphesHepMCReader.cc:28:26: error: TDatabasePDG.h: No such file or directory
classes/DelphesHepMCReader.cc:29:26: error: TParticlePDG.h: No such file or directory
classes/DelphesHepMCReader.cc: In constructor â:
classes/DelphesHepMCReader.cc:51: error: incomplete type â used in nested name specifier
classes/DelphesHepMCReader.cc: In member function â:
classes/DelphesHepMCReader.cc:328: error: â was not declared in this scope
classes/DelphesHepMCReader.cc:328: error: â was not declared in this scope
classes/DelphesHepMCReader.cc:338: error: invalid use of incomplete type â
./classes/DelphesHepMCReader.h:24: error: forward declaration of â
make: *** [tmp/classes/DelphesHepMCReader.o] Error 1
make: *** Waiting for unfinished jobs....
>> Compiling classes/DelphesLHEFReader.cc
classes/DelphesLHEFReader.cc:25:26: error: TDatabasePDG.h: No such file or directory
classes/DelphesLHEFReader.cc:26:26: error: TParticlePDG.h: No such file or directory
classes/DelphesLHEFReader.cc: In constructor â:
classes/DelphesLHEFReader.cc:47: error: incomplete type â used in nested name specifier
classes/DelphesLHEFReader.cc: In member function â:
classes/DelphesLHEFReader.cc:216: error: â was not declared in this scope
classes/DelphesLHEFReader.cc:216: error: â was not declared in this scope
classes/DelphesLHEFReader.cc:226: error: invalid use of incomplete type â
./classes/DelphesLHEFReader.h:23: error: forward declaration of â
make: *** [tmp/classes/DelphesLHEFReader.o] Error 1

I use ROOT 5.34/18, working fine for any other stuff.

Any idea about how to solve that problem? Any new tutorial session foreseen (I unfortunately missed that for FCC)?

Best regards,

Elizabeth Locci

Change History (7)

comment:1 by Pavel Demin, 10 years ago

Dear Elizabeth,

Could you, please tell me what commands are you using to configure GCC and ROOT on lxplus?

I've just tried the commands similar to the ones listed on the following ROOT's web page and everything worked:

http://root.cern.ch/drupal/content/production-version-534

Here are the commands that I used on lxplus (SLC6):

source /afs/cern.ch/sw/lcg/external/gcc/4.7/x86_64-slc6/setup.sh
source /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.18/x86_64-slc6-gcc47-opt/root/bin/thisroot.sh
wget http://cp3.irmp.ucl.ac.be/downloads/Delphes-3.1.2.tar.gz
cd Delphes-3.1.2
make -j 4

Regards,

Pavel

comment:2 by locci, 10 years ago

Dear Pavel,

This version of ROOT had been installed a few months ago, and, since I was not 100% sure about the way I had done it, I have re-installed ROOT following the same instructions, but for a csh shell, and things get worse:

Generating tmp/classes/ClassesDict.cc
Generating tmp/modules/ModulesDict.cc
Generating tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc
Compiling classes/DelphesHepMCReader.cc
Compiling classes/DelphesLHEFReader.cc
Compiling classes/DelphesTF2.cc

In file included from /usr/include/stdio.h:929:0,

from ./classes/DelphesLHEFReader.h:17,
from classes/DelphesLHEFReader.cc:15:

/usr/include/bits/stdio.h: In function â:
/usr/include/bits/stdio.h:118:52: error: â was not declared in this scope
In file included from /afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/bits/localefwd.h:42:0,

from /afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/string:45,
from /afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/stdexcept:40,
from classes/DelphesLHEFReader.cc:17:

/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h: At global scope:
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:23: error: â was not declared in this scope
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:45: error: invalid type in declaration before â token
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h: In function â:
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:76:53: error: â cannot be used as a function
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:101:33: error: â cannot be used as a function
In file included from /usr/include/stdio.h:929:0,

from ./classes/DelphesHepMCReader.h:20,
from classes/DelphesHepMCReader.cc:15:

/usr/include/bits/stdio.h: In function â:
/usr/include/bits/stdio.h:118:52: error: â was not declared in this scope
In file included from /afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/bits/localefwd.h:42:0,

from /afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/string:45,
from /afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/stdexcept:40,
from classes/DelphesHepMCReader.cc:17:

/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h: At global scope:
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:23: error: â was not declared in this scope
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:45: error: invalid type in declaration before â token
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h: In function â:
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:76:53: error: â cannot be used as a function
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:101:33: error: â cannot be used as a function
In file included from /usr/include/stdio.h:929:0,

from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/Rtypes.h:33,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TObject.h:31,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TNamed.h:26,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TFormula.h:27,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TF1.h:27,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TF2.h:27,
from ./classes/DelphesTF2.h:4,
from classes/DelphesTF2.cc:1:

/usr/include/bits/stdio.h: In function â:
/usr/include/bits/stdio.h:118:52: error: â was not declared in this scope
In file included from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/Rtypes.h:34:0,

from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TObject.h:31,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TNamed.h:26,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TFormula.h:27,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TF1.h:27,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TF2.h:27,
from ./classes/DelphesTF2.h:4,
from classes/DelphesTF2.cc:1:

/usr/include/string.h: At global scope:
/usr/include/string.h:548:5: error: â has not been declared
/usr/include/string.h:549:33: error: nonnull argument references non-pointer operand (argument 1, operand 3)
/usr/include/string.h:552:18: error: â has not been declared
/usr/include/string.h:553:33: error: nonnull argument references non-pointer operand (argument 1, operand 4)

Compiling classes/DelphesFactory.cc

In file included from /afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/bits/localefwd.h:42:0,

from /afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/string:45,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TSchemaHelper.h:25,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TGenericClassInfo.h:17,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/Rtypes.h:268,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TObject.h:31,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TNamed.h:26,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TFormula.h:27,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TF1.h:27,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TF2.h:27,
from ./classes/DelphesTF2.h:4,
from classes/DelphesTF2.cc:1:

/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:23: error: â was not declared in this scope
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:45: error: invalid type in declaration before â token
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h: In function â:
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:76:53: error: â cannot be used as a function
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:101:33: error: â cannot be used as a function
In file included from /usr/include/stdio.h:929:0,

from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/Rtypes.h:33,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TObject.h:31,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TNamed.h:26,
from ./classes/DelphesFactory.h:17,
from classes/DelphesFactory.cc:15:

/usr/include/bits/stdio.h: In function â:
/usr/include/bits/stdio.h:118:52: error: â was not declared in this scope
In file included from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/Rtypes.h:34:0,

from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TObject.h:31,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TNamed.h:26,
from ./classes/DelphesFactory.h:17,
from classes/DelphesFactory.cc:15:

/usr/include/string.h: At global scope:
/usr/include/string.h:548:5: error: â has not been declared
/usr/include/string.h:549:33: error: nonnull argument references non-pointer operand (argument 1, operand 3)
/usr/include/string.h:552:18: error: â has not been declared
/usr/include/string.h:553:33: error: nonnull argument references non-pointer operand (argument 1, operand 4)
In file included from /afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/bits/localefwd.h:42:0,

from /afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/string:45,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TSchemaHelper.h:25,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TGenericClassInfo.h:17,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/Rtypes.h:268,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TObject.h:31,
from /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.19/x86_64-slc5-gcc47-opt/root/include/TNamed.h:26,
from ./classes/DelphesFactory.h:17,
from classes/DelphesFactory.cc:15:

/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:23: error: â was not declared in this scope
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:45: error: invalid type in declaration before â token
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h: In function â:
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:76:53: error: â cannot be used as a function
/afs/cern.ch/sw/lcg/contrib/gcc/4.7.2/x86_64-slc5-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/x86_64-unknown-linux-gnu/bits/c++locale.h:101:33: error: â cannot be used as a function
make: * [tmp/classes/DelphesTF2.o] Error 1
make:
* Waiting for unfinished jobs....
make: * [tmp/classes/DelphesHepMCReader.o] Error 1
make:
* [tmp/classes/DelphesLHEFReader.o] Error 1
make: * [tmp/classes/DelphesFactory.o] Error 1

Version 0, edited 10 years ago by locci (next)

comment:3 by Pavel Demin, 10 years ago

We are planning to make a tutorial session next week (July 24) at the IPN Orsay laboratory:

https://indico.in2p3.fr/conferenceDisplay.py?confId=10280

The tutorial session will be from 13:30 to 15:00.

comment:4 by Pavel Demin, 10 years ago

It looks like you are using SLC5 specific commands on a SLC6 machine.

Are you connecting to lxplus or lxplus5?

The commands to setup GCC and ROOT for SLC5 (on lxplus5) are

source /afs/cern.ch/sw/lcg/external/gcc/4.7/x86_64-slc5/setup.csh
source /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.18/x86_64-slc5-gcc47-opt/root/bin/thisroot.csh

The commands for SLC6 (on lxplus) are

source /afs/cern.ch/sw/lcg/external/gcc/4.7/x86_64-slc6/setup.csh
source /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.18/x86_64-slc6-gcc47-opt/root/bin/thisroot.csh

comment:5 by locci, 10 years ago

You are absolutely right. Actually as my mail does not open on the machine I am using, I copied/pasted from the ROOT site, not noticing that the commands were for SLC5; sorry for that.
Now it compiles, with a few warnings, but reaches successful completion.
Many thanks!
I am based at CERN, thus I will have to wait a bit longer for your next tutorial session at CERN.
Best regards,
Elizabeth

comment:6 by Pavel Demin, 10 years ago

Description: modified (diff)

comment:7 by Pavel Demin, 10 years ago

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