Error during event generation in macOS

Asked by Sebastian Urrutia-Quiroga

I'm testing the latest version of MG5 on my recently updated macOS Sonoma (Xcode was also updated) but I got the following error:

'''
Generating 100 events with run name run_01
survey run_01
INFO: compile directory
compile Source Directory
Using random number seed offset = 21
INFO: Running Survey
Creating Jobs
Working on SubProcesses
INFO: Compiling for process 1/1.
INFO: P1_gg_ttx
Error detected in "generate_events run_01"
write debug file /Users/surrutiaquir/Software/MG5_aMC_v3_5_4/GGttbar/run_01_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 /Users/surrutiaquir/Software/MG5_aMC_v3_5_4/GGttbar/SubProcesses/P1_gg_ttx.
 The compilation fails with the following output message:
     x86_64-apple-darwin13.4.0-gfortran: warning: could not understand version 14.03.00
     /Users/surrutiaquir/Software/Python/envs/PHY/bin/x86_64-apple-darwin13.4.0-gfortran -march=core2 -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -isystem /Users/surrutiaquir/Software/Python/envs/PHY/include -O -ffixed-line-length-132 -w -c symmetry.f -I../../Source/ -I../../Source/PDF/gammaUPC
     /Users/surrutiaquir/Software/Python/envs/PHY/bin/x86_64-apple-darwin13.4.0-gfortran -march=core2 -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -isystem /Users/surrutiaquir/Software/Python/envs/PHY/include -O -ffixed-line-length-132 -w -c idenparts.f -I../../Source/ -I../../Source/PDF/gammaUPC
     x86_64-apple-darwin13.4.0-gfortran: warning: could not understand version 14.03.00
     x86_64-apple-darwin13.4.0-gfortran: warning: could not understand version 14.03.00
     /Users/surrutiaquir/Software/Python/envs/PHY/bin/x86_64-apple-darwin13.4.0-gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -L../../lib/ -ldhelas -ldsample -lmodel -lgeneric -lpdf -lgammaUPC -lcernlib -lbias -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/surrutiaquir/Software/Python/envs/PHY/lib -L/Users/surrutiaquir/Software/Python/envs/PHY/lib
     x86_64-apple-darwin13.4.0-gfortran: warning: could not understand version 14.03.00
     ld: -rpath can only be used when targeting Mac OS X 10.5 or later
     collect2: error: ld returned 1 exit status
     make: *** [gensym] 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
'''

Could you please help me to understand how to fix it? Thanks a lot.

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

Not sure what to say here.

Your gfortran seems to have been installed for an older version of OSX, so maybe this is the issue.
Since the error is an issue with the detection of your OS.

You also seem to have custom ways to compile the code
(in particular, the problematic compilation flag
> -Wl,-rpath,/Users/surrutiaquir/Software/Python/envs/PHY/lib -L/Users/surrutiaquir/Software/Python/envs/PHY/lib
is not something that "we" do inject, so those flag are induced by your environment.
So maybe a solution is to remove those flag from your environment when compiling madgraph.

Cheers,

Olivier

> On 22 Apr 2024, at 17:25, Sebastian Urrutia-Quiroga <email address hidden> wrote:
>
> New question #809271 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/809271
>
> I'm testing the latest version of MG5 on my recently updated macOS Sonoma (Xcode was also updated) but I got the following error:
>
> '''
> Generating 100 events with run name run_01
> survey run_01
> INFO: compile directory
> compile Source Directory
> Using random number seed offset = 21
> INFO: Running Survey
> Creating Jobs
> Working on SubProcesses
> INFO: Compiling for process 1/1.
> INFO: P1_gg_ttx
> Error detected in "generate_events run_01"
> write debug file /Users/surrutiaquir/Software/MG5_aMC_v3_5_4/GGttbar/run_01_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 /Users/surrutiaquir/Software/MG5_aMC_v3_5_4/GGttbar/SubProcesses/P1_gg_ttx.
> The compilation fails with the following output message:
> x86_64-apple-darwin13.4.0-gfortran: warning: could not understand version 14.03.00
> /Users/surrutiaquir/Software/Python/envs/PHY/bin/x86_64-apple-darwin13.4.0-gfortran -march=core2 -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -isystem /Users/surrutiaquir/Software/Python/envs/PHY/include -O -ffixed-line-length-132 -w -c symmetry.f -I../../Source/ -I../../Source/PDF/gammaUPC
> /Users/surrutiaquir/Software/Python/envs/PHY/bin/x86_64-apple-darwin13.4.0-gfortran -march=core2 -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -isystem /Users/surrutiaquir/Software/Python/envs/PHY/include -O -ffixed-line-length-132 -w -c idenparts.f -I../../Source/ -I../../Source/PDF/gammaUPC
> x86_64-apple-darwin13.4.0-gfortran: warning: could not understand version 14.03.00
> x86_64-apple-darwin13.4.0-gfortran: warning: could not understand version 14.03.00
> /Users/surrutiaquir/Software/Python/envs/PHY/bin/x86_64-apple-darwin13.4.0-gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -L../../lib/ -ldhelas -ldsample -lmodel -lgeneric -lpdf -lgammaUPC -lcernlib -lbias -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/surrutiaquir/Software/Python/envs/PHY/lib -L/Users/surrutiaquir/Software/Python/envs/PHY/lib
> x86_64-apple-darwin13.4.0-gfortran: warning: could not understand version 14.03.00
> ld: -rpath can only be used when targeting Mac OS X 10.5 or later
> collect2: error: ld returned 1 exit status
> make: *** [gensym] 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
> '''
>
> Could you please help me to understand how to fix it? Thanks a lot.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask Sebastian Urrutia-Quiroga for more information if necessary.

To post a message you must log in.