Madgraph after Mac Big Sur upgrade

Asked by Sebastian Urrutia-Quiroga on 2021-02-15

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:
Open
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2021-02-16
Last reply:
2021-02-16

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.

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

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

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.

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.

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!

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.