Binaries available for gfortran

This page gathers links to all unofficial gfortran binary packages people regularly build, based on the current development gfortran source code.

Note: There do not exist any official FSF/GNU/GCC binary builds (only source packages). Most of the builds below come from gfortran maintainers but not all.


Windows

If in doubt, or if you don't know what Cygwin and MinGW are, the package for you is the MinGW ("native Windows") package!


MacOS

The gfortran maintainers offer nice Apple-style installers for:

Detailed instructions can be found here.


For older OS X versions, we have:


Other projects packaging GCC (and gfortran) binaries for Mac include:



GNU/Linux

Most Linux distributions offer gfortran packages, some have also builds for the experimental versions

Nightly builds are available at:


Building from Source

See also InstallingGCC and http://gcc.gnu.org/install/

  1. Obtain the source code either via
  2. You should have the right versions of GMP, MPFR and MPC (and optionally for Graphite: CLOOG and ISL) installed, which you can download from ftp://gcc.gnu.org/pub/gcc/infrastructure/ (They can also be automatically build with GCC.)

    • Note: You can use ./contrib/download_prerequisites to download them.

  3. Follow the instructions; in a nutshell, you will do

    • create a build directory, e.g. gcc-build underneath the source directory

    • go to the build directory and run configure from there; for instance: ../configure --prefix=$HOME/gcc-trunk --enable-languages=c,fortran

    • run make

    • run make install

Useful configure options: --enable-checking=release which disables some compile-time checks which slow down the compiler; --disable-bootstrap which speeds up the build but uses the system compiler and disables some consistency checks; --disable-build-poststage1-with-cxx (for 4.7 or higher) avoids building GCC with a C++ compiler, esp. useful if no C++ should be compiled; --disable-libstdcxx-pch speeds up the compilation a bit by not creating pre-compiled header files.

None: GFortranBinaries (last edited 2013-11-09 14:18:27 by TobiasBurnus)