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