Madgraph after Mac Ventura 13.1 upgrade

Asked by Torrey Saxton

Dear Experts,

I have been trying to run MadGraph on Mac Ventura 13.1, but have run into the following error:

#************************************************************
#* MadGraph5_aMC@NLO/MadEvent *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 3.4.2 2023-01-20 *
#* *
#* 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/tsaxton/Research/MG5_aMC_v3_4_2/madgraph/interface/extended_cmd.py", line 1544, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/Users/tsaxton/Research/MG5_aMC_v3_4_2/madgraph/interface/extended_cmd.py", line 1493, in onecmd_orig
    return func(arg, **opt)
  File "/Users/tsaxton/Research/MG5_aMC_v3_4_2/madgraph/interface/madevent_interface.py", line 2404, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/Users/tsaxton/Research/MG5_aMC_v3_4_2/madgraph/interface/common_run_interface.py", line 7634, in new_fct
    original_fct(obj, *args, **opts)
  File "/Users/tsaxton/Research/MG5_aMC_v3_4_2/madgraph/interface/madevent_interface.py", line 2598, in run_generate_events
    self.exec_cmd('survey %s %s' % (self.run_name,' '.join(args)),
  File "/Users/tsaxton/Research/MG5_aMC_v3_4_2/madgraph/interface/extended_cmd.py", line 1573, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/Users/tsaxton/Research/MG5_aMC_v3_4_2/madgraph/interface/extended_cmd.py", line 1493, in onecmd_orig
    return func(arg, **opt)
  File "/Users/tsaxton/Research/MG5_aMC_v3_4_2/madgraph/interface/madevent_interface.py", line 3457, in do_survey
    jobs, P_zero_result = ajobcreator.get_helicity()
  File "/Users/tsaxton/Research/MG5_aMC_v3_4_2/madgraph/madevent/gen_ximprove.py", line 148, in get_helicity
    self.cmd.compile(['madevent_forhel'], cwd=Pdir)
  File "/Users/tsaxton/Research/MG5_aMC_v3_4_2/madgraph/interface/extended_cmd.py", line 1639, in compile
    return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
  File "/Users/tsaxton/Research/MG5_aMC_v3_4_2/madgraph/various/misc.py", line 558, in compile
    raise MadGraph5Error(error_text)
madgraph.MadGraph5Error: A compilation Error occurs when trying to compile /Users/tsaxton/Research/MG5_aMC_v3_4_2/test/SubProcesses/P1_qq_ll.
The compilation fails with the following output message:
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c driver.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c myamp.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c genps.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c setcuts.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c get_color.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c cuts.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c cluster.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c reweight.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c initcluster.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c addmothers.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c setscales.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c dummy_fct.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c auto_dsig.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c auto_dsig1.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c auto_dsig2.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c matrix1_orig.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c matrix2_orig.f -I../../Source/
    gfortran -o madevent_forhel 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_dsig.o auto_dsig1.o auto_dsig2.o matrix1_orig.o matrix2_orig.o -L../../lib/ -ldhelas -ldsample -lmodel -lgeneric -lpdf -lcernlib -lbias -lc++ -mmacosx-version-min=10.8
    ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libc++.tbd' for architecture x86_64
    collect2: error: ld returned 1 exit status
    make: *** [madevent_forhel] 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
                   run_mode : 2
              cluster_queue : None (user set)
               cluster_time : None (user set)
               cluster_size : 100
             cluster_memory : 100 (user set)
                    nb_core : 4 (user set)
          cluster_temp_path : None

                      Configuration Options
                      ---------------------
               pythia8_path : None (user set)
                  hwpp_path : None (user set)
                thepeg_path : None (user set)
                 hepmc_path : None (user set)
           madanalysis_path : None (user set)
          madanalysis5_path : None (user set)
            pythia-pgs_path : None (user set)
                    td_path : None (user set)
               delphes_path : None (user set)
        exrootanalysis_path : None (user set)
               syscalc_path : None (user set)
                 rivet_path : None
                  yoda_path : None
                     lhapdf : lhapdf-config
                 lhapdf_py2 : None
                 lhapdf_py3 : None
                    timeout : 60
              f2py_compiler : None
          f2py_compiler_py2 : None
          f2py_compiler_py3 : None
                web_browser : None
                 eps_viewer : None
                text_editor : None
           fortran_compiler : None
               cpp_compiler : None
                auto_update : 7 (user set)
               cluster_type : condor
      cluster_status_update : (600, 30)
           cluster_nb_retry : 1
         cluster_local_path : None
         cluster_retry_wait : 300

The main issue is the unsupported tapi file type. I have followed the suggested steps here: https://answers.launchpad.net/mg5amcnlo/+question/695557

And the stackexchange steps listed in that post as well, but these steps were not successful. I am using MadGraph 3.4.2

Thank you for your time.

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,

This has nothing to do with MG5aMC. This seems to be some missmatch between various component installed in your mac.
(likely a version of ld not compatible with some block of ventura)

By copy paste the relevant error in google I found that post. But no clue if that is going to help you:
https://stackoverflow.com/questions/63592445/ld-unsupported-tapi-file-type-tapi-tbd-in-yaml-file
Since that command removes sensitive files, I would strongly suggest to have full backup ready (and checked).

Cheers,

Olivier

Can you help with this problem?

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

To post a message you must log in.