Differences between revisions 185 and 186
Revision 185 as of 2014-06-29 18:03:29
Size: 8615
Editor: BradFinney
Comment:
Revision 186 as of 2014-08-14 15:47:52
Size: 8616
Editor: TobiasBurnus
Comment: Change GCC 4.10 to 5
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
  * Unofficial build of current development (4.10) source. Download the latest [[http://users.humboldt.edu/finneyb/gfortran-windows-20140629.exe|installer]] (dated 2014-06-29). It's very easy to use (basically, just click on the OK buttons), but [[GFortranBinariesWindows|some detailed info]] is also available. These binaries work on Windows XP and later versions.   * Unofficial build of current development (GCC 5) source. Download the latest [[http://users.humboldt.edu/finneyb/gfortran-windows-20140629.exe|installer]] (dated 2014-06-29). It's very easy to use (basically, just click on the OK buttons), but [[GFortranBinariesWindows|some detailed info]] is also available. These binaries work on Windows XP and later versions.

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!

  • MinGW for Win64: The Mingw-w64 project has regularly updated snapshots of compilers generating 64-bit Windows executables. They provides several compilers, which run on Windows (32-bit and 64-bit Windows), Cygwin, Linux, and Darwin/MacOS - and which generate binaries for 32bit or 64bit Windows. The file name pattern is <target>-<host>-<option-version>-<date>; thus, mingw-w64-bin_x86_64-mingw_20100527.zip is a compiler targeting 64bit Windows (mingw-w64) but also running ("host") on 64bit Windows (xx86-64-mingw); you might search for the file in Toolchains targetting Win64 (Personal Builds or Automatized Builds).

  • MinGW build ("native Windows" build)

    • Official MinGW builds (only releases), last seen was 4.8.1 (2013-10-11)

    • The MinGW for Win64 project has also binaries for 32bit Windows; e.g. mingw-w32-bin_i686-mingw_<date>.zip runs on and generates binaries for 32bit Windows (cf. above); you might search for the file in Toolchains targetting Win32 (Personal Builds or Automatized Builds).

    • Unofficial build of current development (GCC 5) source. Download the latest installer (dated 2014-06-29). It's very easy to use (basically, just click on the OK buttons), but some detailed info is also available. These binaries work on Windows XP and later versions.

  • TDM GCC: MinGW/MinGW-W64 Builds

  • MinGW 32/64bit builds by www.Equation.com (builds were announced at comp.lang.fortran; note - equation.com is not affiliated with any MinGW or GCC developer. Use at your own risk)

  • Cygwin


MacOS

The gfortran maintainers offer nice Apple-style installers for:

Detailed instructions can be found here.


For older OS X versions, we have:

  • Snow Leopard (10.6) on Intel 64-bit processors (gfortran 4.6.2): download

  • Snow Leopard (10.6) on Intel 32-bit processors (gfortran 4.6.1): download

  • Leopard (10.5) On Intel processors (gfortran 4.6.2): download

  • Leopard (10.5) On PowerPC processors (gfortran 4.6.2): download


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

  • MacPorts (package name, e.g., "gcc48") - the fastest way to get a developer version of GCC. MacPorts comes with a packing software, but all software is compiled before installation. For the developer version, the "Portfile" is updated approx. weekly.

  • Fink offers GCC packages (all released versions) - similar to MacPorts, but also offers binaries; it does not have the developer versions, just the releases.

  • HPC offers occasional GCC builds (also developer versions) for Lion and Snow Leopard (Intel)

  • r.research.att.com offers builds of GCC 4.2

  • via Homebrew



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 2014-08-14 15:47:52 by TobiasBurnus)