OpenCores
URL https://opencores.org/ocsvn/altor32/altor32/trunk

Subversion Repositories altor32

[/] [altor32/] [trunk/] [gcc-x64/] [or1knd-elf/] [share/] [info/] [gccinstall.info] - Blame information for rev 35

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 35 ultra_embe
This is doc/gccinstall.info, produced by makeinfo version 4.13 from
2
../../or1k-gcc/gcc/doc/install.texi.
3
 
4
Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
5
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
6
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 license
13
is included in the section entitled "GNU Free Documentation License".
14
 
15
   (a) The FSF's Front-Cover Text is:
16
 
17
   A GNU Manual
18
 
19
   (b) The FSF's Back-Cover Text is:
20
 
21
   You have freedom to copy and modify this GNU Manual, like GNU
22
software.  Copies published by the Free Software Foundation raise
23
funds for GNU development.
24
 
25
   Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
26
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
27
Free Software Foundation, Inc.
28
 
29
   Permission is granted to copy, distribute and/or modify this document
30
under the terms of the GNU Free Documentation License, Version 1.3 or
31
any later version published by the Free Software Foundation; with no
32
Invariant Sections, the Front-Cover texts being (a) (see below), and
33
with the Back-Cover Texts being (b) (see below).  A copy of the license
34
is included in the section entitled "GNU Free Documentation License".
35
 
36
   (a) The FSF's Front-Cover Text is:
37
 
38
   A GNU Manual
39
 
40
   (b) The FSF's Back-Cover Text is:
41
 
42
   You have freedom to copy and modify this GNU Manual, like GNU
43
software.  Copies published by the Free Software Foundation raise
44
funds for GNU development.
45
 
46
INFO-DIR-SECTION Software development
47
START-INFO-DIR-ENTRY
48
* gccinstall: (gccinstall).    Installing the GNU Compiler Collection.
49
END-INFO-DIR-ENTRY
50
 
51

52
File: gccinstall.info,  Node: Top,  Up: (dir)
53
 
54
* Menu:
55
 
56
* Installing GCC::  This document describes the generic installation
57
                    procedure for GCC as well as detailing some target
58
                    specific installation instructions.
59
 
60
* Specific::        Host/target specific installation notes for GCC.
61
* Binaries::        Where to get pre-compiled binaries.
62
 
63
* Old::             Old installation documentation.
64
 
65
* GNU Free Documentation License:: How you can copy and share this manual.
66
* Concept Index::   This index has two entries.
67
 
68

69
File: gccinstall.info,  Node: Installing GCC,  Next: Binaries,  Up: Top
70
 
71
1 Installing GCC
72
****************
73
 
74
   The latest version of this document is always available at
75
http://gcc.gnu.org/install/.  It refers to the current development
76
sources, instructions for specific released versions are included with
77
the sources.
78
 
79
   This document describes the generic installation procedure for GCC
80
as well as detailing some target specific installation instructions.
81
 
82
   GCC includes several components that previously were separate
83
distributions with their own installation instructions.  This document
84
supersedes all package-specific installation instructions.
85
 
86
   _Before_ starting the build/install procedure please check the *note
87
host/target specific installation notes: Specific.  We recommend you
88
browse the entire generic installation instructions before you proceed.
89
 
90
   Lists of successful builds for released versions of GCC are
91
available at `http://gcc.gnu.org/buildstat.html'.  These lists are
92
updated as new information becomes available.
93
 
94
   The installation procedure itself is broken into five steps.
95
 
96
* Menu:
97
 
98
* Prerequisites::
99
* Downloading the source::
100
* Configuration::
101
* Building::
102
* Testing:: (optional)
103
* Final install::
104
 
105
   Please note that GCC does not support `make uninstall' and probably
106
won't do so in the near future as this would open a can of worms.
107
Instead, we suggest that you install GCC into a directory of its own
108
and simply remove that directory when you do not need that specific
109
version of GCC any longer, and, if shared libraries are installed there
110
as well, no more binaries exist that use them.
111
 
112

113
File: gccinstall.info,  Node: Prerequisites,  Next: Downloading the source,  Up: Installing GCC
114
 
115
2 Prerequisites
116
***************
117
 
118
   GCC requires that various tools and packages be available for use in
119
the build procedure.  Modifying GCC sources requires additional tools
120
described below.
121
 
122
Tools/packages necessary for building GCC
123
=========================================
124
 
125
ISO C90 compiler
126
     Necessary to bootstrap GCC, although versions of GCC prior to 3.4
127
     also allow bootstrapping with a traditional (K&R) C compiler.
128
 
129
     To build all languages in a cross-compiler or other configuration
130
     where 3-stage bootstrap is not performed, you need to start with
131
     an existing GCC binary (version 2.95 or later) because source code
132
     for language frontends other than C might use GCC extensions.
133
 
134
GNAT
135
     In order to build the Ada compiler (GNAT) you must already have
136
     GNAT installed because portions of the Ada frontend are written in
137
     Ada (with GNAT extensions.)  Refer to the Ada installation
138
     instructions for more specific information.
139
 
140
A "working" POSIX compatible shell, or GNU bash
141
     Necessary when running `configure' because some `/bin/sh' shells
142
     have bugs and may crash when configuring the target libraries.  In
143
     other cases, `/bin/sh' or `ksh' have disastrous corner-case
144
     performance problems.  This can cause target `configure' runs to
145
     literally take days to complete in some cases.
146
 
147
     So on some platforms `/bin/ksh' is sufficient, on others it isn't.
148
     See the host/target specific instructions for your platform, or
149
     use `bash' to be sure.  Then set `CONFIG_SHELL' in your
150
     environment to your "good" shell prior to running
151
     `configure'/`make'.
152
 
153
     `zsh' is not a fully compliant POSIX shell and will not work when
154
     configuring GCC.
155
 
156
A POSIX or SVR4 awk
157
     Necessary for creating some of the generated source files for GCC.
158
     If in doubt, use a recent GNU awk version, as some of the older
159
     ones are broken.  GNU awk version 3.1.5 is known to work.
160
 
161
GNU binutils
162
     Necessary in some circumstances, optional in others.  See the
163
     host/target specific instructions for your platform for the exact
164
     requirements.
165
 
166
gzip version 1.2.4 (or later) or
167
bzip2 version 1.0.2 (or later)
168
     Necessary to uncompress GCC `tar' files when source code is
169
     obtained via FTP mirror sites.
170
 
171
GNU make version 3.80 (or later)
172
     You must have GNU make installed to build GCC.
173
 
174
GNU tar version 1.14 (or later)
175
     Necessary (only on some platforms) to untar the source code.  Many
176
     systems' `tar' programs will also work, only try GNU `tar' if you
177
     have problems.
178
 
179
Perl version 5.6.1 (or later)
180
     Necessary when targeting Darwin, building `libstdc++', and not
181
     using `--disable-symvers'.  Necessary when targeting Solaris 2
182
     with Sun `ld' and not using `--disable-symvers'.  The bundled
183
     `perl' in Solaris 8 and up works.
184
 
185
     Necessary when regenerating `Makefile' dependencies in libiberty.
186
     Necessary when regenerating `libiberty/functions.texi'.  Necessary
187
     when generating manpages from Texinfo manuals.  Used by various
188
     scripts to generate some files included in SVN (mainly
189
     Unicode-related and rarely changing) from source tables.
190
 
191
`jar', or InfoZIP (`zip' and `unzip')
192
     Necessary to build libgcj, the GCJ runtime.
193
 
194
 
195
   Several support libraries are necessary to build GCC, some are
196
required, others optional.  While any sufficiently new version of
197
required tools usually work, library requirements are generally
198
stricter.  Newer versions may work in some cases, but it's safer to use
199
the exact versions documented.  We appreciate bug reports about
200
problems with newer versions, though.  If your OS vendor provides
201
packages for the support libraries then using those packages may be the
202
simplest way to install the libraries.
203
 
204
GNU Multiple Precision Library (GMP) version 4.3.2 (or later)
205
     Necessary to build GCC.  If a GMP source distribution is found in a
206
     subdirectory of your GCC sources named `gmp', it will be built
207
     together with GCC.  Alternatively, if GMP is already installed but
208
     it is not in your library search path, you will have to configure
209
     with the `--with-gmp' configure option.  See also `--with-gmp-lib'
210
     and `--with-gmp-include'.
211
 
212
MPFR Library version 2.4.2 (or later)
213
     Necessary to build GCC.  It can be downloaded from
214
     `http://www.mpfr.org/'.  If an MPFR source distribution is found
215
     in a subdirectory of your GCC sources named `mpfr', it will be
216
     built together with GCC.  Alternatively, if MPFR is already
217
     installed but it is not in your default library search path, the
218
     `--with-mpfr' configure option should be used.  See also
219
     `--with-mpfr-lib' and `--with-mpfr-include'.
220
 
221
MPC Library version 0.8.1 (or later)
222
     Necessary to build GCC.  It can be downloaded from
223
     `http://www.multiprecision.org/'.  If an MPC source distribution
224
     is found in a subdirectory of your GCC sources named `mpc', it
225
     will be built together with GCC.  Alternatively, if MPC is already
226
     installed but it is not in your default library search path, the
227
     `--with-mpc' configure option should be used.  See also
228
     `--with-mpc-lib' and `--with-mpc-include'.
229
 
230
ISL Library version 0.10
231
     Necessary to build GCC with the Graphite loop optimizations.  It
232
     can be downloaded from `ftp://gcc.gnu.org/pub/gcc/infrastructure/'.
233
 
234
     The `--with-isl' configure option should be used if ISL is not
235
     installed in your default library search path.
236
 
237
CLooG 0.17.0
238
     Necessary to build GCC with the Graphite loop optimizations.  It
239
     can be downloaded from `ftp://gcc.gnu.org/pub/gcc/infrastructure/'
240
     as `cloog-0.17.0.tar.gz'.  The `--with-cloog' configure option
241
     should be used if CLooG is not installed in your default library
242
     search path.  CLooG needs to be built against ISL 0.10, not its
243
     included copy of ISL which is too old.  Use `--with-isl=system' to
244
     direct CLooG to pick up an already installed ISL.  CLooG needs to
245
     be configured to use GMP internally, use `--with-bits=gmp' to
246
     direct it to do that.
247
 
248
 
249
Tools/packages necessary for modifying GCC
250
==========================================
251
 
252
autoconf version 2.64
253
GNU m4 version 1.4.6 (or later)
254
     Necessary when modifying `configure.ac', `aclocal.m4', etc.  to
255
     regenerate `configure' and `config.in' files.
256
 
257
automake version 1.11.1
258
     Necessary when modifying a `Makefile.am' file to regenerate its
259
     associated `Makefile.in'.
260
 
261
     Much of GCC does not use automake, so directly edit the
262
     `Makefile.in' file.  Specifically this applies to the `gcc',
263
     `intl', `libcpp', `libiberty', `libobjc' directories as well as
264
     any of their subdirectories.
265
 
266
     For directories that use automake, GCC requires the latest release
267
     in the 1.11 series, which is currently 1.11.1.  When regenerating
268
     a directory to a newer version, please update all the directories
269
     using an older 1.11 to the latest released version.
270
 
271
gettext version 0.14.5 (or later)
272
     Needed to regenerate `gcc.pot'.
273
 
274
gperf version 2.7.2 (or later)
275
     Necessary when modifying `gperf' input files, e.g.
276
     `gcc/cp/cfns.gperf' to regenerate its associated header file, e.g.
277
     `gcc/cp/cfns.h'.
278
 
279
DejaGnu 1.4.4
280
Expect
281
Tcl
282
     Necessary to run the GCC testsuite; see the section on testing for
283
     details.
284
 
285
autogen version 5.5.4 (or later) and
286
guile version 1.4.1 (or later)
287
     Necessary to regenerate `fixinc/fixincl.x' from
288
     `fixinc/inclhack.def' and `fixinc/*.tpl'.
289
 
290
     Necessary to run `make check' for `fixinc'.
291
 
292
     Necessary to regenerate the top level `Makefile.in' file from
293
     `Makefile.tpl' and `Makefile.def'.
294
 
295
Flex version 2.5.4 (or later)
296
     Necessary when modifying `*.l' files.
297
 
298
     Necessary to build GCC during development because the generated
299
     output files are not included in the SVN repository.  They are
300
     included in releases.
301
 
302
Texinfo version 4.7 (or later)
303
     Necessary for running `makeinfo' when modifying `*.texi' files to
304
     test your changes.
305
 
306
     Necessary for running `make dvi' or `make pdf' to create printable
307
     documentation in DVI or PDF format.  Texinfo version 4.8 or later
308
     is required for `make pdf'.
309
 
310
     Necessary to build GCC documentation during development because the
311
     generated output files are not included in the SVN repository.
312
     They are included in releases.
313
 
314
TeX (any working version)
315
     Necessary for running `texi2dvi' and `texi2pdf', which are used
316
     when running `make dvi' or `make pdf' to create DVI or PDF files,
317
     respectively.
318
 
319
SVN (any version)
320
SSH (any version)
321
     Necessary to access the SVN repository.  Public releases and weekly
322
     snapshots of the development sources are also available via FTP.
323
 
324
GNU diffutils version 2.7 (or later)
325
     Useful when submitting patches for the GCC source code.
326
 
327
patch version 2.5.4 (or later)
328
     Necessary when applying patches, created with `diff', to one's own
329
     sources.
330
 
331
ecj1
332
gjavah
333
     If you wish to modify `.java' files in libjava, you will need to
334
     configure with `--enable-java-maintainer-mode', and you will need
335
     to have executables named `ecj1' and `gjavah' in your path.  The
336
     `ecj1' executable should run the Eclipse Java compiler via the
337
     GCC-specific entry point.  You can download a suitable jar from
338
     `ftp://sourceware.org/pub/java/', or by running the script
339
     `contrib/download_ecj'.
340
 
341
antlr.jar version 2.7.1 (or later)
342
antlr binary
343
     If you wish to build the `gjdoc' binary in libjava, you will need
344
     to have an `antlr.jar' library available. The library is searched
345
     for in system locations but can be specified with
346
     `--with-antlr-jar=' instead.  When configuring with
347
     `--enable-java-maintainer-mode', you will need to have one of the
348
     executables named `cantlr', `runantlr' or `antlr' in your path.
349
 
350
 
351

352
File: gccinstall.info,  Node: Downloading the source,  Next: Configuration,  Prev: Prerequisites,  Up: Installing GCC
353
 
354
3 Downloading GCC
355
*****************
356
 
357
   GCC is distributed via SVN and FTP tarballs compressed with `gzip' or
358
`bzip2'.  It is possible to download a full distribution or specific
359
components.
360
 
361
   Please refer to the releases web page for information on how to
362
obtain GCC.
363
 
364
   The full distribution includes the C, C++, Objective-C, Fortran,
365
Java, and Ada (in the case of GCC 3.1 and later) compilers.  The full
366
distribution also includes runtime libraries for C++, Objective-C,
367
Fortran, and Java.  In GCC 3.0 and later versions, the GNU compiler
368
testsuites are also included in the full distribution.
369
 
370
   If you choose to download specific components, you must download the
371
core GCC distribution plus any language specific distributions you wish
372
to use.  The core distribution includes the C language front end as
373
well as the shared components.  Each language has a tarball which
374
includes the language front end as well as the language runtime (when
375
appropriate).
376
 
377
   Unpack the core distribution as well as any language specific
378
distributions in the same directory.
379
 
380
   If you also intend to build binutils (either to upgrade an existing
381
installation or for use in place of the corresponding tools of your
382
OS), unpack the binutils distribution either in the same directory or a
383
separate one.  In the latter case, add symbolic links to any components
384
of the binutils you intend to build alongside the compiler (`bfd',
385
`binutils', `gas', `gprof', `ld', `opcodes', ...) to the directory
386
containing the GCC sources.
387
 
388
   Likewise the GMP, MPFR and MPC libraries can be automatically built
389
together with GCC.  Unpack the GMP, MPFR and/or MPC source
390
distributions in the directory containing the GCC sources and rename
391
their directories to `gmp', `mpfr' and `mpc', respectively (or use
392
symbolic links with the same name).
393
 
394

395
File: gccinstall.info,  Node: Configuration,  Next: Building,  Prev: Downloading the source,  Up: Installing GCC
396
 
397
4 Installing GCC: Configuration
398
*******************************
399
 
400
   Like most GNU software, GCC must be configured before it can be
401
built.  This document describes the recommended configuration procedure
402
for both native and cross targets.
403
 
404
   We use SRCDIR to refer to the toplevel source directory for GCC; we
405
use OBJDIR to refer to the toplevel build/object directory.
406
 
407
   If you obtained the sources via SVN, SRCDIR must refer to the top
408
`gcc' directory, the one where the `MAINTAINERS' file can be found, and
409
not its `gcc' subdirectory, otherwise the build will fail.
410
 
411
   If either SRCDIR or OBJDIR is located on an automounted NFS file
412
system, the shell's built-in `pwd' command will return temporary
413
pathnames.  Using these can lead to various sorts of build problems.
414
To avoid this issue, set the `PWDCMD' environment variable to an
415
automounter-aware `pwd' command, e.g., `pawd' or `amq -w', during the
416
configuration and build phases.
417
 
418
   First, we *highly* recommend that GCC be built into a separate
419
directory from the sources which does *not* reside within the source
420
tree.  This is how we generally build GCC; building where SRCDIR ==
421
OBJDIR should still work, but doesn't get extensive testing; building
422
where OBJDIR is a subdirectory of SRCDIR is unsupported.
423
 
424
   If you have previously built GCC in the same directory for a
425
different target machine, do `make distclean' to delete all files that
426
might be invalid.  One of the files this deletes is `Makefile'; if
427
`make distclean' complains that `Makefile' does not exist or issues a
428
message like "don't know how to make distclean" it probably means that
429
the directory is already suitably clean.  However, with the recommended
430
method of building in a separate OBJDIR, you should simply use a
431
different OBJDIR for each target.
432
 
433
   Second, when configuring a native system, either `cc' or `gcc' must
434
be in your path or you must set `CC' in your environment before running
435
configure.  Otherwise the configuration scripts may fail.
436
 
437
   To configure GCC:
438
 
439
     % mkdir OBJDIR
440
     % cd OBJDIR
441
     % SRCDIR/configure [OPTIONS] [TARGET]
442
 
443
Distributor options
444
===================
445
 
446
If you will be distributing binary versions of GCC, with modifications
447
to the source code, you should use the options described in this
448
section to make clear that your version contains modifications.
449
 
450
`--with-pkgversion=VERSION'
451
     Specify a string that identifies your package.  You may wish to
452
     include a build number or build date.  This version string will be
453
     included in the output of `gcc --version'.  This suffix does not
454
     replace the default version string, only the `GCC' part.
455
 
456
     The default value is `GCC'.
457
 
458
`--with-bugurl=URL'
459
     Specify the URL that users should visit if they wish to report a
460
     bug.  You are of course welcome to forward bugs reported to you to
461
     the FSF, if you determine that they are not bugs in your
462
     modifications.
463
 
464
     The default value refers to the FSF's GCC bug tracker.
465
 
466
 
467
Target specification
468
====================
469
 
470
   * GCC has code to correctly determine the correct value for TARGET
471
     for nearly all native systems.  Therefore, we highly recommend you
472
     do not provide a configure target when configuring a native
473
     compiler.
474
 
475
   * TARGET must be specified as `--target=TARGET' when configuring a
476
     cross compiler; examples of valid targets would be m68k-elf,
477
     sh-elf, etc.
478
 
479
   * Specifying just TARGET instead of `--target=TARGET' implies that
480
     the host defaults to TARGET.
481
 
482
Options specification
483
=====================
484
 
485
Use OPTIONS to override several configure time options for GCC.  A list
486
of supported OPTIONS follows; `configure --help' may list other
487
options, but those not listed below may not work and should not
488
normally be used.
489
 
490
   Note that each `--enable' option has a corresponding `--disable'
491
option and that each `--with' option has a corresponding `--without'
492
option.
493
 
494
`--prefix=DIRNAME'
495
     Specify the toplevel installation directory.  This is the
496
     recommended way to install the tools into a directory other than
497
     the default.  The toplevel installation directory defaults to
498
     `/usr/local'.
499
 
500
     We *highly* recommend against DIRNAME being the same or a
501
     subdirectory of OBJDIR or vice versa.  If specifying a directory
502
     beneath a user's home directory tree, some shells will not expand
503
     DIRNAME correctly if it contains the `~' metacharacter; use
504
     `$HOME' instead.
505
 
506
     The following standard `autoconf' options are supported.  Normally
507
     you should not need to use these options.
508
    `--exec-prefix=DIRNAME'
509
          Specify the toplevel installation directory for
510
          architecture-dependent files.  The default is `PREFIX'.
511
 
512
    `--bindir=DIRNAME'
513
          Specify the installation directory for the executables called
514
          by users (such as `gcc' and `g++').  The default is
515
          `EXEC-PREFIX/bin'.
516
 
517
    `--libdir=DIRNAME'
518
          Specify the installation directory for object code libraries
519
          and internal data files of GCC.  The default is
520
          `EXEC-PREFIX/lib'.
521
 
522
    `--libexecdir=DIRNAME'
523
          Specify the installation directory for internal executables
524
          of GCC.  The default is `EXEC-PREFIX/libexec'.
525
 
526
    `--with-slibdir=DIRNAME'
527
          Specify the installation directory for the shared libgcc
528
          library.  The default is `LIBDIR'.
529
 
530
    `--datarootdir=DIRNAME'
531
          Specify the root of the directory tree for read-only
532
          architecture-independent data files referenced by GCC.  The
533
          default is `PREFIX/share'.
534
 
535
    `--infodir=DIRNAME'
536
          Specify the installation directory for documentation in info
537
          format.  The default is `DATAROOTDIR/info'.
538
 
539
    `--datadir=DIRNAME'
540
          Specify the installation directory for some
541
          architecture-independent data files referenced by GCC.  The
542
          default is `DATAROOTDIR'.
543
 
544
    `--docdir=DIRNAME'
545
          Specify the installation directory for documentation files
546
          (other than Info) for GCC.  The default is `DATAROOTDIR/doc'.
547
 
548
    `--htmldir=DIRNAME'
549
          Specify the installation directory for HTML documentation
550
          files.  The default is `DOCDIR'.
551
 
552
    `--pdfdir=DIRNAME'
553
          Specify the installation directory for PDF documentation
554
          files.  The default is `DOCDIR'.
555
 
556
    `--mandir=DIRNAME'
557
          Specify the installation directory for manual pages.  The
558
          default is `DATAROOTDIR/man'.  (Note that the manual pages
559
          are only extracts from the full GCC manuals, which are
560
          provided in Texinfo format.  The manpages are derived by an
561
          automatic conversion process from parts of the full manual.)
562
 
563
    `--with-gxx-include-dir=DIRNAME'
564
          Specify the installation directory for G++ header files.  The
565
          default depends on other configuration options, and differs
566
          between cross and native configurations.
567
 
568
    `--with-specs=SPECS'
569
          Specify additional command line driver SPECS.  This can be
570
          useful if you need to turn on a non-standard feature by
571
          default without modifying the compiler's source code, for
572
          instance
573
          `--with-specs=%{!fcommon:%{!fno-common:-fno-common}}'.  *Note
574
          Specifying subprocesses and the switches to pass to them:
575
          (gcc)Spec Files,
576
 
577
 
578
`--program-prefix=PREFIX'
579
     GCC supports some transformations of the names of its programs when
580
     installing them.  This option prepends PREFIX to the names of
581
     programs to install in BINDIR (see above).  For example, specifying
582
     `--program-prefix=foo-' would result in `gcc' being installed as
583
     `/usr/local/bin/foo-gcc'.
584
 
585
`--program-suffix=SUFFIX'
586
     Appends SUFFIX to the names of programs to install in BINDIR (see
587
     above).  For example, specifying `--program-suffix=-3.1' would
588
     result in `gcc' being installed as `/usr/local/bin/gcc-3.1'.
589
 
590
`--program-transform-name=PATTERN'
591
     Applies the `sed' script PATTERN to be applied to the names of
592
     programs to install in BINDIR (see above).  PATTERN has to consist
593
     of one or more basic `sed' editing commands, separated by
594
     semicolons.  For example, if you want the `gcc' program name to be
595
     transformed to the installed program `/usr/local/bin/myowngcc' and
596
     the `g++' program name to be transformed to
597
     `/usr/local/bin/gspecial++' without changing other program names,
598
     you could use the pattern
599
     `--program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/''
600
     to achieve this effect.
601
 
602
     All three options can be combined and used together, resulting in
603
     more complex conversion patterns.  As a basic rule, PREFIX (and
604
     SUFFIX) are prepended (appended) before further transformations
605
     can happen with a special transformation script PATTERN.
606
 
607
     As currently implemented, this option only takes effect for native
608
     builds; cross compiler binaries' names are not transformed even
609
     when a transformation is explicitly asked for by one of these
610
     options.
611
 
612
     For native builds, some of the installed programs are also
613
     installed with the target alias in front of their name, as in
614
     `i686-pc-linux-gnu-gcc'.  All of the above transformations happen
615
     before the target alias is prepended to the name--so, specifying
616
     `--program-prefix=foo-' and `program-suffix=-3.1', the resulting
617
     binary would be installed as
618
     `/usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1'.
619
 
620
     As a last shortcoming, none of the installed Ada programs are
621
     transformed yet, which will be fixed in some time.
622
 
623
`--with-local-prefix=DIRNAME'
624
     Specify the installation directory for local include files.  The
625
     default is `/usr/local'.  Specify this option if you want the
626
     compiler to search directory `DIRNAME/include' for locally
627
     installed header files _instead_ of `/usr/local/include'.
628
 
629
     You should specify `--with-local-prefix' *only* if your site has a
630
     different convention (not `/usr/local') for where to put
631
     site-specific files.
632
 
633
     The default value for `--with-local-prefix' is `/usr/local'
634
     regardless of the value of `--prefix'.  Specifying `--prefix' has
635
     no effect on which directory GCC searches for local header files.
636
     This may seem counterintuitive, but actually it is logical.
637
 
638
     The purpose of `--prefix' is to specify where to _install GCC_.
639
     The local header files in `/usr/local/include'--if you put any in
640
     that directory--are not part of GCC.  They are part of other
641
     programs--perhaps many others.  (GCC installs its own header files
642
     in another directory which is based on the `--prefix' value.)
643
 
644
     Both the local-prefix include directory and the GCC-prefix include
645
     directory are part of GCC's "system include" directories.
646
     Although these two directories are not fixed, they need to be
647
     searched in the proper order for the correct processing of the
648
     include_next directive.  The local-prefix include directory is
649
     searched before the GCC-prefix include directory.  Another
650
     characteristic of system include directories is that pedantic
651
     warnings are turned off for headers in these directories.
652
 
653
     Some autoconf macros add `-I DIRECTORY' options to the compiler
654
     command line, to ensure that directories containing installed
655
     packages' headers are searched.  When DIRECTORY is one of GCC's
656
     system include directories, GCC will ignore the option so that
657
     system directories continue to be processed in the correct order.
658
     This may result in a search order different from what was
659
     specified but the directory will still be searched.
660
 
661
     GCC automatically searches for ordinary libraries using
662
     `GCC_EXEC_PREFIX'.  Thus, when the same installation prefix is
663
     used for both GCC and packages, GCC will automatically search for
664
     both headers and libraries.  This provides a configuration that is
665
     easy to use.  GCC behaves in a manner similar to that when it is
666
     installed as a system compiler in `/usr'.
667
 
668
     Sites that need to install multiple versions of GCC may not want to
669
     use the above simple configuration.  It is possible to use the
670
     `--program-prefix', `--program-suffix' and
671
     `--program-transform-name' options to install multiple versions
672
     into a single directory, but it may be simpler to use different
673
     prefixes and the `--with-local-prefix' option to specify the
674
     location of the site-specific files for each version.  It will
675
     then be necessary for users to specify explicitly the location of
676
     local site libraries (e.g., with `LIBRARY_PATH').
677
 
678
     The same value can be used for both `--with-local-prefix' and
679
     `--prefix' provided it is not `/usr'.  This can be used to avoid
680
     the default search of `/usr/local/include'.
681
 
682
     *Do not* specify `/usr' as the `--with-local-prefix'!  The
683
     directory you use for `--with-local-prefix' *must not* contain any
684
     of the system's standard header files.  If it did contain them,
685
     certain programs would be miscompiled (including GNU Emacs, on
686
     certain targets), because this would override and nullify the
687
     header file corrections made by the `fixincludes' script.
688
 
689
     Indications are that people who use this option use it based on
690
     mistaken ideas of what it is for.  People use it as if it
691
     specified where to install part of GCC.  Perhaps they make this
692
     assumption because installing GCC creates the directory.
693
 
694
`--with-native-system-header-dir=DIRNAME'
695
     Specifies that DIRNAME is the directory that contains native system
696
     header files, rather than `/usr/include'.  This option is most
697
     useful if you are creating a compiler that should be isolated from
698
     the system as much as possible.  It is most commonly used with the
699
     `--with-sysroot' option and will cause GCC to search DIRNAME
700
     inside the system root specified by that option.
701
 
702
`--enable-shared[=PACKAGE[,...]]'
703
     Build shared versions of libraries, if shared libraries are
704
     supported on the target platform.  Unlike GCC 2.95.x and earlier,
705
     shared libraries are enabled by default on all platforms that
706
     support shared libraries.
707
 
708
     If a list of packages is given as an argument, build shared
709
     libraries only for the listed packages.  For other packages, only
710
     static libraries will be built.  Package names currently
711
     recognized in the GCC tree are `libgcc' (also known as `gcc'),
712
     `libstdc++' (not `libstdc++-v3'), `libffi', `zlib', `boehm-gc',
713
     `ada', `libada', `libjava', `libgo', and `libobjc'.  Note
714
     `libiberty' does not support shared libraries at all.
715
 
716
     Use `--disable-shared' to build only static libraries.  Note that
717
     `--disable-shared' does not accept a list of package names as
718
     argument, only `--enable-shared' does.
719
 
720
`--with-gnu-as'
721
     Specify that the compiler should assume that the assembler it
722
     finds is the GNU assembler.  However, this does not modify the
723
     rules to find an assembler and will result in confusion if the
724
     assembler found is not actually the GNU assembler.  (Confusion may
725
     also result if the compiler finds the GNU assembler but has not
726
     been configured with `--with-gnu-as'.)  If you have more than one
727
     assembler installed on your system, you may want to use this
728
     option in connection with `--with-as=PATHNAME' or
729
     `--with-build-time-tools=PATHNAME'.
730
 
731
     The following systems are the only ones where it makes a difference
732
     whether you use the GNU assembler.  On any other system,
733
     `--with-gnu-as' has no effect.
734
 
735
        * `hppa1.0-ANY-ANY'
736
 
737
        * `hppa1.1-ANY-ANY'
738
 
739
        * `sparc-sun-solaris2.ANY'
740
 
741
        * `sparc64-ANY-solaris2.ANY'
742
 
743
`--with-as=PATHNAME'
744
     Specify that the compiler should use the assembler pointed to by
745
     PATHNAME, rather than the one found by the standard rules to find
746
     an assembler, which are:
747
        * Unless GCC is being built with a cross compiler, check the
748
          `LIBEXEC/gcc/TARGET/VERSION' directory.  LIBEXEC defaults to
749
          `EXEC-PREFIX/libexec'; EXEC-PREFIX defaults to PREFIX, which
750
          defaults to `/usr/local' unless overridden by the
751
          `--prefix=PATHNAME' switch described above.  TARGET is the
752
          target system triple, such as `sparc-sun-solaris2.7', and
753
          VERSION denotes the GCC version, such as 3.0.
754
 
755
        * If the target system is the same that you are building on,
756
          check operating system specific directories (e.g.
757
          `/usr/ccs/bin' on Sun Solaris 2).
758
 
759
        * Check in the `PATH' for a tool whose name is prefixed by the
760
          target system triple.
761
 
762
        * Check in the `PATH' for a tool whose name is not prefixed by
763
          the target system triple, if the host and target system
764
          triple are the same (in other words, we use a host tool if it
765
          can be used for the target as well).
766
 
767
     You may want to use `--with-as' if no assembler is installed in
768
     the directories listed above, or if you have multiple assemblers
769
     installed and want to choose one that is not found by the above
770
     rules.
771
 
772
`--with-gnu-ld'
773
     Same as `--with-gnu-as' but for the linker.
774
 
775
`--with-ld=PATHNAME'
776
     Same as `--with-as' but for the linker.
777
 
778
`--with-stabs'
779
     Specify that stabs debugging information should be used instead of
780
     whatever format the host normally uses.  Normally GCC uses the
781
     same debug format as the host system.
782
 
783
     On MIPS based systems and on Alphas, you must specify whether you
784
     want GCC to create the normal ECOFF debugging format, or to use
785
     BSD-style stabs passed through the ECOFF symbol table.  The normal
786
     ECOFF debug format cannot fully handle languages other than C.
787
     BSD stabs format can handle other languages, but it only works
788
     with the GNU debugger GDB.
789
 
790
     Normally, GCC uses the ECOFF debugging format by default; if you
791
     prefer BSD stabs, specify `--with-stabs' when you configure GCC.
792
 
793
     No matter which default you choose when you configure GCC, the user
794
     can use the `-gcoff' and `-gstabs+' options to specify explicitly
795
     the debug format for a particular compilation.
796
 
797
     `--with-stabs' is meaningful on the ISC system on the 386, also, if
798
     `--with-gas' is used.  It selects use of stabs debugging
799
     information embedded in COFF output.  This kind of debugging
800
     information supports C++ well; ordinary COFF debugging information
801
     does not.
802
 
803
     `--with-stabs' is also meaningful on 386 systems running SVR4.  It
804
     selects use of stabs debugging information embedded in ELF output.
805
     The C++ compiler currently (2.6.0) does not support the DWARF
806
     debugging information normally used on 386 SVR4 platforms; stabs
807
     provide a workable alternative.  This requires gas and gdb, as the
808
     normal SVR4 tools can not generate or interpret stabs.
809
 
810
`--with-tls=DIALECT'
811
     Specify the default TLS dialect, for systems were there is a
812
     choice.  For ARM targets, possible values for DIALECT are `gnu' or
813
     `gnu2', which select between the original GNU dialect and the GNU
814
     TLS descriptor-based dialect.
815
 
816
`--enable-multiarch'
817
     Specify whether to enable or disable multiarch support.  The
818
     default is to check for glibc start files in a multiarch location,
819
     and enable it if the files are found.  The auto detection is
820
     enabled for native builds, and for cross builds configured with
821
     `--with-sysroot', and without `--with-native-system-header-dir'.
822
     More documentation about multiarch can be found at
823
     `http://wiki.debian.org/Multiarch'.
824
 
825
`--disable-multilib'
826
     Specify that multiple target libraries to support different target
827
     variants, calling conventions, etc. should not be built.  The
828
     default is to build a predefined set of them.
829
 
830
     Some targets provide finer-grained control over which multilibs
831
     are built (e.g., `--disable-softfloat'):
832
    `arm-*-*'
833
          fpu, 26bit, underscore, interwork, biendian, nofmult.
834
 
835
    `m68*-*-*'
836
          softfloat, m68881, m68000, m68020.
837
 
838
    `mips*-*-*'
839
          single-float, biendian, softfloat.
840
 
841
    `powerpc*-*-*, rs6000*-*-*'
842
          aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos,
843
          biendian, sysv, aix.
844
 
845
 
846
`--with-multilib-list=LIST'
847
`--without-multilib-list'
848
     Specify what multilibs to build.  Currently only implemented for
849
     sh*-*-* and x86-64-*-linux*.
850
 
851
    `sh*-*-*'
852
          LIST is a comma separated list of CPU names.  These must be
853
          of the form `sh*' or `m*' (in which case they match the
854
          compiler option for that processor).  The list should not
855
          contain any endian options - these are handled by
856
          `--with-endian'.
857
 
858
          If LIST is empty, then there will be no multilibs for extra
859
          processors.  The multilib for the secondary endian remains
860
          enabled.
861
 
862
          As a special case, if an entry in the list starts with a `!'
863
          (exclamation point), then it is added to the list of excluded
864
          multilibs.  Entries of this sort should be compatible with
865
          `MULTILIB_EXCLUDES' (once the leading `!' has been stripped).
866
 
867
          If `--with-multilib-list' is not given, then a default set of
868
          multilibs is selected based on the value of `--target'.  This
869
          is usually the complete set of libraries, but some targets
870
          imply a more specialized subset.
871
 
872
          Example 1: to configure a compiler for SH4A only, but
873
          supporting both endians, with little endian being the default:
874
               --with-cpu=sh4a --with-endian=little,big --with-multilib-list=
875
 
876
          Example 2: to configure a compiler for both SH4A and
877
          SH4AL-DSP, but with only little endian SH4AL:
878
               --with-cpu=sh4a --with-endian=little,big \
879
               --with-multilib-list=sh4al,!mb/m4al
880
 
881
    `x86-64-*-linux*'
882
          LIST is a comma separated list of `m32', `m64' and `mx32' to
883
          enable 32-bit, 64-bit and x32 run-time libraries,
884
          respectively.  If LIST is empty, then there will be no
885
          multilibs and only the default run-time library will be
886
          enabled.
887
 
888
          If `--with-multilib-list' is not given, then only 32-bit and
889
          64-bit run-time libraries will be enabled.
890
 
891
`--with-endian=ENDIANS'
892
     Specify what endians to use.  Currently only implemented for
893
     sh*-*-*.
894
 
895
     ENDIANS may be one of the following:
896
    `big'
897
          Use big endian exclusively.
898
 
899
    `little'
900
          Use little endian exclusively.
901
 
902
    `big,little'
903
          Use big endian by default.  Provide a multilib for little
904
          endian.
905
 
906
    `little,big'
907
          Use little endian by default.  Provide a multilib for big
908
          endian.
909
 
910
`--enable-threads'
911
     Specify that the target supports threads.  This affects the
912
     Objective-C compiler and runtime library, and exception handling
913
     for other languages like C++ and Java.  On some systems, this is
914
     the default.
915
 
916
     In general, the best (and, in many cases, the only known) threading
917
     model available will be configured for use.  Beware that on some
918
     systems, GCC has not been taught what threading models are
919
     generally available for the system.  In this case,
920
     `--enable-threads' is an alias for `--enable-threads=single'.
921
 
922
`--disable-threads'
923
     Specify that threading support should be disabled for the system.
924
     This is an alias for `--enable-threads=single'.
925
 
926
`--enable-threads=LIB'
927
     Specify that LIB is the thread support library.  This affects the
928
     Objective-C compiler and runtime library, and exception handling
929
     for other languages like C++ and Java.  The possibilities for LIB
930
     are:
931
 
932
    `aix'
933
          AIX thread support.
934
 
935
    `dce'
936
          DCE thread support.
937
 
938
    `lynx'
939
          LynxOS thread support.
940
 
941
    `mipssde'
942
          MIPS SDE thread support.
943
 
944
    `no'
945
          This is an alias for `single'.
946
 
947
    `posix'
948
          Generic POSIX/Unix98 thread support.
949
 
950
    `rtems'
951
          RTEMS thread support.
952
 
953
    `single'
954
          Disable thread support, should work for all platforms.
955
 
956
    `tpf'
957
          TPF thread support.
958
 
959
    `vxworks'
960
          VxWorks thread support.
961
 
962
    `win32'
963
          Microsoft Win32 API thread support.
964
 
965
`--enable-tls'
966
     Specify that the target supports TLS (Thread Local Storage).
967
     Usually configure can correctly determine if TLS is supported.  In
968
     cases where it guesses incorrectly, TLS can be explicitly enabled
969
     or disabled with `--enable-tls' or `--disable-tls'.  This can
970
     happen if the assembler supports TLS but the C library does not,
971
     or if the assumptions made by the configure test are incorrect.
972
 
973
`--disable-tls'
974
     Specify that the target does not support TLS.  This is an alias
975
     for `--enable-tls=no'.
976
 
977
`--with-cpu=CPU'
978
`--with-cpu-32=CPU'
979
`--with-cpu-64=CPU'
980
     Specify which cpu variant the compiler should generate code for by
981
     default.  CPU will be used as the default value of the `-mcpu='
982
     switch.  This option is only supported on some targets, including
983
     ARM, i386, M68k, PowerPC, and SPARC.  The `--with-cpu-32' and
984
     `--with-cpu-64' options specify separate default CPUs for 32-bit
985
     and 64-bit modes; these options are only supported for i386,
986
     x86-64 and PowerPC.
987
 
988
`--with-schedule=CPU'
989
`--with-arch=CPU'
990
`--with-arch-32=CPU'
991
`--with-arch-64=CPU'
992
`--with-tune=CPU'
993
`--with-tune-32=CPU'
994
`--with-tune-64=CPU'
995
`--with-abi=ABI'
996
`--with-fpu=TYPE'
997
`--with-float=TYPE'
998
     These configure options provide default values for the
999
     `-mschedule=', `-march=', `-mtune=', `-mabi=', and `-mfpu='
1000
     options and for `-mhard-float' or `-msoft-float'.  As with
1001
     `--with-cpu', which switches will be accepted and acceptable values
1002
     of the arguments depend on the target.
1003
 
1004
`--with-mode=MODE'
1005
     Specify if the compiler should default to `-marm' or `-mthumb'.
1006
     This option is only supported on ARM targets.
1007
 
1008
`--with-stack-offset=NUM'
1009
     This option sets the default for the -mstack-offset=NUM option,
1010
     and will thus generally also control the setting of this option for
1011
     libraries.  This option is only supported on Epiphany targets.
1012
 
1013
`--with-fpmath=ISA'
1014
     This options sets `-mfpmath=sse' by default and specifies the
1015
     default ISA for floating-point arithmetics.  You can select either
1016
     `sse' which enables `-msse2' or `avx' which enables `-mavx' by
1017
     default.  This option is only supported on i386 and x86-64 targets.
1018
 
1019
`--with-divide=TYPE'
1020
     Specify how the compiler should generate code for checking for
1021
     division by zero.  This option is only supported on the MIPS
1022
     target.  The possibilities for TYPE are:
1023
    `traps'
1024
          Division by zero checks use conditional traps (this is the
1025
          default on systems that support conditional traps).
1026
 
1027
    `breaks'
1028
          Division by zero checks use the break instruction.
1029
 
1030
`--with-llsc'
1031
     On MIPS targets, make `-mllsc' the default when no `-mno-llsc'
1032
     option is passed.  This is the default for Linux-based targets, as
1033
     the kernel will emulate them if the ISA does not provide them.
1034
 
1035
`--without-llsc'
1036
     On MIPS targets, make `-mno-llsc' the default when no `-mllsc'
1037
     option is passed.
1038
 
1039
`--with-synci'
1040
     On MIPS targets, make `-msynci' the default when no `-mno-synci'
1041
     option is passed.
1042
 
1043
`--without-synci'
1044
     On MIPS targets, make `-mno-synci' the default when no `-msynci'
1045
     option is passed.  This is the default.
1046
 
1047
`--with-mips-plt'
1048
     On MIPS targets, make use of copy relocations and PLTs.  These
1049
     features are extensions to the traditional SVR4-based MIPS ABIs
1050
     and require support from GNU binutils and the runtime C library.
1051
 
1052
`--enable-__cxa_atexit'
1053
     Define if you want to use __cxa_atexit, rather than atexit, to
1054
     register C++ destructors for local statics and global objects.
1055
     This is essential for fully standards-compliant handling of
1056
     destructors, but requires __cxa_atexit in libc.  This option is
1057
     currently only available on systems with GNU libc.  When enabled,
1058
     this will cause `-fuse-cxa-atexit' to be passed by default.
1059
 
1060
`--enable-gnu-indirect-function'
1061
     Define if you want to enable the `ifunc' attribute.  This option is
1062
     currently only available on systems with GNU libc on certain
1063
     targets.
1064
 
1065
`--enable-target-optspace'
1066
     Specify that target libraries should be optimized for code space
1067
     instead of code speed.  This is the default for the m32r platform.
1068
 
1069
`--with-cpp-install-dir=DIRNAME'
1070
     Specify that the user visible `cpp' program should be installed in
1071
     `PREFIX/DIRNAME/cpp', in addition to BINDIR.
1072
 
1073
`--enable-comdat'
1074
     Enable COMDAT group support.  This is primarily used to override
1075
     the automatically detected value.
1076
 
1077
`--enable-initfini-array'
1078
     Force the use of sections `.init_array' and `.fini_array' (instead
1079
     of `.init' and `.fini') for constructors and destructors.  Option
1080
     `--disable-initfini-array' has the opposite effect.  If neither
1081
     option is specified, the configure script will try to guess
1082
     whether the `.init_array' and `.fini_array' sections are supported
1083
     and, if they are, use them.
1084
 
1085
`--enable-maintainer-mode'
1086
     The build rules that regenerate the Autoconf and Automake output
1087
     files as well as the GCC master message catalog `gcc.pot' are
1088
     normally disabled.  This is because it can only be rebuilt if the
1089
     complete source tree is present.  If you have changed the sources
1090
     and want to rebuild the catalog, configuring with
1091
     `--enable-maintainer-mode' will enable this.  Note that you need a
1092
     recent version of the `gettext' tools to do so.
1093
 
1094
`--disable-bootstrap'
1095
     For a native build, the default configuration is to perform a
1096
     3-stage bootstrap of the compiler when `make' is invoked, testing
1097
     that GCC can compile itself correctly.  If you want to disable
1098
     this process, you can configure with `--disable-bootstrap'.
1099
 
1100
`--enable-bootstrap'
1101
     In special cases, you may want to perform a 3-stage build even if
1102
     the target and host triplets are different.  This is possible when
1103
     the host can run code compiled for the target (e.g. host is
1104
     i686-linux, target is i486-linux).  Starting from GCC 4.2, to do
1105
     this you have to configure explicitly with `--enable-bootstrap'.
1106
 
1107
`--enable-generated-files-in-srcdir'
1108
     Neither the .c and .h files that are generated from Bison and flex
1109
     nor the info manuals and man pages that are built from the .texi
1110
     files are present in the SVN development tree.  When building GCC
1111
     from that development tree, or from one of our snapshots, those
1112
     generated files are placed in your build directory, which allows
1113
     for the source to be in a readonly directory.
1114
 
1115
     If you configure with `--enable-generated-files-in-srcdir' then
1116
     those generated files will go into the source directory.  This is
1117
     mainly intended for generating release or prerelease tarballs of
1118
     the GCC sources, since it is not a requirement that the users of
1119
     source releases to have flex, Bison, or makeinfo.
1120
 
1121
`--enable-version-specific-runtime-libs'
1122
     Specify that runtime libraries should be installed in the compiler
1123
     specific subdirectory (`LIBDIR/gcc') rather than the usual places.
1124
     In addition, `libstdc++''s include files will be installed into
1125
     `LIBDIR' unless you overruled it by using
1126
     `--with-gxx-include-dir=DIRNAME'.  Using this option is
1127
     particularly useful if you intend to use several versions of GCC in
1128
     parallel.  This is currently supported by `libgfortran',
1129
     `libjava', `libmudflap', `libstdc++', and `libobjc'.
1130
 
1131
`--enable-languages=LANG1,LANG2,...'
1132
     Specify that only a particular subset of compilers and their
1133
     runtime libraries should be built.  For a list of valid values for
1134
     LANGN you can issue the following command in the `gcc' directory
1135
     of your GCC source tree:
1136
          grep language= */config-lang.in
1137
     Currently, you can use any of the following: `all', `ada', `c',
1138
     `c++', `fortran', `go', `java', `objc', `obj-c++'.  Building the
1139
     Ada compiler has special requirements, see below.  If you do not
1140
     pass this flag, or specify the option `all', then all default
1141
     languages available in the `gcc' sub-tree will be configured.
1142
     Ada, Go and Objective-C++ are not default languages; the rest are.
1143
 
1144
`--enable-stage1-languages=LANG1,LANG2,...'
1145
     Specify that a particular subset of compilers and their runtime
1146
     libraries should be built with the system C compiler during stage
1147
     1 of the bootstrap process, rather than only in later stages with
1148
     the bootstrapped C compiler.  The list of valid values is the same
1149
     as for `--enable-languages', and the option `all' will select all
1150
     of the languages enabled by `--enable-languages'.  This option is
1151
     primarily useful for GCC development; for instance, when a
1152
     development version of the compiler cannot bootstrap due to
1153
     compiler bugs, or when one is debugging front ends other than the
1154
     C front end.  When this option is used, one can then build the
1155
     target libraries for the specified languages with the stage-1
1156
     compiler by using `make stage1-bubble all-target', or run the
1157
     testsuite on the stage-1 compiler for the specified languages
1158
     using `make stage1-start check-gcc'.
1159
 
1160
`--disable-libada'
1161
     Specify that the run-time libraries and tools used by GNAT should
1162
     not be built.  This can be useful for debugging, or for
1163
     compatibility with previous Ada build procedures, when it was
1164
     required to explicitly do a `make -C gcc gnatlib_and_tools'.
1165
 
1166
`--disable-libssp'
1167
     Specify that the run-time libraries for stack smashing protection
1168
     should not be built.
1169
 
1170
`--disable-libquadmath'
1171
     Specify that the GCC quad-precision math library should not be
1172
     built.  On some systems, the library is required to be linkable
1173
     when building the Fortran front end, unless
1174
     `--disable-libquadmath-support' is used.
1175
 
1176
`--disable-libquadmath-support'
1177
     Specify that the Fortran front end and `libgfortran' do not add
1178
     support for `libquadmath' on systems supporting it.
1179
 
1180
`--disable-libgomp'
1181
     Specify that the run-time libraries used by GOMP should not be
1182
     built.
1183
 
1184
`--with-dwarf2'
1185
     Specify that the compiler should use DWARF 2 debugging information
1186
     as the default.
1187
 
1188
`--enable-targets=all'
1189
`--enable-targets=TARGET_LIST'
1190
     Some GCC targets, e.g. powerpc64-linux, build bi-arch compilers.
1191
     These are compilers that are able to generate either 64-bit or
1192
     32-bit code.  Typically, the corresponding 32-bit target, e.g.
1193
     powerpc-linux for powerpc64-linux, only generates 32-bit code.
1194
     This option enables the 32-bit target to be a bi-arch compiler,
1195
     which is useful when you want a bi-arch compiler that defaults to
1196
     32-bit, and you are building a bi-arch or multi-arch binutils in a
1197
     combined tree.  On mips-linux, this will build a tri-arch compiler
1198
     (ABI o32/n32/64), defaulted to o32.  Currently, this option only
1199
     affects sparc-linux, powerpc-linux, x86-linux, mips-linux and
1200
     s390-linux.
1201
 
1202
`--enable-secureplt'
1203
     This option enables `-msecure-plt' by default for powerpc-linux.
1204
     *Note RS/6000 and PowerPC Options: (gcc)RS/6000 and PowerPC
1205
     Options,
1206
 
1207
`--enable-cld'
1208
     This option enables `-mcld' by default for 32-bit x86 targets.
1209
     *Note i386 and x86-64 Options: (gcc)i386 and x86-64 Options,
1210
 
1211
`--enable-win32-registry'
1212
`--enable-win32-registry=KEY'
1213
`--disable-win32-registry'
1214
     The `--enable-win32-registry' option enables Microsoft
1215
     Windows-hosted GCC to look up installations paths in the registry
1216
     using the following key:
1217
 
1218
          `HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\KEY'
1219
 
1220
     KEY defaults to GCC version number, and can be overridden by the
1221
     `--enable-win32-registry=KEY' option.  Vendors and distributors
1222
     who use custom installers are encouraged to provide a different
1223
     key, perhaps one comprised of vendor name and GCC version number,
1224
     to avoid conflict with existing installations.  This feature is
1225
     enabled by default, and can be disabled by
1226
     `--disable-win32-registry' option.  This option has no effect on
1227
     the other hosts.
1228
 
1229
`--nfp'
1230
     Specify that the machine does not have a floating point unit.  This
1231
     option only applies to `m68k-sun-sunosN'.  On any other system,
1232
     `--nfp' has no effect.
1233
 
1234
`--enable-werror'
1235
`--disable-werror'
1236
`--enable-werror=yes'
1237
`--enable-werror=no'
1238
     When you specify this option, it controls whether certain files in
1239
     the compiler are built with `-Werror' in bootstrap stage2 and
1240
     later.  If you don't specify it, `-Werror' is turned on for the
1241
     main development trunk.  However it defaults to off for release
1242
     branches and final releases.  The specific files which get
1243
     `-Werror' are controlled by the Makefiles.
1244
 
1245
`--enable-checking'
1246
`--enable-checking=LIST'
1247
     When you specify this option, the compiler is built to perform
1248
     internal consistency checks of the requested complexity.  This
1249
     does not change the generated code, but adds error checking within
1250
     the compiler.  This will slow down the compiler and may only work
1251
     properly if you are building the compiler with GCC.  This is `yes'
1252
     by default when building from SVN or snapshots, but `release' for
1253
     releases.  The default for building the stage1 compiler is `yes'.
1254
     More control over the checks may be had by specifying LIST.  The
1255
     categories of checks available are `yes' (most common checks
1256
     `assert,misc,tree,gc,rtlflag,runtime'), `no' (no checks at all),
1257
     `all' (all but `valgrind'), `release' (cheapest checks
1258
     `assert,runtime') or `none' (same as `no').  Individual checks can
1259
     be enabled with these flags `assert', `df', `fold', `gc', `gcac'
1260
     `misc', `rtl', `rtlflag', `runtime', `tree', and `valgrind'.
1261
 
1262
     The `valgrind' check requires the external `valgrind' simulator,
1263
     available from `http://valgrind.org/'.  The `df', `rtl', `gcac'
1264
     and `valgrind' checks are very expensive.  To disable all
1265
     checking, `--disable-checking' or `--enable-checking=none' must be
1266
     explicitly requested.  Disabling assertions will make the compiler
1267
     and runtime slightly faster but increase the risk of undetected
1268
     internal errors causing wrong code to be generated.
1269
 
1270
`--disable-stage1-checking'
1271
`--enable-stage1-checking'
1272
`--enable-stage1-checking=LIST'
1273
     If no `--enable-checking' option is specified the stage1 compiler
1274
     will be built with `yes' checking enabled, otherwise the stage1
1275
     checking flags are the same as specified by `--enable-checking'.
1276
     To build the stage1 compiler with different checking options use
1277
     `--enable-stage1-checking'.  The list of checking options is the
1278
     same as for `--enable-checking'.  If your system is too slow or
1279
     too small to bootstrap a released compiler with checking for
1280
     stage1 enabled, you can use `--disable-stage1-checking' to disable
1281
     checking for the stage1 compiler.
1282
 
1283
`--enable-coverage'
1284
`--enable-coverage=LEVEL'
1285
     With this option, the compiler is built to collect self coverage
1286
     information, every time it is run.  This is for internal
1287
     development purposes, and only works when the compiler is being
1288
     built with gcc.  The LEVEL argument controls whether the compiler
1289
     is built optimized or not, values are `opt' and `noopt'.  For
1290
     coverage analysis you want to disable optimization, for
1291
     performance analysis you want to enable optimization.  When
1292
     coverage is enabled, the default level is without optimization.
1293
 
1294
`--enable-gather-detailed-mem-stats'
1295
     When this option is specified more detailed information on memory
1296
     allocation is gathered.  This information is printed when using
1297
     `-fmem-report'.
1298
 
1299
`--with-gc'
1300
`--with-gc=CHOICE'
1301
     With this option you can specify the garbage collector
1302
     implementation used during the compilation process.  CHOICE can be
1303
     one of `page' and `zone', where `page' is the default.
1304
 
1305
`--enable-nls'
1306
`--disable-nls'
1307
     The `--enable-nls' option enables Native Language Support (NLS),
1308
     which lets GCC output diagnostics in languages other than American
1309
     English.  Native Language Support is enabled by default if not
1310
     doing a canadian cross build.  The `--disable-nls' option disables
1311
     NLS.
1312
 
1313
`--with-included-gettext'
1314
     If NLS is enabled, the `--with-included-gettext' option causes the
1315
     build procedure to prefer its copy of GNU `gettext'.
1316
 
1317
`--with-catgets'
1318
     If NLS is enabled, and if the host lacks `gettext' but has the
1319
     inferior `catgets' interface, the GCC build procedure normally
1320
     ignores `catgets' and instead uses GCC's copy of the GNU `gettext'
1321
     library.  The `--with-catgets' option causes the build procedure
1322
     to use the host's `catgets' in this situation.
1323
 
1324
`--with-libiconv-prefix=DIR'
1325
     Search for libiconv header files in `DIR/include' and libiconv
1326
     library files in `DIR/lib'.
1327
 
1328
`--enable-obsolete'
1329
     Enable configuration for an obsoleted system.  If you attempt to
1330
     configure GCC for a system (build, host, or target) which has been
1331
     obsoleted, and you do not specify this flag, configure will halt
1332
     with an error message.
1333
 
1334
     All support for systems which have been obsoleted in one release
1335
     of GCC is removed entirely in the next major release, unless
1336
     someone steps forward to maintain the port.
1337
 
1338
`--enable-decimal-float'
1339
`--enable-decimal-float=yes'
1340
`--enable-decimal-float=no'
1341
`--enable-decimal-float=bid'
1342
`--enable-decimal-float=dpd'
1343
`--disable-decimal-float'
1344
     Enable (or disable) support for the C decimal floating point
1345
     extension that is in the IEEE 754-2008 standard.  This is enabled
1346
     by default only on PowerPC, i386, and x86_64 GNU/Linux systems.
1347
     Other systems may also support it, but require the user to
1348
     specifically enable it.  You can optionally control which decimal
1349
     floating point format is used (either `bid' or `dpd').  The `bid'
1350
     (binary integer decimal) format is default on i386 and x86_64
1351
     systems, and the `dpd' (densely packed decimal) format is default
1352
     on PowerPC systems.
1353
 
1354
`--enable-fixed-point'
1355
`--disable-fixed-point'
1356
     Enable (or disable) support for C fixed-point arithmetic.  This
1357
     option is enabled by default for some targets (such as MIPS) which
1358
     have hardware-support for fixed-point operations.  On other
1359
     targets, you may enable this option manually.
1360
 
1361
`--with-long-double-128'
1362
     Specify if `long double' type should be 128-bit by default on
1363
     selected GNU/Linux architectures.  If using
1364
     `--without-long-double-128', `long double' will be by default
1365
     64-bit, the same as `double' type.  When neither of these
1366
     configure options are used, the default will be 128-bit `long
1367
     double' when built against GNU C Library 2.4 and later, 64-bit
1368
     `long double' otherwise.
1369
 
1370
`--with-gmp=PATHNAME'
1371
`--with-gmp-include=PATHNAME'
1372
`--with-gmp-lib=PATHNAME'
1373
`--with-mpfr=PATHNAME'
1374
`--with-mpfr-include=PATHNAME'
1375
`--with-mpfr-lib=PATHNAME'
1376
`--with-mpc=PATHNAME'
1377
`--with-mpc-include=PATHNAME'
1378
`--with-mpc-lib=PATHNAME'
1379
     If you want to build GCC but do not have the GMP library, the MPFR
1380
     library and/or the MPC library installed in a standard location and
1381
     do not have their sources present in the GCC source tree then you
1382
     can explicitly specify the directory where they are installed
1383
     (`--with-gmp=GMPINSTALLDIR', `--with-mpfr=MPFRINSTALLDIR',
1384
     `--with-mpc=MPCINSTALLDIR').  The `--with-gmp=GMPINSTALLDIR'
1385
     option is shorthand for `--with-gmp-lib=GMPINSTALLDIR/lib' and
1386
     `--with-gmp-include=GMPINSTALLDIR/include'.  Likewise the
1387
     `--with-mpfr=MPFRINSTALLDIR' option is shorthand for
1388
     `--with-mpfr-lib=MPFRINSTALLDIR/lib' and
1389
     `--with-mpfr-include=MPFRINSTALLDIR/include', also the
1390
     `--with-mpc=MPCINSTALLDIR' option is shorthand for
1391
     `--with-mpc-lib=MPCINSTALLDIR/lib' and
1392
     `--with-mpc-include=MPCINSTALLDIR/include'.  If these shorthand
1393
     assumptions are not correct, you can use the explicit include and
1394
     lib options directly.  You might also need to ensure the shared
1395
     libraries can be found by the dynamic linker when building and
1396
     using GCC, for example by setting the runtime shared library path
1397
     variable (`LD_LIBRARY_PATH' on GNU/Linux and Solaris systems).
1398
 
1399
     These flags are applicable to the host platform only.  When
1400
     building a cross compiler, they will not be used to configure
1401
     target libraries.
1402
 
1403
`--with-ppl=PATHNAME'
1404
`--with-ppl-include=PATHNAME'
1405
`--with-ppl-lib=PATHNAME'
1406
`--with-cloog=PATHNAME'
1407
`--with-cloog-include=PATHNAME'
1408
`--with-cloog-lib=PATHNAME'
1409
     If you do not have ISL and the CLooG libraries installed in a
1410
     standard location and you want to build GCC, you can explicitly
1411
     specify the directory where they are installed
1412
     (`--with-isl=ISLINSTALLDIR', `--with-cloog=CLOOGINSTALLDIR'). The
1413
     `--with-isl=ISLINSTALLDIR' option is shorthand for
1414
     `--with-isl-lib=ISLINSTALLDIR/lib' and
1415
     `--with-isl-include=ISLINSTALLDIR/include'.  Likewise the
1416
     `--with-cloog=CLOOGINSTALLDIR' option is shorthand for
1417
     `--with-cloog-lib=CLOOGINSTALLDIR/lib' and
1418
     `--with-cloog-include=CLOOGINSTALLDIR/include'.  If these
1419
     shorthand assumptions are not correct, you can use the explicit
1420
     include and lib options directly.
1421
 
1422
     These flags are applicable to the host platform only.  When
1423
     building a cross compiler, they will not be used to configure
1424
     target libraries.
1425
 
1426
`--with-host-libstdcxx=LINKER-ARGS'
1427
     If you are linking with a static copy of PPL, you can use this
1428
     option to specify how the linker should find the standard C++
1429
     library used internally by PPL.  Typical values of LINKER-ARGS
1430
     might be `-lstdc++' or `-Wl,-Bstatic,-lstdc++,-Bdynamic -lm'.  If
1431
     you are linking with a shared copy of PPL, you probably do not
1432
     need this option; shared library dependencies will cause the
1433
     linker to search for the standard C++ library automatically.
1434
 
1435
`--with-stage1-ldflags=FLAGS'
1436
     This option may be used to set linker flags to be used when linking
1437
     stage 1 of GCC.  These are also used when linking GCC if
1438
     configured with `--disable-bootstrap'.  By default no special
1439
     flags are used.
1440
 
1441
`--with-stage1-libs=LIBS'
1442
     This option may be used to set libraries to be used when linking
1443
     stage 1 of GCC.  These are also used when linking GCC if
1444
     configured with `--disable-bootstrap'.  The default is the
1445
     argument to `--with-host-libstdcxx', if specified.
1446
 
1447
`--with-boot-ldflags=FLAGS'
1448
     This option may be used to set linker flags to be used when linking
1449
     stage 2 and later when bootstrapping GCC.  If neither
1450
     -with-boot-libs nor -with-host-libstdcxx is set to a value, then
1451
     the default is `-static-libstdc++ -static-libgcc'.
1452
 
1453
`--with-boot-libs=LIBS'
1454
     This option may be used to set libraries to be used when linking
1455
     stage 2 and later when bootstrapping GCC.  The default is the
1456
     argument to `--with-host-libstdcxx', if specified.
1457
 
1458
`--with-debug-prefix-map=MAP'
1459
     Convert source directory names using `-fdebug-prefix-map' when
1460
     building runtime libraries.  `MAP' is a space-separated list of
1461
     maps of the form `OLD=NEW'.
1462
 
1463
`--enable-linker-build-id'
1464
     Tells GCC to pass `--build-id' option to the linker for all final
1465
     links (links performed without the `-r' or `--relocatable'
1466
     option), if the linker supports it.  If you specify
1467
     `--enable-linker-build-id', but your linker does not support
1468
     `--build-id' option, a warning is issued and the
1469
     `--enable-linker-build-id' option is ignored.  The default is off.
1470
 
1471
`--with-linker-hash-style=CHOICE'
1472
     Tells GCC to pass `--hash-style=CHOICE' option to the linker for
1473
     all final links. CHOICE can be one of `sysv', `gnu', and `both'
1474
     where `sysv' is the default.
1475
 
1476
`--enable-gnu-unique-object'
1477
`--disable-gnu-unique-object'
1478
     Tells GCC to use the gnu_unique_object relocation for C++ template
1479
     static data members and inline function local statics.  Enabled by
1480
     default for a native toolchain with an assembler that accepts it
1481
     and GLIBC 2.11 or above, otherwise disabled.
1482
 
1483
`--enable-lto'
1484
`--disable-lto'
1485
     Enable support for link-time optimization (LTO).  This is enabled
1486
     by default, and may be disabled using `--disable-lto'.
1487
 
1488
`--with-plugin-ld=PATHNAME'
1489
     Enable an alternate linker to be used at link-time optimization
1490
     (LTO) link time when `-fuse-linker-plugin' is enabled.  This
1491
     linker should have plugin support such as gold starting with
1492
     version 2.20 or GNU ld starting with version 2.21.  See
1493
     `-fuse-linker-plugin' for details.
1494
 
1495
`--enable-canonical-system-headers'
1496
`--disable-canonical-system-headers'
1497
     Enable system header path canonicalization for `libcpp'.  This can
1498
     produce shorter header file paths in diagnostics and dependency
1499
     output files, but these changed header paths may conflict with
1500
     some compilation environments.  Enabled by default, and may be
1501
     disabled using `--disable-canonical-system-headers'.
1502
 
1503
Cross-Compiler-Specific Options
1504
-------------------------------
1505
 
1506
The following options only apply to building cross compilers.
1507
 
1508
`--with-sysroot'
1509
`--with-sysroot=DIR'
1510
     Tells GCC to consider DIR as the root of a tree that contains (a
1511
     subset of) the root filesystem of the target operating system.
1512
     Target system headers, libraries and run-time object files will be
1513
     searched for in there.  More specifically, this acts as if
1514
     `--sysroot=DIR' was added to the default options of the built
1515
     compiler.  The specified directory is not copied into the install
1516
     tree, unlike the options `--with-headers' and `--with-libs' that
1517
     this option obsoletes.  The default value, in case
1518
     `--with-sysroot' is not given an argument, is
1519
     `${gcc_tooldir}/sys-root'.  If the specified directory is a
1520
     subdirectory of `${exec_prefix}', then it will be found relative to
1521
     the GCC binaries if the installation tree is moved.
1522
 
1523
     This option affects the system root for the compiler used to build
1524
     target libraries (which runs on the build system) and the compiler
1525
     newly installed with `make install'; it does not affect the
1526
     compiler which is used to build GCC itself.
1527
 
1528
     If you specify the `--with-native-system-header-dir=DIRNAME'
1529
     option then the compiler will search that directory within DIRNAME
1530
     for native system headers rather than the default `/usr/include'.
1531
 
1532
`--with-build-sysroot'
1533
`--with-build-sysroot=DIR'
1534
     Tells GCC to consider DIR as the system root (see
1535
     `--with-sysroot') while building target libraries, instead of the
1536
     directory specified with `--with-sysroot'.  This option is only
1537
     useful when you are already using `--with-sysroot'.  You can use
1538
     `--with-build-sysroot' when you are configuring with `--prefix'
1539
     set to a directory that is different from the one in which you are
1540
     installing GCC and your target libraries.
1541
 
1542
     This option affects the system root for the compiler used to build
1543
     target libraries (which runs on the build system); it does not
1544
     affect the compiler which is used to build GCC itself.
1545
 
1546
     If you specify the `--with-native-system-header-dir=DIRNAME'
1547
     option then the compiler will search that directory within DIRNAME
1548
     for native system headers rather than the default `/usr/include'.
1549
 
1550
`--with-headers'
1551
`--with-headers=DIR'
1552
     Deprecated in favor of `--with-sysroot'.  Specifies that target
1553
     headers are available when building a cross compiler.  The DIR
1554
     argument specifies a directory which has the target include files.
1555
     These include files will be copied into the `gcc' install
1556
     directory.  _This option with the DIR argument is required_ when
1557
     building a cross compiler, if `PREFIX/TARGET/sys-include' doesn't
1558
     pre-exist.  If `PREFIX/TARGET/sys-include' does pre-exist, the DIR
1559
     argument may be omitted.  `fixincludes' will be run on these files
1560
     to make them compatible with GCC.
1561
 
1562
`--without-headers'
1563
     Tells GCC not use any target headers from a libc when building a
1564
     cross compiler.  When crossing to GNU/Linux, you need the headers
1565
     so GCC can build the exception handling for libgcc.
1566
 
1567
`--with-libs'
1568
`--with-libs="DIR1 DIR2 ... DIRN"'
1569
     Deprecated in favor of `--with-sysroot'.  Specifies a list of
1570
     directories which contain the target runtime libraries.  These
1571
     libraries will be copied into the `gcc' install directory.  If the
1572
     directory list is omitted, this option has no effect.
1573
 
1574
`--with-newlib'
1575
     Specifies that `newlib' is being used as the target C library.
1576
     This causes `__eprintf' to be omitted from `libgcc.a' on the
1577
     assumption that it will be provided by `newlib'.
1578
 
1579
`--with-build-time-tools=DIR'
1580
     Specifies where to find the set of target tools (assembler,
1581
     linker, etc.)  that will be used while building GCC itself.  This
1582
     option can be useful if the directory layouts are different
1583
     between the system you are building GCC on, and the system where
1584
     you will deploy it.
1585
 
1586
     For example, on an `ia64-hp-hpux' system, you may have the GNU
1587
     assembler and linker in `/usr/bin', and the native tools in a
1588
     different path, and build a toolchain that expects to find the
1589
     native tools in `/usr/bin'.
1590
 
1591
     When you use this option, you should ensure that DIR includes
1592
     `ar', `as', `ld', `nm', `ranlib' and `strip' if necessary, and
1593
     possibly `objdump'.  Otherwise, GCC may use an inconsistent set of
1594
     tools.
1595
 
1596
Java-Specific Options
1597
---------------------
1598
 
1599
The following option applies to the build of the Java front end.
1600
 
1601
`--disable-libgcj'
1602
     Specify that the run-time libraries used by GCJ should not be
1603
     built.  This is useful in case you intend to use GCJ with some
1604
     other run-time, or you're going to install it separately, or it
1605
     just happens not to build on your particular machine.  In general,
1606
     if the Java front end is enabled, the GCJ libraries will be
1607
     enabled too, unless they're known to not work on the target
1608
     platform.  If GCJ is enabled but `libgcj' isn't built, you may
1609
     need to port it; in this case, before modifying the top-level
1610
     `configure.in' so that `libgcj' is enabled by default on this
1611
     platform, you may use `--enable-libgcj' to override the default.
1612
 
1613
 
1614
   The following options apply to building `libgcj'.
1615
 
1616
General Options
1617
...............
1618
 
1619
`--enable-java-maintainer-mode'
1620
     By default the `libjava' build will not attempt to compile the
1621
     `.java' source files to `.class'.  Instead, it will use the
1622
     `.class' files from the source tree.  If you use this option you
1623
     must have executables named `ecj1' and `gjavah' in your path for
1624
     use by the build.  You must use this option if you intend to
1625
     modify any `.java' files in `libjava'.
1626
 
1627
`--with-java-home=DIRNAME'
1628
     This `libjava' option overrides the default value of the
1629
     `java.home' system property.  It is also used to set
1630
     `sun.boot.class.path' to `DIRNAME/lib/rt.jar'.  By default
1631
     `java.home' is set to `PREFIX' and `sun.boot.class.path' to
1632
     `DATADIR/java/libgcj-VERSION.jar'.
1633
 
1634
`--with-ecj-jar=FILENAME'
1635
     This option can be used to specify the location of an external jar
1636
     file containing the Eclipse Java compiler.  A specially modified
1637
     version of this compiler is used by `gcj' to parse `.java' source
1638
     files.  If this option is given, the `libjava' build will create
1639
     and install an `ecj1' executable which uses this jar file at
1640
     runtime.
1641
 
1642
     If this option is not given, but an `ecj.jar' file is found in the
1643
     topmost source tree at configure time, then the `libgcj' build
1644
     will create and install `ecj1', and will also install the
1645
     discovered `ecj.jar' into a suitable place in the install tree.
1646
 
1647
     If `ecj1' is not installed, then the user will have to supply one
1648
     on his path in order for `gcj' to properly parse `.java' source
1649
     files.  A suitable jar is available from
1650
     `ftp://sourceware.org/pub/java/'.
1651
 
1652
`--disable-getenv-properties'
1653
     Don't set system properties from `GCJ_PROPERTIES'.
1654
 
1655
`--enable-hash-synchronization'
1656
     Use a global hash table for monitor locks.  Ordinarily, `libgcj''s
1657
     `configure' script automatically makes the correct choice for this
1658
     option for your platform.  Only use this if you know you need the
1659
     library to be configured differently.
1660
 
1661
`--enable-interpreter'
1662
     Enable the Java interpreter.  The interpreter is automatically
1663
     enabled by default on all platforms that support it.  This option
1664
     is really only useful if you want to disable the interpreter
1665
     (using `--disable-interpreter').
1666
 
1667
`--disable-java-net'
1668
     Disable java.net.  This disables the native part of java.net only,
1669
     using non-functional stubs for native method implementations.
1670
 
1671
`--disable-jvmpi'
1672
     Disable JVMPI support.
1673
 
1674
`--disable-libgcj-bc'
1675
     Disable BC ABI compilation of certain parts of libgcj.  By default,
1676
     some portions of libgcj are compiled with `-findirect-dispatch'
1677
     and `-fno-indirect-classes', allowing them to be overridden at
1678
     run-time.
1679
 
1680
     If `--disable-libgcj-bc' is specified, libgcj is built without
1681
     these options.  This allows the compile-time linker to resolve
1682
     dependencies when statically linking to libgcj.  However it makes
1683
     it impossible to override the affected portions of libgcj at
1684
     run-time.
1685
 
1686
`--enable-reduced-reflection'
1687
     Build most of libgcj with `-freduced-reflection'.  This reduces
1688
     the size of libgcj at the expense of not being able to do accurate
1689
     reflection on the classes it contains.  This option is safe if you
1690
     know that code using libgcj will never use reflection on the
1691
     standard runtime classes in libgcj (including using serialization,
1692
     RMI or CORBA).
1693
 
1694
`--with-ecos'
1695
     Enable runtime eCos target support.
1696
 
1697
`--without-libffi'
1698
     Don't use `libffi'.  This will disable the interpreter and JNI
1699
     support as well, as these require `libffi' to work.
1700
 
1701
`--enable-libgcj-debug'
1702
     Enable runtime debugging code.
1703
 
1704
`--enable-libgcj-multifile'
1705
     If specified, causes all `.java' source files to be compiled into
1706
     `.class' files in one invocation of `gcj'.  This can speed up
1707
     build time, but is more resource-intensive.  If this option is
1708
     unspecified or disabled, `gcj' is invoked once for each `.java'
1709
     file to compile into a `.class' file.
1710
 
1711
`--with-libiconv-prefix=DIR'
1712
     Search for libiconv in `DIR/include' and `DIR/lib'.
1713
 
1714
`--enable-sjlj-exceptions'
1715
     Force use of the `setjmp'/`longjmp'-based scheme for exceptions.
1716
     `configure' ordinarily picks the correct value based on the
1717
     platform.  Only use this option if you are sure you need a
1718
     different setting.
1719
 
1720
`--with-system-zlib'
1721
     Use installed `zlib' rather than that included with GCC.
1722
 
1723
`--with-win32-nlsapi=ansi, unicows or unicode'
1724
     Indicates how MinGW `libgcj' translates between UNICODE characters
1725
     and the Win32 API.
1726
 
1727
`--enable-java-home'
1728
     If enabled, this creates a JPackage compatible SDK environment
1729
     during install.  Note that if -enable-java-home is used,
1730
     -with-arch-directory=ARCH must also be specified.
1731
 
1732
`--with-arch-directory=ARCH'
1733
     Specifies the name to use for the `jre/lib/ARCH' directory in the
1734
     SDK environment created when -enable-java-home is passed. Typical
1735
     names for this directory include i386, amd64, ia64, etc.
1736
 
1737
`--with-os-directory=DIR'
1738
     Specifies the OS directory for the SDK include directory. This is
1739
     set to auto detect, and is typically 'linux'.
1740
 
1741
`--with-origin-name=NAME'
1742
     Specifies the JPackage origin name. This defaults to the 'gcj' in
1743
     java-1.5.0-gcj.
1744
 
1745
`--with-arch-suffix=SUFFIX'
1746
     Specifies the suffix for the sdk directory. Defaults to the empty
1747
     string.  Examples include '.x86_64' in
1748
     'java-1.5.0-gcj-1.5.0.0.x86_64'.
1749
 
1750
`--with-jvm-root-dir=DIR'
1751
     Specifies where to install the SDK. Default is $(prefix)/lib/jvm.
1752
 
1753
`--with-jvm-jar-dir=DIR'
1754
     Specifies where to install jars. Default is
1755
     $(prefix)/lib/jvm-exports.
1756
 
1757
`--with-python-dir=DIR'
1758
     Specifies where to install the Python modules used for
1759
     aot-compile. DIR should not include the prefix used in
1760
     installation. For example, if the Python modules are to be
1761
     installed in /usr/lib/python2.5/site-packages, then
1762
     -with-python-dir=/lib/python2.5/site-packages should be passed. If
1763
     this is not specified, then the Python modules are installed in
1764
     $(prefix)/share/python.
1765
 
1766
`--enable-aot-compile-rpm'
1767
     Adds aot-compile-rpm to the list of installed scripts.
1768
 
1769
`--enable-browser-plugin'
1770
     Build the gcjwebplugin web browser plugin.
1771
 
1772
`--enable-static-libjava'
1773
     Build static libraries in libjava. The default is to only build
1774
     shared libraries.
1775
 
1776
    `ansi'
1777
          Use the single-byte `char' and the Win32 A functions natively,
1778
          translating to and from UNICODE when using these functions.
1779
          If unspecified, this is the default.
1780
 
1781
    `unicows'
1782
          Use the `WCHAR' and Win32 W functions natively.  Adds
1783
          `-lunicows' to `libgcj.spec' to link with `libunicows'.
1784
          `unicows.dll' needs to be deployed on Microsoft Windows 9X
1785
          machines running built executables.  `libunicows.a', an
1786
          open-source import library around Microsoft's `unicows.dll',
1787
          is obtained from `http://libunicows.sourceforge.net/', which
1788
          also gives details on getting `unicows.dll' from Microsoft.
1789
 
1790
    `unicode'
1791
          Use the `WCHAR' and Win32 W functions natively.  Does _not_
1792
          add `-lunicows' to `libgcj.spec'.  The built executables will
1793
          only run on Microsoft Windows NT and above.
1794
 
1795
AWT-Specific Options
1796
....................
1797
 
1798
`--with-x'
1799
     Use the X Window System.
1800
 
1801
`--enable-java-awt=PEER(S)'
1802
     Specifies the AWT peer library or libraries to build alongside
1803
     `libgcj'.  If this option is unspecified or disabled, AWT will be
1804
     non-functional.  Current valid values are `gtk' and `xlib'.
1805
     Multiple libraries should be separated by a comma (i.e.
1806
     `--enable-java-awt=gtk,xlib').
1807
 
1808
`--enable-gtk-cairo'
1809
     Build the cairo Graphics2D implementation on GTK.
1810
 
1811
`--enable-java-gc=TYPE'
1812
     Choose garbage collector.  Defaults to `boehm' if unspecified.
1813
 
1814
`--disable-gtktest'
1815
     Do not try to compile and run a test GTK+ program.
1816
 
1817
`--disable-glibtest'
1818
     Do not try to compile and run a test GLIB program.
1819
 
1820
`--with-libart-prefix=PFX'
1821
     Prefix where libart is installed (optional).
1822
 
1823
`--with-libart-exec-prefix=PFX'
1824
     Exec prefix where libart is installed (optional).
1825
 
1826
`--disable-libarttest'
1827
     Do not try to compile and run a test libart program.
1828
 
1829
 
1830
Overriding `configure' test results
1831
...................................
1832
 
1833
Sometimes, it might be necessary to override the result of some
1834
`configure' test, for example in order to ease porting to a new system
1835
or work around a bug in a test.  The toplevel `configure' script
1836
provides three variables for this:
1837
 
1838
`build_configargs'
1839
     The contents of this variable is passed to all build `configure'
1840
     scripts.
1841
 
1842
`host_configargs'
1843
     The contents of this variable is passed to all host `configure'
1844
     scripts.
1845
 
1846
`target_configargs'
1847
     The contents of this variable is passed to all target `configure'
1848
     scripts.
1849
 
1850
 
1851
   In order to avoid shell and `make' quoting issues for complex
1852
overrides, you can pass a setting for `CONFIG_SITE' and set variables
1853
in the site file.
1854
 
1855

1856
File: gccinstall.info,  Node: Building,  Next: Testing,  Prev: Configuration,  Up: Installing GCC
1857
 
1858
5 Building
1859
**********
1860
 
1861
   Now that GCC is configured, you are ready to build the compiler and
1862
runtime libraries.
1863
 
1864
   Some commands executed when making the compiler may fail (return a
1865
nonzero status) and be ignored by `make'.  These failures, which are
1866
often due to files that were not found, are expected, and can safely be
1867
ignored.
1868
 
1869
   It is normal to have compiler warnings when compiling certain files.
1870
Unless you are a GCC developer, you can generally ignore these warnings
1871
unless they cause compilation to fail.  Developers should attempt to fix
1872
any warnings encountered, however they can temporarily continue past
1873
warnings-as-errors by specifying the configure flag `--disable-werror'.
1874
 
1875
   On certain old systems, defining certain environment variables such
1876
as `CC' can interfere with the functioning of `make'.
1877
 
1878
   If you encounter seemingly strange errors when trying to build the
1879
compiler in a directory other than the source directory, it could be
1880
because you have previously configured the compiler in the source
1881
directory.  Make sure you have done all the necessary preparations.
1882
 
1883
   If you build GCC on a BSD system using a directory stored in an old
1884
System V file system, problems may occur in running `fixincludes' if the
1885
System V file system doesn't support symbolic links.  These problems
1886
result in a failure to fix the declaration of `size_t' in
1887
`sys/types.h'.  If you find that `size_t' is a signed type and that
1888
type mismatches occur, this could be the cause.
1889
 
1890
   The solution is not to use such a directory for building GCC.
1891
 
1892
   Similarly, when building from SVN or snapshots, or if you modify
1893
`*.l' files, you need the Flex lexical analyzer generator installed.
1894
If you do not modify `*.l' files, releases contain the Flex-generated
1895
files and you do not need Flex installed to build them.  There is still
1896
one Flex-based lexical analyzer (part of the build machinery, not of
1897
GCC itself) that is used even if you only build the C front end.
1898
 
1899
   When building from SVN or snapshots, or if you modify Texinfo
1900
documentation, you need version 4.7 or later of Texinfo installed if you
1901
want Info documentation to be regenerated.  Releases contain Info
1902
documentation pre-built for the unmodified documentation in the release.
1903
 
1904
5.1 Building a native compiler
1905
==============================
1906
 
1907
For a native build, the default configuration is to perform a 3-stage
1908
bootstrap of the compiler when `make' is invoked.  This will build the
1909
entire GCC system and ensure that it compiles itself correctly.  It can
1910
be disabled with the `--disable-bootstrap' parameter to `configure',
1911
but bootstrapping is suggested because the compiler will be tested more
1912
completely and could also have better performance.
1913
 
1914
   The bootstrapping process will complete the following steps:
1915
 
1916
   * Build tools necessary to build the compiler.
1917
 
1918
   * Perform a 3-stage bootstrap of the compiler.  This includes
1919
     building three times the target tools for use by the compiler such
1920
     as binutils (bfd, binutils, gas, gprof, ld, and opcodes) if they
1921
     have been individually linked or moved into the top level GCC
1922
     source tree before configuring.
1923
 
1924
   * Perform a comparison test of the stage2 and stage3 compilers.
1925
 
1926
   * Build runtime libraries using the stage3 compiler from the
1927
     previous step.
1928
 
1929
 
1930
   If you are short on disk space you might consider `make
1931
bootstrap-lean' instead.  The sequence of compilation is the same
1932
described above, but object files from the stage1 and stage2 of the
1933
3-stage bootstrap of the compiler are deleted as soon as they are no
1934
longer needed.
1935
 
1936
   If you wish to use non-default GCC flags when compiling the stage2
1937
and stage3 compilers, set `BOOT_CFLAGS' on the command line when doing
1938
`make'.  For example, if you want to save additional space during the
1939
bootstrap and in the final installation as well, you can build the
1940
compiler binaries without debugging information as in the following
1941
example.  This will save roughly 40% of disk space both for the
1942
bootstrap and the final installation.  (Libraries will still contain
1943
debugging information.)
1944
 
1945
     make BOOT_CFLAGS='-O' bootstrap
1946
 
1947
   You can place non-default optimization flags into `BOOT_CFLAGS'; they
1948
are less well tested here than the default of `-g -O2', but should
1949
still work.  In a few cases, you may find that you need to specify
1950
special flags such as `-msoft-float' here to complete the bootstrap; or,
1951
if the native compiler miscompiles the stage1 compiler, you may need to
1952
work around this, by choosing `BOOT_CFLAGS' to avoid the parts of the
1953
stage1 compiler that were miscompiled, or by using `make bootstrap4' to
1954
increase the number of stages of bootstrap.
1955
 
1956
   `BOOT_CFLAGS' does not apply to bootstrapped target libraries.
1957
Since these are always compiled with the compiler currently being
1958
bootstrapped, you can use `CFLAGS_FOR_TARGET' to modify their
1959
compilation flags, as for non-bootstrapped target libraries.  Again, if
1960
the native compiler miscompiles the stage1 compiler, you may need to
1961
work around this by avoiding non-working parts of the stage1 compiler.
1962
Use `STAGE1_TFLAGS' to this end.
1963
 
1964
   If you used the flag `--enable-languages=...' to restrict the
1965
compilers to be built, only those you've actually enabled will be
1966
built.  This will of course only build those runtime libraries, for
1967
which the particular compiler has been built.  Please note, that
1968
re-defining `LANGUAGES' when calling `make' *does not* work anymore!
1969
 
1970
   If the comparison of stage2 and stage3 fails, this normally indicates
1971
that the stage2 compiler has compiled GCC incorrectly, and is therefore
1972
a potentially serious bug which you should investigate and report.  (On
1973
a few systems, meaningful comparison of object files is impossible; they
1974
always appear "different".  If you encounter this problem, you will
1975
need to disable comparison in the `Makefile'.)
1976
 
1977
   If you do not want to bootstrap your compiler, you can configure with
1978
`--disable-bootstrap'.  In particular cases, you may want to bootstrap
1979
your compiler even if the target system is not the same as the one you
1980
are building on: for example, you could build a
1981
`powerpc-unknown-linux-gnu' toolchain on a
1982
`powerpc64-unknown-linux-gnu' host.  In this case, pass
1983
`--enable-bootstrap' to the configure script.
1984
 
1985
   `BUILD_CONFIG' can be used to bring in additional customization to
1986
the build.  It can be set to a whitespace-separated list of names.  For
1987
each such `NAME', top-level `config/`NAME'.mk' will be included by the
1988
top-level `Makefile', bringing in any settings it contains.  The
1989
default `BUILD_CONFIG' can be set using the configure option
1990
`--with-build-config=`NAME'...'.  Some examples of supported build
1991
configurations are:
1992
 
1993
`bootstrap-O1'
1994
     Removes any `-O'-started option from `BOOT_CFLAGS', and adds `-O1'
1995
     to it.  `BUILD_CONFIG=bootstrap-O1' is equivalent to
1996
     `BOOT_CFLAGS='-g -O1''.
1997
 
1998
`bootstrap-O3'
1999
     Analogous to `bootstrap-O1'.
2000
 
2001
`bootstrap-lto'
2002
     Enables Link-Time Optimization for host tools during bootstrapping.
2003
     `BUILD_CONFIG=bootstrap-lto' is equivalent to adding `-flto' to
2004
     `BOOT_CFLAGS'.
2005
 
2006
`bootstrap-debug'
2007
     Verifies that the compiler generates the same executable code,
2008
     whether or not it is asked to emit debug information.  To this
2009
     end, this option builds stage2 host programs without debug
2010
     information, and uses `contrib/compare-debug' to compare them with
2011
     the stripped stage3 object files.  If `BOOT_CFLAGS' is overridden
2012
     so as to not enable debug information, stage2 will have it, and
2013
     stage3 won't.  This option is enabled by default when GCC
2014
     bootstrapping is enabled, if `strip' can turn object files
2015
     compiled with and without debug info into identical object files.
2016
     In addition to better test coverage, this option makes default
2017
     bootstraps faster and leaner.
2018
 
2019
`bootstrap-debug-big'
2020
     Rather than comparing stripped object files, as in
2021
     `bootstrap-debug', this option saves internal compiler dumps
2022
     during stage2 and stage3 and compares them as well, which helps
2023
     catch additional potential problems, but at a great cost in terms
2024
     of disk space.  It can be specified in addition to
2025
     `bootstrap-debug'.
2026
 
2027
`bootstrap-debug-lean'
2028
     This option saves disk space compared with `bootstrap-debug-big',
2029
     but at the expense of some recompilation.  Instead of saving the
2030
     dumps of stage2 and stage3 until the final compare, it uses
2031
     `-fcompare-debug' to generate, compare and remove the dumps during
2032
     stage3, repeating the compilation that already took place in
2033
     stage2, whose dumps were not saved.
2034
 
2035
`bootstrap-debug-lib'
2036
     This option tests executable code invariance over debug information
2037
     generation on target libraries, just like `bootstrap-debug-lean'
2038
     tests it on host programs.  It builds stage3 libraries with
2039
     `-fcompare-debug', and it can be used along with any of the
2040
     `bootstrap-debug' options above.
2041
 
2042
     There aren't `-lean' or `-big' counterparts to this option because
2043
     most libraries are only build in stage3, so bootstrap compares
2044
     would not get significant coverage.  Moreover, the few libraries
2045
     built in stage2 are used in stage3 host programs, so we wouldn't
2046
     want to compile stage2 libraries with different options for
2047
     comparison purposes.
2048
 
2049
`bootstrap-debug-ckovw'
2050
     Arranges for error messages to be issued if the compiler built on
2051
     any stage is run without the option `-fcompare-debug'.  This is
2052
     useful to verify the full `-fcompare-debug' testing coverage.  It
2053
     must be used along with `bootstrap-debug-lean' and
2054
     `bootstrap-debug-lib'.
2055
 
2056
`bootstrap-time'
2057
     Arranges for the run time of each program started by the GCC
2058
     driver, built in any stage, to be logged to `time.log', in the top
2059
     level of the build tree.
2060
 
2061
 
2062
5.2 Building a cross compiler
2063
=============================
2064
 
2065
When building a cross compiler, it is not generally possible to do a
2066
3-stage bootstrap of the compiler.  This makes for an interesting
2067
problem as parts of GCC can only be built with GCC.
2068
 
2069
   To build a cross compiler, we recommend first building and
2070
installing a native compiler.  You can then use the native GCC compiler
2071
to build the cross compiler.  The installed native compiler needs to be
2072
GCC version 2.95 or later.
2073
 
2074
   If the cross compiler is to be built with support for the Java
2075
programming language and the ability to compile .java source files is
2076
desired, the installed native compiler used to build the cross compiler
2077
needs to be the same GCC version as the cross compiler.  In addition
2078
the cross compiler needs to be configured with `--with-ecj-jar=...'.
2079
 
2080
   Assuming you have already installed a native copy of GCC and
2081
configured your cross compiler, issue the command `make', which
2082
performs the following steps:
2083
 
2084
   * Build host tools necessary to build the compiler.
2085
 
2086
   * Build target tools for use by the compiler such as binutils (bfd,
2087
     binutils, gas, gprof, ld, and opcodes) if they have been
2088
     individually linked or moved into the top level GCC source tree
2089
     before configuring.
2090
 
2091
   * Build the compiler (single stage only).
2092
 
2093
   * Build runtime libraries using the compiler from the previous step.
2094
 
2095
   Note that if an error occurs in any step the make process will exit.
2096
 
2097
   If you are not building GNU binutils in the same source tree as GCC,
2098
you will need a cross-assembler and cross-linker installed before
2099
configuring GCC.  Put them in the directory `PREFIX/TARGET/bin'.  Here
2100
is a table of the tools you should put in this directory:
2101
 
2102
`as'
2103
     This should be the cross-assembler.
2104
 
2105
`ld'
2106
     This should be the cross-linker.
2107
 
2108
`ar'
2109
     This should be the cross-archiver: a program which can manipulate
2110
     archive files (linker libraries) in the target machine's format.
2111
 
2112
`ranlib'
2113
     This should be a program to construct a symbol table in an archive
2114
     file.
2115
 
2116
   The installation of GCC will find these programs in that directory,
2117
and copy or link them to the proper place to for the cross-compiler to
2118
find them when run later.
2119
 
2120
   The easiest way to provide these files is to build the Binutils
2121
package.  Configure it with the same `--host' and `--target' options
2122
that you use for configuring GCC, then build and install them.  They
2123
install their executables automatically into the proper directory.
2124
Alas, they do not support all the targets that GCC supports.
2125
 
2126
   If you are not building a C library in the same source tree as GCC,
2127
you should also provide the target libraries and headers before
2128
configuring GCC, specifying the directories with `--with-sysroot' or
2129
`--with-headers' and `--with-libs'.  Many targets also require "start
2130
files" such as `crt0.o' and `crtn.o' which are linked into each
2131
executable.  There may be several alternatives for `crt0.o', for use
2132
with profiling or other compilation options.  Check your target's
2133
definition of `STARTFILE_SPEC' to find out what start files it uses.
2134
 
2135
5.3 Building in parallel
2136
========================
2137
 
2138
GNU Make 3.80 and above, which is necessary to build GCC, support
2139
building in parallel.  To activate this, you can use `make -j 2'
2140
instead of `make'.  You can also specify a bigger number, and in most
2141
cases using a value greater than the number of processors in your
2142
machine will result in fewer and shorter I/O latency hits, thus
2143
improving overall throughput; this is especially true for slow drives
2144
and network filesystems.
2145
 
2146
5.4 Building the Ada compiler
2147
=============================
2148
 
2149
In order to build GNAT, the Ada compiler, you need a working GNAT
2150
compiler (GCC version 4.0 or later).  This includes GNAT tools such as
2151
`gnatmake' and `gnatlink', since the Ada front end is written in Ada and
2152
uses some GNAT-specific extensions.
2153
 
2154
   In order to build a cross compiler, it is suggested to install the
2155
new compiler as native first, and then use it to build the cross
2156
compiler.
2157
 
2158
   `configure' does not test whether the GNAT installation works and
2159
has a sufficiently recent version; if too old a GNAT version is
2160
installed, the build will fail unless `--enable-languages' is used to
2161
disable building the Ada front end.
2162
 
2163
   `ADA_INCLUDE_PATH' and `ADA_OBJECT_PATH' environment variables must
2164
not be set when building the Ada compiler, the Ada tools, or the Ada
2165
runtime libraries. You can check that your build environment is clean
2166
by verifying that `gnatls -v' lists only one explicit path in each
2167
section.
2168
 
2169
5.5 Building with profile feedback
2170
==================================
2171
 
2172
It is possible to use profile feedback to optimize the compiler itself.
2173
This should result in a faster compiler binary.  Experiments done on
2174
x86 using gcc 3.3 showed approximately 7 percent speedup on compiling C
2175
programs.  To bootstrap the compiler with profile feedback, use `make
2176
profiledbootstrap'.
2177
 
2178
   When `make profiledbootstrap' is run, it will first build a `stage1'
2179
compiler.  This compiler is used to build a `stageprofile' compiler
2180
instrumented to collect execution counts of instruction and branch
2181
probabilities.  Then runtime libraries are compiled with profile
2182
collected.  Finally a `stagefeedback' compiler is built using the
2183
information collected.
2184
 
2185
   Unlike standard bootstrap, several additional restrictions apply.
2186
The compiler used to build `stage1' needs to support a 64-bit integral
2187
type.  It is recommended to only use GCC for this.  Also parallel make
2188
is currently not supported since collisions in profile collecting may
2189
occur.
2190
 
2191

2192
File: gccinstall.info,  Node: Testing,  Next: Final install,  Prev: Building,  Up: Installing GCC
2193
 
2194
6 Installing GCC: Testing
2195
*************************
2196
 
2197
   Before you install GCC, we encourage you to run the testsuites and to
2198
compare your results with results from a similar configuration that have
2199
been submitted to the gcc-testresults mailing list.  Some of these
2200
archived results are linked from the build status lists at
2201
`http://gcc.gnu.org/buildstat.html', although not everyone who reports
2202
a successful build runs the testsuites and submits the results.  This
2203
step is optional and may require you to download additional software,
2204
but it can give you confidence in your new GCC installation or point out
2205
problems before you install and start using your new GCC.
2206
 
2207
   First, you must have downloaded the testsuites.  These are part of
2208
the full distribution, but if you downloaded the "core" compiler plus
2209
any front ends, you must download the testsuites separately.
2210
 
2211
   Second, you must have the testing tools installed.  This includes
2212
DejaGnu, Tcl, and Expect; the DejaGnu site has links to these.
2213
 
2214
   If the directories where `runtest' and `expect' were installed are
2215
not in the `PATH', you may need to set the following environment
2216
variables appropriately, as in the following example (which assumes
2217
that DejaGnu has been installed under `/usr/local'):
2218
 
2219
     TCL_LIBRARY = /usr/local/share/tcl8.0
2220
     DEJAGNULIBS = /usr/local/share/dejagnu
2221
 
2222
   (On systems such as Cygwin, these paths are required to be actual
2223
paths, not mounts or links; presumably this is due to some lack of
2224
portability in the DejaGnu code.)
2225
 
2226
   Finally, you can run the testsuite (which may take a long time):
2227
     cd OBJDIR; make -k check
2228
 
2229
   This will test various components of GCC, such as compiler front
2230
ends and runtime libraries.  While running the testsuite, DejaGnu might
2231
emit some harmless messages resembling `WARNING: Couldn't find the
2232
global config file.' or `WARNING: Couldn't find tool init file' that
2233
can be ignored.
2234
 
2235
   If you are testing a cross-compiler, you may want to run the
2236
testsuite on a simulator as described at
2237
`http://gcc.gnu.org/simtest-howto.html'.
2238
 
2239
6.1 How can you run the testsuite on selected tests?
2240
====================================================
2241
 
2242
In order to run sets of tests selectively, there are targets `make
2243
check-gcc' and language specific `make check-c', `make check-c++',
2244
`make check-fortran', `make check-java', `make check-ada', `make
2245
check-objc', `make check-obj-c++', `make check-lto' in the `gcc'
2246
subdirectory of the object directory.  You can also just run `make
2247
check' in a subdirectory of the object directory.
2248
 
2249
   A more selective way to just run all `gcc' execute tests in the
2250
testsuite is to use
2251
 
2252
     make check-gcc RUNTESTFLAGS="execute.exp OTHER-OPTIONS"
2253
 
2254
   Likewise, in order to run only the `g++' "old-deja" tests in the
2255
testsuite with filenames matching `9805*', you would use
2256
 
2257
     make check-g++ RUNTESTFLAGS="old-deja.exp=9805* OTHER-OPTIONS"
2258
 
2259
   The `*.exp' files are located in the testsuite directories of the GCC
2260
source, the most important ones being `compile.exp', `execute.exp',
2261
`dg.exp' and `old-deja.exp'.  To get a list of the possible `*.exp'
2262
files, pipe the output of `make check' into a file and look at the
2263
`Running ...  .exp' lines.
2264
 
2265
6.2 Passing options and running multiple testsuites
2266
===================================================
2267
 
2268
You can pass multiple options to the testsuite using the
2269
`--target_board' option of DejaGNU, either passed as part of
2270
`RUNTESTFLAGS', or directly to `runtest' if you prefer to work outside
2271
the makefiles.  For example,
2272
 
2273
     make check-g++ RUNTESTFLAGS="--target_board=unix/-O3/-fmerge-constants"
2274
 
2275
   will run the standard `g++' testsuites ("unix" is the target name
2276
for a standard native testsuite situation), passing `-O3
2277
-fmerge-constants' to the compiler on every test, i.e., slashes
2278
separate options.
2279
 
2280
   You can run the testsuites multiple times using combinations of
2281
options with a syntax similar to the brace expansion of popular shells:
2282
 
2283
     ..."--target_board=arm-sim\{-mhard-float,-msoft-float\}\{-O1,-O2,-O3,\}"
2284
 
2285
   (Note the empty option caused by the trailing comma in the final
2286
group.)  The following will run each testsuite eight times using the
2287
`arm-sim' target, as if you had specified all possible combinations
2288
yourself:
2289
 
2290
     --target_board='arm-sim/-mhard-float/-O1 \
2291
                     arm-sim/-mhard-float/-O2 \
2292
                     arm-sim/-mhard-float/-O3 \
2293
                     arm-sim/-mhard-float \
2294
                     arm-sim/-msoft-float/-O1 \
2295
                     arm-sim/-msoft-float/-O2 \
2296
                     arm-sim/-msoft-float/-O3 \
2297
                     arm-sim/-msoft-float'
2298
 
2299
   They can be combined as many times as you wish, in arbitrary ways.
2300
This list:
2301
 
2302
     ..."--target_board=unix/-Wextra\{-O3,-fno-strength\}\{-fomit-frame,\}"
2303
 
2304
   will generate four combinations, all involving `-Wextra'.
2305
 
2306
   The disadvantage to this method is that the testsuites are run in
2307
serial, which is a waste on multiprocessor systems.  For users with GNU
2308
Make and a shell which performs brace expansion, you can run the
2309
testsuites in parallel by having the shell perform the combinations and
2310
`make' do the parallel runs.  Instead of using `--target_board', use a
2311
special makefile target:
2312
 
2313
     make -jN check-TESTSUITE//TEST-TARGET/OPTION1/OPTION2/...
2314
 
2315
   For example,
2316
 
2317
     make -j3 check-gcc//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
2318
 
2319
   will run three concurrent "make-gcc" testsuites, eventually testing
2320
all ten combinations as described above.  Note that this is currently
2321
only supported in the `gcc' subdirectory.  (To see how this works, try
2322
typing `echo' before the example given here.)
2323
 
2324
6.3 Additional testing for Java Class Libraries
2325
===============================================
2326
 
2327
The Java runtime tests can be executed via `make check' in the
2328
`TARGET/libjava/testsuite' directory in the build tree.
2329
 
2330
   The Mauve Project provides a suite of tests for the Java Class
2331
Libraries.  This suite can be run as part of libgcj testing by placing
2332
the Mauve tree within the libjava testsuite at
2333
`libjava/testsuite/libjava.mauve/mauve', or by specifying the location
2334
of that tree when invoking `make', as in `make MAUVEDIR=~/mauve check'.
2335
 
2336
6.4 How to interpret test results
2337
=================================
2338
 
2339
The result of running the testsuite are various `*.sum' and `*.log'
2340
files in the testsuite subdirectories.  The `*.log' files contain a
2341
detailed log of the compiler invocations and the corresponding results,
2342
the `*.sum' files summarize the results.  These summaries contain
2343
status codes for all tests:
2344
 
2345
   * PASS: the test passed as expected
2346
 
2347
   * XPASS: the test unexpectedly passed
2348
 
2349
   * FAIL: the test unexpectedly failed
2350
 
2351
   * XFAIL: the test failed as expected
2352
 
2353
   * UNSUPPORTED: the test is not supported on this platform
2354
 
2355
   * ERROR: the testsuite detected an error
2356
 
2357
   * WARNING: the testsuite detected a possible problem
2358
 
2359
   It is normal for some tests to report unexpected failures.  At the
2360
current time the testing harness does not allow fine grained control
2361
over whether or not a test is expected to fail.  This problem should be
2362
fixed in future releases.
2363
 
2364
6.5 Submitting test results
2365
===========================
2366
 
2367
If you want to report the results to the GCC project, use the
2368
`contrib/test_summary' shell script.  Start it in the OBJDIR with
2369
 
2370
     SRCDIR/contrib/test_summary -p your_commentary.txt \
2371
         -m gcc-testresults@gcc.gnu.org |sh
2372
 
2373
   This script uses the `Mail' program to send the results, so make
2374
sure it is in your `PATH'.  The file `your_commentary.txt' is prepended
2375
to the testsuite summary and should contain any special remarks you
2376
have on your results or your build environment.  Please do not edit the
2377
testsuite result block or the subject line, as these messages may be
2378
automatically processed.
2379
 
2380

2381
File: gccinstall.info,  Node: Final install,  Prev: Testing,  Up: Installing GCC
2382
 
2383
7 Installing GCC: Final installation
2384
************************************
2385
 
2386
   Now that GCC has been built (and optionally tested), you can install
2387
it with
2388
     cd OBJDIR && make install
2389
 
2390
   We strongly recommend to install into a target directory where there
2391
is no previous version of GCC present.  Also, the GNAT runtime should
2392
not be stripped, as this would break certain features of the debugger
2393
that depend on this debugging information (catching Ada exceptions for
2394
instance).
2395
 
2396
   That step completes the installation of GCC; user level binaries can
2397
be found in `PREFIX/bin' where PREFIX is the value you specified with
2398
the `--prefix' to configure (or `/usr/local' by default).  (If you
2399
specified `--bindir', that directory will be used instead; otherwise,
2400
if you specified `--exec-prefix', `EXEC-PREFIX/bin' will be used.)
2401
Headers for the C++ and Java libraries are installed in
2402
`PREFIX/include'; libraries in `LIBDIR' (normally `PREFIX/lib');
2403
internal parts of the compiler in `LIBDIR/gcc' and `LIBEXECDIR/gcc';
2404
documentation in info format in `INFODIR' (normally `PREFIX/info').
2405
 
2406
   When installing cross-compilers, GCC's executables are not only
2407
installed into `BINDIR', that is, `EXEC-PREFIX/bin', but additionally
2408
into `EXEC-PREFIX/TARGET-ALIAS/bin', if that directory exists.
2409
Typically, such "tooldirs" hold target-specific binutils, including
2410
assembler and linker.
2411
 
2412
   Installation into a temporary staging area or into a `chroot' jail
2413
can be achieved with the command
2414
 
2415
     make DESTDIR=PATH-TO-ROOTDIR install
2416
 
2417
where PATH-TO-ROOTDIR is the absolute path of a directory relative to
2418
which all installation paths will be interpreted.  Note that the
2419
directory specified by `DESTDIR' need not exist yet; it will be created
2420
if necessary.
2421
 
2422
   There is a subtle point with tooldirs and `DESTDIR': If you relocate
2423
a cross-compiler installation with e.g. `DESTDIR=ROOTDIR', then the
2424
directory `ROOTDIR/EXEC-PREFIX/TARGET-ALIAS/bin' will be filled with
2425
duplicated GCC executables only if it already exists, it will not be
2426
created otherwise.  This is regarded as a feature, not as a bug,
2427
because it gives slightly more control to the packagers using the
2428
`DESTDIR' feature.
2429
 
2430
   You can install stripped programs and libraries with
2431
 
2432
     make install-strip
2433
 
2434
   If you are bootstrapping a released version of GCC then please
2435
quickly review the build status page for your release, available from
2436
`http://gcc.gnu.org/buildstat.html'.  If your system is not listed for
2437
the version of GCC that you built, send a note to 
2438
indicating that you successfully built and installed GCC.  Include the
2439
following information:
2440
 
2441
   * Output from running `SRCDIR/config.guess'.  Do not send that file
2442
     itself, just the one-line output from running it.
2443
 
2444
   * The output of `gcc -v' for your newly installed `gcc'.  This tells
2445
     us which version of GCC you built and the options you passed to
2446
     configure.
2447
 
2448
   * Whether you enabled all languages or a subset of them.  If you
2449
     used a full distribution then this information is part of the
2450
     configure options in the output of `gcc -v', but if you downloaded
2451
     the "core" compiler plus additional front ends then it isn't
2452
     apparent which ones you built unless you tell us about it.
2453
 
2454
   * If the build was for GNU/Linux, also include:
2455
        * The distribution name and version (e.g., Red Hat 7.1 or
2456
          Debian 2.2.3); this information should be available from
2457
          `/etc/issue'.
2458
 
2459
        * The version of the Linux kernel, available from `uname
2460
          --version' or `uname -a'.
2461
 
2462
        * The version of glibc you used; for RPM-based systems like Red
2463
          Hat, Mandrake, and SuSE type `rpm -q glibc' to get the glibc
2464
          version, and on systems like Debian and Progeny use `dpkg -l
2465
          libc6'.
2466
     For other systems, you can include similar information if you
2467
     think it is relevant.
2468
 
2469
   * Any other information that you think would be useful to people
2470
     building GCC on the same configuration.  The new entry in the
2471
     build status list will include a link to the archived copy of your
2472
     message.
2473
 
2474
   We'd also like to know if the *note host/target specific
2475
installation notes: Specific.  didn't include your host/target
2476
information or if that information is incomplete or out of date.  Send
2477
a note to  detailing how the information should be
2478
changed.
2479
 
2480
   If you find a bug, please report it following the bug reporting
2481
guidelines.
2482
 
2483
   If you want to print the GCC manuals, do `cd OBJDIR; make dvi'.  You
2484
will need to have `texi2dvi' (version at least 4.7) and TeX installed.
2485
This creates a number of `.dvi' files in subdirectories of `OBJDIR';
2486
these may be converted for printing with programs such as `dvips'.
2487
Alternately, by using `make pdf' in place of `make dvi', you can create
2488
documentation in the form of `.pdf' files; this requires `texi2pdf',
2489
which is included with Texinfo version 4.8 and later.  You can also buy
2490
printed manuals from the Free Software Foundation, though such manuals
2491
may not be for the most recent version of GCC.
2492
 
2493
   If you would like to generate online HTML documentation, do `cd
2494
OBJDIR; make html' and HTML will be generated for the gcc manuals in
2495
`OBJDIR/gcc/HTML'.
2496
 
2497

2498
File: gccinstall.info,  Node: Binaries,  Next: Specific,  Prev: Installing GCC,  Up: Top
2499
 
2500
8 Installing GCC: Binaries
2501
**************************
2502
 
2503
   We are often asked about pre-compiled versions of GCC.  While we
2504
cannot provide these for all platforms, below you'll find links to
2505
binaries for various platforms where creating them by yourself is not
2506
easy due to various reasons.
2507
 
2508
   Please note that we did not create these binaries, nor do we support
2509
them.  If you have any problems installing them, please contact their
2510
makers.
2511
 
2512
   * AIX:
2513
        * Bull's Freeware and Shareware Archive for AIX;
2514
 
2515
        * Hudson Valley Community College Open Source Software for IBM
2516
          System p;
2517
 
2518
        * AIX 5L and 6 Open Source Packages.
2519
 
2520
   * DOS--DJGPP.
2521
 
2522
   * Renesas H8/300[HS]--GNU Development Tools for the Renesas
2523
     H8/300[HS] Series.
2524
 
2525
   * HP-UX:
2526
        * HP-UX Porting Center;
2527
 
2528
        * Binaries for HP-UX 11.00 at Aachen University of Technology.
2529
 
2530
   * SCO OpenServer/Unixware.
2531
 
2532
   * Solaris 2 (SPARC, Intel):
2533
        * Sunfreeware
2534
 
2535
        * Blastwave
2536
 
2537
        * OpenCSW
2538
 
2539
        * TGCware
2540
 
2541
   * Microsoft Windows:
2542
        * The Cygwin project;
2543
 
2544
        * The MinGW project.
2545
 
2546
   * The Written Word offers binaries for AIX 4.3.3, 5.1 and 5.2,
2547
     GNU/Linux (i386), HP-UX 10.20, 11.00, and 11.11, and Solaris/SPARC
2548
     2.5.1, 2.6, 7, 8, 9 and 10.
2549
 
2550
   * OpenPKG offers binaries for quite a number of platforms.
2551
 
2552
   * The GFortran Wiki has links to GNU Fortran binaries for several
2553
     platforms.
2554
 
2555

2556
File: gccinstall.info,  Node: Specific,  Next: Old,  Prev: Binaries,  Up: Top
2557
 
2558
9 Host/target specific installation notes for GCC
2559
*************************************************
2560
 
2561
   Please read this document carefully _before_ installing the GNU
2562
Compiler Collection on your machine.
2563
 
2564
   Note that this list of install notes is _not_ a list of supported
2565
hosts or targets.  Not all supported hosts and targets are listed here,
2566
only the ones that require host-specific or target-specific information
2567
have to.
2568
 
2569
alpha*-*-*
2570
==========
2571
 
2572
This section contains general configuration information for all
2573
alpha-based platforms using ELF (in particular, ignore this section for
2574
DEC OSF/1, Digital UNIX and Tru64 UNIX).  In addition to reading this
2575
section, please read all other sections that match your target.
2576
 
2577
   We require binutils 2.11.2 or newer.  Previous binutils releases had
2578
a number of problems with DWARF 2 debugging information, not the least
2579
of which is incorrect linking of shared libraries.
2580
 
2581
alpha*-dec-osf5.1
2582
=================
2583
 
2584
Systems using processors that implement the DEC Alpha architecture and
2585
are running the DEC/Compaq/HP Unix (DEC OSF/1, Digital UNIX, or
2586
Compaq/HP Tru64 UNIX) operating system, for example the DEC Alpha AXP
2587
systems.
2588
 
2589
   Support for Tru64 UNIX V5.1 has been removed in GCC 4.8.  As of GCC
2590
4.6, support for Tru64 UNIX V4.0 and V5.0 has been removed.  As of GCC
2591
3.2, versions before `alpha*-dec-osf4' are no longer supported.  (These
2592
are the versions which identify themselves as DEC OSF/1.)
2593
 
2594
amd64-*-solaris2.1[0-9]*
2595
========================
2596
 
2597
This is a synonym for `x86_64-*-solaris2.1[0-9]*'.
2598
 
2599
arm-*-eabi
2600
==========
2601
 
2602
ARM-family processors.  Subtargets that use the ELF object format
2603
require GNU binutils 2.13 or newer.  Such subtargets include:
2604
`arm-*-netbsdelf', `arm-*-*linux-*' and `arm-*-rtemseabi'.
2605
 
2606
avr
2607
===
2608
 
2609
ATMEL AVR-family micro controllers.  These are used in embedded
2610
applications.  There are no standard Unix configurations.  *Note AVR
2611
Options: (gcc)AVR Options, for the list of supported MCU types.
2612
 
2613
   Use `configure --target=avr --enable-languages="c"' to configure GCC.
2614
 
2615
   Further installation notes and other useful information about AVR
2616
tools can also be obtained from:
2617
 
2618
   * http://www.nongnu.org/avr/
2619
 
2620
   * http://www.amelek.gda.pl/avr/
2621
 
2622
   We _strongly_ recommend using binutils 2.13 or newer.
2623
 
2624
   The following error:
2625
     Error: register required
2626
 
2627
   indicates that you should upgrade to a newer version of the binutils.
2628
 
2629
Blackfin
2630
========
2631
 
2632
The Blackfin processor, an Analog Devices DSP.  *Note Blackfin Options:
2633
(gcc)Blackfin Options,
2634
 
2635
   More information, and a version of binutils with support for this
2636
processor, is available at `http://blackfin.uclinux.org'
2637
 
2638
CR16
2639
====
2640
 
2641
The CR16 CompactRISC architecture is a 16-bit architecture. This
2642
architecture is used in embedded applications.
2643
 
2644
   *Note CR16 Options: (gcc)CR16 Options,
2645
 
2646
   Use `configure --target=cr16-elf --enable-languages=c,c++' to
2647
configure GCC for building a CR16 elf cross-compiler.
2648
 
2649
   Use `configure --target=cr16-uclinux --enable-languages=c,c++' to
2650
configure GCC for building a CR16 uclinux cross-compiler.
2651
 
2652
CRIS
2653
====
2654
 
2655
CRIS is the CPU architecture in Axis Communications ETRAX
2656
system-on-a-chip series.  These are used in embedded applications.
2657
 
2658
   *Note CRIS Options: (gcc)CRIS Options, for a list of CRIS-specific
2659
options.
2660
 
2661
   There are a few different CRIS targets:
2662
`cris-axis-elf'
2663
     Mainly for monolithic embedded systems.  Includes a multilib for
2664
     the `v10' core used in `ETRAX 100 LX'.
2665
 
2666
`cris-axis-linux-gnu'
2667
     A GNU/Linux port for the CRIS architecture, currently targeting
2668
     `ETRAX 100 LX' by default.
2669
 
2670
   For `cris-axis-elf' you need binutils 2.11 or newer.  For
2671
`cris-axis-linux-gnu' you need binutils 2.12 or newer.
2672
 
2673
   Pre-packaged tools can be obtained from
2674
`ftp://ftp.axis.com/pub/axis/tools/cris/compiler-kit/'.  More
2675
information about this platform is available at
2676
`http://developer.axis.com/'.
2677
 
2678
DOS
2679
===
2680
 
2681
Please have a look at the binaries page.
2682
 
2683
   You cannot install GCC by itself on MSDOS; it will not compile under
2684
any MSDOS compiler except itself.  You need to get the complete
2685
compilation package DJGPP, which includes binaries as well as sources,
2686
and includes all the necessary compilation tools and libraries.
2687
 
2688
epiphany-*-elf
2689
==============
2690
 
2691
Adapteva Epiphany.  This configuration is intended for embedded systems.
2692
 
2693
*-*-freebsd*
2694
============
2695
 
2696
Support for FreeBSD 1 was discontinued in GCC 3.2.  Support for FreeBSD
2697
2 (and any mutant a.out variants of FreeBSD 3) was discontinued in GCC
2698
4.0.
2699
 
2700
   In order to better utilize FreeBSD base system functionality and
2701
match the configuration of the system compiler, GCC 4.5 and above as
2702
well as GCC 4.4 past 2010-06-20 leverage SSP support in libc (which is
2703
present on FreeBSD 7 or later) and the use of `__cxa_atexit' by default
2704
(on FreeBSD 6 or later).  The use of `dl_iterate_phdr' inside
2705
`libgcc_s.so.1' and boehm-gc (on FreeBSD 7 or later) is enabled by GCC
2706
4.5 and above.
2707
 
2708
   We support FreeBSD using the ELF file format with DWARF 2 debugging
2709
for all CPU architectures.  You may use `-gstabs' instead of `-g', if
2710
you really want the old debugging format.  There are no known issues
2711
with mixing object files and libraries with different debugging
2712
formats.  Otherwise, this release of GCC should now match more of the
2713
configuration used in the stock FreeBSD configuration of GCC.  In
2714
particular, `--enable-threads' is now configured by default.  However,
2715
as a general user, do not attempt to replace the system compiler with
2716
this release.  Known to bootstrap and check with good results on
2717
FreeBSD 7.2-STABLE.  In the past, known to bootstrap and check with
2718
good results on FreeBSD 3.0, 3.4, 4.0, 4.2, 4.3, 4.4, 4.5, 4.8, 4.9 and
2719
5-CURRENT.
2720
 
2721
   The version of binutils installed in `/usr/bin' probably works with
2722
this release of GCC.  Bootstrapping against the latest GNU binutils
2723
and/or the version found in `/usr/ports/devel/binutils' has been known
2724
to enable additional features and improve overall testsuite results.
2725
However, it is currently known that boehm-gc (which itself is required
2726
for java) may not configure properly on FreeBSD prior to the FreeBSD
2727
7.0 release with GNU binutils after 2.16.1.
2728
 
2729
h8300-hms
2730
=========
2731
 
2732
Renesas H8/300 series of processors.
2733
 
2734
   Please have a look at the binaries page.
2735
 
2736
   The calling convention and structure layout has changed in release
2737
2.6.  All code must be recompiled.  The calling convention now passes
2738
the first three arguments in function calls in registers.  Structures
2739
are no longer a multiple of 2 bytes.
2740
 
2741
hppa*-hp-hpux*
2742
==============
2743
 
2744
Support for HP-UX version 9 and older was discontinued in GCC 3.4.
2745
 
2746
   We require using gas/binutils on all hppa platforms.  Version 2.19 or
2747
later is recommended.
2748
 
2749
   It may be helpful to configure GCC with the `--with-gnu-as' and
2750
`--with-as=...' options to ensure that GCC can find GAS.
2751
 
2752
   The HP assembler should not be used with GCC.  It is rarely tested
2753
and may not work.  It shouldn't be used with any languages other than C
2754
due to its many limitations.
2755
 
2756
   Specifically, `-g' does not work (HP-UX uses a peculiar debugging
2757
format which GCC does not know about).  It also inserts timestamps into
2758
each object file it creates, causing the 3-stage comparison test to
2759
fail during a bootstrap.  You should be able to continue by saying
2760
`make all-host all-target' after getting the failure from `make'.
2761
 
2762
   Various GCC features are not supported.  For example, it does not
2763
support weak symbols or alias definitions.  As a result, explicit
2764
template instantiations are required when using C++.  This makes it
2765
difficult if not impossible to build many C++ applications.
2766
 
2767
   There are two default scheduling models for instructions.  These are
2768
PROCESSOR_7100LC and PROCESSOR_8000.  They are selected from the pa-risc
2769
architecture specified for the target machine when configuring.
2770
PROCESSOR_8000 is the default.  PROCESSOR_7100LC is selected when the
2771
target is a `hppa1*' machine.
2772
 
2773
   The PROCESSOR_8000 model is not well suited to older processors.
2774
Thus, it is important to completely specify the machine architecture
2775
when configuring if you want a model other than PROCESSOR_8000.  The
2776
macro TARGET_SCHED_DEFAULT can be defined in BOOT_CFLAGS if a different
2777
default scheduling model is desired.
2778
 
2779
   As of GCC 4.0, GCC uses the UNIX 95 namespace for HP-UX 10.10
2780
through 11.00, and the UNIX 98 namespace for HP-UX 11.11 and later.
2781
This namespace change might cause problems when bootstrapping with an
2782
earlier version of GCC or the HP compiler as essentially the same
2783
namespace is required for an entire build.  This problem can be avoided
2784
in a number of ways.  With HP cc, `UNIX_STD' can be set to `95' or
2785
`98'.  Another way is to add an appropriate set of predefines to `CC'.
2786
The description for the `munix=' option contains a list of the
2787
predefines used with each standard.
2788
 
2789
   More specific information to `hppa*-hp-hpux*' targets follows.
2790
 
2791
hppa*-hp-hpux10
2792
===============
2793
 
2794
For hpux10.20, we _highly_ recommend you pick up the latest sed patch
2795
`PHCO_19798' from HP.
2796
 
2797
   The C++ ABI has changed incompatibly in GCC 4.0.  COMDAT subspaces
2798
are used for one-only code and data.  This resolves many of the previous
2799
problems in using C++ on this target.  However, the ABI is not
2800
compatible with the one implemented under HP-UX 11 using secondary
2801
definitions.
2802
 
2803
hppa*-hp-hpux11
2804
===============
2805
 
2806
GCC 3.0 and up support HP-UX 11.  GCC 2.95.x is not supported and cannot
2807
be used to compile GCC 3.0 and up.
2808
 
2809
   The libffi and libjava libraries haven't been ported to 64-bit HP-UX
2810
and don't build.
2811
 
2812
   Refer to binaries for information about obtaining precompiled GCC
2813
binaries for HP-UX.  Precompiled binaries must be obtained to build the
2814
Ada language as it can't be bootstrapped using C.  Ada is only
2815
available for the 32-bit PA-RISC runtime.
2816
 
2817
   Starting with GCC 3.4 an ISO C compiler is required to bootstrap.
2818
The bundled compiler supports only traditional C; you will need either
2819
HP's unbundled compiler, or a binary distribution of GCC.
2820
 
2821
   It is possible to build GCC 3.3 starting with the bundled HP
2822
compiler, but the process requires several steps.  GCC 3.3 can then be
2823
used to build later versions.  The fastjar program contains ISO C code
2824
and can't be built with the HP bundled compiler.  This problem can be
2825
avoided by not building the Java language.  For example, use the
2826
`--enable-languages="c,c++,f77,objc"' option in your configure command.
2827
 
2828
   There are several possible approaches to building the distribution.
2829
Binutils can be built first using the HP tools.  Then, the GCC
2830
distribution can be built.  The second approach is to build GCC first
2831
using the HP tools, then build binutils, then rebuild GCC.  There have
2832
been problems with various binary distributions, so it is best not to
2833
start from a binary distribution.
2834
 
2835
   On 64-bit capable systems, there are two distinct targets.  Different
2836
installation prefixes must be used if both are to be installed on the
2837
same system.  The `hppa[1-2]*-hp-hpux11*' target generates code for the
2838
32-bit PA-RISC runtime architecture and uses the HP linker.  The
2839
`hppa64-hp-hpux11*' target generates 64-bit code for the PA-RISC 2.0
2840
architecture.
2841
 
2842
   The script config.guess now selects the target type based on the
2843
compiler detected during configuration.  You must define `PATH' or `CC'
2844
so that configure finds an appropriate compiler for the initial
2845
bootstrap.  When `CC' is used, the definition should contain the
2846
options that are needed whenever `CC' is used.
2847
 
2848
   Specifically, options that determine the runtime architecture must be
2849
in `CC' to correctly select the target for the build.  It is also
2850
convenient to place many other compiler options in `CC'.  For example,
2851
`CC="cc -Ac +DA2.0W -Wp,-H16376 -D_CLASSIC_TYPES -D_HPUX_SOURCE"' can
2852
be used to bootstrap the GCC 3.3 branch with the HP compiler in 64-bit
2853
K&R/bundled mode.  The `+DA2.0W' option will result in the automatic
2854
selection of the `hppa64-hp-hpux11*' target.  The macro definition
2855
table of cpp needs to be increased for a successful build with the HP
2856
compiler.  _CLASSIC_TYPES and _HPUX_SOURCE need to be defined when
2857
building with the bundled compiler, or when using the `-Ac' option.
2858
These defines aren't necessary with `-Ae'.
2859
 
2860
   It is best to explicitly configure the `hppa64-hp-hpux11*' target
2861
with the `--with-ld=...' option.  This overrides the standard search
2862
for ld.  The two linkers supported on this target require different
2863
commands.  The default linker is determined during configuration.  As a
2864
result, it's not possible to switch linkers in the middle of a GCC
2865
build.  This has been reported to sometimes occur in unified builds of
2866
binutils and GCC.
2867
 
2868
   A recent linker patch must be installed for the correct operation of
2869
GCC 3.3 and later.  `PHSS_26559' and `PHSS_24304' are the oldest linker
2870
patches that are known to work.  They are for HP-UX 11.00 and 11.11,
2871
respectively.  `PHSS_24303', the companion to `PHSS_24304', might be
2872
usable but it hasn't been tested.  These patches have been superseded.
2873
Consult the HP patch database to obtain the currently recommended
2874
linker patch for your system.
2875
 
2876
   The patches are necessary for the support of weak symbols on the
2877
32-bit port, and for the running of initializers and finalizers.  Weak
2878
symbols are implemented using SOM secondary definition symbols.  Prior
2879
to HP-UX 11, there are bugs in the linker support for secondary symbols.
2880
The patches correct a problem of linker core dumps creating shared
2881
libraries containing secondary symbols, as well as various other
2882
linking issues involving secondary symbols.
2883
 
2884
   GCC 3.3 uses the ELF DT_INIT_ARRAY and DT_FINI_ARRAY capabilities to
2885
run initializers and finalizers on the 64-bit port.  The 32-bit port
2886
uses the linker `+init' and `+fini' options for the same purpose.  The
2887
patches correct various problems with the +init/+fini options,
2888
including program core dumps.  Binutils 2.14 corrects a problem on the
2889
64-bit port resulting from HP's non-standard use of the .init and .fini
2890
sections for array initializers and finalizers.
2891
 
2892
   Although the HP and GNU linkers are both supported for the
2893
`hppa64-hp-hpux11*' target, it is strongly recommended that the HP
2894
linker be used for link editing on this target.
2895
 
2896
   At this time, the GNU linker does not support the creation of long
2897
branch stubs.  As a result, it can't successfully link binaries
2898
containing branch offsets larger than 8 megabytes.  In addition, there
2899
are problems linking shared libraries, linking executables with
2900
`-static', and with dwarf2 unwind and exception support.  It also
2901
doesn't provide stubs for internal calls to global functions in shared
2902
libraries, so these calls can't be overloaded.
2903
 
2904
   The HP dynamic loader does not support GNU symbol versioning, so
2905
symbol versioning is not supported.  It may be necessary to disable
2906
symbol versioning with `--disable-symvers' when using GNU ld.
2907
 
2908
   POSIX threads are the default.  The optional DCE thread library is
2909
not supported, so `--enable-threads=dce' does not work.
2910
 
2911
*-*-linux-gnu
2912
=============
2913
 
2914
Versions of libstdc++-v3 starting with 3.2.1 require bug fixes present
2915
in glibc 2.2.5 and later.  More information is available in the
2916
libstdc++-v3 documentation.
2917
 
2918
i?86-*-linux*
2919
=============
2920
 
2921
As of GCC 3.3, binutils 2.13.1 or later is required for this platform.
2922
See bug 10877 for more information.
2923
 
2924
   If you receive Signal 11 errors when building on GNU/Linux, then it
2925
is possible you have a hardware problem.  Further information on this
2926
can be found on www.bitwizard.nl.
2927
 
2928
i?86-*-solaris2.9
2929
=================
2930
 
2931
The Sun assembler in Solaris 9 has several bugs and limitations.  While
2932
GCC works around them, several features are missing, so it is
2933
recommended to use the GNU assembler instead.  There is no bundled
2934
version, but the current version, from GNU binutils 2.22, is known to
2935
work.
2936
 
2937
   Solaris 2/x86 doesn't support the execution of SSE/SSE2 instructions
2938
before Solaris 9 4/04, even if the CPU supports them.  Programs will
2939
receive `SIGILL' if they try.  The fix is available both in Solaris 9
2940
Update 6 and kernel patch 112234-12 or newer.  To avoid this problem,
2941
`-march' defaults to `pentiumpro' on Solaris 9.  If you have the patch
2942
installed, you can configure GCC with an appropriate `--with-arch'
2943
option, but need GNU `as' for SSE2 support.
2944
 
2945
i?86-*-solaris2.10
2946
==================
2947
 
2948
Use this for Solaris 10 or later on x86 and x86-64 systems.  Starting
2949
with GCC 4.7, there is also a 64-bit `amd64-*-solaris2.1[0-9]*' or
2950
`x86_64-*-solaris2.1[0-9]*' configuration that corresponds to
2951
`sparcv9-sun-solaris2*'.
2952
 
2953
   It is recommended that you configure GCC to use the GNU assembler, in
2954
`/usr/sfw/bin/gas'.  The versions included in Solaris 10, from GNU
2955
binutils 2.15, and Solaris 11, from GNU binutils 2.19, work fine,
2956
although the current version, from GNU binutils 2.22, is known to work,
2957
too.  Recent versions of the Sun assembler in `/usr/ccs/bin/as' work
2958
almost as well, though.
2959
 
2960
   For linking, the Sun linker, is preferred.  If you want to use the
2961
GNU linker instead, which is available in `/usr/sfw/bin/gld', note that
2962
due to a packaging bug the version in Solaris 10, from GNU binutils
2963
2.15, cannot be used, while the version in Solaris 11, from GNU binutils
2964
2.19, works, as does the latest version, from GNU binutils 2.22.
2965
 
2966
   To use GNU `as', configure with the options `--with-gnu-as
2967
--with-as=/usr/sfw/bin/gas'.  It may be necessary to configure with
2968
`--without-gnu-ld --with-ld=/usr/ccs/bin/ld' to guarantee use of Sun
2969
`ld'.
2970
 
2971
ia64-*-linux
2972
============
2973
 
2974
IA-64 processor (also known as IPF, or Itanium Processor Family)
2975
running GNU/Linux.
2976
 
2977
   If you are using the installed system libunwind library with
2978
`--with-system-libunwind', then you must use libunwind 0.98 or later.
2979
 
2980
   None of the following versions of GCC has an ABI that is compatible
2981
with any of the other versions in this list, with the exception that
2982
Red Hat 2.96 and Trillian 000171 are compatible with each other: 3.1,
2983
3.0.2, 3.0.1, 3.0, Red Hat 2.96, and Trillian 000717.  This primarily
2984
affects C++ programs and programs that create shared libraries.  GCC
2985
3.1 or later is recommended for compiling linux, the kernel.  As of
2986
version 3.1 GCC is believed to be fully ABI compliant, and hence no
2987
more major ABI changes are expected.
2988
 
2989
ia64-*-hpux*
2990
============
2991
 
2992
Building GCC on this target requires the GNU Assembler.  The bundled HP
2993
assembler will not work.  To prevent GCC from using the wrong assembler,
2994
the option `--with-gnu-as' may be necessary.
2995
 
2996
   The GCC libunwind library has not been ported to HPUX.  This means
2997
that for GCC versions 3.2.3 and earlier, `--enable-libunwind-exceptions'
2998
is required to build GCC.  For GCC 3.3 and later, this is the default.
2999
For gcc 3.4.3 and later, `--enable-libunwind-exceptions' is removed and
3000
the system libunwind library will always be used.
3001
 
3002
*-ibm-aix*
3003
==========
3004
 
3005
Support for AIX version 3 and older was discontinued in GCC 3.4.
3006
Support for AIX version 4.2 and older was discontinued in GCC 4.5.
3007
 
3008
   "out of memory" bootstrap failures may indicate a problem with
3009
process resource limits (ulimit).  Hard limits are configured in the
3010
`/etc/security/limits' system configuration file.
3011
 
3012
   GCC can bootstrap with recent versions of IBM XLC, but bootstrapping
3013
with an earlier release of GCC is recommended.  Bootstrapping with XLC
3014
requires a larger data segment, which can be enabled through the
3015
LDR_CNTRL environment variable, e.g.,
3016
 
3017
     % LDR_CNTRL=MAXDATA=0x50000000
3018
     % export LDR_CNTRL
3019
 
3020
   One can start with a pre-compiled version of GCC to build from
3021
sources.  One may delete GCC's "fixed" header files when starting with
3022
a version of GCC built for an earlier release of AIX.
3023
 
3024
   To speed up the configuration phases of bootstrapping and installing
3025
GCC, one may use GNU Bash instead of AIX `/bin/sh', e.g.,
3026
 
3027
     % CONFIG_SHELL=/opt/freeware/bin/bash
3028
     % export CONFIG_SHELL
3029
 
3030
   and then proceed as described in the build instructions, where we
3031
strongly recommend specifying an absolute path to invoke
3032
SRCDIR/configure.
3033
 
3034
   Because GCC on AIX is built as a 32-bit executable by default,
3035
(although it can generate 64-bit programs) the GMP and MPFR libraries
3036
required by gfortran must be 32-bit libraries.  Building GMP and MPFR
3037
as static archive libraries works better than shared libraries.
3038
 
3039
   Errors involving `alloca' when building GCC generally are due to an
3040
incorrect definition of `CC' in the Makefile or mixing files compiled
3041
with the native C compiler and GCC.  During the stage1 phase of the
3042
build, the native AIX compiler *must* be invoked as `cc' (not `xlc').
3043
Once `configure' has been informed of `xlc', one needs to use `make
3044
distclean' to remove the configure cache files and ensure that `CC'
3045
environment variable does not provide a definition that will confuse
3046
`configure'.  If this error occurs during stage2 or later, then the
3047
problem most likely is the version of Make (see above).
3048
 
3049
   The native `as' and `ld' are recommended for bootstrapping on AIX.
3050
The GNU Assembler, GNU Linker, and GNU Binutils version 2.20 is the
3051
minimum level that supports bootstrap on AIX 5.  The GNU Assembler has
3052
not been updated to support AIX 6 or AIX 7.  The native AIX tools do
3053
interoperate with GCC.
3054
 
3055
   AIX 5.3 TL10, AIX 6.1 TL05 and AIX 7.1 TL00 introduced an AIX
3056
assembler change that sometimes produces corrupt assembly files causing
3057
AIX linker errors.  The bug breaks GCC bootstrap on AIX and can cause
3058
compilation failures with existing GCC installations.  An AIX iFix for
3059
AIX 5.3 is available (APAR IZ98385 for AIX 5.3 TL10, APAR IZ98477 for
3060
AIX 5.3 TL11 and IZ98134 for AIX 5.3 TL12). AIX 5.3 TL11 SP8, AIX 5.3
3061
TL12 SP5, AIX 6.1 TL04 SP11, AIX 6.1 TL05 SP7, AIX 6.1 TL06 SP6, AIX
3062
6.1 TL07 and AIX 7.1 TL01 should include the fix.
3063
 
3064
   Building `libstdc++.a' requires a fix for an AIX Assembler bug APAR
3065
IY26685 (AIX 4.3) or APAR IY25528 (AIX 5.1).  It also requires a fix
3066
for another AIX Assembler bug and a co-dependent AIX Archiver fix
3067
referenced as APAR IY53606 (AIX 5.2) or as APAR IY54774 (AIX 5.1)
3068
 
3069
   `libstdc++' in GCC 3.4 increments the major version number of the
3070
shared object and GCC installation places the `libstdc++.a' shared
3071
library in a common location which will overwrite the and GCC 3.3
3072
version of the shared library.  Applications either need to be
3073
re-linked against the new shared library or the GCC 3.1 and GCC 3.3
3074
versions of the `libstdc++' shared object needs to be available to the
3075
AIX runtime loader.  The GCC 3.1 `libstdc++.so.4', if present, and GCC
3076
3.3 `libstdc++.so.5' shared objects can be installed for runtime
3077
dynamic loading using the following steps to set the `F_LOADONLY' flag
3078
in the shared object for _each_ multilib `libstdc++.a' installed:
3079
 
3080
   Extract the shared objects from the currently installed
3081
`libstdc++.a' archive:
3082
     % ar -x libstdc++.a libstdc++.so.4 libstdc++.so.5
3083
 
3084
   Enable the `F_LOADONLY' flag so that the shared object will be
3085
available for runtime dynamic loading, but not linking:
3086
     % strip -e libstdc++.so.4 libstdc++.so.5
3087
 
3088
   Archive the runtime-only shared object in the GCC 3.4 `libstdc++.a'
3089
archive:
3090
     % ar -q libstdc++.a libstdc++.so.4 libstdc++.so.5
3091
 
3092
   Linking executables and shared libraries may produce warnings of
3093
duplicate symbols.  The assembly files generated by GCC for AIX always
3094
have included multiple symbol definitions for certain global variable
3095
and function declarations in the original program.  The warnings should
3096
not prevent the linker from producing a correct library or runnable
3097
executable.
3098
 
3099
   AIX 4.3 utilizes a "large format" archive to support both 32-bit and
3100
64-bit object modules.  The routines provided in AIX 4.3.0 and AIX 4.3.1
3101
to parse archive libraries did not handle the new format correctly.
3102
These routines are used by GCC and result in error messages during
3103
linking such as "not a COFF file".  The version of the routines shipped
3104
with AIX 4.3.1 should work for a 32-bit environment.  The `-g' option
3105
of the archive command may be used to create archives of 32-bit objects
3106
using the original "small format".  A correct version of the routines
3107
is shipped with AIX 4.3.2 and above.
3108
 
3109
   Some versions of the AIX binder (linker) can fail with a relocation
3110
overflow severe error when the `-bbigtoc' option is used to link
3111
GCC-produced object files into an executable that overflows the TOC.  A
3112
fix for APAR IX75823 (OVERFLOW DURING LINK WHEN USING GCC AND -BBIGTOC)
3113
is available from IBM Customer Support and from its
3114
techsupport.services.ibm.com website as PTF U455193.
3115
 
3116
   The AIX 4.3.2.1 linker (bos.rte.bind_cmds Level 4.3.2.1) will dump
3117
core with a segmentation fault when invoked by any version of GCC.  A
3118
fix for APAR IX87327 is available from IBM Customer Support and from its
3119
techsupport.services.ibm.com website as PTF U461879.  This fix is
3120
incorporated in AIX 4.3.3 and above.
3121
 
3122
   The initial assembler shipped with AIX 4.3.0 generates incorrect
3123
object files.  A fix for APAR IX74254 (64BIT DISASSEMBLED OUTPUT FROM
3124
COMPILER FAILS TO ASSEMBLE/BIND) is available from IBM Customer Support
3125
and from its techsupport.services.ibm.com website as PTF U453956.  This
3126
fix is incorporated in AIX 4.3.1 and above.
3127
 
3128
   AIX provides National Language Support (NLS).  Compilers and
3129
assemblers use NLS to support locale-specific representations of
3130
various data formats including floating-point numbers (e.g., `.'  vs
3131
`,' for separating decimal fractions).  There have been problems
3132
reported where GCC does not produce the same floating-point formats
3133
that the assembler expects.  If one encounters this problem, set the
3134
`LANG' environment variable to `C' or `En_US'.
3135
 
3136
   A default can be specified with the `-mcpu=CPU_TYPE' switch and
3137
using the configure option `--with-cpu-CPU_TYPE'.
3138
 
3139
iq2000-*-elf
3140
============
3141
 
3142
Vitesse IQ2000 processors.  These are used in embedded applications.
3143
There are no standard Unix configurations.
3144
 
3145
lm32-*-elf
3146
==========
3147
 
3148
Lattice Mico32 processor.  This configuration is intended for embedded
3149
systems.
3150
 
3151
lm32-*-uclinux
3152
==============
3153
 
3154
Lattice Mico32 processor.  This configuration is intended for embedded
3155
systems running uClinux.
3156
 
3157
m32c-*-elf
3158
==========
3159
 
3160
Renesas M32C processor.  This configuration is intended for embedded
3161
systems.
3162
 
3163
m32r-*-elf
3164
==========
3165
 
3166
Renesas M32R processor.  This configuration is intended for embedded
3167
systems.
3168
 
3169
m68k-*-*
3170
========
3171
 
3172
By default, `m68k-*-elf*', `m68k-*-rtems',  `m68k-*-uclinux' and
3173
`m68k-*-linux' build libraries for both M680x0 and ColdFire processors.
3174
If you only need the M680x0 libraries, you can omit the ColdFire ones
3175
by passing `--with-arch=m68k' to `configure'.  Alternatively, you can
3176
omit the M680x0 libraries by passing `--with-arch=cf' to `configure'.
3177
These targets default to 5206 or 5475 code as appropriate for the
3178
target system when configured with `--with-arch=cf' and 68020 code
3179
otherwise.
3180
 
3181
   The `m68k-*-netbsd' and `m68k-*-openbsd' targets also support the
3182
`--with-arch' option.  They will generate ColdFire CFV4e code when
3183
configured with `--with-arch=cf' and 68020 code otherwise.
3184
 
3185
   You can override the default processors listed above by configuring
3186
with `--with-cpu=TARGET'.  This TARGET can either be a `-mcpu' argument
3187
or one of the following values: `m68000', `m68010', `m68020', `m68030',
3188
`m68040', `m68060', `m68020-40' and `m68020-60'.
3189
 
3190
   GCC requires at least binutils version 2.17 on these targets.
3191
 
3192
m68k-*-uclinux
3193
==============
3194
 
3195
GCC 4.3 changed the uClinux configuration so that it uses the
3196
`m68k-linux-gnu' ABI rather than the `m68k-elf' ABI.  It also added
3197
improved support for C++ and flat shared libraries, both of which were
3198
ABI changes.
3199
 
3200
mep-*-elf
3201
=========
3202
 
3203
Toshiba Media embedded Processor.  This configuration is intended for
3204
embedded systems.
3205
 
3206
microblaze-*-elf
3207
================
3208
 
3209
Xilinx MicroBlaze processor.  This configuration is intended for
3210
embedded systems.
3211
 
3212
mips-*-*
3213
========
3214
 
3215
If on a MIPS system you get an error message saying "does not have gp
3216
sections for all it's [sic] sectons [sic]", don't worry about it.  This
3217
happens whenever you use GAS with the MIPS linker, but there is not
3218
really anything wrong, and it is okay to use the output file.  You can
3219
stop such warnings by installing the GNU linker.
3220
 
3221
   It would be nice to extend GAS to produce the gp tables, but they are
3222
optional, and there should not be a warning about their absence.
3223
 
3224
   The libstdc++ atomic locking routines for MIPS targets requires MIPS
3225
II and later.  A patch went in just after the GCC 3.3 release to make
3226
`mips*-*-*' use the generic implementation instead.  You can also
3227
configure for `mipsel-elf' as a workaround.  The `mips*-*-linux*'
3228
target continues to use the MIPS II routines.  More work on this is
3229
expected in future releases.
3230
 
3231
   The built-in `__sync_*' functions are available on MIPS II and later
3232
systems and others that support the `ll', `sc' and `sync' instructions.
3233
This can be overridden by passing `--with-llsc' or `--without-llsc'
3234
when configuring GCC.  Since the Linux kernel emulates these
3235
instructions if they are missing, the default for `mips*-*-linux*'
3236
targets is `--with-llsc'.  The `--with-llsc' and `--without-llsc'
3237
configure options may be overridden at compile time by passing the
3238
`-mllsc' or `-mno-llsc' options to the compiler.
3239
 
3240
   MIPS systems check for division by zero (unless
3241
`-mno-check-zero-division' is passed to the compiler) by generating
3242
either a conditional trap or a break instruction.  Using trap results
3243
in smaller code, but is only supported on MIPS II and later.  Also,
3244
some versions of the Linux kernel have a bug that prevents trap from
3245
generating the proper signal (`SIGFPE').  To enable the use of break,
3246
use the `--with-divide=breaks' `configure' option when configuring GCC.
3247
The default is to use traps on systems that support them.
3248
 
3249
   The assembler from GNU binutils 2.17 and earlier has a bug in the way
3250
it sorts relocations for REL targets (o32, o64, EABI).  This can cause
3251
bad code to be generated for simple C++ programs.  Also the linker from
3252
GNU binutils versions prior to 2.17 has a bug which causes the runtime
3253
linker stubs in very large programs, like `libgcj.so', to be
3254
incorrectly generated.  GNU Binutils 2.18 and later (and snapshots made
3255
after Nov. 9, 2006) should be free from both of these problems.
3256
 
3257
mips-sgi-irix5
3258
==============
3259
 
3260
Support for IRIX 5 has been removed in GCC 4.6.
3261
 
3262
mips-sgi-irix6
3263
==============
3264
 
3265
Support for IRIX 6.5 has been removed in GCC 4.8.  Support for IRIX 6
3266
releases before 6.5 has been removed in GCC 4.6, as well as support for
3267
the O32 ABI.
3268
 
3269
moxie-*-elf
3270
===========
3271
 
3272
The moxie processor.
3273
 
3274
powerpc-*-*
3275
===========
3276
 
3277
You can specify a default version for the `-mcpu=CPU_TYPE' switch by
3278
using the configure option `--with-cpu-CPU_TYPE'.
3279
 
3280
   You will need binutils 2.15 or newer for a working GCC.
3281
 
3282
powerpc-*-darwin*
3283
=================
3284
 
3285
PowerPC running Darwin (Mac OS X kernel).
3286
 
3287
   Pre-installed versions of Mac OS X may not include any developer
3288
tools, meaning that you will not be able to build GCC from source.  Tool
3289
binaries are available at `http://opensource.apple.com/'.
3290
 
3291
   This version of GCC requires at least cctools-590.36.  The
3292
cctools-590.36 package referenced from
3293
`http://gcc.gnu.org/ml/gcc/2006-03/msg00507.html' will not work on
3294
systems older than 10.3.9 (aka darwin7.9.0).
3295
 
3296
powerpc-*-elf
3297
=============
3298
 
3299
PowerPC system in big endian mode, running System V.4.
3300
 
3301
powerpc*-*-linux-gnu*
3302
=====================
3303
 
3304
PowerPC system in big endian mode running Linux.
3305
 
3306
powerpc-*-netbsd*
3307
=================
3308
 
3309
PowerPC system in big endian mode running NetBSD.
3310
 
3311
powerpc-*-eabisim
3312
=================
3313
 
3314
Embedded PowerPC system in big endian mode for use in running under the
3315
PSIM simulator.
3316
 
3317
powerpc-*-eabi
3318
==============
3319
 
3320
Embedded PowerPC system in big endian mode.
3321
 
3322
powerpcle-*-elf
3323
===============
3324
 
3325
PowerPC system in little endian mode, running System V.4.
3326
 
3327
powerpcle-*-eabisim
3328
===================
3329
 
3330
Embedded PowerPC system in little endian mode for use in running under
3331
the PSIM simulator.
3332
 
3333
powerpcle-*-eabi
3334
================
3335
 
3336
Embedded PowerPC system in little endian mode.
3337
 
3338
rl78-*-elf
3339
==========
3340
 
3341
The Renesas RL78 processor.  This configuration is intended for
3342
embedded systems.
3343
 
3344
rx-*-elf
3345
========
3346
 
3347
The Renesas RX processor.  See
3348
`http://eu.renesas.com/fmwk.jsp?cnt=rx600_series_landing.jsp&fp=/products/mpumcu/rx_family/rx600_series'
3349
for more information about this processor.
3350
 
3351
s390-*-linux*
3352
=============
3353
 
3354
S/390 system running GNU/Linux for S/390.
3355
 
3356
s390x-*-linux*
3357
==============
3358
 
3359
zSeries system (64-bit) running GNU/Linux for zSeries.
3360
 
3361
s390x-ibm-tpf*
3362
==============
3363
 
3364
zSeries system (64-bit) running TPF.  This platform is supported as
3365
cross-compilation target only.
3366
 
3367
*-*-solaris2*
3368
=============
3369
 
3370
Support for Solaris 8 has removed in GCC 4.8.  Support for Solaris 7 has
3371
been removed in GCC 4.6.
3372
 
3373
   Sun does not ship a C compiler with Solaris 2 before Solaris 10,
3374
though you can download the Sun Studio compilers for free.  In Solaris
3375
10 and 11, GCC 3.4.3 is available as `/usr/sfw/bin/gcc'.  Solaris 11
3376
also provides GCC 4.5.2 as `/usr/gcc/4.5/bin/gcc'.  Alternatively, you
3377
can install a pre-built GCC to bootstrap and install GCC.  See the
3378
binaries page for details.
3379
 
3380
   The Solaris 2 `/bin/sh' will often fail to configure `libstdc++-v3',
3381
`boehm-gc' or `libjava'.  We therefore recommend using the following
3382
initial sequence of commands
3383
 
3384
     % CONFIG_SHELL=/bin/ksh
3385
     % export CONFIG_SHELL
3386
 
3387
and proceed as described in the configure instructions.  In addition we
3388
strongly recommend specifying an absolute path to invoke
3389
`SRCDIR/configure'.
3390
 
3391
   Solaris 2 comes with a number of optional OS packages.  Some of these
3392
are needed to use GCC fully, namely `SUNWarc', `SUNWbtool', `SUNWesu',
3393
`SUNWhea', `SUNWlibm', `SUNWsprot', and `SUNWtoo'.  If you did not
3394
install all optional packages when installing Solaris 2, you will need
3395
to verify that the packages that GCC needs are installed.
3396
 
3397
   To check whether an optional package is installed, use the `pkginfo'
3398
command.  To add an optional package, use the `pkgadd' command.  For
3399
further details, see the Solaris 2 documentation.
3400
 
3401
   Trying to use the linker and other tools in `/usr/ucb' to install
3402
GCC has been observed to cause trouble.  For example, the linker may
3403
hang indefinitely.  The fix is to remove `/usr/ucb' from your `PATH'.
3404
 
3405
   The build process works more smoothly with the legacy Sun tools so,
3406
if you have `/usr/xpg4/bin' in your `PATH', we recommend that you place
3407
`/usr/bin' before `/usr/xpg4/bin' for the duration of the build.
3408
 
3409
   We recommend the use of the Sun assembler or the GNU assembler, in
3410
conjunction with the Sun linker.  The GNU `as' versions included in
3411
Solaris 10, from GNU binutils 2.15, and Solaris 11, from GNU binutils
3412
2.19, are known to work.  They can be found in `/usr/sfw/bin/gas'.
3413
Current versions of GNU binutils (2.22) are known to work as well.
3414
Note that your mileage may vary if you use a combination of the GNU
3415
tools and the Sun tools: while the combination GNU `as' + Sun `ld'
3416
should reasonably work, the reverse combination Sun `as' + GNU `ld' may
3417
fail to build or cause memory corruption at runtime in some cases for
3418
C++ programs.  GNU `ld' usually works as well, although the version
3419
included in Solaris 10 cannot be used due to several bugs.  Again, the
3420
current version (2.22) is known to work, but generally lacks platform
3421
specific features, so better stay with Sun `ld'.  To use the LTO linker
3422
plugin (`-fuse-linker-plugin') with GNU `ld', GNU binutils _must_ be
3423
configured with `--enable-largefile'.
3424
 
3425
   To enable symbol versioning in `libstdc++' with Sun `ld', you need
3426
to have any version of GNU `c++filt', which is part of GNU binutils.
3427
`libstdc++' symbol versioning will be disabled if no appropriate
3428
version is found.  Sun `c++filt' from the Sun Studio compilers does
3429
_not_ work.
3430
 
3431
   Sun bug 4296832 turns up when compiling X11 headers with GCC 2.95 or
3432
newer: `g++' will complain that types are missing.  These headers
3433
assume that omitting the type means `int'; this assumption worked for
3434
C90 but is wrong for C++, and is now wrong for C99 also.
3435
 
3436
   Sun bug 4927647 sometimes causes random spurious testsuite failures
3437
related to missing diagnostic output.  This bug doesn't affect GCC
3438
itself, rather it is a kernel bug triggered by the `expect' program
3439
which is used only by the GCC testsuite driver.  When the bug causes
3440
the `expect' program to miss anticipated output, extra testsuite
3441
failures appear.
3442
 
3443
   There are patches for Solaris 9 (117171-11 or newer for SPARC,
3444
117172-11 or newer for Intel) that address this problem.
3445
 
3446
   Thread-local storage (TLS) is supported in Solaris 9, but requires
3447
some patches.  The `libthread' patches provide the `__tls_get_addr'
3448
(SPARC, 64-bit x86) resp. `___tls_get_addr' (32-bit x86) functions.  On
3449
Solaris 9, the necessary support on SPARC is present since FCS, while
3450
114432-05 or newer is required on Intel.  Additionally, on
3451
Solaris 9/x86, patch 113986-02 or newer is required for the Sun `ld'
3452
and runtime linker (`ld.so.1') support, while Solaris 9/SPARC works
3453
since FCS.  The linker patches must be installed even if GNU `ld' is
3454
used. Sun `as' in Solaris 9 doesn't support the necessary relocations,
3455
so GNU `as' must be used.  The `configure' script checks for those
3456
prerequisites and automatically enables TLS support if they are met.
3457
Although those minimal patch versions should work, it is recommended to
3458
use the latest patch versions which include additional bug fixes.
3459
 
3460
sparc*-*-*
3461
==========
3462
 
3463
This section contains general configuration information for all
3464
SPARC-based platforms.  In addition to reading this section, please
3465
read all other sections that match your target.
3466
 
3467
   Newer versions of the GNU Multiple Precision Library (GMP), the MPFR
3468
library and the MPC library are known to be miscompiled by earlier
3469
versions of GCC on these platforms.  We therefore recommend the use of
3470
the exact versions of these libraries listed as minimal versions in the
3471
prerequisites.
3472
 
3473
sparc-sun-solaris2*
3474
===================
3475
 
3476
When GCC is configured to use GNU binutils 2.14 or later, the binaries
3477
produced are smaller than the ones produced using Sun's native tools;
3478
this difference is quite significant for binaries containing debugging
3479
information.
3480
 
3481
   Starting with Solaris 7, the operating system is capable of executing
3482
64-bit SPARC V9 binaries.  GCC 3.1 and later properly supports this;
3483
the `-m64' option enables 64-bit code generation.  However, if all you
3484
want is code tuned for the UltraSPARC CPU, you should try the
3485
`-mtune=ultrasparc' option instead, which produces code that, unlike
3486
full 64-bit code, can still run on non-UltraSPARC machines.
3487
 
3488
   When configuring on a Solaris 7 or later system that is running a
3489
kernel that supports only 32-bit binaries, one must configure with
3490
`--disable-multilib', since we will not be able to build the 64-bit
3491
target libraries.
3492
 
3493
   GCC 3.3 and GCC 3.4 trigger code generation bugs in earlier versions
3494
of the GNU compiler (especially GCC 3.0.x versions), which lead to the
3495
miscompilation of the stage1 compiler and the subsequent failure of the
3496
bootstrap process.  A workaround is to use GCC 3.2.3 as an intermediary
3497
stage, i.e. to bootstrap that compiler with the base compiler and then
3498
use it to bootstrap the final compiler.
3499
 
3500
   GCC 3.4 triggers a code generation bug in versions 5.4 (Sun ONE
3501
Studio 7) and 5.5 (Sun ONE Studio 8) of the Sun compiler, which causes
3502
a bootstrap failure in form of a miscompilation of the stage1 compiler
3503
by the Sun compiler.  This is Sun bug 4974440.  This is fixed with
3504
patch 112760-07.
3505
 
3506
   GCC 3.4 changed the default debugging format from Stabs to DWARF-2
3507
for 32-bit code on Solaris 7 and later.  If you use the Sun assembler,
3508
this change apparently runs afoul of Sun bug 4910101 (which is
3509
referenced as an x86-only problem by Sun, probably because they do not
3510
use DWARF-2).  A symptom of the problem is that you cannot compile C++
3511
programs like `groff' 1.19.1 without getting messages similar to the
3512
following:
3513
 
3514
     ld: warning: relocation error: R_SPARC_UA32: ...
3515
       external symbolic relocation against non-allocatable section
3516
       .debug_info cannot be processed at runtime: relocation ignored.
3517
 
3518
To work around this problem, compile with `-gstabs+' instead of plain
3519
`-g'.
3520
 
3521
   When configuring the GNU Multiple Precision Library (GMP), the MPFR
3522
library or the MPC library on a Solaris 7 or later system, the canonical
3523
target triplet must be specified as the `build' parameter on the
3524
configure line.  This target triplet can be obtained by invoking
3525
`./config.guess' in the toplevel source directory of GCC (and not that
3526
of GMP or MPFR or MPC).  For example on a Solaris 9 system:
3527
 
3528
     % ./configure --build=sparc-sun-solaris2.9 --prefix=xxx
3529
 
3530
sparc-sun-solaris2.10
3531
=====================
3532
 
3533
There is a bug in older versions of the Sun assembler which breaks
3534
thread-local storage (TLS).  A typical error message is
3535
 
3536
     ld: fatal: relocation error: R_SPARC_TLS_LE_HIX22: file /var/tmp//ccamPA1v.o:
3537
       symbol : bad symbol type SECT: symbol type must be TLS
3538
 
3539
This bug is fixed in Sun patch 118683-03 or later.
3540
 
3541
sparc-*-linux*
3542
==============
3543
 
3544
GCC versions 3.0 and higher require binutils 2.11.2 and glibc 2.2.4 or
3545
newer on this platform.  All earlier binutils and glibc releases
3546
mishandled unaligned relocations on `sparc-*-*' targets.
3547
 
3548
sparc64-*-solaris2*
3549
===================
3550
 
3551
When configuring the GNU Multiple Precision Library (GMP), the MPFR
3552
library or the MPC library, the canonical target triplet must be
3553
specified as the `build' parameter on the configure line.  For example
3554
on a Solaris 9 system:
3555
 
3556
     % ./configure --build=sparc64-sun-solaris2.9 --prefix=xxx
3557
 
3558
   The following compiler flags must be specified in the configure step
3559
in order to bootstrap this target with the Sun compiler:
3560
 
3561
     % CC="cc -xarch=v9 -xildoff" SRCDIR/configure [OPTIONS] [TARGET]
3562
 
3563
`-xarch=v9' specifies the SPARC-V9 architecture to the Sun toolchain
3564
and `-xildoff' turns off the incremental linker.
3565
 
3566
sparcv9-*-solaris2*
3567
===================
3568
 
3569
This is a synonym for `sparc64-*-solaris2*'.
3570
 
3571
c6x-*-*
3572
=======
3573
 
3574
The C6X family of processors. This port requires binutils-2.22 or newer.
3575
 
3576
tilegx-*-linux*
3577
===============
3578
 
3579
The TILE-Gx processor running GNU/Linux.  This port requires
3580
binutils-2.22 or newer.
3581
 
3582
tilepro-*-linux*
3583
================
3584
 
3585
The TILEPro processor running GNU/Linux.  This port requires
3586
binutils-2.22 or newer.
3587
 
3588
*-*-vxworks*
3589
============
3590
 
3591
Support for VxWorks is in flux.  At present GCC supports _only_ the
3592
very recent VxWorks 5.5 (aka Tornado 2.2) release, and only on PowerPC.
3593
We welcome patches for other architectures supported by VxWorks 5.5.
3594
Support for VxWorks AE would also be welcome; we believe this is merely
3595
a matter of writing an appropriate "configlette" (see below).  We are
3596
not interested in supporting older, a.out or COFF-based, versions of
3597
VxWorks in GCC 3.
3598
 
3599
   VxWorks comes with an older version of GCC installed in
3600
`$WIND_BASE/host'; we recommend you do not overwrite it.  Choose an
3601
installation PREFIX entirely outside $WIND_BASE.  Before running
3602
`configure', create the directories `PREFIX' and `PREFIX/bin'.  Link or
3603
copy the appropriate assembler, linker, etc. into `PREFIX/bin', and set
3604
your PATH to include that directory while running both `configure' and
3605
`make'.
3606
 
3607
   You must give `configure' the `--with-headers=$WIND_BASE/target/h'
3608
switch so that it can find the VxWorks system headers.  Since VxWorks
3609
is a cross compilation target only, you must also specify
3610
`--target=TARGET'.  `configure' will attempt to create the directory
3611
`PREFIX/TARGET/sys-include' and copy files into it; make sure the user
3612
running `configure' has sufficient privilege to do so.
3613
 
3614
   GCC's exception handling runtime requires a special "configlette"
3615
module, `contrib/gthr_supp_vxw_5x.c'.  Follow the instructions in that
3616
file to add the module to your kernel build.  (Future versions of
3617
VxWorks will incorporate this module.)
3618
 
3619
x86_64-*-*, amd64-*-*
3620
=====================
3621
 
3622
GCC supports the x86-64 architecture implemented by the AMD64 processor
3623
(amd64-*-* is an alias for x86_64-*-*) on GNU/Linux, FreeBSD and NetBSD.
3624
On GNU/Linux the default is a bi-arch compiler which is able to generate
3625
both 64-bit x86-64 and 32-bit x86 code (via the `-m32' switch).
3626
 
3627
x86_64-*-solaris2.1[0-9]*
3628
=========================
3629
 
3630
GCC also supports the x86-64 architecture implemented by the AMD64
3631
processor (`amd64-*-*' is an alias for `x86_64-*-*') on Solaris 10 or
3632
later.  Unlike other systems, without special options a bi-arch
3633
compiler is built which generates 32-bit code by default, but can
3634
generate 64-bit x86-64 code with the `-m64' switch.  Since GCC 4.7,
3635
there is also configuration that defaults to 64-bit code, but can
3636
generate 32-bit code with `-m32'.  To configure and build this way, you
3637
have to provide all support libraries like `libgmp' as 64-bit code,
3638
configure with `--target=x86_64-pc-solaris2.1x' and `CC=gcc -m64'.
3639
 
3640
xtensa*-*-elf
3641
=============
3642
 
3643
This target is intended for embedded Xtensa systems using the `newlib'
3644
C library.  It uses ELF but does not support shared objects.
3645
Designed-defined instructions specified via the Tensilica Instruction
3646
Extension (TIE) language are only supported through inline assembly.
3647
 
3648
   The Xtensa configuration information must be specified prior to
3649
building GCC.  The `include/xtensa-config.h' header file contains the
3650
configuration information.  If you created your own Xtensa
3651
configuration with the Xtensa Processor Generator, the downloaded files
3652
include a customized copy of this header file, which you can use to
3653
replace the default header file.
3654
 
3655
xtensa*-*-linux*
3656
================
3657
 
3658
This target is for Xtensa systems running GNU/Linux.  It supports ELF
3659
shared objects and the GNU C library (glibc).  It also generates
3660
position-independent code (PIC) regardless of whether the `-fpic' or
3661
`-fPIC' options are used.  In other respects, this target is the same
3662
as the `xtensa*-*-elf' target.
3663
 
3664
Microsoft Windows
3665
=================
3666
 
3667
Intel 16-bit versions
3668
---------------------
3669
 
3670
The 16-bit versions of Microsoft Windows, such as Windows 3.1, are not
3671
supported.
3672
 
3673
   However, the 32-bit port has limited support for Microsoft Windows
3674
3.11 in the Win32s environment, as a target only.  See below.
3675
 
3676
Intel 32-bit versions
3677
---------------------
3678
 
3679
The 32-bit versions of Windows, including Windows 95, Windows NT,
3680
Windows XP, and Windows Vista, are supported by several different target
3681
platforms.  These targets differ in which Windows subsystem they target
3682
and which C libraries are used.
3683
 
3684
   * Cygwin *-*-cygwin: Cygwin provides a user-space Linux API
3685
     emulation layer in the Win32 subsystem.
3686
 
3687
   * Interix *-*-interix: The Interix subsystem provides native support
3688
     for POSIX.
3689
 
3690
   * MinGW *-*-mingw32: MinGW is a native GCC port for the Win32
3691
     subsystem that provides a subset of POSIX.
3692
 
3693
   * MKS i386-pc-mks: NuTCracker from MKS.  See
3694
     `http://www.mkssoftware.com/' for more information.
3695
 
3696
Intel 64-bit versions
3697
---------------------
3698
 
3699
GCC contains support for x86-64 using the mingw-w64 runtime library,
3700
available from `http://mingw-w64.sourceforge.net/'.  This library
3701
should be used with the target triple x86_64-pc-mingw32.
3702
 
3703
   Presently Windows for Itanium is not supported.
3704
 
3705
Windows CE
3706
----------
3707
 
3708
Windows CE is supported as a target only on Hitachi SuperH
3709
(sh-wince-pe), and MIPS (mips-wince-pe).
3710
 
3711
Other Windows Platforms
3712
-----------------------
3713
 
3714
GCC no longer supports Windows NT on the Alpha or PowerPC.
3715
 
3716
   GCC no longer supports the Windows POSIX subsystem.  However, it does
3717
support the Interix subsystem.  See above.
3718
 
3719
   Old target names including *-*-winnt and *-*-windowsnt are no longer
3720
used.
3721
 
3722
   PW32 (i386-pc-pw32) support was never completed, and the project
3723
seems to be inactive.  See `http://pw32.sourceforge.net/' for more
3724
information.
3725
 
3726
   UWIN support has been removed due to a lack of maintenance.
3727
 
3728
*-*-cygwin
3729
==========
3730
 
3731
Ports of GCC are included with the Cygwin environment.
3732
 
3733
   GCC will build under Cygwin without modification; it does not build
3734
with Microsoft's C++ compiler and there are no plans to make it do so.
3735
 
3736
   The Cygwin native compiler can be configured to target any 32-bit x86
3737
cpu architecture desired; the default is i686-pc-cygwin.  It should be
3738
used with as up-to-date a version of binutils as possible; use either
3739
the latest official GNU binutils release in the Cygwin distribution, or
3740
version 2.20 or above if building your own.
3741
 
3742
*-*-interix
3743
===========
3744
 
3745
The Interix target is used by OpenNT, Interix, Services For UNIX (SFU),
3746
and Subsystem for UNIX-based Applications (SUA).  Applications compiled
3747
with this target run in the Interix subsystem, which is separate from
3748
the Win32 subsystem.  This target was last known to work in GCC 3.3.
3749
 
3750
*-*-mingw32
3751
===========
3752
 
3753
GCC will build with and support only MinGW runtime 3.12 and later.
3754
Earlier versions of headers are incompatible with the new default
3755
semantics of `extern inline' in `-std=c99' and `-std=gnu99' modes.
3756
 
3757
Older systems
3758
=============
3759
 
3760
GCC contains support files for many older (1980s and early 1990s) Unix
3761
variants.  For the most part, support for these systems has not been
3762
deliberately removed, but it has not been maintained for several years
3763
and may suffer from bitrot.
3764
 
3765
   Starting with GCC 3.1, each release has a list of "obsoleted"
3766
systems.  Support for these systems is still present in that release,
3767
but `configure' will fail unless the `--enable-obsolete' option is
3768
given.  Unless a maintainer steps forward, support for these systems
3769
will be removed from the next release of GCC.
3770
 
3771
   Support for old systems as hosts for GCC can cause problems if the
3772
workarounds for compiler, library and operating system bugs affect the
3773
cleanliness or maintainability of the rest of GCC.  In some cases, to
3774
bring GCC up on such a system, if still possible with current GCC, may
3775
require first installing an old version of GCC which did work on that
3776
system, and using it to compile a more recent GCC, to avoid bugs in the
3777
vendor compiler.  Old releases of GCC 1 and GCC 2 are available in the
3778
`old-releases' directory on the GCC mirror sites.  Header bugs may
3779
generally be avoided using `fixincludes', but bugs or deficiencies in
3780
libraries and the operating system may still cause problems.
3781
 
3782
   Support for older systems as targets for cross-compilation is less
3783
problematic than support for them as hosts for GCC; if an enthusiast
3784
wishes to make such a target work again (including resurrecting any of
3785
the targets that never worked with GCC 2, starting from the last
3786
version before they were removed), patches following the usual
3787
requirements would be likely to be accepted, since they should not
3788
affect the support for more modern targets.
3789
 
3790
   For some systems, old versions of GNU binutils may also be useful,
3791
and are available from `pub/binutils/old-releases' on sourceware.org
3792
mirror sites.
3793
 
3794
   Some of the information on specific systems above relates to such
3795
older systems, but much of the information about GCC on such systems
3796
(which may no longer be applicable to current GCC) is to be found in
3797
the GCC texinfo manual.
3798
 
3799
all ELF targets (SVR4, Solaris 2, etc.)
3800
=======================================
3801
 
3802
C++ support is significantly better on ELF targets if you use the GNU
3803
linker; duplicate copies of inlines, vtables and template
3804
instantiations will be discarded automatically.
3805
 
3806

3807
File: gccinstall.info,  Node: Old,  Next: GNU Free Documentation License,  Prev: Specific,  Up: Top
3808
 
3809
10 Old installation documentation
3810
*********************************
3811
 
3812
   Note most of this information is out of date and superseded by the
3813
previous chapters of this manual.  It is provided for historical
3814
reference only, because of a lack of volunteers to merge it into the
3815
main manual.
3816
 
3817
* Menu:
3818
 
3819
* Configurations::    Configurations Supported by GCC.
3820
 
3821
   Here is the procedure for installing GCC on a GNU or Unix system.
3822
 
3823
  1. If you have chosen a configuration for GCC which requires other GNU
3824
     tools (such as GAS or the GNU linker) instead of the standard
3825
     system tools, install the required tools in the build directory
3826
     under the names `as', `ld' or whatever is appropriate.
3827
 
3828
     Alternatively, you can do subsequent compilation using a value of
3829
     the `PATH' environment variable such that the necessary GNU tools
3830
     come before the standard system tools.
3831
 
3832
  2. Specify the host, build and target machine configurations.  You do
3833
     this when you run the `configure' script.
3834
 
3835
     The "build" machine is the system which you are using, the "host"
3836
     machine is the system where you want to run the resulting compiler
3837
     (normally the build machine), and the "target" machine is the
3838
     system for which you want the compiler to generate code.
3839
 
3840
     If you are building a compiler to produce code for the machine it
3841
     runs on (a native compiler), you normally do not need to specify
3842
     any operands to `configure'; it will try to guess the type of
3843
     machine you are on and use that as the build, host and target
3844
     machines.  So you don't need to specify a configuration when
3845
     building a native compiler unless `configure' cannot figure out
3846
     what your configuration is or guesses wrong.
3847
 
3848
     In those cases, specify the build machine's "configuration name"
3849
     with the `--host' option; the host and target will default to be
3850
     the same as the host machine.
3851
 
3852
     Here is an example:
3853
 
3854
          ./configure --host=sparc-sun-sunos4.1
3855
 
3856
     A configuration name may be canonical or it may be more or less
3857
     abbreviated.
3858
 
3859
     A canonical configuration name has three parts, separated by
3860
     dashes.  It looks like this: `CPU-COMPANY-SYSTEM'.  (The three
3861
     parts may themselves contain dashes; `configure' can figure out
3862
     which dashes serve which purpose.)  For example,
3863
     `m68k-sun-sunos4.1' specifies a Sun 3.
3864
 
3865
     You can also replace parts of the configuration by nicknames or
3866
     aliases.  For example, `sun3' stands for `m68k-sun', so
3867
     `sun3-sunos4.1' is another way to specify a Sun 3.
3868
 
3869
     You can specify a version number after any of the system types,
3870
     and some of the CPU types.  In most cases, the version is
3871
     irrelevant, and will be ignored.  So you might as well specify the
3872
     version if you know it.
3873
 
3874
     See *note Configurations::, for a list of supported configuration
3875
     names and notes on many of the configurations.  You should check
3876
     the notes in that section before proceeding any further with the
3877
     installation of GCC.
3878
 
3879
 
3880

3881
File: gccinstall.info,  Node: Configurations,  Up: Old
3882
 
3883
10.1 Configurations Supported by GCC
3884
====================================
3885
 
3886
   Here are the possible CPU types:
3887
 
3888
     1750a, a29k, alpha, arm, avr, cN, clipper, dsp16xx, elxsi, fr30,
3889
     h8300, hppa1.0, hppa1.1, i370, i386, i486, i586, i686, i786, i860,
3890
     i960, ip2k, m32r, m68000, m68k, m88k, mcore, mips, mipsel, mips64,
3891
     mips64el, mn10200, mn10300, ns32k, pdp11, powerpc, powerpcle,
3892
     romp, rs6000, sh, sparc, sparclite, sparc64, v850, vax, we32k.
3893
 
3894
   Here are the recognized company names.  As you can see, customary
3895
abbreviations are used rather than the longer official names.
3896
 
3897
     acorn, alliant, altos, apollo, apple, att, bull, cbm, convergent,
3898
     convex, crds, dec, dg, dolphin, elxsi, encore, harris, hitachi,
3899
     hp, ibm, intergraph, isi, mips, motorola, ncr, next, ns, omron,
3900
     plexus, sequent, sgi, sony, sun, tti, unicom, wrs.
3901
 
3902
   The company name is meaningful only to disambiguate when the rest of
3903
the information supplied is insufficient.  You can omit it, writing
3904
just `CPU-SYSTEM', if it is not needed.  For example, `vax-ultrix4.2'
3905
is equivalent to `vax-dec-ultrix4.2'.
3906
 
3907
   Here is a list of system types:
3908
 
3909
     386bsd, aix, acis, amigaos, aos, aout, aux, bosx, bsd, clix, coff,
3910
     ctix, cxux, dgux, dynix, ebmon, ecoff, elf, esix, freebsd, hms,
3911
     genix, gnu, linux, linux-gnu, hiux, hpux, iris, irix, isc, luna,
3912
     lynxos, mach, minix, msdos, mvs, netbsd, newsos, nindy, ns, osf,
3913
     osfrose, ptx, riscix, riscos, rtu, sco, sim, solaris, sunos, sym,
3914
     sysv, udi, ultrix, unicos, uniplus, unos, vms, vsta, vxworks,
3915
     winnt, xenix.
3916
 
3917
You can omit the system type; then `configure' guesses the operating
3918
system from the CPU and company.
3919
 
3920
   You can add a version number to the system type; this may or may not
3921
make a difference.  For example, you can write `bsd4.3' or `bsd4.4' to
3922
distinguish versions of BSD.  In practice, the version number is most
3923
needed for `sysv3' and `sysv4', which are often treated differently.
3924
 
3925
   `linux-gnu' is the canonical name for the GNU/Linux target; however
3926
GCC will also accept `linux'.  The version of the kernel in use is not
3927
relevant on these systems.  A suffix such as `libc1' or `aout'
3928
distinguishes major versions of the C library; all of the suffixed
3929
versions are obsolete.
3930
 
3931
   If you specify an impossible combination such as `i860-dg-vms', then
3932
you may get an error message from `configure', or it may ignore part of
3933
the information and do the best it can with the rest.  `configure'
3934
always prints the canonical name for the alternative that it used.  GCC
3935
does not support all possible alternatives.
3936
 
3937
   Often a particular model of machine has a name.  Many machine names
3938
are recognized as aliases for CPU/company combinations.  Thus, the
3939
machine name `sun3', mentioned above, is an alias for `m68k-sun'.
3940
Sometimes we accept a company name as a machine name, when the name is
3941
popularly used for a particular machine.  Here is a table of the known
3942
machine names:
3943
 
3944
     3300, 3b1, 3bN, 7300, altos3068, altos, apollo68, att-7300,
3945
     balance, convex-cN, crds, decstation-3100, decstation, delta,
3946
     encore, fx2800, gmicro, hp7NN, hp8NN, hp9k2NN, hp9k3NN, hp9k7NN,
3947
     hp9k8NN, iris4d, iris, isi68, m3230, magnum, merlin, miniframe,
3948
     mmax, news-3600, news800, news, next, pbd, pc532, pmax, powerpc,
3949
     powerpcle, ps2, risc-news, rtpc, sun2, sun386i, sun386, sun3,
3950
     sun4, symmetry, tower-32, tower.
3951
 
3952
Remember that a machine name specifies both the cpu type and the company
3953
name.
3954
 
3955

3956
File: gccinstall.info,  Node: GNU Free Documentation License,  Next: Concept Index,  Prev: Old,  Up: Top
3957
 
3958
GNU Free Documentation License
3959
******************************
3960
 
3961
                     Version 1.3, 3 November 2008
3962
 
3963
     Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
3964
     `http://fsf.org/'
3965
 
3966
     Everyone is permitted to copy and distribute verbatim copies
3967
     of this license document, but changing it is not allowed.
3968
 
3969
  0. PREAMBLE
3970
 
3971
     The purpose of this License is to make a manual, textbook, or other
3972
     functional and useful document "free" in the sense of freedom: to
3973
     assure everyone the effective freedom to copy and redistribute it,
3974
     with or without modifying it, either commercially or
3975
     noncommercially.  Secondarily, this License preserves for the
3976
     author and publisher a way to get credit for their work, while not
3977
     being considered responsible for modifications made by others.
3978
 
3979
     This License is a kind of "copyleft", which means that derivative
3980
     works of the document must themselves be free in the same sense.
3981
     It complements the GNU General Public License, which is a copyleft
3982
     license designed for free software.
3983
 
3984
     We have designed this License in order to use it for manuals for
3985
     free software, because free software needs free documentation: a
3986
     free program should come with manuals providing the same freedoms
3987
     that the software does.  But this License is not limited to
3988
     software manuals; it can be used for any textual work, regardless
3989
     of subject matter or whether it is published as a printed book.
3990
     We recommend this License principally for works whose purpose is
3991
     instruction or reference.
3992
 
3993
  1. APPLICABILITY AND DEFINITIONS
3994
 
3995
     This License applies to any manual or other work, in any medium,
3996
     that contains a notice placed by the copyright holder saying it
3997
     can be distributed under the terms of this License.  Such a notice
3998
     grants a world-wide, royalty-free license, unlimited in duration,
3999
     to use that work under the conditions stated herein.  The
4000
     "Document", below, refers to any such manual or work.  Any member
4001
     of the public is a licensee, and is addressed as "you".  You
4002
     accept the license if you copy, modify or distribute the work in a
4003
     way requiring permission under copyright law.
4004
 
4005
     A "Modified Version" of the Document means any work containing the
4006
     Document or a portion of it, either copied verbatim, or with
4007
     modifications and/or translated into another language.
4008
 
4009
     A "Secondary Section" is a named appendix or a front-matter section
4010
     of the Document that deals exclusively with the relationship of the
4011
     publishers or authors of the Document to the Document's overall
4012
     subject (or to related matters) and contains nothing that could
4013
     fall directly within that overall subject.  (Thus, if the Document
4014
     is in part a textbook of mathematics, a Secondary Section may not
4015
     explain any mathematics.)  The relationship could be a matter of
4016
     historical connection with the subject or with related matters, or
4017
     of legal, commercial, philosophical, ethical or political position
4018
     regarding them.
4019
 
4020
     The "Invariant Sections" are certain Secondary Sections whose
4021
     titles are designated, as being those of Invariant Sections, in
4022
     the notice that says that the Document is released under this
4023
     License.  If a section does not fit the above definition of
4024
     Secondary then it is not allowed to be designated as Invariant.
4025
     The Document may contain zero Invariant Sections.  If the Document
4026
     does not identify any Invariant Sections then there are none.
4027
 
4028
     The "Cover Texts" are certain short passages of text that are
4029
     listed, as Front-Cover Texts or Back-Cover Texts, in the notice
4030
     that says that the Document is released under this License.  A
4031
     Front-Cover Text may be at most 5 words, and a Back-Cover Text may
4032
     be at most 25 words.
4033
 
4034
     A "Transparent" copy of the Document means a machine-readable copy,
4035
     represented in a format whose specification is available to the
4036
     general public, that is suitable for revising the document
4037
     straightforwardly with generic text editors or (for images
4038
     composed of pixels) generic paint programs or (for drawings) some
4039
     widely available drawing editor, and that is suitable for input to
4040
     text formatters or for automatic translation to a variety of
4041
     formats suitable for input to text formatters.  A copy made in an
4042
     otherwise Transparent file format whose markup, or absence of
4043
     markup, has been arranged to thwart or discourage subsequent
4044
     modification by readers is not Transparent.  An image format is
4045
     not Transparent if used for any substantial amount of text.  A
4046
     copy that is not "Transparent" is called "Opaque".
4047
 
4048
     Examples of suitable formats for Transparent copies include plain
4049
     ASCII without markup, Texinfo input format, LaTeX input format,
4050
     SGML or XML using a publicly available DTD, and
4051
     standard-conforming simple HTML, PostScript or PDF designed for
4052
     human modification.  Examples of transparent image formats include
4053
     PNG, XCF and JPG.  Opaque formats include proprietary formats that
4054
     can be read and edited only by proprietary word processors, SGML or
4055
     XML for which the DTD and/or processing tools are not generally
4056
     available, and the machine-generated HTML, PostScript or PDF
4057
     produced by some word processors for output purposes only.
4058
 
4059
     The "Title Page" means, for a printed book, the title page itself,
4060
     plus such following pages as are needed to hold, legibly, the
4061
     material this License requires to appear in the title page.  For
4062
     works in formats which do not have any title page as such, "Title
4063
     Page" means the text near the most prominent appearance of the
4064
     work's title, preceding the beginning of the body of the text.
4065
 
4066
     The "publisher" means any person or entity that distributes copies
4067
     of the Document to the public.
4068
 
4069
     A section "Entitled XYZ" means a named subunit of the Document
4070
     whose title either is precisely XYZ or contains XYZ in parentheses
4071
     following text that translates XYZ in another language.  (Here XYZ
4072
     stands for a specific section name mentioned below, such as
4073
     "Acknowledgements", "Dedications", "Endorsements", or "History".)
4074
     To "Preserve the Title" of such a section when you modify the
4075
     Document means that it remains a section "Entitled XYZ" according
4076
     to this definition.
4077
 
4078
     The Document may include Warranty Disclaimers next to the notice
4079
     which states that this License applies to the Document.  These
4080
     Warranty Disclaimers are considered to be included by reference in
4081
     this License, but only as regards disclaiming warranties: any other
4082
     implication that these Warranty Disclaimers may have is void and
4083
     has no effect on the meaning of this License.
4084
 
4085
  2. VERBATIM COPYING
4086
 
4087
     You may copy and distribute the Document in any medium, either
4088
     commercially or noncommercially, provided that this License, the
4089
     copyright notices, and the license notice saying this License
4090
     applies to the Document are reproduced in all copies, and that you
4091
     add no other conditions whatsoever to those of this License.  You
4092
     may not use technical measures to obstruct or control the reading
4093
     or further copying of the copies you make or distribute.  However,
4094
     you may accept compensation in exchange for copies.  If you
4095
     distribute a large enough number of copies you must also follow
4096
     the conditions in section 3.
4097
 
4098
     You may also lend copies, under the same conditions stated above,
4099
     and you may publicly display copies.
4100
 
4101
  3. COPYING IN QUANTITY
4102
 
4103
     If you publish printed copies (or copies in media that commonly
4104
     have printed covers) of the Document, numbering more than 100, and
4105
     the Document's license notice requires Cover Texts, you must
4106
     enclose the copies in covers that carry, clearly and legibly, all
4107
     these Cover Texts: Front-Cover Texts on the front cover, and
4108
     Back-Cover Texts on the back cover.  Both covers must also clearly
4109
     and legibly identify you as the publisher of these copies.  The
4110
     front cover must present the full title with all words of the
4111
     title equally prominent and visible.  You may add other material
4112
     on the covers in addition.  Copying with changes limited to the
4113
     covers, as long as they preserve the title of the Document and
4114
     satisfy these conditions, can be treated as verbatim copying in
4115
     other respects.
4116
 
4117
     If the required texts for either cover are too voluminous to fit
4118
     legibly, you should put the first ones listed (as many as fit
4119
     reasonably) on the actual cover, and continue the rest onto
4120
     adjacent pages.
4121
 
4122
     If you publish or distribute Opaque copies of the Document
4123
     numbering more than 100, you must either include a
4124
     machine-readable Transparent copy along with each Opaque copy, or
4125
     state in or with each Opaque copy a computer-network location from
4126
     which the general network-using public has access to download
4127
     using public-standard network protocols a complete Transparent
4128
     copy of the Document, free of added material.  If you use the
4129
     latter option, you must take reasonably prudent steps, when you
4130
     begin distribution of Opaque copies in quantity, to ensure that
4131
     this Transparent copy will remain thus accessible at the stated
4132
     location until at least one year after the last time you
4133
     distribute an Opaque copy (directly or through your agents or
4134
     retailers) of that edition to the public.
4135
 
4136
     It is requested, but not required, that you contact the authors of
4137
     the Document well before redistributing any large number of
4138
     copies, to give them a chance to provide you with an updated
4139
     version of the Document.
4140
 
4141
  4. MODIFICATIONS
4142
 
4143
     You may copy and distribute a Modified Version of the Document
4144
     under the conditions of sections 2 and 3 above, provided that you
4145
     release the Modified Version under precisely this License, with
4146
     the Modified Version filling the role of the Document, thus
4147
     licensing distribution and modification of the Modified Version to
4148
     whoever possesses a copy of it.  In addition, you must do these
4149
     things in the Modified Version:
4150
 
4151
       A. Use in the Title Page (and on the covers, if any) a title
4152
          distinct from that of the Document, and from those of
4153
          previous versions (which should, if there were any, be listed
4154
          in the History section of the Document).  You may use the
4155
          same title as a previous version if the original publisher of
4156
          that version gives permission.
4157
 
4158
       B. List on the Title Page, as authors, one or more persons or
4159
          entities responsible for authorship of the modifications in
4160
          the Modified Version, together with at least five of the
4161
          principal authors of the Document (all of its principal
4162
          authors, if it has fewer than five), unless they release you
4163
          from this requirement.
4164
 
4165
       C. State on the Title page the name of the publisher of the
4166
          Modified Version, as the publisher.
4167
 
4168
       D. Preserve all the copyright notices of the Document.
4169
 
4170
       E. Add an appropriate copyright notice for your modifications
4171
          adjacent to the other copyright notices.
4172
 
4173
       F. Include, immediately after the copyright notices, a license
4174
          notice giving the public permission to use the Modified
4175
          Version under the terms of this License, in the form shown in
4176
          the Addendum below.
4177
 
4178
       G. Preserve in that license notice the full lists of Invariant
4179
          Sections and required Cover Texts given in the Document's
4180
          license notice.
4181
 
4182
       H. Include an unaltered copy of this License.
4183
 
4184
       I. Preserve the section Entitled "History", Preserve its Title,
4185
          and add to it an item stating at least the title, year, new
4186
          authors, and publisher of the Modified Version as given on
4187
          the Title Page.  If there is no section Entitled "History" in
4188
          the Document, create one stating the title, year, authors,
4189
          and publisher of the Document as given on its Title Page,
4190
          then add an item describing the Modified Version as stated in
4191
          the previous sentence.
4192
 
4193
       J. Preserve the network location, if any, given in the Document
4194
          for public access to a Transparent copy of the Document, and
4195
          likewise the network locations given in the Document for
4196
          previous versions it was based on.  These may be placed in
4197
          the "History" section.  You may omit a network location for a
4198
          work that was published at least four years before the
4199
          Document itself, or if the original publisher of the version
4200
          it refers to gives permission.
4201
 
4202
       K. For any section Entitled "Acknowledgements" or "Dedications",
4203
          Preserve the Title of the section, and preserve in the
4204
          section all the substance and tone of each of the contributor
4205
          acknowledgements and/or dedications given therein.
4206
 
4207
       L. Preserve all the Invariant Sections of the Document,
4208
          unaltered in their text and in their titles.  Section numbers
4209
          or the equivalent are not considered part of the section
4210
          titles.
4211
 
4212
       M. Delete any section Entitled "Endorsements".  Such a section
4213
          may not be included in the Modified Version.
4214
 
4215
       N. Do not retitle any existing section to be Entitled
4216
          "Endorsements" or to conflict in title with any Invariant
4217
          Section.
4218
 
4219
       O. Preserve any Warranty Disclaimers.
4220
 
4221
     If the Modified Version includes new front-matter sections or
4222
     appendices that qualify as Secondary Sections and contain no
4223
     material copied from the Document, you may at your option
4224
     designate some or all of these sections as invariant.  To do this,
4225
     add their titles to the list of Invariant Sections in the Modified
4226
     Version's license notice.  These titles must be distinct from any
4227
     other section titles.
4228
 
4229
     You may add a section Entitled "Endorsements", provided it contains
4230
     nothing but endorsements of your Modified Version by various
4231
     parties--for example, statements of peer review or that the text
4232
     has been approved by an organization as the authoritative
4233
     definition of a standard.
4234
 
4235
     You may add a passage of up to five words as a Front-Cover Text,
4236
     and a passage of up to 25 words as a Back-Cover Text, to the end
4237
     of the list of Cover Texts in the Modified Version.  Only one
4238
     passage of Front-Cover Text and one of Back-Cover Text may be
4239
     added by (or through arrangements made by) any one entity.  If the
4240
     Document already includes a cover text for the same cover,
4241
     previously added by you or by arrangement made by the same entity
4242
     you are acting on behalf of, you may not add another; but you may
4243
     replace the old one, on explicit permission from the previous
4244
     publisher that added the old one.
4245
 
4246
     The author(s) and publisher(s) of the Document do not by this
4247
     License give permission to use their names for publicity for or to
4248
     assert or imply endorsement of any Modified Version.
4249
 
4250
  5. COMBINING DOCUMENTS
4251
 
4252
     You may combine the Document with other documents released under
4253
     this License, under the terms defined in section 4 above for
4254
     modified versions, provided that you include in the combination
4255
     all of the Invariant Sections of all of the original documents,
4256
     unmodified, and list them all as Invariant Sections of your
4257
     combined work in its license notice, and that you preserve all
4258
     their Warranty Disclaimers.
4259
 
4260
     The combined work need only contain one copy of this License, and
4261
     multiple identical Invariant Sections may be replaced with a single
4262
     copy.  If there are multiple Invariant Sections with the same name
4263
     but different contents, make the title of each such section unique
4264
     by adding at the end of it, in parentheses, the name of the
4265
     original author or publisher of that section if known, or else a
4266
     unique number.  Make the same adjustment to the section titles in
4267
     the list of Invariant Sections in the license notice of the
4268
     combined work.
4269
 
4270
     In the combination, you must combine any sections Entitled
4271
     "History" in the various original documents, forming one section
4272
     Entitled "History"; likewise combine any sections Entitled
4273
     "Acknowledgements", and any sections Entitled "Dedications".  You
4274
     must delete all sections Entitled "Endorsements."
4275
 
4276
  6. COLLECTIONS OF DOCUMENTS
4277
 
4278
     You may make a collection consisting of the Document and other
4279
     documents released under this License, and replace the individual
4280
     copies of this License in the various documents with a single copy
4281
     that is included in the collection, provided that you follow the
4282
     rules of this License for verbatim copying of each of the
4283
     documents in all other respects.
4284
 
4285
     You may extract a single document from such a collection, and
4286
     distribute it individually under this License, provided you insert
4287
     a copy of this License into the extracted document, and follow
4288
     this License in all other respects regarding verbatim copying of
4289
     that document.
4290
 
4291
  7. AGGREGATION WITH INDEPENDENT WORKS
4292
 
4293
     A compilation of the Document or its derivatives with other
4294
     separate and independent documents or works, in or on a volume of
4295
     a storage or distribution medium, is called an "aggregate" if the
4296
     copyright resulting from the compilation is not used to limit the
4297
     legal rights of the compilation's users beyond what the individual
4298
     works permit.  When the Document is included in an aggregate, this
4299
     License does not apply to the other works in the aggregate which
4300
     are not themselves derivative works of the Document.
4301
 
4302
     If the Cover Text requirement of section 3 is applicable to these
4303
     copies of the Document, then if the Document is less than one half
4304
     of the entire aggregate, the Document's Cover Texts may be placed
4305
     on covers that bracket the Document within the aggregate, or the
4306
     electronic equivalent of covers if the Document is in electronic
4307
     form.  Otherwise they must appear on printed covers that bracket
4308
     the whole aggregate.
4309
 
4310
  8. TRANSLATION
4311
 
4312
     Translation is considered a kind of modification, so you may
4313
     distribute translations of the Document under the terms of section
4314
     4.  Replacing Invariant Sections with translations requires special
4315
     permission from their copyright holders, but you may include
4316
     translations of some or all Invariant Sections in addition to the
4317
     original versions of these Invariant Sections.  You may include a
4318
     translation of this License, and all the license notices in the
4319
     Document, and any Warranty Disclaimers, provided that you also
4320
     include the original English version of this License and the
4321
     original versions of those notices and disclaimers.  In case of a
4322
     disagreement between the translation and the original version of
4323
     this License or a notice or disclaimer, the original version will
4324
     prevail.
4325
 
4326
     If a section in the Document is Entitled "Acknowledgements",
4327
     "Dedications", or "History", the requirement (section 4) to
4328
     Preserve its Title (section 1) will typically require changing the
4329
     actual title.
4330
 
4331
  9. TERMINATION
4332
 
4333
     You may not copy, modify, sublicense, or distribute the Document
4334
     except as expressly provided under this License.  Any attempt
4335
     otherwise to copy, modify, sublicense, or distribute it is void,
4336
     and will automatically terminate your rights under this License.
4337
 
4338
     However, if you cease all violation of this License, then your
4339
     license from a particular copyright holder is reinstated (a)
4340
     provisionally, unless and until the copyright holder explicitly
4341
     and finally terminates your license, and (b) permanently, if the
4342
     copyright holder fails to notify you of the violation by some
4343
     reasonable means prior to 60 days after the cessation.
4344
 
4345
     Moreover, your license from a particular copyright holder is
4346
     reinstated permanently if the copyright holder notifies you of the
4347
     violation by some reasonable means, this is the first time you have
4348
     received notice of violation of this License (for any work) from
4349
     that copyright holder, and you cure the violation prior to 30 days
4350
     after your receipt of the notice.
4351
 
4352
     Termination of your rights under this section does not terminate
4353
     the licenses of parties who have received copies or rights from
4354
     you under this License.  If your rights have been terminated and
4355
     not permanently reinstated, receipt of a copy of some or all of
4356
     the same material does not give you any rights to use it.
4357
 
4358
 10. FUTURE REVISIONS OF THIS LICENSE
4359
 
4360
     The Free Software Foundation may publish new, revised versions of
4361
     the GNU Free Documentation License from time to time.  Such new
4362
     versions will be similar in spirit to the present version, but may
4363
     differ in detail to address new problems or concerns.  See
4364
     `http://www.gnu.org/copyleft/'.
4365
 
4366
     Each version of the License is given a distinguishing version
4367
     number.  If the Document specifies that a particular numbered
4368
     version of this License "or any later version" applies to it, you
4369
     have the option of following the terms and conditions either of
4370
     that specified version or of any later version that has been
4371
     published (not as a draft) by the Free Software Foundation.  If
4372
     the Document does not specify a version number of this License,
4373
     you may choose any version ever published (not as a draft) by the
4374
     Free Software Foundation.  If the Document specifies that a proxy
4375
     can decide which future versions of this License can be used, that
4376
     proxy's public statement of acceptance of a version permanently
4377
     authorizes you to choose that version for the Document.
4378
 
4379
 11. RELICENSING
4380
 
4381
     "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
4382
     World Wide Web server that publishes copyrightable works and also
4383
     provides prominent facilities for anybody to edit those works.  A
4384
     public wiki that anybody can edit is an example of such a server.
4385
     A "Massive Multiauthor Collaboration" (or "MMC") contained in the
4386
     site means any set of copyrightable works thus published on the MMC
4387
     site.
4388
 
4389
     "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
4390
     license published by Creative Commons Corporation, a not-for-profit
4391
     corporation with a principal place of business in San Francisco,
4392
     California, as well as future copyleft versions of that license
4393
     published by that same organization.
4394
 
4395
     "Incorporate" means to publish or republish a Document, in whole or
4396
     in part, as part of another Document.
4397
 
4398
     An MMC is "eligible for relicensing" if it is licensed under this
4399
     License, and if all works that were first published under this
4400
     License somewhere other than this MMC, and subsequently
4401
     incorporated in whole or in part into the MMC, (1) had no cover
4402
     texts or invariant sections, and (2) were thus incorporated prior
4403
     to November 1, 2008.
4404
 
4405
     The operator of an MMC Site may republish an MMC contained in the
4406
     site under CC-BY-SA on the same site at any time before August 1,
4407
     2009, provided the MMC is eligible for relicensing.
4408
 
4409
 
4410
ADDENDUM: How to use this License for your documents
4411
====================================================
4412
 
4413
To use this License in a document you have written, include a copy of
4414
the License in the document and put the following copyright and license
4415
notices just after the title page:
4416
 
4417
       Copyright (C)  YEAR  YOUR NAME.
4418
       Permission is granted to copy, distribute and/or modify this document
4419
       under the terms of the GNU Free Documentation License, Version 1.3
4420
       or any later version published by the Free Software Foundation;
4421
       with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
4422
       Texts.  A copy of the license is included in the section entitled ``GNU
4423
       Free Documentation License''.
4424
 
4425
   If you have Invariant Sections, Front-Cover Texts and Back-Cover
4426
Texts, replace the "with...Texts." line with this:
4427
 
4428
         with the Invariant Sections being LIST THEIR TITLES, with
4429
         the Front-Cover Texts being LIST, and with the Back-Cover Texts
4430
         being LIST.
4431
 
4432
   If you have Invariant Sections without Cover Texts, or some other
4433
combination of the three, merge those two alternatives to suit the
4434
situation.
4435
 
4436
   If your document contains nontrivial examples of program code, we
4437
recommend releasing these examples in parallel under your choice of
4438
free software license, such as the GNU General Public License, to
4439
permit their use in free software.
4440
 
4441

4442
File: gccinstall.info,  Node: Concept Index,  Prev: GNU Free Documentation License,  Up: Top
4443
 
4444
Concept Index
4445
*************
4446
 
4447
 
4448
* Menu:
4449
4450
* Binaries:                              Binaries.           (line    6)
4451
* build_configargs:                      Configuration.      (line 1445)
4452
* Configuration:                         Configuration.      (line    6)
4453
* configurations supported by GCC:       Configurations.     (line    6)
4454
* Downloading GCC:                       Downloading the source.
4455
                                                             (line    6)
4456
* Downloading the Source:                Downloading the source.
4457
                                                             (line    6)
4458
* FDL, GNU Free Documentation License:   GNU Free Documentation License.
4459
                                                             (line    6)
4460
* Host specific installation:            Specific.           (line    6)
4461
* host_configargs:                       Configuration.      (line 1449)
4462
* Installing GCC: Binaries:              Binaries.           (line    6)
4463
* Installing GCC: Building:              Building.           (line    6)
4464
* Installing GCC: Configuration:         Configuration.      (line    6)
4465
* Installing GCC: Testing:               Testing.            (line    6)
4466
* Prerequisites:                         Prerequisites.      (line    6)
4467
* Specific:                              Specific.           (line    6)
4468
* Specific installation notes:           Specific.           (line    6)
4469
* Target specific installation:          Specific.           (line    6)
4470
* Target specific installation notes:    Specific.           (line    6)
4471
 
4472
 
4473
* Testsuite:                             Testing.            (line    6)
4474
4475
4476

4477
Tag Table:
4478
Node: Top1955
4479
Node: Installing GCC2513
4480
Node: Prerequisites4150
4481
Node: Downloading the source14119
4482
Node: Configuration16056
4483
Ref: with-gnu-as31062
4484
Ref: with-as31960
4485
Ref: with-gnu-ld33373
4486
Node: Building80002
4487
Node: Testing95487
4488
Node: Final install103359
4489
Node: Binaries108673
4490
Node: Specific110185
4491
Ref: alpha-x-x110695
4492
Ref: alpha-dec-osf51111184
4493
Ref: amd64-x-solaris210111709
4494
Ref: arm-x-eabi111812
4495
Ref: avr112023
4496
Ref: bfin112663
4497
Ref: cr16112905
4498
Ref: cris113320
4499
Ref: dos114136
4500
Ref: epiphany-x-elf114459
4501
Ref: x-x-freebsd114564
4502
Ref: h8300-hms116401
4503
Ref: hppa-hp-hpux116753
4504
Ref: hppa-hp-hpux10119124
4505
Ref: hppa-hp-hpux11119537
4506
Ref: x-x-linux-gnu125196
4507
Ref: ix86-x-linux125389
4508
Ref: ix86-x-solaris29125702
4509
Ref: ix86-x-solaris210126481
4510
Ref: ia64-x-linux127672
4511
Ref: ia64-x-hpux128442
4512
Ref: x-ibm-aix128997
4513
Ref: iq2000-x-elf135860
4514
Ref: lm32-x-elf136000
4515
Ref: lm32-x-uclinux136104
4516
Ref: m32c-x-elf136232
4517
Ref: m32r-x-elf136334
4518
Ref: m68k-x-x136436
4519
Ref: m68k-x-uclinux137474
4520
Ref: mep-x-elf137720
4521
Ref: microblaze-x-elf137830
4522
Ref: mips-x-x137949
4523
Ref: mips-sgi-irix5140345
4524
Ref: mips-sgi-irix6140425
4525
Ref: moxie-x-elf140612
4526
Ref: powerpc-x-x140659
4527
Ref: powerpc-x-darwin140864
4528
Ref: powerpc-x-elf141358
4529
Ref: powerpc-x-linux-gnu141443
4530
Ref: powerpc-x-netbsd141538
4531
Ref: powerpc-x-eabisim141626
4532
Ref: powerpc-x-eabi141752
4533
Ref: powerpcle-x-elf141828
4534
Ref: powerpcle-x-eabisim141920
4535
Ref: powerpcle-x-eabi142053
4536
Ref: rl78-x-elf142136
4537
Ref: rx-x-elf142242
4538
Ref: s390-x-linux142441
4539
Ref: s390x-x-linux142513
4540
Ref: s390x-ibm-tpf142600
4541
Ref: x-x-solaris2142731
4542
Ref: sparc-x-x147494
4543
Ref: sparc-sun-solaris2147996
4544
Ref: sparc-sun-solaris210150750
4545
Ref: sparc-x-linux151126
4546
Ref: sparc64-x-solaris2151351
4547
Ref: sparcv9-x-solaris2152004
4548
Ref: c6x-x-x152091
4549
Ref: tilegx-*-linux152182
4550
Ref: tilepro-*-linux152301
4551
Ref: x-x-vxworks152422
4552
Ref: x86-64-x-x153944
4553
Ref: x86-64-x-solaris210154272
4554
Ref: xtensa-x-elf154934
4555
Ref: xtensa-x-linux155605
4556
Ref: windows155946
4557
Ref: x-x-cygwin157883
4558
Ref: x-x-interix158436
4559
Ref: x-x-mingw32158745
4560
Ref: older158971
4561
Ref: elf161088
4562
Node: Old161346
4563
Node: Configurations164483
4564
Node: GNU Free Documentation License168024

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.