Dear FLUKA experts,
I have been using FLUKA 4-4.x on macOS Sonoma for a while and it worked as expected. Recently, after updating to macOS Sequoia 15.1 and doing a MacPorts migration, FLUKA stopped working.
The program runs normally if I use any executable that I previously complied before the update. However, if I compile any user routine now, the executable is built successfully, but using it results in an error. I get the same error if I use the built-in fluka
and flukadpm
executables (probably because I reinstalled FLUKA after the update in an attempt to fix the issue).
Here is the error I get after running the example.inp
file included in the FLUKA directory with any newly built executable:
/Users/nairat/FLUKA/fluka4-4.1/bin/rfluka: line 376: 12015 Illegal instruction: 4 "${EXE}" "${INPF}" > "${LOGF}" 2>&1
Error: "/Users/nairat/FLUKA/fluka4-4.1/bin/flukadpm" executable returned RC=132
The log file gives this error:
Program received signal SIGILL: Illegal instruction.
Running the program with a debugger gives this error:
stop reason = EXC_BAD_INSTRUCTION (code=1, subcode=0x1e6a19e1)
frame #0: 0x0000000100388920 Test`ampart_ at ampart.f:278:132
I am using gcc 13.3.0
from MacPorts. Both MacPorts and FLUKA directories are added to $PATH
. The commands which rfluka
, which gfortran
, and gfortran -v
return:
/Users/nairat/FLUKA/fluka4-4.1/bin/rfluka
/opt/local/bin/gfortran
gcc version 13.3.0 (MacPorts gcc13 13.3.0_2+stdlib_flag)
I tried reinstalling FLUKA, wiping all the installed ports and reinstalling them, and installing gcc14
instead of gcc13
. But none of that resolved the issue.
I would greatly appreciate any advice you may have.
Best,
Obada