After upgrading to MacOS Sequoia (with XCode and CommandLineTools 16), my FLUKA installation (v 4.4.1) stopped working with an immediate runtime error stating “illegal instruction”. Following the instructions mentioned in this post, I was able to get FLUKA running again by adding the “-ld_classic” flag.
However, when I try to use a user routine such as magfld,f or source.f, the error reappears. I tried adding the flag into the lfluka executable as well but this had no effect. The routines worked on an older MacOS version and on a Linux installation, so I think it’s related to the above issue but I’m not sure how else to fix it so any guidance would be appreciated.
If relevant, I’m using MacPorts gfortran-14 to compile.
Thanks very much for your prompt reply. I’ve applied this fix and it works for a custom source_newgen.f routine. However, I can’t seem to get a simple magfld.f routine to work - FLUKA crashes immediately with the “Illegal instruction” error, and suggesting that the executable magfld returned RC=132.
I’ve attached my magfld.f file here in case there is an obvious mistake that I am overlooking. magfld.f (2.7 KB)