MadGraph is showing error after MAC OS update to Ventura 13.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I have recently updated my MAC OS to Ventura 13.4 (before that the Madgraph version 3.4.2 was working perfectly fine). Now if I try to generate some process, it will end up showing the error :
INFO: Update the dependent parameter of the param_card.dat
Generating 10000 events with run name run_01
survey run_01
INFO: compile directory
compile Source Directory
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:
/bin/sh: /usr/local/
gfortran -w -fPIC -O -ffixed-
make: gfortran: Bad CPU type in executable
gfortran -w -fPIC -O -ffixed-
make: gfortran: Bad CPU type in executable
gfortran -w -fPIC -O -ffixed-
make: gfortran: Bad CPU type in executable
gfortran -w -fPIC -O -ffixed-
make: gfortran: Bad CPU type in executable
make: *** [StringCast.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [ranmar.o] Error 1
make: *** [alfas_functions.o] Error 1
make: *** [transpole.o] 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:/
I have tried to reinstall the xcode as well as gcc compiler, but the same problem still persists. Can you please help me regarding this. I am also attaching the corresponding bug report here. Thanks in advance,
Chayan
Hi,
Yes Update to Ventura is extremely problematic and it took me ~8 months to have a setup that seems to fully work with that OS. Which (I hope) is the case now.
So I have tested so many stuff in that period that it would be difficult to explain the full stuff that I did. /hpc.sourceforg e.net/ compiled library/... (so in case of MG5aMC, the best is to remove the directory and do a full re-install including ). on.txt)
But basically
1) remove gcc from brew (or equivalent)
2) install gfortran AND gcc from https:/
3) be sure that you always use those
4) install with brew python3.11
5) remove all previous installation/
6) be sure to use the gcc compiler installed by sourceforge within MG5aMC (so include cpp_compiler = g++ in the mg5_configurati
6) I think that LHAPDF installation was still problematic since it had issue with the python version.
So my advise is to first compile it without python and then when you have figure it out, then add python (I might have need to hack the installation of lhapdf to do it but not sure anymore)
The main issue with Venturra is that MacOS move a lot of code to arm based while before it was intel based so any code linking to one of such code is now forced to use ARM format while before it was forced to used INTEL format.
So you need to clean (A LOT) of library and re-compile them.
As said, after 8 months, I finally succeed to do it locally (I hope) thanks to https:/ /hpc.sourceforg e.net/
that provide a dedicated gcc and gfortran routine that fixed such type of issue (was not the case with those from brew).
Good luck,
Olivier
> On 23 Jun 2023, at 16:05, Chayan Majumdar <email address hidden> wrote: chayan/ Downloads/ MG5_aMC_ v3_4_2/ try/run_ 01_tag_ 1_debug. log /answers. launchpad. net/mg5amcnlo chayan/ Downloads/ MG5_aMC_ v2_9_15/ try/Source. bin/gfortran: Bad CPU type in executable line-length- 132 -c -o StringCast.o StringCast.f line-length- 132 -c -o ranmar.o ranmar.f line-length- 132 -c -o alfas_functions.o alfas_functions.f line-length- 132 -c -o transpole.o transpole.f
>
> Public bug reported:
>
> Hi,
>
> I have recently updated my MAC OS to Ventura 13.4 (before that the
> Madgraph version 3.4.2 was working perfectly fine). Now if I try to
> generate some process, it will end up showing the error :
>
> INFO: Update the dependent parameter of the param_card.dat
> Generating 10000 events with run name run_01
> survey run_01
> INFO: compile directory
> compile Source Directory
> 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:
> /bin/sh: /usr/local/
> gfortran -w -fPIC -O -ffixed-
> make: gfortran: Bad CPU type in executable
> gfortran -w -fPIC -O -ffixed-
> make: gfortran: Bad CPU type in executable
> gfortran -w -fPIC -O -ffixed-
> make: gfortran: Bad CPU type in executable
> gfortran -w -fPIC -O -ffixed-
> make: gfortran: Bad CPU type in executable
> make: *** [StringCast.o] Error 1
> make: *** Waiting for unfinished jobs....
> make: *** ...