Illegal instruction Error on macOS Sequoia

Dear @Obada ,

We’ve identified that this issue is related to the new linker introduced in the latest CLT.

To get FLUKA running again, please try the following temporary fix:

  • Open the FLUKA makefile, which you can find in the src directory of your FLUKA installation (<path to FLUKA>/src/makefile)

  • Add -ld_classic option to the linker rules for the FLUKA executables. You’ll need to add it in two places:

    • At line 43:
    ${FC} -ld_classic -o $@ ${LFLAGS} -L${LIBPATH} ${LIB}
    
    • and similarly at line 49:
    ${FC} -ld_classic -o $@ ${LFLAGS} ${INTOBJS} -L${LIBPATH} ${LIBRQMD} ${LIB} ${LIBDPM}
    
  • In the directory src, issue the commands make clean and make.

This workaround should allow you to run FLUKA in the meantime.

Please note that this is not a permanent solution, as -ld_classic is deprecated. We are working on a proper fix to ensure long-term compatibility with the CLT linker.

Please let us know if this works for you or if you have any further questions.

Best, Luigi

1 Like