compilation error

Asked by Max Fieg on 2020-06-16

Hello

I am working with Madgraph on an HPC cluster. When I try to run a SM process I get a compilation error. I know this is most likely a problem with the local cluster's configuration but I would like to ask here for any ideas. Below is the debug file. Surrounding the error are many lines of the form:
"Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 75: Having multiple <family> in <alias> isn't supported and may not work as expected"

Any help is appreciated
Debug Contents:

#************************************************************
#* MadGraph5_aMC@NLO/MadEvent *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.7.2 2020-03-17 *
#* *
#* 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 *
#* *
#************************************************************
multi_run 20
Traceback (most recent call last):
  File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1515, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/data/apps/madgraph5/v2.7.2/madgraph/interface/madevent_interface.py", line 2963, in do_multi_run
    self.exec_cmd('generate_events %s_%s -f' % (main_name, i), postcmd=False)
  File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1544, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/data/apps/madgraph5/v2.7.2/madgraph/interface/madevent_interface.py", line 2469, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/data/apps/madgraph5/v2.7.2/madgraph/interface/common_run_interface.py", line 6963, in new_fct
    original_fct(obj, *args, **opts)
  File "/data/apps/madgraph5/v2.7.2/madgraph/interface/madevent_interface.py", line 2508, in run_generate_events
    postcmd=False)
  File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1544, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/data/apps/madgraph5/v2.7.2/madgraph/interface/madevent_interface.py", line 3359, in do_survey
    jobs, P_zero_result = ajobcreator.launch()
  File "/data/apps/madgraph5/v2.7.2/madgraph/madevent/gen_ximprove.py", line 186, in launch
    self.cmd.compile(['madevent'], cwd=Pdir)
  File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1608, in compile
    return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
  File "/data/apps/madgraph5/v2.7.2/madgraph/various/misc.py", line 532, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /data/users/mfieg/nxxbbM70_100k/SubProcesses/P1_xrxr_bbx.
The compilation fails with the following output message:
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c driver.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c myamp.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c genps.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c setcuts.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c get_color.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cuts.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cluster.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c reweight.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c initcluster.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c addmothers.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c setscales.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c dummy_fct.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c auto_dsig1.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c auto_dsig.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c matrix1.f -I../../Source/
    /data/apps/gcc/6.4.0/bin/gfortran -o madevent driver.o myamp.o genps.o unwgt.o setcuts.o get_color.o cuts.o cluster.o reweight.o initcluster.o addmothers.o setscales.o idenparts.o dummy_fct.o auto_dsig1.o auto_dsig.o matrix1.o -L../../lib/ -ldhelas -ldsample -lmodel -lgeneric -lpdf -lcernlib -lbias -L/data/apps/anaconda/2.7-4.3.1/lib -L/data/apps/gcc/6.4.0/lib64 -Wl,-rpath,/data/apps/gcc/6.4.0/lib64
    unwgt.o: In function `store_events_':
    unwgt.f:(.text+0x2e4f): undefined reference to `_gfortran_stop_numeric_f08'
    reweight.o: In function `ipartupdate_':
    reweight.f:(.text+0x2bf7): undefined reference to `_gfortran_stop_numeric_f08'
    reweight.o: In function `setclscales_':
    reweight.f:(.text+0x6070): undefined reference to `_gfortran_stop_numeric_f08'
    reweight.o: In function `rewgt_':
    reweight.f:(.text+0x84c1): undefined reference to `_gfortran_stop_numeric_f08'
    addmothers.o: In function `addmothers_':
    addmothers.f:(.text+0x4ab7): undefined reference to `_gfortran_stop_numeric_f08'
    setscales.o:setscales.f:(.text+0xaa): more undefined references to `_gfortran_stop_numeric_f08' follow
    collect2: error: ld returned 1 exit status
    make: *** [madevent] 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 : 64 (user set)
               cluster_time : 64 (user set)
                   run_mode : 2

                      Configuration Options
                      ---------------------
                text_editor : None
         cluster_local_path : None
      cluster_status_update : (600, 30)
               pythia8_path : /data/apps/madgraph5/v2.7.2/HEPTools/pythia8 (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
          madanalysis5_path : None (user set)
           cluster_nb_retry : 1
                 eps_viewer : None
                web_browser : None
               syscalc_path : None (user set)
           madanalysis_path : None (user set)
                     lhapdf : /data/apps/madgraph5/v2.7.2/HEPTools/lhapdf6/bin/lhapdf-config (user set)
              f2py_compiler : None
                 hepmc_path : None (user set)
         cluster_retry_wait : 300
           fortran_compiler : None
                auto_update : 7 (user set)
        exrootanalysis_path : None (user set)
                    timeout : 60
               cpp_compiler : None

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
2020-06-22
Last query:
2020-06-22
Last reply:
2020-06-17

This sounds like half of the package compile with a given compiler and the second half with another compiler (or some of the dependencies)

> On 17 Jun 2020, at 00:10, Max Fieg <email address hidden> wrote:
>
> New question #691357 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/691357
>
> Hello
>
> I am working with Madgraph on an HPC cluster. When I try to run a SM process I get a compilation error. I know this is most likely a problem with the local cluster's configuration but I would like to ask here for any ideas. Below is the debug file. Surrounding the error are many lines of the form:
> "Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 75: Having multiple <family> in <alias> isn't supported and may not work as expected"
>
> Any help is appreciated
> Debug Contents:
>
>
>
> #************************************************************
> #* MadGraph5_aMC@NLO/MadEvent *
> #* *
> #* * * *
> #* * * * * *
> #* * * * * 5 * * * * *
> #* * * * * *
> #* * * *
> #* *
> #* *
> #* VERSION 2.7.2 2020-03-17 *
> #* *
> #* 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 *
> #* *
> #************************************************************
> multi_run 20
> Traceback (most recent call last):
> File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1515, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
> return func(arg, **opt)
> File "/data/apps/madgraph5/v2.7.2/madgraph/interface/madevent_interface.py", line 2963, in do_multi_run
> self.exec_cmd('generate_events %s_%s -f' % (main_name, i), postcmd=False)
> File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1544, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
> return func(arg, **opt)
> File "/data/apps/madgraph5/v2.7.2/madgraph/interface/madevent_interface.py", line 2469, in do_generate_events
> self.run_generate_events(switch_mode, args)
> File "/data/apps/madgraph5/v2.7.2/madgraph/interface/common_run_interface.py", line 6963, in new_fct
> original_fct(obj, *args, **opts)
> File "/data/apps/madgraph5/v2.7.2/madgraph/interface/madevent_interface.py", line 2508, in run_generate_events
> postcmd=False)
> File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1544, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
> return func(arg, **opt)
> File "/data/apps/madgraph5/v2.7.2/madgraph/interface/madevent_interface.py", line 3359, in do_survey
> jobs, P_zero_result = ajobcreator.launch()
> File "/data/apps/madgraph5/v2.7.2/madgraph/madevent/gen_ximprove.py", line 186, in launch
> self.cmd.compile(['madevent'], cwd=Pdir)
> File "/data/apps/madgraph5/v2.7.2/madgraph/interface/extended_cmd.py", line 1608, in compile
> return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
> File "/data/apps/madgraph5/v2.7.2/madgraph/various/misc.py", line 532, in compile
> raise MadGraph5Error, error_text
> MadGraph5Error: A compilation Error occurs when trying to compile /data/users/mfieg/nxxbbM70_100k/SubProcesses/P1_xrxr_bbx.
> The compilation fails with the following output message:
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c driver.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c myamp.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c genps.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c setcuts.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c get_color.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cuts.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cluster.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c reweight.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c initcluster.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c addmothers.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c setscales.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c dummy_fct.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c auto_dsig1.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c auto_dsig.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c matrix1.f -I../../Source/
> /data/apps/gcc/6.4.0/bin/gfortran -o madevent driver.o myamp.o genps.o unwgt.o setcuts.o get_color.o cuts.o cluster.o reweight.o initcluster.o addmothers.o setscales.o idenparts.o dummy_fct.o auto_dsig1.o auto_dsig.o matrix1.o -L../../lib/ -ldhelas -ldsample -lmodel -lgeneric -lpdf -lcernlib -lbias -L/data/apps/anaconda/2.7-4.3.1/lib -L/data/apps/gcc/6.4.0/lib64 -Wl,-rpath,/data/apps/gcc/6.4.0/lib64
> unwgt.o: In function `store_events_':
> unwgt.f:(.text+0x2e4f): undefined reference to `_gfortran_stop_numeric_f08'
> reweight.o: In function `ipartupdate_':
> reweight.f:(.text+0x2bf7): undefined reference to `_gfortran_stop_numeric_f08'
> reweight.o: In function `setclscales_':
> reweight.f:(.text+0x6070): undefined reference to `_gfortran_stop_numeric_f08'
> reweight.o: In function `rewgt_':
> reweight.f:(.text+0x84c1): undefined reference to `_gfortran_stop_numeric_f08'
> addmothers.o: In function `addmothers_':
> addmothers.f:(.text+0x4ab7): undefined reference to `_gfortran_stop_numeric_f08'
> setscales.o:setscales.f:(.text+0xaa): more undefined references to `_gfortran_stop_numeric_f08' follow
> collect2: error: ld returned 1 exit status
> make: *** [madevent] 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 : 64 (user set)
> cluster_time : 64 (user set)
> run_mode : 2
>
> Configuration Options
> ---------------------
> text_editor : None
> cluster_local_path : None
> cluster_status_update : (600, 30)
> pythia8_path : /data/apps/madgraph5/v2.7.2/HEPTools/pythia8 (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
> madanalysis5_path : None (user set)
> cluster_nb_retry : 1
> eps_viewer : None
> web_browser : None
> syscalc_path : None (user set)
> madanalysis_path : None (user set)
> lhapdf : /data/apps/madgraph5/v2.7.2/HEPTools/lhapdf6/bin/lhapdf-config (user set)
> f2py_compiler : None
> hepmc_path : None (user set)
> cluster_retry_wait : 300
> fortran_compiler : None
> auto_update : 7 (user set)
> exrootanalysis_path : None (user set)
> timeout : 60
> cpp_compiler : None
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Max Fieg (maxfieg) said : #2

Thanks Olivier Mattelaer, that solved my question.