Home | History | Annotate | Line # | Download | only in INSTALL
      1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      2 <html>
      3 <!-- Copyright (C) 1988-2024 Free Software Foundation, Inc.
      4 
      5 Permission is granted to copy, distribute and/or modify this document
      6 under the terms of the GNU Free Documentation License, Version 1.3 or
      7 any later version published by the Free Software Foundation; with no
      8 Invariant Sections, the Front-Cover texts being (a) (see below), and
      9 with the Back-Cover Texts being (b) (see below).  A copy of the
     10 license is included in the section entitled "GNU
     11 Free Documentation License".
     12 
     13 (a) The FSF's Front-Cover Text is:
     14 
     15 A GNU Manual
     16 
     17 (b) The FSF's Back-Cover Text is:
     18 
     19 You have freedom to copy and modify this GNU Manual, like GNU
     20      software.  Copies published by the Free Software Foundation raise
     21      funds for GNU development. -->
     22 <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
     23 <head>
     24 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     25 <title>Downloading GCC</title>
     26 
     27 <meta name="description" content="Downloading GCC">
     28 <meta name="keywords" content="Downloading GCC">
     29 <meta name="resource-type" content="document">
     30 <meta name="distribution" content="global">
     31 <meta name="Generator" content="makeinfo">
     32 <style type="text/css">
     33 <!--
     34 a.summary-letter {text-decoration: none}
     35 blockquote.indentedblock {margin-right: 0em}
     36 blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
     37 blockquote.smallquotation {font-size: smaller}
     38 div.display {margin-left: 3.2em}
     39 div.example {margin-left: 3.2em}
     40 div.lisp {margin-left: 3.2em}
     41 div.smalldisplay {margin-left: 3.2em}
     42 div.smallexample {margin-left: 3.2em}
     43 div.smalllisp {margin-left: 3.2em}
     44 kbd {font-style: oblique}
     45 pre.display {font-family: inherit}
     46 pre.format {font-family: inherit}
     47 pre.menu-comment {font-family: serif}
     48 pre.menu-preformatted {font-family: serif}
     49 pre.smalldisplay {font-family: inherit; font-size: smaller}
     50 pre.smallexample {font-size: smaller}
     51 pre.smallformat {font-family: inherit; font-size: smaller}
     52 pre.smalllisp {font-size: smaller}
     53 span.nolinebreak {white-space: nowrap}
     54 span.roman {font-family: initial; font-weight: normal}
     55 span.sansserif {font-family: sans-serif; font-weight: normal}
     56 ul.no-bullet {list-style: none}
     57 -->
     58 </style>
     59 
     60 
     61 </head>
     62 
     63 <body lang="en">
     64 <h1 class="settitle" align="center">Downloading GCC</h1>
     65 
     66 
     67 
     68 
     69 
     70 
     71 
     72 
     73 
     74 
     75 
     76 
     77 
     78 
     79 
     80 
     81 
     82 
     83 
     84 
     85 
     86 <a name="index-Downloading-GCC"></a>
     87 <a name="index-Downloading-the-Source"></a>
     88 
     89 <p>GCC is distributed via <a href="https://gcc.gnu.org/git.html">git</a> and via
     90 HTTPS as tarballs compressed with <code>gzip</code> or <code>bzip2</code>.
     91 </p>
     92 <p>Please refer to the <a href="https://gcc.gnu.org/releases.html">releases web page</a>
     93 for information on how to obtain GCC.
     94 </p>
     95 <p>The source distribution includes the Ada, C, C++, Objective-C, D (GCC 9
     96 and later), Fortran, Go, and Modula-2 (GCC 13 and later) compilers, as
     97 well as runtime libraries for C++, Objective-C, and Fortran.
     98 For previous versions these were downloadable as separate components such
     99 as the core GCC distribution, which included the C language front end and
    100 shared components, and language-specific distributions including the
    101 language front end and the language runtime (where appropriate).
    102 </p>
    103 <p>If you also intend to build binutils (either to upgrade an existing
    104 installation or for use in place of the corresponding tools of your
    105 OS), unpack the binutils distribution either in the same directory or
    106 a separate one.  In the latter case, add symbolic links to any
    107 components of the binutils you intend to build alongside the compiler
    108 (<samp>bfd</samp>, <samp>binutils</samp>, <samp>gas</samp>, <samp>gprof</samp>, <samp>ld</samp>,
    109 <samp>opcodes</samp>, &hellip;) to the directory containing the GCC sources.
    110 </p>
    111 <p>Likewise the GMP, MPFR, MPC and Gettext libraries can be automatically
    112 built together with GCC.  You may simply run the
    113 <code>contrib/download_prerequisites</code> script in the GCC source directory
    114 to set up everything.
    115 Otherwise unpack the GMP, MPFR, MPC and/or Gettext source
    116 distributions in the directory containing the GCC sources and rename
    117 their directories to <samp>gmp</samp>, <samp>mpfr</samp>, <samp>mpc</samp> and
    118 <samp>gettext</samp>, respectively (or use symbolic links with the same name).
    119 </p>
    120 <hr />
    121 <p>
    122 <p><a href="./index.html">Return to the GCC Installation page</a>
    123 </p>
    124 
    125 
    126 
    127 
    128 
    129 
    130 
    131 
    132 
    133 
    134 
    135 </body>
    136 </html>
    137