Downloading GCC

GCC is distributed via git and via HTTPS as tarballs compressed with gzip or bzip2.

Please refer to the releases web page for information on how to obtain GCC.

The source distribution includes the Ada, C, C++, Objective-C, D (GCC 9 and later), Fortran, Go, and Modula-2 (GCC 13 and later) compilers, as well as runtime libraries for C++, Objective-C, and Fortran. For previous versions these were downloadable as separate components such as the core GCC distribution, which included the C language front end and shared components, and language-specific distributions including the language front end and the language runtime (where appropriate).

If you also intend to build binutils (either to upgrade an existing installation or for use in place of the corresponding tools of your OS), unpack the binutils distribution either in the same directory or a separate one. In the latter case, add symbolic links to any components of the binutils you intend to build alongside the compiler (bfd, binutils, gas, gprof, ld, opcodes, …) to the directory containing the GCC sources.

Likewise the GMP, MPFR, MPC and Gettext libraries can be automatically built together with GCC. You may simply run the contrib/download_prerequisites script in the GCC source directory to set up everything. Otherwise unpack the GMP, MPFR, MPC and/or Gettext source distributions in the directory containing the GCC sources and rename their directories to gmp, mpfr, mpc and gettext, respectively (or use symbolic links with the same name).


Return to the GCC Installation page