Gfortran not compiling - '!tapi-tbd' - liblapack.tbd

I used gfortran calling blas and lapack with no problems. Now, probably due to some updates, every time I try to compile a code I get this message:

ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/lib/liblapack.tbd' for architecture x86_64 collect2: error: ld returned 1 exit status

Could anyone please explain to me how to fix this issue? I have already reinstalled gfortran, openblas, and lapack many times using "brew reinstall". That does not fix anything. Please, help!!

This is how I used to compile in the past without any problem:

gfortran -o code.out code.f90 -llapack -lblas

Replies

To start, I recommend that you check out An Apple Library Primer. The section of .tbd files links to this post which has some background details on this issue.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"