Madgraph after Mac Big Sur upgrade

Asked by Sebastian Urrutia-Quiroga

Hi all,

I recently upgraded my MacOS to Big Sur and now I can't run Madgraph 2.8.2; I get the following error message:

Error detected in sub-command generate_events
write debug file /Users/surrutiaquir/Software/MG5_aMC_v2_8_2/Test_Jesse/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_v2_8_2/Test_Jesse/SubProcesses/P1_ll_ll.
 The compilation fails with the following output message:
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c symmetry.f -I../../Source/
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
     gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -lmodel -lgeneric -lpdf -lc++ -mmacosx-version-min=10.8
     ld: library not found for -lc++
     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

Any ideas about what is going on? Thanks a lot!
Sebastian

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
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

As usual with Mac, we have to tweak stuff to make it work on their latest OS.
So you have to use the latest version of the code to have it working on Big Sur.
But support is quite preliminary for Big Sur so far.

Cheers,

Olivier

> On 15 Feb 2021, at 22:00, Sebastian Urrutia-Quiroga <email address hidden> wrote:
>
> New question #695557 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/695557
>
> Hi all,
>
> I recently upgraded my MacOS to Big Sur and now I can't run Madgraph 2.8.2; I get the following error message:
>
>
>
> Error detected in sub-command generate_events
> write debug file /Users/surrutiaquir/Software/MG5_aMC_v2_8_2/Test_Jesse/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_v2_8_2/Test_Jesse/SubProcesses/P1_ll_ll.
> The compilation fails with the following output message:
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c symmetry.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
> gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -lmodel -lgeneric -lpdf -lc++ -mmacosx-version-min=10.8
> ld: library not found for -lc++
> 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
>
>
>
> Any ideas about what is going on? Thanks a lot!
> Sebastian
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Sebastian Urrutia-Quiroga (sgurruti) said :
#2

Hi Olivier,

Thank you for your prompt response. I downloaded MG5 v2.9.2 but I'm still getting troubles:

Error detected in "generate_events run_01"
write debug file /Users/surrutiaquir/Software/MG5_aMC_v2_9_2/MyTest/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_v2_9_2/MyTest/SubProcesses/P1_ll_ll.
 The compilation fails with the following output message:
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c driver.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c myamp.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c genps.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c setcuts.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c get_color.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c cuts.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c cluster.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c reweight.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c initcluster.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c addmothers.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c setscales.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c dummy_fct.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c auto_dsig.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c auto_dsig1.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/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/root6/include -ffixed-line-length-132 -w -c matrix1_orig.f -I../../Source/
     /Users/surrutiaquir/Software/Python/envs/root6/bin/x86_64-apple-darwin13.4.0-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 matrix1_orig.o -L../../lib/ -ldhelas -ldsample -lmodel -lgeneric -lpdf -lcernlib -lbias -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/surrutiaquir/Software/Python/envs/root6/lib -L/Users/surrutiaquir/Software/Python/envs/root6/lib
     ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.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

Any thoughts?

Best,
Sebastian

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

Did you re-install the command line tools for Big Sur?
xcode-select --install

Cheers,

Olivier

> On 15 Feb 2021, at 23:55, Sebastian Urrutia-Quiroga <email address hidden> wrote:
>
> ld: unsupported tapi file type '!tapi-tbd' in YAML file

Revision history for this message
Sebastian Urrutia-Quiroga (sgurruti) said :
#4

Yes, it is already installed:

xcode-select: error: command line tools are already installed, use "Software Update" to install update

Also, no update is available.

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

Looks like it is corrupted:
according to https://stackoverflow.com/questions/63592445/ld-unsupported-tapi-file-type-tapi-tbd-in-yaml-file <https://stackoverflow.com/questions/63592445/ld-unsupported-tapi-file-type-tapi-tbd-in-yaml-file>
you will need to remove it and re-install it.
(they also advise to re-install gcc, I typically advice to not install gcc on mac (just gfortran)

But obviously be very careful with that operation (full back up/...)

Cheers,

Olivier

> On 16 Feb 2021, at 01:05, Sebastian Urrutia-Quiroga <email address hidden> wrote:
>
> Question #695557 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/695557
>
> Status: Answered => Open
>
> Sebastian Urrutia-Quiroga is still having a problem:
> Yes, it is already installed:
>
> xcode-select: error: command line tools are already installed, use
> "Software Update" to install update
>
> Also, no update is available.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Sebastian Urrutia-Quiroga (sgurruti) said :
#6

Thanks a lot. I tried the suggestions on the post you shared and they didn't work.

I will need to keep looking for a different way. Thanks for your help!

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Sebastian Urrutia-Quiroga (sgurruti) said :
#8

Hi all,

I have been re-installing some of the software and now I get a different error message. Maybe this time you can find what I'm doing wrong:

Error detected in "generate_events run_01"
write debug file /Users/surrutiaquir/Software/MG5_aMC_v2_8_2/TestMG/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_v2_8_2/TestMG/SubProcesses/P1_ll_ll.
 The compilation fails with the following output message:
     /Users/surrutiaquir/Software/Python/bin/x86_64-apple-darwin13.4.0-gfortran -march=nocona -mtune=core2 -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -ffixed-line-length-132 -w -c symmetry.f -I../../Source/
     /Users/surrutiaquir/Software/Python/bin/x86_64-apple-darwin13.4.0-gfortran -march=nocona -mtune=core2 -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
     /Users/surrutiaquir/Software/Python/bin/x86_64-apple-darwin13.4.0-gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -lmodel -lgeneric -lpdf -lc++ -mmacosx-version-min=10.8
     ld: library not found for -lSystem
     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

Best,
Sebastian

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

I have faced some user with that one.
not always clear to me what need to be done
here is what I remember to be working for some user:
xcode-select --install
and running that command
export LD_LIBRARY_PATH=4LD_LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib

Cheers,

Olivier

> On 5 Mar 2021, at 16:55, Sebastian Urrutia-Quiroga <email address hidden> wrote:
>
> Question #695557 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/695557
>
> Status: Expired => Open
>
> Sebastian Urrutia-Quiroga is still having a problem:
> Hi all,
>
> I have been re-installing some of the software and now I get a different
> error message. Maybe this time you can find what I'm doing wrong:
>
> Error detected in "generate_events run_01"
> write debug file /Users/surrutiaquir/Software/MG5_aMC_v2_8_2/TestMG/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_v2_8_2/TestMG/SubProcesses/P1_ll_ll.
> The compilation fails with the following output message:
> /Users/surrutiaquir/Software/Python/bin/x86_64-apple-darwin13.4.0-gfortran -march=nocona -mtune=core2 -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -ffixed-line-length-132 -w -c symmetry.f -I../../Source/
> /Users/surrutiaquir/Software/Python/bin/x86_64-apple-darwin13.4.0-gfortran -march=nocona -mtune=core2 -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
> /Users/surrutiaquir/Software/Python/bin/x86_64-apple-darwin13.4.0-gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -lmodel -lgeneric -lpdf -lc++ -mmacosx-version-min=10.8
> ld: library not found for -lSystem
> 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
>
> Best,
> Sebastian
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Sebastian Urrutia-Quiroga (sgurruti) said :
#10

Thanks Olivier Mattelaer, that solved my question.

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

On another big sur machine, I fixed the same issue with the command:

sudo xcode-select -s /Library/Developer/CommandLineTools/

which is likely a bit cleaner that the suggestion above.