Compilation error with subprocesses

Asked by Emma Tintinger

Can someone help me figure out what to do about this error? To fix this error, I have tried redownloading Madgraph and reinstalling pythia8, delphes, etc but I keep running into issues installing many of those programs (eMELA, MadAnalysis5, Delphes, and lhapdf didn't work for me I think) so I wasn't able to go forward with that approach. I also tried to update cmake and I tried deleting Xcode and downloading a newer beta version but I think that might have made things worse. Please help, I think I'm just making more problems.

ERROR MESSAGE:
Error detected in "generate_events run_01"

str : A compilation Error occurs when trying to compile /Users/emmatintinger/Downloads/MG5_aMC_v3_5_0/:?/SubProcesses/P1_gg_ttx.
 The compilation fails with the following output message:
     gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -L../../lib/ -ldhelas -ldsample -lmodel -lgeneric -lpdf -lgammaUPC -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/libSystem.tbd' for architecture arm64
     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:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

My advise is to
1) remove any instance of gfortran/gcc on your system
2) remove all previously compiled code (madgraph/fastjet/...)
3) re-install gcc and gfortran from here: https://hpc.sourceforge.net/
4) be sure that all binary are correctly pointing on those and not on some other version of ld/gcc/g++/....
5) reinstall everything. (lhapdf can be tricky due to a python issue, I did install by hand so far since I fail to find a good way to install it via the install command)

Cheers,

Olivier

Revision history for this message
Maddox Spin (mad-spin) said :
#2

Did this work? I'm experiencing the same error and reinstalling everything doesn't seem to fix it.

I'm running Mac OS 14.3.1 and clang-1500.3.9.4 (possibly an issue?). Since I was having trouble installing lhapdf I installed it using conda (v6.5.4), and I've already tried making the system linker a higher preference than Anaconda's "ld" (from this similar stackoverflow post https://stackoverflow.com/questions/74318052/cant-compile-fortran-on-macos-monterey-ld-unsupported-tapi-file-type-tapi-t )

Error Message:

Error detected in "generate_events run_04"
write debug file /PATH/TO/MG5_aMC_v3_5_3/ppTOzh_zTOvv_hTOaa_13TeV/run_04_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
str : A compilation Error occurs when trying to compile /PATH/TO/MG5_aMC_v3_5_3/ppTOzh_zTOvv_hTOaa_13TeV/SubProcesses/P1_qq_zh_z_vlvl_h_aa.
 The compilation fails with the following output message:
     gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -L../../lib/ -ldhelas -ldsample -lmodel -lgeneric -lpdf -lgammaUPC -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: *** [gensym] Error 1

Thank you for any help!

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

lhapdf is still problematic if you want the python linking step. Otherwise the rest seems to work most of the time on new mac machine, machine that upgraded from old setup with time machine have on the other hand quite some difficulty to handle the upgrapde from intel to arm chip.

In your case, are you using an intel chip or an arm chip?
The compilation error seems to indicate that you are trying to compile for an intel chip.
(but maybe this is your issue)

Cheers,

Olivier

Can you help with this problem?

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

To post a message you must log in.