error when using lhapdf in Athena

Asked by Yizhou Cai on 2020-12-07

Hi
I am trying to generate some samples on lxplus, and I use the command following to setup environment:
setupATLAS -c slc6
asetup 21.6.21,AthGeneration ( also have tried asetup 21.6.40,AthGeneration)
If I set 'pdlabel':"'lhapdf'" in run_card, the process would exit with a debug log.
How can I fix it? Thanks in advance.

Best,
Yizhou Cai

generate_events run_01
Traceback (most recent call last):
  File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/extended_cmd.py", line 1515, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/work/c/caiyi/madgraph-formfactor/run/PROC_Pseudoscalar_2HDM_FormFactor_0/bin/internal/madevent_interface.py", line 2468, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/common_run_interface.py", line 7011, in new_fct
    original_fct(obj, *args, **opts)
  File "/afs/cern.ch/work/c/caiyi/madgraph-formfactor/run/PROC_Pseudoscalar_2HDM_FormFactor_0/bin/internal/madevent_interface.py", line 2508, in run_generate_events
    postcmd=False)
  File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/extended_cmd.py", line 1544, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/work/c/caiyi/madgraph-formfactor/run/PROC_Pseudoscalar_2HDM_FormFactor_0/bin/internal/madevent_interface.py", line 3360, in do_survey
    jobs, P_zero_result = ajobcreator.launch()
  File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/madevent/gen_ximprove.py", line 152, in launch
    self.cmd.compile(['gensym'], cwd=Pdir)
  File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/extended_cmd.py", line 1608, in compile
    return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
  File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/various/misc.py", line 534, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /afs/cern.ch/work/c/caiyi/madgraph-formfactor/run/PROC_Pseudoscalar_2HDM_FormFactor_0/SubProcesses/P3_gg_ttx_t_bwp_wp_lvl_tx_bxwm_wm_lvl.
The compilation fails with the following output message:
    /cvmfs/sft.cern.ch/lcg/releases/gcc/6.2.0-b9934/x86_64-slc6/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c symmetry.f -I../../Source/
    /cvmfs/sft.cern.ch/lcg/releases/gcc/6.2.0-b9934/x86_64-slc6/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
    /afs/cern.ch/work/c/caiyi/madgraph-formfactor/run/lhapdf-config: line 51: [: /cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/Boost/1.62.0-c1b05/x86_64-centos7-gcc62-opt/include/boost-1_62: binary operator expected
    /cvmfs/sft.cern.ch/lcg/releases/gcc/6.2.0-b9934/x86_64-slc6/bin/gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -lmodel -lgeneric -lpdf -I/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/lhapdf/6.2.3/x86_64-slc6-gcc62-opt/share/LHAPDF/../../include -I/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/Boost/1.62.0-c1b05/x86_64-centos7-gcc62-opt/include/boost-1_62 /cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/Boost/1.62.0-c1b05/x86_64-slc6-gcc62-opt/include/boost-1_62 -L/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/lhapdf/6.2.3/x86_64-slc6-gcc62-opt/share/LHAPDF/../../lib -lLHAPDF -lLHAPDF -lstdc++
    /cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/Boost/1.62.0-c1b05/x86_64-slc6-gcc62-opt/include/boost-1_62: file not recognized: Is a directory
    collect2: error: ld returned 1 exit status
    make: *** [gensym] Error 1

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2020-12-07
Last reply:
2020-12-07

Hi,

This seems to be an issue with Athena comfiguration.
I have no experience with Athena so maybe the best solution is to contact ATLAS MC team which should be able to help you on that issue.

Cheers,

Olivier

> On 7 Dec 2020, at 03:15, Yizhou Cai <email address hidden> wrote:
>
> New question #694386 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/694386
>
> Hi
> I am trying to generate some samples on lxplus, and I use the command following to setup environment:
> setupATLAS -c slc6
> asetup 21.6.21,AthGeneration ( also have tried asetup 21.6.40,AthGeneration)
> If I set 'pdlabel':"'lhapdf'" in run_card, the process would exit with a debug log.
> How can I fix it? Thanks in advance.
>
> Best,
> Yizhou Cai
>
> generate_events run_01
> Traceback (most recent call last):
> File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/extended_cmd.py", line 1515, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
> return func(arg, **opt)
> File "/afs/cern.ch/work/c/caiyi/madgraph-formfactor/run/PROC_Pseudoscalar_2HDM_FormFactor_0/bin/internal/madevent_interface.py", line 2468, in do_generate_events
> self.run_generate_events(switch_mode, args)
> File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/common_run_interface.py", line 7011, in new_fct
> original_fct(obj, *args, **opts)
> File "/afs/cern.ch/work/c/caiyi/madgraph-formfactor/run/PROC_Pseudoscalar_2HDM_FormFactor_0/bin/internal/madevent_interface.py", line 2508, in run_generate_events
> postcmd=False)
> File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/extended_cmd.py", line 1544, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
> return func(arg, **opt)
> File "/afs/cern.ch/work/c/caiyi/madgraph-formfactor/run/PROC_Pseudoscalar_2HDM_FormFactor_0/bin/internal/madevent_interface.py", line 3360, in do_survey
> jobs, P_zero_result = ajobcreator.launch()
> File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/madevent/gen_ximprove.py", line 152, in launch
> self.cmd.compile(['gensym'], cwd=Pdir)
> File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/interface/extended_cmd.py", line 1608, in compile
> return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
> File "/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/madgraph5amc/2.7.3p3.atlas5/x86_64-slc6-gcc62-opt/madgraph/various/misc.py", line 534, in compile
> raise MadGraph5Error, error_text
> MadGraph5Error: A compilation Error occurs when trying to compile /afs/cern.ch/work/c/caiyi/madgraph-formfactor/run/PROC_Pseudoscalar_2HDM_FormFactor_0/SubProcesses/P3_gg_ttx_t_bwp_wp_lvl_tx_bxwm_wm_lvl.
> The compilation fails with the following output message:
> /cvmfs/sft.cern.ch/lcg/releases/gcc/6.2.0-b9934/x86_64-slc6/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c symmetry.f -I../../Source/
> /cvmfs/sft.cern.ch/lcg/releases/gcc/6.2.0-b9934/x86_64-slc6/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
> /afs/cern.ch/work/c/caiyi/madgraph-formfactor/run/lhapdf-config: line 51: [: /cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/Boost/1.62.0-c1b05/x86_64-centos7-gcc62-opt/include/boost-1_62: binary operator expected
> /cvmfs/sft.cern.ch/lcg/releases/gcc/6.2.0-b9934/x86_64-slc6/bin/gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -lmodel -lgeneric -lpdf -I/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/lhapdf/6.2.3/x86_64-slc6-gcc62-opt/share/LHAPDF/../../include -I/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/Boost/1.62.0-c1b05/x86_64-centos7-gcc62-opt/include/boost-1_62 /cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/Boost/1.62.0-c1b05/x86_64-slc6-gcc62-opt/include/boost-1_62 -L/cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/LCG_88/MCGenerators/lhapdf/6.2.3/x86_64-slc6-gcc62-opt/share/LHAPDF/../../lib -lLHAPDF -lLHAPDF -lstdc++
> /cvmfs/atlas.cern.ch/repo/sw/software/21.6/sw/lcg/releases/Boost/1.62.0-c1b05/x86_64-slc6-gcc62-opt/include/boost-1_62: file not recognized: Is a directory
> collect2: error: ld returned 1 exit status
> make: *** [gensym] Error 1
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

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

To post a message you must log in.