Compilation error with lhapdf-6.1.6

Asked by Matt

Hello Madgraph team,

I'm trying to run a process by linking (with the correct syntax) lhapdf-6.1.6 correctly installed in my pc (in CalcHEP worked fine), but indeed I have found this error:

MadGraph5Error: A compilation Error occurs when trying to compile /home/matteo/MG5_aMC_v2_5_2/ml650-1/SubProcesses/P1_qq_llqq.
The compilation fails with the following output message:
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c symmetry.f -I../../Source/
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
    gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -lmodel -lgeneric -lpdf -lstdc++
    ../../lib//libpdf.a(pdf_lhapdf6.o): nella funzione "lhapdf_getpdfsetlist_":
    pdf_lhapdf6.cc:(.text+0x191): riferimento non definito a "LHAPDF::availablePDFSets()"
    ../../lib//libpdf.a(pdf_lhapdf6.o): nella funzione "getdatapath_":
    pdf_lhapdf6.cc:(.text+0x2b3): riferimento non definito a "LHAPDF::paths()"
    ../../lib//libpdf.a(pdf_lhapdf6.o): nella funzione "setpdfpath_":
    pdf_lhapdf6.cc:(.text+0x44a): riferimento non definito a "LHAPDF::paths()"
    pdf_lhapdf6.cc:(.text+0x5bc): riferimento non definito a "LHAPDF::setPaths(std::string const&)"
    ../../lib//libpdf.a(pdf_lhapdf6.o): nella funzione "lhaglue_get_current_pdf(int)":
    pdf_lhapdf6.cc:(.text+0xefb): riferimento non definito a "LHAPDF::PDF::lhapdfID() const"
    ../../lib//libpdf.a(pdf_lhapdf6.o): nella funzione "alphaspdfm_":
    pdf_lhapdf6.cc:(.text+0x1943): riferimento non definito a "LHAPDF::mkAlphaS(LHAPDF::Info const&)"
    ../../lib//libpdf.a(pdf_lhapdf6.o): nella funzione "getpdfuncertaintym_":
    pdf_lhapdf6.cc:(.text+0x23cc): riferimento non definito a "LHAPDF::PDFSet::uncertainty(std::vector<double, std::allocator<double> > const&, double, bool) const"
    ../../lib//libpdf.a(pdf_lhapdf6.o): nella funzione "getpdfcorrelationm_":
    pdf_lhapdf6.cc:(.text+0x28f2): riferimento non definito a "LHAPDF::PDFSet::correlation(std::vector<double, std::allocator<double> > const&, std::vector<double, std::allocator<double> > const&) const"
    ../../lib//libpdf.a(pdf_lhapdf6.o): nella funzione "LHAPDF::PDF::set() const":
    pdf_lhapdf6.cc:(.text._ZNK6LHAPDF3PDF3setEv[_ZNK6LHAPDF3PDF3setEv]+0x184): riferimento non definito a "LHAPDF::getPDFSet(std::string const&)"
    ../../lib//libpdf.a(pdf_lhapdf6.o): nella funzione "LHAPDF::getPDFIndex()":
    pdf_lhapdf6.cc:(.text._ZN6LHAPDF11getPDFIndexEv[_ZN6LHAPDF11getPDFIndexEv]+0xb2): riferimento non definito a "LHAPDF::findFile(std::string const&)"
    ../../lib//libpdf.a(pdf_lhapdf6.o): nella funzione "LHAPDF::pathsPrepend(std::string const&)":
    pdf_lhapdf6.cc:(.text._ZN6LHAPDF12pathsPrependERKSs[_ZN6LHAPDF12pathsPrependERKSs]+0xd): riferimento non definito a "LHAPDF::paths()"
    pdf_lhapdf6.cc:(.text._ZN6LHAPDF12pathsPrependERKSs[_ZN6LHAPDF12pathsPrependERKSs]+0x13d): riferimento non definito a "LHAPDF::setPaths(std::string const&)"
    ../../lib//libpdf.a(pdf_lhapdf6.o): nella funzione "lhapdf_amc::PDFSetHandler::loadMember(int)":
    pdf_lhapdf6.cc:(.text._ZN10lhapdf_amc13PDFSetHandler10loadMemberEi[_ZN10lhapdf_amc13PDFSetHandler10loadMemberEi]+0x111): riferimento non definito a "LHAPDF::mkPDF(std::string const&, int)"
    collect2: error: ld returned 1 exit status
    make: *** [gensym] Errore 1

Please try to fix this compilations issue and retry.
Help might be found at https://answers.launchpad.net/mg5amcnlo.
If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo

Pleas note that I am working in a SL7 machine.

Thank you in advance!

Question information

Language:
English Edit question
Status:
Needs information
For:
MadGraph5_aMC@NLO Edit question
Assignee:
marco zaro Edit question
Last query:
Last reply:
Revision history for this message
marco zaro (marco-zaro) said :
#1

Dear Matteo,
when you compiled LHAPDF did you use the same version of compilers as those you use in MG5_aMC?

It looks like the error is due to some compiler clash...

Cheers,

Marco

Can you help with this problem?

Provide an answer of your own, or ask Matt for more information if necessary.

To post a message you must log in.