Compilation error when launching madgraph

Asked by Alessandro Davoli

Hi,
I'm running madgraph on mac os high sierra 10.13.1

If I generate a simple test process like u u > u u, this is correctly generated and the corresponding output folder is created.
However, when I launch the process, I get the error attached below.

Do you have any suggestions about what causes it and how to fix it?

Thanks
Alessandro

#************************************************************
#* MadGraph5_aMC@NLO/MadEvent *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.6.0 2017-08-16 *
#* *
#* 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 "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1438, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1392, in onecmd_orig
    return func(arg, **opt)
  File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/madevent_interface.py", line 2122, in do_generate_events
    postcmd=False)
  File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1465, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1392, in onecmd_orig
    return func(arg, **opt)
  File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/madevent_interface.py", line 2915, in do_survey
    self.configure_directory()
  File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/madevent_interface.py", line 5286, in configure_directory
    self.compile(arg=[name], cwd=os.path.join(self.me_dir, 'Source'))
  File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1529, in compile
    return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
  File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/various/misc.py", line 479, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/bin/aa/Source.
The compilation fails with the following output message:
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o combine_events.o combine_events.f
    gfortran -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 -lc++ -mmacosx-version-min=10.7 -lbias
    ld: library not found for -lcrt1.10.6.o
    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 : 8 (user set)
               cluster_time : 8 (user set)
                   run_mode : 2

                      Configuration Options
                      ---------------------
                text_editor : None
         cluster_local_path : None
      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
          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 : lhapdf-config
              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:
Last query:
Last reply:
Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

The typical way to solve such problem is to run the following command:
xcode-select --install

according to https://stackoverflow.com/questions/19555312/ld-library-not-found-for-lcrt1-10-6-o-after-running-intel-icc-compiler-on-os-m
(it was working for me when moving to Sierra)

Cheers,

Olivier
> On Nov 22, 2017, at 14:17, Alessandro Davoli <email address hidden> wrote:
>
> New question #661009 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/661009
>
> Hi,
> I'm running madgraph on mac os high sierra 10.13.1
>
> If I generate a simple test process like u u > u u, this is correctly generated and the corresponding output folder is created.
> However, when I launch the process, I get the error attached below.
>
> Do you have any suggestions about what causes it and how to fix it?
>
> Thanks
> Alessandro
>
>
> #************************************************************
> #* MadGraph5_aMC@NLO/MadEvent *
> #* *
> #* * * *
> #* * * * * *
> #* * * * * 5 * * * * *
> #* * * * * *
> #* * * *
> #* *
> #* *
> #* VERSION 2.6.0 2017-08-16 *
> #* *
> #* 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 "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1438, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1392, in onecmd_orig
> return func(arg, **opt)
> File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/madevent_interface.py", line 2122, in do_generate_events
> postcmd=False)
> File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1465, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1392, in onecmd_orig
> return func(arg, **opt)
> File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/madevent_interface.py", line 2915, in do_survey
> self.configure_directory()
> File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/madevent_interface.py", line 5286, in configure_directory
> self.compile(arg=[name], cwd=os.path.join(self.me_dir, 'Source'))
> File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/interface/extended_cmd.py", line 1529, in compile
> return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
> File "/Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/madgraph/various/misc.py", line 479, in compile
> raise MadGraph5Error, error_text
> MadGraph5Error: A compilation Error occurs when trying to compile /Users/alessandrodavoli/Library/MG5_aMC_v2_6_0/bin/aa/Source.
> The compilation fails with the following output message:
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o combine_events.o combine_events.f
> gfortran -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 -lc++ -mmacosx-version-min=10.7 -lbias
> ld: library not found for -lcrt1.10.6.o
> 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 : 8 (user set)
> cluster_time : 8 (user set)
> run_mode : 2
>
> Configuration Options
> ---------------------
> text_editor : None
> cluster_local_path : None
> 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
> 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 : lhapdf-config
> 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.

Revision history for this message
Alessandro Davoli (alessandrodavoli) said :
#2

Thanks Olivier Mattelaer, that solved my question.