0

I am attempting to run gfortran on a 2022 Macbook pro with M2 and running Ventura 13.1 but I keep getting this error :

ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libSystem.tbd' for architecture arm64

Any help with this? or is there another compiler out there compatible with apple m2 + ventura 13.1?

Not sure what to try in this case, I tried other solutions for M1 macs running gfortran but no success.

burnsi
  • 6,194
  • 13
  • 17
  • 27
gluonmuon
  • 11
  • 1
  • How did you install gfortran? Did you install the version that is intended for your CPU architecture? Try homebrew or similar. – Vladimir F Героям слава Jan 23 '23 at 13:49
  • @VladimirFГероямслава I used a standalone installer 'gfortran-ARM-12.2-Ventura.dmg' and I also tried homebrew, but I get the same error either way. I did use the apple silicon 'arm' version when installing which is the version needed for my computer. – gluonmuon Jan 24 '23 at 04:16
  • While one would think that such a thing - installing a compiler should be simple, and in most operating systems it indeed is, we have a notoriously high number of people with problems on MacOS. I mean, 90% or more people with such problems come here from MacOS. Hence I strongly recommend packaging distributions like Homebrew and always the latest packages update after any system update. – Vladimir F Героям слава Jan 24 '23 at 10:01
  • If you did try homebrew and have similar problems, you will need to provide the exact details. The exact commands you run and the exact error output you received. You may need to also update the command line tools that probably come with Xcode. Please note that I have never used MacOS. Only the exceptionally (really!) high number of askers coming with problems from MacOS made me to remember some key points. – Vladimir F Героям слава Jan 24 '23 at 10:03
  • I have the same problem trying to compile the most stupid hello world using brew g++-12 and the linker error is the only thing I get – bibi Jan 25 '23 at 11:27
  • @VladimirFГероямслава I used `brew install gcc` and also ensured xcode command line tools were up to date. When I run `gfortran -o hello ptest.f90` I get the following error: `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`. The script I test with: program hello print *, 'Hello, World!' end program hello – gluonmuon Jan 26 '23 at 18:08
  • Yup. I am currently remote into an linux machine to get the work I need done. I will update this thread if I find a solution however. – gluonmuon Jan 26 '23 at 19:53

0 Answers0