1<html lang="en">
2<head>
3<title>Installing GCC: Old documentation</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Installing GCC: Old documentation">
6<meta name="generator" content="makeinfo 4.12">
7<link title="Top" rel="top" href="#Top">
8<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
9<!--
10Copyright (C) 1988-2015 Free Software Foundation, Inc.
11
12   Permission is granted to copy, distribute and/or modify this document
13under the terms of the GNU Free Documentation License, Version 1.3 or
14any later version published by the Free Software Foundation; with no
15Invariant Sections, the Front-Cover texts being (a) (see below), and
16with the Back-Cover Texts being (b) (see below).  A copy of the
17license is included in the section entitled "GNU Free Documentation License".
18
19(a) The FSF's Front-Cover Text is:
20
21     A GNU Manual
22
23(b) The FSF's Back-Cover Text is:
24
25     You have freedom to copy and modify this GNU Manual, like GNU
26     software.  Copies published by the Free Software Foundation raise
27     funds for GNU development.-->
28<meta http-equiv="Content-Style-Type" content="text/css">
29<style type="text/css"><!--
30  pre.display { font-family:inherit }
31  pre.format  { font-family:inherit }
32  pre.smalldisplay { font-family:inherit; font-size:smaller }
33  pre.smallformat  { font-family:inherit; font-size:smaller }
34  pre.smallexample { font-size:smaller }
35  pre.smalllisp    { font-size:smaller }
36  span.sc    { font-variant:small-caps }
37  span.roman { font-family:serif; font-weight:normal; } 
38  span.sansserif { font-family:sans-serif; font-weight:normal; } 
39--></style>
40</head>
41<body>
42<h1 class="settitle">Installing GCC: Old documentation</h1>
43<h1 align="center">Old installation documentation</h1>
44
45   <p>Note most of this information is out of date and superseded by the
46previous chapters of this manual.  It is provided for historical
47reference only, because of a lack of volunteers to merge it into the
48main manual.
49
50   <p>Here is the procedure for installing GCC on a GNU or Unix system.
51
52     <ol type=1 start=1>
53<li>If you have chosen a configuration for GCC which requires other GNU
54tools (such as GAS or the GNU linker) instead of the standard system
55tools, install the required tools in the build directory under the names
56<samp><span class="file">as</span></samp>, <samp><span class="file">ld</span></samp> or whatever is appropriate.
57
58     <p>Alternatively, you can do subsequent compilation using a value of the
59<code>PATH</code> environment variable such that the necessary GNU tools come
60before the standard system tools.
61
62     <li>Specify the host, build and target machine configurations.  You do this
63when you run the <samp><span class="file">configure</span></samp> script.
64
65     <p>The <dfn>build</dfn> machine is the system which you are using, the
66<dfn>host</dfn> machine is the system where you want to run the resulting
67compiler (normally the build machine), and the <dfn>target</dfn> machine is
68the system for which you want the compiler to generate code.
69
70     <p>If you are building a compiler to produce code for the machine it runs
71on (a native compiler), you normally do not need to specify any operands
72to <samp><span class="file">configure</span></samp>; it will try to guess the type of machine you are on
73and use that as the build, host and target machines.  So you don't need
74to specify a configuration when building a native compiler unless
75<samp><span class="file">configure</span></samp> cannot figure out what your configuration is or guesses
76wrong.
77
78     <p>In those cases, specify the build machine's <dfn>configuration name</dfn>
79with the <samp><span class="option">--host</span></samp> option; the host and target will default to be
80the same as the host machine.
81
82     <p>Here is an example:
83
84     <pre class="smallexample">          /configure --host=sparc-sun-sunos4.1
85</pre>
86     <p>A configuration name may be canonical or it may be more or less
87abbreviated.
88
89     <p>A canonical configuration name has three parts, separated by dashes. 
90It looks like this: &lsquo;<samp><var>cpu</var><span class="samp">-</span><var>company</var><span class="samp">-</span><var>system</var></samp>&rsquo;. 
91(The three parts may themselves contain dashes; <samp><span class="file">configure</span></samp>
92can figure out which dashes serve which purpose.)  For example,
93&lsquo;<samp><span class="samp">m68k-sun-sunos4.1</span></samp>&rsquo; specifies a Sun 3.
94
95     <p>You can also replace parts of the configuration by nicknames or aliases. 
96For example, &lsquo;<samp><span class="samp">sun3</span></samp>&rsquo; stands for &lsquo;<samp><span class="samp">m68k-sun</span></samp>&rsquo;, so
97&lsquo;<samp><span class="samp">sun3-sunos4.1</span></samp>&rsquo; is another way to specify a Sun 3.
98
99     <p>You can specify a version number after any of the system types, and some
100of the CPU types.  In most cases, the version is irrelevant, and will be
101ignored.  So you might as well specify the version if you know it.
102
103     <p>See <a href="#Configurations">Configurations</a>, for a list of supported configuration names and
104notes on many of the configurations.  You should check the notes in that
105section before proceeding any further with the installation of GCC.
106
107        </ol>
108
109   <p><h2><a name="Configurations"></a>Configurations Supported by GCC</h2><a name="index-configurations-supported-by-GCC-1"></a>
110Here are the possible CPU types:
111
112   <blockquote>
113<!-- gmicro, fx80, spur and tahoe omitted since they don't work. -->
1141750a, a29k, alpha, arm, avr, c<var>n</var>, clipper, dsp16xx, elxsi, fr30, h8300,
115hppa1.0, hppa1.1, i370, i386, i486, i586, i686, i786, i860, i960, ip2k, m32r,
116m68000, m68k, m88k, mcore, mips, mipsel, mips64, mips64el,
117mn10200, mn10300, ns32k, pdp11, powerpc, powerpcle, romp, rs6000, sh, sparc,
118sparclite, sparc64, v850, vax, we32k. 
119</blockquote>
120
121   <p>Here are the recognized company names.  As you can see, customary
122abbreviations are used rather than the longer official names.
123
124<!-- What should be done about merlin, tek*, dolphin? -->
125   <blockquote>
126acorn, alliant, altos, apollo, apple, att, bull,
127cbm, convergent, convex, crds, dec, dg, dolphin,
128elxsi, encore, harris, hitachi, hp, ibm, intergraph, isi,
129mips, motorola, ncr, next, ns, omron, plexus,
130sequent, sgi, sony, sun, tti, unicom, wrs. 
131</blockquote>
132
133   <p>The company name is meaningful only to disambiguate when the rest of
134the information supplied is insufficient.  You can omit it, writing
135just &lsquo;<samp><var>cpu</var><span class="samp">-</span><var>system</var></samp>&rsquo;, if it is not needed.  For example,
136&lsquo;<samp><span class="samp">vax-ultrix4.2</span></samp>&rsquo; is equivalent to &lsquo;<samp><span class="samp">vax-dec-ultrix4.2</span></samp>&rsquo;.
137
138   <p>Here is a list of system types:
139
140   <blockquote>
141386bsd, aix, acis, amigaos, aos, aout, aux, bosx, bsd, clix, coff, ctix, cxux,
142dgux, dynix, ebmon, ecoff, elf, esix, freebsd, hms, genix, gnu, linux,
143linux-gnu, hiux, hpux, iris, irix, isc, luna, lynxos, mach, minix, msdos, mvs,
144netbsd, newsos, nindy, ns, osf, osfrose, ptx, riscix, riscos, rtu, sco, sim,
145solaris, sunos, sym, sysv, udi, ultrix, unicos, uniplus, unos, vms, vsta,
146vxworks, winnt, xenix. 
147</blockquote>
148
149<p class="noindent">You can omit the system type; then <samp><span class="file">configure</span></samp> guesses the
150operating system from the CPU and company.
151
152   <p>You can add a version number to the system type; this may or may not
153make a difference.  For example, you can write &lsquo;<samp><span class="samp">bsd4.3</span></samp>&rsquo; or
154&lsquo;<samp><span class="samp">bsd4.4</span></samp>&rsquo; to distinguish versions of BSD.  In practice, the version
155number is most needed for &lsquo;<samp><span class="samp">sysv3</span></samp>&rsquo; and &lsquo;<samp><span class="samp">sysv4</span></samp>&rsquo;, which are often
156treated differently.
157
158   <p>&lsquo;<samp><span class="samp">linux-gnu</span></samp>&rsquo; is the canonical name for the GNU/Linux target; however
159GCC will also accept &lsquo;<samp><span class="samp">linux</span></samp>&rsquo;.  The version of the kernel in use is
160not relevant on these systems.  A suffix such as &lsquo;<samp><span class="samp">libc1</span></samp>&rsquo; or &lsquo;<samp><span class="samp">aout</span></samp>&rsquo;
161distinguishes major versions of the C library; all of the suffixed versions
162are obsolete.
163
164   <p>If you specify an impossible combination such as &lsquo;<samp><span class="samp">i860-dg-vms</span></samp>&rsquo;,
165then you may get an error message from <samp><span class="file">configure</span></samp>, or it may
166ignore part of the information and do the best it can with the rest. 
167<samp><span class="file">configure</span></samp> always prints the canonical name for the alternative
168that it used.  GCC does not support all possible alternatives.
169
170   <p>Often a particular model of machine has a name.  Many machine names are
171recognized as aliases for CPU/company combinations.  Thus, the machine
172name &lsquo;<samp><span class="samp">sun3</span></samp>&rsquo;, mentioned above, is an alias for &lsquo;<samp><span class="samp">m68k-sun</span></samp>&rsquo;. 
173Sometimes we accept a company name as a machine name, when the name is
174popularly used for a particular machine.  Here is a table of the known
175machine names:
176
177   <blockquote>
1783300, 3b1, 3b<var>n</var>, 7300, altos3068, altos,
179apollo68, att-7300, balance,
180convex-c<var>n</var>, crds, decstation-3100,
181decstation, delta, encore,
182fx2800, gmicro, hp7<var>nn</var>, hp8<var>nn</var>,
183hp9k2<var>nn</var>, hp9k3<var>nn</var>, hp9k7<var>nn</var>,
184hp9k8<var>nn</var>, iris4d, iris, isi68,
185m3230, magnum, merlin, miniframe,
186mmax, news-3600, news800, news, next,
187pbd, pc532, pmax, powerpc, powerpcle, ps2, risc-news,
188rtpc, sun2, sun386i, sun386, sun3,
189sun4, symmetry, tower-32, tower. 
190</blockquote>
191
192<p class="noindent">Remember that a machine name specifies both the cpu type and the company
193name. 
194<hr />
195<p><a href="/index.html">Return to the GCC Installation page</a>
196
197<!-- ***GFDL******************************************************************** -->
198<!-- *************************************************************************** -->
199<!-- Part 6 The End of the Document -->
200</body></html>
201
202