Cant launch a process on OS X sierra

Asked by amir

Dear MadGraph Developers

It has been a while that i upgrade my mac to sierra. I have problem with running madgraph on my mac right now. I had El captain and it was so cool with madgraph but now the sierra just made to many problem with it.

can you help me with this?

Error detected in "generate_events run_01"
write debug file /Users/Joachim/Documents/phen/MG5_aMC_v2_2_3/bin/PROC_sm_0/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
MadGraph5Error : A compilation Error occurs when trying to compile /Users/Joachim/Documents/phen/MG5_aMC_v2_2_3/bin/PROC_sm_0/Source.
 The compilation fails with the following output message:
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o gen_ximprove.o gen_ximprove.f
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o ranmar.o ranmar.f
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o rw_routines.o rw_routines.f
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o open_file.o open_file.f
     FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
     make: *** [open_file.o] Error 1
     make: *** Waiting for unfinished jobs....
     FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
     make: *** [ranmar.o] Error 1
     FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
     make: *** [rw_routines.o] Error 1
     FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
     make: *** [gen_ximprove.o] Error 1

 Please try to fix this compilations issue and retry.
 Help might be found at https://answers.launchpad.net/madgraph5.
 If you think that this is a bug, you can report this at https://bugs.launchpad.net/madgraph5
quit
INFO:

INFO:

#************************************************************
#* MadGraph5_aMC@NLO/MadEvent *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.2.3 2015-02-10 *
#* *
#* 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/Joachim/Documents/phen/MG5_aMC_v2_2_3/madgraph/interface/extended_cmd.py", line 879, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/Users/Joachim/Documents/phen/MG5_aMC_v2_2_3/madgraph/interface/extended_cmd.py", line 872, in onecmd_orig
    return func(arg, **opt)
  File "/Users/Joachim/Documents/phen/MG5_aMC_v2_2_3/madgraph/interface/madevent_interface.py", line 1924, in do_generate_events
    postcmd=False)
  File "/Users/Joachim/Documents/phen/MG5_aMC_v2_2_3/madgraph/interface/extended_cmd.py", line 919, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/Users/Joachim/Documents/phen/MG5_aMC_v2_2_3/madgraph/interface/extended_cmd.py", line 872, in onecmd_orig
    return func(arg, **opt)
  File "/Users/Joachim/Documents/phen/MG5_aMC_v2_2_3/madgraph/interface/madevent_interface.py", line 2294, in do_survey
    self.configure_directory()
  File "/Users/Joachim/Documents/phen/MG5_aMC_v2_2_3/madgraph/interface/madevent_interface.py", line 3377, in configure_directory
    self.compile(arg=[name], cwd=os.path.join(self.me_dir, 'Source'))
  File "/Users/Joachim/Documents/phen/MG5_aMC_v2_2_3/madgraph/interface/extended_cmd.py", line 987, in compile
    return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
  File "/Users/Joachim/Documents/phen/MG5_aMC_v2_2_3/madgraph/various/misc.py", line 311, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /Users/Joachim/Documents/phen/MG5_aMC_v2_2_3/bin/PROC_sm_0/Source.
The compilation fails with the following output message:
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o gen_ximprove.o gen_ximprove.f
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o ranmar.o ranmar.f
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o rw_routines.o rw_routines.f
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o open_file.o open_file.f
    FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
    make: *** [open_file.o] Error 1
    make: *** Waiting for unfinished jobs....
    FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
    make: *** [ranmar.o] Error 1
    FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
    make: *** [rw_routines.o] Error 1
    FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
    make: *** [gen_ximprove.o] Error 1

Please try to fix this compilations issue and retry.
Help might be found at https://answers.launchpad.net/madgraph5.
If you think that this is a bug, you can report this at https://bugs.launchpad.net/madgraph5
                              Run Options
                              -----------
               stdout_level : 20 (user set)

                         MadEvent Options
                         ----------------
     automatic_html_opening : False (user set)
          cluster_temp_path : None
              cluster_queue : None (user set)
             cluster_memory : None (user set)
               cluster_time : None (user set)
                    nb_core : 4 (user set)
                   run_mode : 2

                      Configuration Options
                      ---------------------
                text_editor : 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
        exrootanalysis_path : None (user set)
                 eps_viewer : None
                web_browser : None
               syscalc_path : None (user set)
           madanalysis_path : None (user set)
                     lhapdf : lhapdf-config
                 hepmc_path : None (user set)
         cluster_retry_wait : 300
           fortran_compiler : None
                auto_update : 7 (user set)
           cluster_nb_retry : 1
                    timeout : 60
               cpp_compiler : None

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

Hi,

Did you install gcc on your machine? (via homebrew?)
Looks like the latest version of gcc (gcc6, the one distributed via homebrew) is not compatible with sierra.

My suggestion is to un-install gcc and to only install gfortran. MG5aMC does not need gcc to run.
And this is the recomend way to install package on mac. (just rely on default clang compiler).
I do not have gcc on my mac for example.

Cheers,

Olivier

Can you help with this problem?

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

To post a message you must log in.