#253 closed Bug (fixed)
problem to compile Delphes
Reported by: | olivier | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Delphes code | Version: | Delphes 3 |
Keywords: | Cc: |
Description
reported at :https://answers.launchpad.net/mg5amcnlo/+question/243825
I'm having troubles to compile Delphes :
/cvmfs/cms.cern.ch/slc6_amd64_gcc472/external/gcc/4.7.2-cms/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../x86_64-unknown-linux-gnu/bin/ld: tmp/readers/DelphesCMSFWLite.o: undefined reference to symbol '_ZN4ROOT4Math9GenVector5ThrowEPKc'
/cvmfs/cms.cern.ch/slc6_amd64_gcc472/external/gcc/4.7.2-cms/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../x86_64-unknown-linux-gnu/bin/ld: note: '_ZN4ROOT4Math9GenVector5ThrowEPKc' is defined in DSO /cvmfs/cms.cern.ch/slc6_amd64_gcc472/cms/cmssw/CMSSW_6_2_6/external/slc6_amd64_gcc472/lib/libGenVector.so so try adding it to the linker command line
/cvmfs/cms.cern.ch/slc6_amd64_gcc472/cms/cmssw/CMSSW_6_2_6/external/slc6_amd64_gcc472/lib/libGenVector.so: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
This problem can be fixed by adding '-lGenVector' to the DELPHES_LIBS variable in Delphes Makefile on line 32. Here is how this line looks after the modification:
The fix is in trunk now and will be available in the next release.
I've put together a patch release with just this fix. It's now downloaded by default when you type 'install Delphes' from the mg5 and mg5_amc command line.