compilation error on lx plus

Asked by Muhammad Irfan

Hi,
when i tried to generate process p p > t t~ setting
set pdlabel = lhapdf
set 11000 =lhaid
it give me compilation error

INFO: compile directory
INFO: Using LHAPDF v6.3.0 interface for PDFs
compile Source Directory
Error detected in "generate_events run_02"
write debug file /afs/cern.ch/user/i/irfan/MG5_aMC_v2_6_5/wc/run_02_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
MadGraph5Error : A compilation Error occurs when trying to compile /afs/cern.ch/user/i/irfan/MG5_aMC_v2_6_5/wc/Source.
 The compilation fails with the following output message:
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o setrun.o setrun.f
     cd PDF; make
     cd MODEL; make
     make[1]: Entering directory `/afs/cern.ch/user/i/irfan/MG5_aMC_v2_6_5/wc/Source/PDF'
     make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
     make[1]: Entering directory `/afs/cern.ch/user/i/irfan/MG5_aMC_v2_6_5/wc/Source/MODEL'
     make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o rw_para.o rw_para.f
     ar cru ../../lib/libmodel.a couplings.o lha_read.o printout.o rw_para.o model_functions.o couplings1.o couplings2.o
     g++ -O -O3 -I/afs/cern.ch/user/i/irfan/LHAPDF/include -c -o pdf_lhapdf6.o pdf_lhapdf6.cc
     ranlib ../../lib/libmodel.a
     ar cru ../lib/libgeneric.a alfas_functions_lhapdf.o transpole.o invarients.o hfill.o pawgraphs.o ran1.o rw_events.o rw_routines.o kin_functions.o open_file.o basecode.o setrun.o run_printout.o dgauss.o readgrid.o getissud.o
     make[1]: Leaving directory `/afs/cern.ch/user/i/irfan/MG5_aMC_v2_6_5/wc/Source/MODEL'
     ranlib ../lib/libgeneric.a
     In file included from /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDFInfo.h:10:0,
                      from /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:10,
                      from pdf_lhapdf6.cc:6:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/Info.h: In member function ‘T LHAPDF::Info::get_entry_as(const string&) const [with T = std::vector<int>; std::string = std::basic_string<char>]’:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/Info.h:189:28: error: range-based ‘for’ loops are not allowed in C++98 mode
          for (const string& s : strs) rtn.push_back( lexical_cast<int>(s) );
                                 ^
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/Info.h: In member function ‘T LHAPDF::Info::get_entry_as(const string&) const [with T = std::vector<double>; std::string = std::basic_string<char>]’:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/Info.h:199:28: error: range-based ‘for’ loops are not allowed in C++98 mode
          for (const string& s : strs) rtn.push_back( lexical_cast<double>(s) );
                                 ^
     In file included from /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/AlphaS.h:12:0,
                      from /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:13,
                      from pdf_lhapdf6.cc:6:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/KnotArray.h: At global scope:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/KnotArray.h:175:25: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
          size_t _xgridhash = 0;
                              ^
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/KnotArray.h:182:26: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
          size_t _q2gridhash = 0;
                               ^
     In file included from pdf_lhapdf6.cc:6:0:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:30:13: error: ‘unique_ptr’ does not name a type
          typedef unique_ptr<AlphaS> AlphaSPtr;
                  ^
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:464:20: error: ‘AlphaSPtr’ has not been declared
          void setAlphaS(AlphaSPtr alphas) {
                         ^
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:524:13: error: ‘AlphaSPtr’ does not name a type
          mutable AlphaSPtr _alphas;
                  ^
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h: In member function ‘void LHAPDF::PDF::setAlphaS(LHAPDF::AlphaS*)’:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:460:7: error: ‘_alphas’ was not declared in this scope
            _alphas.reset(alphas);
            ^
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h: In member function ‘void LHAPDF::PDF::setAlphaS(int)’:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:465:7: error: ‘_alphas’ was not declared in this scope
            _alphas = std::move(alphas);
            ^
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:465:17: error: ‘move’ is not a member of ‘std’
            _alphas = std::move(alphas);
                      ^
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h: In member function ‘bool LHAPDF::PDF::hasAlphaS() const’:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:470:19: error: ‘_alphas’ was not declared in this scope
            return bool(_alphas);
                        ^
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h: In member function ‘LHAPDF::AlphaS& LHAPDF::PDF::alphaS()’:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:475:15: error: ‘_alphas’ was not declared in this scope
            return *_alphas;
                    ^
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h: In member function ‘const LHAPDF::AlphaS& LHAPDF::PDF::alphaS() const’:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:480:15: error: ‘_alphas’ was not declared in this scope
            return *_alphas;
                    ^
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h: In member function ‘double LHAPDF::PDF::alphasQ2(double) const’:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:497:14: error: ‘_alphas’ was not declared in this scope
            return _alphas->alphasQ2(q2);
                   ^
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h: In member function ‘void LHAPDF::PDF::_loadAlphaS()’:
     /afs/cern.ch/user/i/irfan/LHAPDF/include/LHAPDF/PDF.h:506:7: error: ‘_alphas’ was not declared in this scope
            _alphas.reset( mkAlphaS(info()) );
            ^
     make[1]: *** [pdf_lhapdf6.o] Error 1
     make[1]: Leaving directory `/afs/cern.ch/user/i/irfan/MG5_aMC_v2_6_5/wc/Source/PDF'
     make: *** [../lib/libpdf.a] Error 2

 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

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

MG5aMC 2.6.5 (very old version not supported anymore) is likely not compatible with lhapdf 6.3.0 (which support has been added later).

So my advise is to update to our Long Term Stable version (2.9.x) or to downgrade lhapdf to 6.2.x

Cheers,

Olivier

Revision history for this message
Muhammad Irfan (iwan1234) said :
#2

1) But the version (2.9.x) is not compatible with the python version available on lxplus.
 Is there any solution to this issue?

2)I will also check it by downgrading lhapdf.
Thank you
Muhammad Irfan

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

Hi,

1) But the version (2.9.x) is not compatible with the python version available on lxplus.
 Is there any solution to this issue?

I do not know lxplus setup, but I strongly doubt that lxplus has ONLY python2.6 installed/available.
Please check the documentation.

The default python (python2.7) on centos7 is enough to run MG5aMC version 2.9.X
but you need to run it like
python2.7 ./bin/mg5_aMC
to force that version of python.
2.9.X is also python3.7 compatible and for sure you should have that version accessible on lxplus too.

Cheers,

Olivier

PS: CMS ask us to move to python3 before end of 2020 because lxplus was expected to drop python2 support, so I strongly doubt that no python3 version is available

Can you help with this problem?

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

To post a message you must log in.