compilation issue MG 2.4.3 - error detected in "generate_events run_01"

Asked by Alexander Leopold

Hi! I am using MadGraph 2.4.3 on lxplus

I set up my environment doing the following:
##########################################
setupATLAS
lsetup root

export PYTHONDIR=/afs/cern.ch/sw/lcg/external/Python/2.7.3/x86_64-slc6-gcc48-opt
export PYTHONPATH=$PYTHONPATH:$ROOTSYS/lib
export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH:/opt/rh/python27/root/usr/lib64
export PATH=/afs/cern.ch/work/a/aleopold/private/software/madgraph5/LHAPDF-install/bin:$PATH
export LD_LIBRARY_PATH=/afs/cern.ch/work/a/aleopold/private/software/madgraph4/LHAPDF-install/lib:$LD_LIBRARY_PATH
export PYTHONPATH=/afs/cern.ch/work/a/aleopold/private/software/madgraph4/LHAPDF-install/lib64/python2.7/site-packages:$PYTHONPATH

export PYTHONDIR=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/python/2.7.13-x86_64-slc6-gcc49/2.7.13-597a5/x86_64-slc6-gcc49-opt
export PYTHONPATH=/afs/cern.ch/work/a/aleopold/private/software/madgraph5/LHAPDF-install/lib64/python2.7/site-packages:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.14-x86_64-slc6-gcc49-opt/lib:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.14-x86_64-slc6-gcc49-opt/lib:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.14-x86_64-slc6-gcc49-opt/lib
export LD_LIBRARY_PATH=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.14-x86_64-slc6-gcc49-opt/lib:/afs/cern.ch/sw/lcg/external/Python/2.7.3/x86_64-slc6-gcc48-opt/lib:/afs/cern.ch/work/a/aleopold/private/software/madgraph5/LHAPDF-install/lib:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.14-x86_64-slc6-gcc49-opt/lib:/afs/cern.ch/sw/lcg/external/Python/2.7.3/x86_64-slc6-gcc48-opt/lib:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/davix/0.6.6-x86_64-slc6/lib64:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/xrootd/4.2.3-x86_64-slc6/v4.2.3/lib:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.04.14-x86_64-slc6-gcc49-opt/lib:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/fftw/3.1.2-x86_64-slc6-gcc49-opt/lib:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/gsl/1.10-x86_64-slc6-gcc49-opt/lib:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/python/2.7.13-x86_64-slc6-gcc49/2.7.13-597a5/x86_64-slc6-gcc49-opt/lib:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc493_x86_64_slc6/slc6/gcc49/lib64:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc493_x86_64_slc6/slc6/gcc49/lib::/opt/rh/python27/root/usr/lib64:/opt/rh/python27/root/usr/lib64
##########################################

and then try to generate some susy events with the following script (which has worked in the past and also works for other people)

##########################################
set max_npoint_for_channel 0
import model_v4 mssm
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define susystrong = go ul ur dl dr cl cr sl sr t1 t2 b1 b2 ul~ ur~ dl~ dr~ cl~ cr~ sl~ sr~ t1~ t2~ b1~ b2~
generate p p > x1+ n2 $ susystrong \@1
add process p p > x1- n2 $ susystrong \@2
output SUSY -nojpeg
launch

set run_card ebeam1 6500
set run_card ebeam2 6500
set run_card pdlabel lhapdf
set run_card lhaid 247000
set run_card nevents 10000
set run_card iseed 1
set run_card drjj 0
set mass 1000022 250
set mass 1000023 650
set mass 1000024 650
set mass 25 125
set mass 1000001 5.68441109E+05 # ~d_L^M
set mass 2000001 5.45228462E+05 # ~d_R^M
set mass 1000002 5.61119014E+05 # ~u_L^M
set mass 2000002 5.49259265E+05 # ~u_R^M
set mass 1000003 5.68441109E+05 # ~s_L^M
set mass 2000003 5.45228462E+05 # ~s_R^M
set mass 1000004 5.61119014E+05 # ~c_L^M
set mass 2000004 5.49259265E+05 # ~c_R^M
set mass 1000005 5.13065179E+05 # ~b_1^M
set mass 2000005 5.43726676E+05 # ~b_2^M
set mass 1000006 3.99668493E+05 # ~t_1^M
set mass 2000006 5.85785818E+05 # ~t_2^M
set mass 1000011 2.02915690E+05 # ~e_L^M
set mass 2000011 1.44102799E+05 # ~e_R^M
set mass 1000012 1.85258326E+05 # ~nu_eL^M
set mass 1000013 2.02915690E+05 # ~mu_L^M
set mass 2000013 1.44102799E+05 # ~mu_R^M
set mass 1000014 1.85258326E+05 # ~nu_muL^M
set mass 1000015 1.34490864E+05 # ~tau_1^M
set mass 2000015 2.06867805E+05 # ~tau_2^M
set mass 1000016 1.84708464E+05 # ~nu_tauL^M
set mass 1000021 6.07713704E+05 # ~g^M
set mass 1000025 -3.63756027E+05 # ~chi_30^M
set mass 1000035 3.81729382E+05 # ~chi_40^M
set mass 1000037 3.79939320E+05 # ~chi_2+^M
##########################################

I somehow run into a compilation error. I tried to reinstall the whole thing, but I get the same result:

compile Source Directory
Error detected in "generate_events run_01"
write debug file /afs/cern.ch/work/a/aleopold/private/software/madgraph4/MG5_aMC_v2_4_3/SUSY/run_01_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/work/a/aleopold/private/software/madgraph4/MG5_aMC_v2_4_3/SUSY/Source.
 The compilation fails with the following output message:
     /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc620_x86_64_slc6/6.2.0/x86_64-slc6/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o combine_events.o combine_events.f
     /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc620_x86_64_slc6/6.2.0/x86_64-slc6/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o alfas_functions.o alfas_functions.f
     /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc620_x86_64_slc6/6.2.0/x86_64-slc6/bin/gfortran -lstdc++ -o ../bin/internal/combine_events combine_events.o rw_events.o ranmar.o kin_functions.o open_file.o rw_routines.o alfas_functions.o setrun.o -L../lib/ -lmodel -lpdf -lLHAPDF
     ../lib//libpdf.a(pdf_lhapdf6.o): In function `lhapdf_getpdfsetlist_':
     pdf_lhapdf6.cc:(.text+0x40): undefined reference to `_ZN6LHAPDF16availablePDFSetsB5cxx11Ev'
     ../lib//libpdf.a(pdf_lhapdf6.o): In function `getdatapath_':
     pdf_lhapdf6.cc:(.text+0x286): undefined reference to `_ZN6LHAPDF5pathsB5cxx11Ev'
     ../lib//libpdf.a(pdf_lhapdf6.o): In function `setpdfpath_':
     pdf_lhapdf6.cc:(.text+0x581): undefined reference to `_ZN6LHAPDF5pathsB5cxx11Ev'
     pdf_lhapdf6.cc:(.text+0x7df): undefined reference to `LHAPDF::setPaths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
     ../lib//libpdf.a(pdf_lhapdf6.o): In function `LHAPDF::pathsPrepend(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
     pdf_lhapdf6.cc:(.text._ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x17): undefined reference to `_ZN6LHAPDF5pathsB5cxx11Ev'
     pdf_lhapdf6.cc:(.text._ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x217): undefined reference to `LHAPDF::setPaths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
     ../lib//libpdf.a(pdf_lhapdf6.o): In function `LHAPDF::PDF::set() const':
     pdf_lhapdf6.cc:(.text._ZNK6LHAPDF3PDF3setEv[_ZNK6LHAPDF3PDF3setEv]+0x207): undefined reference to `LHAPDF::getPDFSet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
     ../lib//libpdf.a(pdf_lhapdf6.o): In function `_ZN6LHAPDF11getPDFIndexB5cxx11Ev':
     pdf_lhapdf6.cc:(.text._ZN6LHAPDF11getPDFIndexB5cxx11Ev[_ZN6LHAPDF11getPDFIndexB5cxx11Ev]+0xcb): undefined reference to `LHAPDF::findFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
     ../lib//libpdf.a(pdf_lhapdf6.o): In function `lhapdf_amc::PDFSetHandler::loadMember(int)':
     pdf_lhapdf6.cc:(.text._ZN10lhapdf_amc13PDFSetHandler10loadMemberEi[_ZN10lhapdf_amc13PDFSetHandler10loadMemberEi]+0x192): undefined reference to `LHAPDF::mkPDF(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
     collect2: error: ld returned 1 exit status
     make: *** [../bin/internal/combine_events] Error 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

If there are any hints on to what could cause this I would be very grateful!
Best,
Alex

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
Alexander Leopold (aleopold) said :
#1

from run_01_tag_debug.log:

#************************************************************
#* MadGraph5_aMC@NLO/MadEvent *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.4.3 2016-08-01 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadEvent *
#* *
#* run as ./bin/madevent.py filename *
#* *
#************************************************************
generate_events run_01
Traceback (most recent call last):
  File "/afs/cern.ch/work/a/aleopold/private/software/madgraph4/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 1011, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/afs/cern.ch/work/a/aleopold/private/software/madgraph4/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 966, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/work/a/aleopold/private/software/madgraph4/MG5_aMC_v2_4_3/madgraph/interface/madevent_interface.py", line 1992, in do_generate_events
    postcmd=False)
  File "/afs/cern.ch/work/a/aleopold/private/software/madgraph4/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 1037, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/afs/cern.ch/work/a/aleopold/private/software/madgraph4/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 966, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/work/a/aleopold/private/software/madgraph4/MG5_aMC_v2_4_3/madgraph/interface/madevent_interface.py", line 2664, in do_survey
    self.configure_directory()
  File "/afs/cern.ch/work/a/aleopold/private/software/madgraph4/MG5_aMC_v2_4_3/madgraph/interface/madevent_interface.py", line 3927, in configure_directory
    self.compile(arg=[name], cwd=os.path.join(self.me_dir, 'Source'))
  File "/afs/cern.ch/work/a/aleopold/private/software/madgraph4/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 1105, in compile
    return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
  File "/afs/cern.ch/work/a/aleopold/private/software/madgraph4/MG5_aMC_v2_4_3/madgraph/various/misc.py", line 535, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /afs/cern.ch/work/a/aleopold/private/software/madgraph4/MG5_aMC_v2_4_3/SUSY/Source.
The compilation fails with the following output message:
    /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc620_x86_64_slc6/6.2.0/x86_64-slc6/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o combine_events.o combine_events.f
    /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc620_x86_64_slc6/6.2.0/x86_64-slc6/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o alfas_functions.o alfas_functions.f
    /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc620_x86_64_slc6/6.2.0/x86_64-slc6/bin/gfortran -lstdc++ -o ../bin/internal/combine_events combine_events.o rw_events.o ranmar.o kin_functions.o open_file.o rw_routines.o alfas_functions.o setrun.o -L../lib/ -lmodel -lpdf -lLHAPDF
    ../lib//libpdf.a(pdf_lhapdf6.o): In function `lhapdf_getpdfsetlist_':
    pdf_lhapdf6.cc:(.text+0x40): undefined reference to `_ZN6LHAPDF16availablePDFSetsB5cxx11Ev'
    ../lib//libpdf.a(pdf_lhapdf6.o): In function `getdatapath_':
    pdf_lhapdf6.cc:(.text+0x286): undefined reference to `_ZN6LHAPDF5pathsB5cxx11Ev'
    ../lib//libpdf.a(pdf_lhapdf6.o): In function `setpdfpath_':
    pdf_lhapdf6.cc:(.text+0x581): undefined reference to `_ZN6LHAPDF5pathsB5cxx11Ev'
    pdf_lhapdf6.cc:(.text+0x7df): undefined reference to `LHAPDF::setPaths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    ../lib//libpdf.a(pdf_lhapdf6.o): In function `LHAPDF::pathsPrepend(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    pdf_lhapdf6.cc:(.text._ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x17): undefined reference to `_ZN6LHAPDF5pathsB5cxx11Ev'
    pdf_lhapdf6.cc:(.text._ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x217): undefined reference to `LHAPDF::setPaths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    ../lib//libpdf.a(pdf_lhapdf6.o): In function `LHAPDF::PDF::set() const':
    pdf_lhapdf6.cc:(.text._ZNK6LHAPDF3PDF3setEv[_ZNK6LHAPDF3PDF3setEv]+0x207): undefined reference to `LHAPDF::getPDFSet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    ../lib//libpdf.a(pdf_lhapdf6.o): In function `_ZN6LHAPDF11getPDFIndexB5cxx11Ev':
    pdf_lhapdf6.cc:(.text._ZN6LHAPDF11getPDFIndexB5cxx11Ev[_ZN6LHAPDF11getPDFIndexB5cxx11Ev]+0xcb): undefined reference to `LHAPDF::findFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    ../lib//libpdf.a(pdf_lhapdf6.o): In function `lhapdf_amc::PDFSetHandler::loadMember(int)':
    pdf_lhapdf6.cc:(.text._ZN10lhapdf_amc13PDFSetHandler10loadMemberEi[_ZN10lhapdf_amc13PDFSetHandler10loadMemberEi]+0x192): undefined reference to `LHAPDF::mkPDF(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
    collect2: error: ld returned 1 exit status
    make: *** [../bin/internal/combine_events] Error 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
                              Run Options
                              -----------
               stdout_level : 20 (user set)

                         MadEvent Options
                         ----------------
     automatic_html_opening : False (user set)
        notification_center : True
          cluster_temp_path : None
             cluster_memory : None (user set)
               cluster_size : 100
              cluster_queue : None (user set)
                    nb_core : 20 (user set)
               cluster_time : 20 (user set)
                   run_mode : 2

                      Configuration Options
                      ---------------------
                text_editor : None
         cluster_local_path : None (user set)
      cluster_status_update : (600, 30)
               pythia8_path : None (user set)
                  hwpp_path : None (user set)
            pythia-pgs_path : None (user set)
                    td_path : None (user set)
               delphes_path : None (user set)
                thepeg_path : None (user set)
               cluster_type : condor
        exrootanalysis_path : None (user set)
                 eps_viewer : None
                web_browser : None
               syscalc_path : None (user set)
           madanalysis_path : None (user set)
                     lhapdf : /afs/cern.ch/work/a/aleopold/private/software/madgraph4/LHAPDF-install/bin/lhapdf-config (user set)
              f2py_compiler : None
                 hepmc_path : None (user set)
         cluster_retry_wait : 300
           fortran_compiler : /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc493_x86_64_slc6/slc6/gcc49/bin/gfortran (user set)
                auto_update : 7 (user set)
           cluster_nb_retry : 1
                    timeout : 60
               cpp_compiler : None

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

Hi,

This is clearly a linking problem to lhapdf?
lhapdf is unfortunately very sensitive and consequently we can not support all version of lhapdf.
Which version of lhapdf did you try to link?

My advise, would be to use at least MG5aMC version 2.5.0 and then from inside MG5aMC shell, you can type
install lhapdf
If you want to install the latest version of lhapdf then, you need at least 2.6.0 (and I'm not even sure that this is working).
To be complete, I will add that we do not support lhapdf lower than version 5.4 and we do not support lhapdf6.0

Cheers,

Olivier

Can you help with this problem?

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

To post a message you must log in.