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#
Special Update/Build Instructions#
None.
Type#
standard
Dependencies#
Version Information#
package-version.txt:
12.2.0
Equivalent System Packages#
arch:
$ sudo pacman -S gcc-fortran
conda:
$ conda install fortran-compiler
cygwin:
$ apt-cyg install gcc-fortran
Debian/Ubuntu:
$ sudo apt-get install gfortran
Fedora/Redhat/CentOS:
$ sudo yum install gcc-gfortran
freebsd:
$ sudo pkg install lang/gcc9
homebrew:
$ brew install gfortran
macports: install the following packages: gcc10 +gfortran
opensuse:
$ sudo zypper install gcc-fortran
slackware:
$ sudo slackpkg install gcc-gfortran
void:
$ sudo xbps-install gcc-fortran
See https://repology.org/project/gfortran/versions
If the system package is installed, ./configure will check whether it can be used.