gfortran: Fortran compiler from the GNU Compiler Collection#

Description#

This package represents the required Fortran compiler.

Officially we support gfortran from GNU Compiler Collection (GCC). It has also been reported that using flang (from LLVM) might work.

You can pass the names of compilers to use to ./configure using the environment variables CC, CXX, and FC, for C, C++, and Fortran compilers, respectively.

For example, if your C compiler is clang, your C++ compiler is clang++, and your Fortran compiler is flang, then you would need to run:

$ ./configure CC=clang CXX=clang++ FC=flang

License#

GPL version 2 or version 3

Upstream Contact#

http://gcc.gnu.org/

Special Update/Build Instructions#

None.

Type#

standard

Dependencies#

Version Information#

package-version.txt:

13.2.0

Equivalent System Packages#

$ apk add gfortran
$ sudo pacman -S gcc-fortran
$ conda install fortran-compiler
$ apt-cyg install gcc-fortran
$ sudo apt-get install gfortran
$ sudo yum install gcc-gfortran
$ sudo pkg install lang/gcc9
$ brew install gfortran
$ sudo port install gcc10 +gfortran
$ sudo zypper install gcc-fortran
$ sudo slackpkg install gcc-gfortran
$ sudo xbps-install gcc-fortran

See https://repology.org/project/gfortran/versions

If the system package is installed, ./configure will check if it can be used.