download.html revision 1.19 1 <!DOCTYPE html>
2 <html>
3 <!-- Created by GNU Texinfo 7.2, https://www.gnu.org/software/texinfo/ -->
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <!-- Copyright 1988-2024 Free Software Foundation, Inc.
7
8 Permission is granted to copy, distribute and/or modify this document
9 under the terms of the GNU Free Documentation License, Version 1.3 or
10 any later version published by the Free Software Foundation; with no
11 Invariant Sections, the Front-Cover texts being (a) (see below), and
12 with the Back-Cover Texts being (b) (see below). A copy of the
13 license is included in the section entitled "GNU
14 Free Documentation License".
15
16 (a) The FSF's Front-Cover Text is:
17
18 A GNU Manual
19
20 (b) The FSF's Back-Cover Text is:
21
22 You have freedom to copy and modify this GNU Manual, like GNU
23 software. Copies published by the Free Software Foundation raise
24 funds for GNU development. -->
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 <meta name="viewport" content="width=device-width,initial-scale=1">
33
34
35
36 </head>
37
38 <body lang="en">
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60 <a class="index-entry-id" id="index-Downloading-GCC"></a>
61 <a class="index-entry-id" id="index-Downloading-the-Source"></a>
62
63 <p>GCC is distributed via <a class="uref" href="https://gcc.gnu.org/git.html">git</a> and via
64 HTTPS as tarballs compressed with <code class="command">gzip</code> or <code class="command">bzip2</code>.
65 </p>
66 <p>Please refer to the <a class="uref" href="https://gcc.gnu.org/releases.html">releases web page</a>
67 for information on how to obtain GCC.
68 </p>
69 <p>The source distribution includes the Ada, C, C++, Objective-C, D (GCC 9
70 and later), Fortran, Go, and Modula-2 (GCC 13 and later) compilers, as
71 well as runtime libraries for C++, Objective-C, and Fortran.
72 For previous versions these were downloadable as separate components such
73 as the core GCC distribution, which included the C language front end and
74 shared components, and language-specific distributions including the
75 language front end and the language runtime (where appropriate).
76 </p>
77 <p>If you also intend to build binutils (either to upgrade an existing
78 installation or for use in place of the corresponding tools of your
79 OS), unpack the binutils distribution either in the same directory or
80 a separate one. In the latter case, add symbolic links to any
81 components of the binutils you intend to build alongside the compiler
82 (<samp class="file">bfd</samp>, <samp class="file">binutils</samp>, <samp class="file">gas</samp>, <samp class="file">gprof</samp>, <samp class="file">ld</samp>,
83 <samp class="file">opcodes</samp>, …) to the directory containing the GCC sources.
84 </p>
85 <p>Likewise the GMP, MPFR, MPC and Gettext libraries can be automatically
86 built together with GCC. You may simply run the
87 <code class="command">contrib/download_prerequisites</code> script in the GCC source directory
88 to set up everything.
89 Otherwise unpack the GMP, MPFR, MPC and/or Gettext source
90 distributions in the directory containing the GCC sources and rename
91 their directories to <samp class="file">gmp</samp>, <samp class="file">mpfr</samp>, <samp class="file">mpc</samp> and
92 <samp class="file">gettext</samp>, respectively (or use symbolic links with the same name).
93 </p>
94 <hr />
95 <p>
96 <p><a class="uref" href="./index.html">Return to the GCC Installation page</a>
97 </p>
98
99
100
101
102
103
104
105
106
107
108
109 </body>
110 </html>
111