I use f2py to compile the file barotropic.f90 from the module 'model2roms' (https://github.com/trondkr/model2roms).
My installations are:
macOS Monterey 12.5
Xcode 13.4.1
Python 3.9.13
When I run: f2py -c -m barotropic barotropic.f90
Then the log shows:
Log
The problem seems to be in this line: ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd' for architecture x86_64
I think it is weird that I run macOS 12.5, but f2py refers to 'src.macosx-10.9-x86_64-3.9'
Does anyone know why I get this error and how I can solve it?
I already tried:
$ brew upgrade llvm
$ brew upgrade gcc
$ sudo rm -rf /Library/Developer/CommandLineTools
$ xcode-select --install
And I tried to downgrade Xcode to an older version