Ld: symbol(s) not found for architecture x86_64

Dear all,
I’m using MacOS Catalina 10.15 and have Xcode 11.6.
I have GNU Fortran (MacPorts gcc9 9.2.0_2) 9.2.0 and 2.6.3 port.
As I run “make” command at the path “~/fluka4-0.0”, the output shows like
“”
gfortran -o /Users/gengqiaolei/fluka4-0.0//bin/fluka -L/Users/gengqiaolei/fluka4-0.0//lib -lfluka
Undefined symbols for architecture x86_64:
“__gfortran_os_error_at”, referenced from:
dnrloa in libfluka.a(dnrloa.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [/Users/gengqiaolei/fluka4-0.0//bin/fluka] Error 1
“”
What should I do?
Cheers,
Charlie

Dear Charlie,

please try to install the FLUKA package built with gfortran 8.

Cheers,
David

1 Like

It works!!! Thanks a lot:)