Dear developers,
I am new to FLUKA and am trying to install the latest release on my personal Macbook (Catalina) using gfortran-10 (from homebrew).
❯ which gfortran
/usr/local/bin/gfortran
❯ /usr/local/bin/gfortran --version
GNU Fortran (Homebrew GCC 10.2.0) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
As instructed in https://fluka.cern/documentation/installation/fluka-linux-macos
I am in the directory of
❯ pwd
/Users/yz/Documents/fluka4-1.0/src
and use the command make -j 4
.
But I got this error message:
...
gfortran -c -o usrsuwev.o -I/Users/yz/Documents/fluka4-1.0//include -J/Users/yz/Documents/fluka4-1.0//include -g -O3 -fd-lines-as-comments -Wall -Waggregate-return -Wcast-align -Wline-truncation -Wno-conversion -Wno-integer-division -Wno-tabs -Wno-unused-dummy-argument -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -Wsystem-headers -Wuninitialized -Wunused-label -mtune=generic -msse2 -mfpmath=sse -fPIC -fexpensive-optimizations -funroll-loops -fstrength-reduce -fno-automatic -finit-local-zero -ffixed-line-length-132 -fbackslash -funderscoring -frecord-marker=4 -falign-commons -fbacktrace -frange-check -fbounds-check -fdump-core -ftrapping-math -ffpe-trap=invalid,zero,overflow usrsuwev.f
gcc -c -o usbmax.o -I/Users/yz/Documents/fluka4-1.0//include -g -O3 -Wpadded -Wpacked -malign-double -mpreferred-stack-boundary=8 usbmax.c
clang: error: unknown argument: '-mpreferred-stack-boundary=8'
make[1]: *** [usbmax.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [tools] Error 2
I searched it in this user forum a little bit but didn’t find a related answer, so I am posting a new one.
Thanks in advance!
Best,
Yao