I'm trying to compile a fortran code on macOS Ventura v 13.1 (22C65) on my MacBook pro (M1) using gfortran.
However, I get the following error when linking:
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libSystem.tbd' for architecture arm64
collect2: error: ld returned 1 exit status
I have tried
brew upgrade llvm
brew upgrade gcc
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
and also to install a downgrade version from https://developer.apple.com/download/more/, but nothing seems to work. Any suggestions?