I upgraded my macOS to Monterey 12.3 and my gfortran code no longer compiles. Initially, running:
gfortran -o executable make_executable1.o make_executable2.o
gave this error message:
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
make: *** [fm3d] Error 1
I then added the path to the Library by running:
export LIBRARY_PATH="$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
and I now get this error:
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
make: *** [fm3d] Error 1
I assume it is a problem with my CommandLine, but I have reinstalled everything to their latest version and I can't get it to work.
macOS Monterey 12.3
Apple clang version 13.1.6 (clang-1316.0.21.2)
GNU Fortran (GCC) 11.2.0
CommandLine Tools version: 13.3.0.0.1.1645755326
Any advice on the next step to take would be appreciated!