@eskimo I've run into a similar problem but I am unable to upgrade to a different version of gfortran as my package is not compatible with new compilers. I've also recently upgraded to sonoma so I am unable to downgrade the xcode command line tools. Is there anything else I can do to resolve this problem?
dhcp-194-201:dusty samrose$ make
gfortran-8 -O3 -lgomp -fopenmp -o dusty dusty.f90
dusty.f90:503:22:
subroutine Kernel(path,lpath,tau,Nmodel)
1
Warning: Interface mismatch in global procedure 'kernel' at (1): ALLOCATABLE mismatch in argument 'tau' [-Wargument-mismatch]
-macosx_version_min has been renamed to -macos_version_min
ld: warning: ignoring duplicate libraries: '-lSystem', '-lgcc', '-lgcc_ext.10.5', '-lgomp'
ld: unsupported mach-o filetype (only MH_OBJECT and MH_DYLIB can be linked) in '/usr/local/Cellar/gcc@8/8.5.0/lib/gcc/8/libgcc_ext.10.5.dylib'
collect2: error: ld returned 1 exit status
make: *** [all] Error 1