Madgraph after Mac Big Sur upgrade
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/
If you need help with this issue please contact us on https:/
str : A compilation Error occurs when trying to compile /Users/
The compilation fails with the following output message:
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -O -w -fbounds-check -fPIC -ffixed-
gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -lmodel -lgeneric -lpdf -lc++ -mmacosx-
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:/
If you think that this is a bug, you can report this at https:/
Any ideas about what is going on? Thanks a lot!
Sebastian
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Olivier Mattelaer
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#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:/
>
> 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/
> If you need help with this issue please contact us on https:/
> str : A compilation Error occurs when trying to compile /Users/
> The compilation fails with the following output message:
> gfortran -O -w -fbounds-check -fPIC -ffixed-
> gfortran -O -w -fbounds-check -fPIC -ffixed-
> gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -lmodel -lgeneric -lpdf -lc++ -mmacosx-
> 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:/
> If you think that this is a bug, you can report this at https:/
>
>
>
> 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
|
#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/
If you need help with this issue please contact us on https:/
str : A compilation Error occurs when trying to compile /Users/
The compilation fails with the following output message:
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
/Users/
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Applications/
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:/
If you think that this is a bug, you can report this at https:/
Any thoughts?
Best,
Sebastian
Revision history for this message
|
#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
|
#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
|
#5 |
Looks like it is corrupted:
according to https:/
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:/
>
> 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
|
#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
|
#7 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
Revision history for this message
|
#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/
If you need help with this issue please contact us on https:/
str : A compilation Error occurs when trying to compile /Users/
The compilation fails with the following output message:
/Users/
/Users/
/Users/
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:/
If you think that this is a bug, you can report this at https:/
Best,
Sebastian
Revision history for this message
|
#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_
Cheers,
Olivier
> On 5 Mar 2021, at 16:55, Sebastian Urrutia-Quiroga <email address hidden> wrote:
>
> Question #695557 on MadGraph5_aMC@NLO changed:
> https:/
>
> 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/
> If you need help with this issue please contact us on https:/
> str : A compilation Error occurs when trying to compile /Users/
> The compilation fails with the following output message:
> /Users/
> /Users/
> /Users/
> 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:/
> If you think that this is a bug, you can report this at https:/
>
> Best,
> Sebastian
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
Revision history for this message
|
#10 |
Thanks Olivier Mattelaer, that solved my question.
Revision history for this message
|
#11 |
On another big sur machine, I fixed the same issue with the command:
sudo xcode-select -s /Library/
which is likely a bit cleaner that the suggestion above.