Error compiling Fortran program on Apple Silicon with gfortran
I've followed the instructions posted on this closed thread: Fortan Compiler for Apple Silicon (M1, M2… - Apple Community about installing/running gfortran on Apple Silicon. However, I'm getting this error when attempting to compile a simple program:
clang: warning: overriding deployment version from '16.0' to '26.0' [-Woverriding-deployment-version]
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd' for architecture x86_64
collect2: error: ld returned 1 exit status
Any thoughts as to what could be the issue?
[Re-Titled by Moderator]
Original Title: Gfortran on Apple Silicon
iMac (M3, 2023)