[ (python) brew ]~/alice/brew/sw/BUILD/FLUKA-latest/FLUKA$ aliBuild version
aliBuild version: 1.8.2 (osx_x86-64)
[ (python) brew ]~/alice/brew/sw/BUILD/FLUKA-latest/FLUKA$ make
gfortran -o /Users/laurent/alice/brew/sw/BUILD/e34fc5d2a53f9af62a1dbdac32cffa55a2899a39/FLUKA//bin/fluka -L/Users/laurent/alice/brew/sw/BUILD/e34fc5d2a53f9af62a1dbdac32cffa55a2899a39/FLUKA//lib -lfluka
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
make[1]: *** [/Users/laurent/alice/brew/sw/BUILD/e34fc5d2a53f9af62a1dbdac32cffa55a2899a39/FLUKA//bin/fluka] Error 1
make: *** [all] Error 2
My fortran is from brew gcc :
[ (python) brew ]~/alice/brew/sw/BUILD/FLUKA-latest/FLUKA$ gfortran --version
GNU Fortran (Homebrew GCC 10.2.0_2) 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.
Trying with a different (well, still gcc 10.2 but compiled with spack) gfortran I can compile FLUKA just fine so it seems the issue is indeed the fortran compiler.
My brew one (10.2.0_2) is not the latest, but if I try to upgrade (to 10.2.0_4) brew compilation fails…
(hence the test with a spack built one)