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