Home > other >  gfortran cannot match MacOS Ventura version
gfortran cannot match MacOS Ventura version

Time:10-26

The new MacOS Ventura seems to have broken gfortran MacOS version control. To reproduce my error you only have to do

 gfortran --version

And the output is

gfortran: warning: could not understand version ‘13.00.00’
GNU Fortran (GCC) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This in itself is just a warning so it might not be a big deal but it breaks "./configure" scripts that require some MacOS versions, e.g. if you try to compile LoopTools you get the following error (in the log file)

arm64-apple-darwin20.0.0-gfortran: warning: could not understand version '13.00.00'
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
collect2: error: ld returned 1 exit status

Since the version cannot be properly read it cannot be compared.

Is there some sort of work around this bug?

CodePudding user response:

I had installed gfortran through conda but aparantly the version is from last year.

I solved it by removing it from conda (had to remove conda entirely due to linking issues) and installed it with brew : brew install conda.

CodePudding user response:

In the mac M1, After the installation of gfortran due to "brew install gfortran", I tried to run a program and I have this error:

gfortran program.f90
ld: library not found for -lSystem

collect2: error: ld returned 1 exit status

And the command "brew install conda" have this error :

Warning: No available formula with the name "conda". Did you mean confd or conan?

  • Related