1 This is doc/gccinstall.info, produced by makeinfo version 4.8 from
2 ../../gcc-4.4.0/gcc/doc/install.texi.
4 Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
5 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free
6 Software Foundation, Inc.
8 Permission is granted to copy, distribute and/or modify this document
9 under the terms of the GNU Free Documentation License, Version 1.2 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".
15 (a) The FSF's Front-Cover Text is:
19 (b) The FSF's Back-Cover Text is:
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.
25 Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
26 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free
27 Software Foundation, Inc.
29 Permission is granted to copy, distribute and/or modify this document
30 under the terms of the GNU Free Documentation License, Version 1.2 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".
36 (a) The FSF's Front-Cover Text is:
40 (b) The FSF's Back-Cover Text is:
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.
46 INFO-DIR-SECTION Software development
48 * gccinstall: (gccinstall). Installing the GNU Compiler Collection.
52 File: gccinstall.info, Node: Top, Up: (dir)
56 * Installing GCC:: This document describes the generic installation
57 procedure for GCC as well as detailing some target
58 specific installation instructions.
60 * Specific:: Host/target specific installation notes for GCC.
61 * Binaries:: Where to get pre-compiled binaries.
63 * Old:: Old installation documentation.
65 * GNU Free Documentation License:: How you can copy and share this manual.
66 * Concept Index:: This index has two entries.
69 File: gccinstall.info, Node: Installing GCC, Next: Binaries, Up: Top
74 The latest version of this document is always available at
75 http://gcc.gnu.org/install/.
77 This document describes the generic installation procedure for GCC
78 as well as detailing some target specific installation instructions.
80 GCC includes several components that previously were separate
81 distributions with their own installation instructions. This document
82 supersedes all package specific installation instructions.
84 _Before_ starting the build/install procedure please check the *Note
85 host/target specific installation notes: Specific. We recommend you
86 browse the entire generic installation instructions before you proceed.
88 Lists of successful builds for released versions of GCC are
89 available at `http://gcc.gnu.org/buildstat.html'. These lists are
90 updated as new information becomes available.
92 The installation procedure itself is broken into five steps.
97 * Downloading the source::
100 * Testing:: (optional)
103 Please note that GCC does not support `make uninstall' and probably
104 won't do so in the near future as this would open a can of worms.
105 Instead, we suggest that you install GCC into a directory of its own
106 and simply remove that directory when you do not need that specific
107 version of GCC any longer, and, if shared libraries are installed there
108 as well, no more binaries exist that use them.
111 File: gccinstall.info, Node: Prerequisites, Next: Downloading the source, Up: Installing GCC
116 GCC requires that various tools and packages be available for use in
117 the build procedure. Modifying GCC sources requires additional tools
120 Tools/packages necessary for building GCC
121 =========================================
124 Necessary to bootstrap GCC, although versions of GCC prior to 3.4
125 also allow bootstrapping with a traditional (K&R) C compiler.
127 To build all languages in a cross-compiler or other configuration
128 where 3-stage bootstrap is not performed, you need to start with
129 an existing GCC binary (version 2.95 or later) because source code
130 for language frontends other than C might use GCC extensions.
133 In order to build the Ada compiler (GNAT) you must already have
134 GNAT installed because portions of the Ada frontend are written in
135 Ada (with GNAT extensions.) Refer to the Ada installation
136 instructions for more specific information.
138 A "working" POSIX compatible shell, or GNU bash
139 Necessary when running `configure' because some `/bin/sh' shells
140 have bugs and may crash when configuring the target libraries. In
141 other cases, `/bin/sh' or `ksh' have disastrous corner-case
142 performance problems. This can cause target `configure' runs to
143 literally take days to complete in some cases.
145 So on some platforms `/bin/ksh' is sufficient, on others it isn't.
146 See the host/target specific instructions for your platform, or
147 use `bash' to be sure. Then set `CONFIG_SHELL' in your
148 environment to your "good" shell prior to running
151 `zsh' is not a fully compliant POSIX shell and will not work when
155 Necessary for creating some of the generated source files for GCC.
156 If in doubt, use a recent GNU awk version, as some of the older
157 ones are broken. GNU awk version 3.1.5 is known to work.
160 Necessary in some circumstances, optional in others. See the
161 host/target specific instructions for your platform for the exact
164 gzip version 1.2.4 (or later) or
165 bzip2 version 1.0.2 (or later)
166 Necessary to uncompress GCC `tar' files when source code is
167 obtained via FTP mirror sites.
169 GNU make version 3.80 (or later)
170 You must have GNU make installed to build GCC.
172 GNU tar version 1.14 (or later)
173 Necessary (only on some platforms) to untar the source code. Many
174 systems' `tar' programs will also work, only try GNU `tar' if you
177 GNU Multiple Precision Library (GMP) version 4.1 (or later)
178 Necessary to build GCC. If you do not have it installed in your
179 library search path, you will have to configure with the
180 `--with-gmp' configure option. See also `--with-gmp-lib' and
181 `--with-gmp-include'. Alternatively, if a GMP source distribution
182 is found in a subdirectory of your GCC sources named `gmp', it
183 will be built together with GCC.
185 MPFR Library version 2.3.2 (or later)
186 Necessary to build GCC. It can be downloaded from
187 `http://www.mpfr.org/'. The version of MPFR that is bundled with
188 GMP 4.1.x contains numerous bugs. Although GCC may appear to
189 function with the buggy versions of MPFR, there are a few bugs
190 that will not be fixed when using this version. It is strongly
191 recommended to upgrade to the recommended version of MPFR.
193 The `--with-mpfr' configure option should be used if your MPFR
194 Library is not installed in your default library search path. See
195 also `--with-mpfr-lib' and `--with-mpfr-include'. Alternatively,
196 if a MPFR source distribution is found in a subdirectory of your
197 GCC sources named `mpfr', it will be built together with GCC.
199 Parma Polyhedra Library (PPL) version 0.10
200 Necessary to build GCC with the Graphite loop optimizations. It
201 can be downloaded from `http://www.cs.unipr.it/ppl/Download/'.
203 The `--with-ppl' configure option should be used if PPL is not
204 installed in your default library search path.
206 CLooG-PPL version 0.15
207 Necessary to build GCC with the Graphite loop optimizations. It
208 can be downloaded from `ftp://gcc.gnu.org/pub/gcc/infrastructure/'.
209 The code in `cloog-ppl-0.15.tar.gz' comes from a branch of CLooG
210 available from `http://repo.or.cz/w/cloog-ppl.git'. CLooG-PPL
211 should be configured with `--with-ppl'.
213 The `--with-cloog' configure option should be used if CLooG is not
214 installed in your default library search path.
216 `jar', or InfoZIP (`zip' and `unzip')
217 Necessary to build libgcj, the GCJ runtime.
220 Tools/packages necessary for modifying GCC
221 ==========================================
223 autoconf version 2.59
224 GNU m4 version 1.4 (or later)
225 Necessary when modifying `configure.ac', `aclocal.m4', etc. to
226 regenerate `configure' and `config.in' files.
228 automake version 1.9.6
229 Necessary when modifying a `Makefile.am' file to regenerate its
230 associated `Makefile.in'.
232 Much of GCC does not use automake, so directly edit the
233 `Makefile.in' file. Specifically this applies to the `gcc',
234 `intl', `libcpp', `libiberty', `libobjc' directories as well as
235 any of their subdirectories.
237 For directories that use automake, GCC requires the latest release
238 in the 1.9.x series, which is currently 1.9.6. When regenerating
239 a directory to a newer version, please update all the directories
240 using an older 1.9.x to the latest released version.
242 gettext version 0.14.5 (or later)
243 Needed to regenerate `gcc.pot'.
245 gperf version 2.7.2 (or later)
246 Necessary when modifying `gperf' input files, e.g.
247 `gcc/cp/cfns.gperf' to regenerate its associated header file, e.g.
253 Necessary to run the GCC testsuite; see the section on testing for
256 autogen version 5.5.4 (or later) and
257 guile version 1.4.1 (or later)
258 Necessary to regenerate `fixinc/fixincl.x' from
259 `fixinc/inclhack.def' and `fixinc/*.tpl'.
261 Necessary to run `make check' for `fixinc'.
263 Necessary to regenerate the top level `Makefile.in' file from
264 `Makefile.tpl' and `Makefile.def'.
266 Flex version 2.5.4 (or later)
267 Necessary when modifying `*.l' files.
269 Necessary to build GCC during development because the generated
270 output files are not included in the SVN repository. They are
271 included in releases.
273 Texinfo version 4.7 (or later)
274 Necessary for running `makeinfo' when modifying `*.texi' files to
277 Necessary for running `make dvi' or `make pdf' to create printable
278 documentation in DVI or PDF format. Texinfo version 4.8 or later
279 is required for `make pdf'.
281 Necessary to build GCC documentation during development because the
282 generated output files are not included in the SVN repository.
283 They are included in releases.
285 TeX (any working version)
286 Necessary for running `texi2dvi' and `texi2pdf', which are used
287 when running `make dvi' or `make pdf' to create DVI or PDF files,
292 Necessary to access the SVN repository. Public releases and weekly
293 snapshots of the development sources are also available via FTP.
295 Perl version 5.6.1 (or later)
296 Necessary when regenerating `Makefile' dependencies in libiberty.
297 Necessary when regenerating `libiberty/functions.texi'. Necessary
298 when generating manpages from Texinfo manuals. Necessary when
299 targetting Darwin, building libstdc++, and not using
300 `--disable-symvers'. Used by various scripts to generate some
301 files included in SVN (mainly Unicode-related and rarely changing)
304 GNU diffutils version 2.7 (or later)
305 Useful when submitting patches for the GCC source code.
307 patch version 2.5.4 (or later)
308 Necessary when applying patches, created with `diff', to one's own
313 If you wish to modify `.java' files in libjava, you will need to
314 configure with `--enable-java-maintainer-mode', and you will need
315 to have executables named `ecj1' and `gjavah' in your path. The
316 `ecj1' executable should run the Eclipse Java compiler via the
317 GCC-specific entry point. You can download a suitable jar from
318 `ftp://sourceware.org/pub/java/', or by running the script
319 `contrib/download_ecj'.
321 antlr.jar version 2.7.1 (or later)
323 If you wish to build the `gjdoc' binary in libjava, you will need
324 to have a `antlr.jar' library available. The library is searched
325 in system locations but can be configured with `--with-antlr-jar='
326 instead. When configuring with `--enable-java-maintainer-mode',
327 you will need to have one of the executables named `cantlr',
328 `runantlr' or `antlr' in your path.
332 File: gccinstall.info, Node: Downloading the source, Next: Configuration, Prev: Prerequisites, Up: Installing GCC
337 GCC is distributed via SVN and FTP tarballs compressed with `gzip' or
338 `bzip2'. It is possible to download a full distribution or specific
341 Please refer to the releases web page for information on how to
344 The full distribution includes the C, C++, Objective-C, Fortran,
345 Java, and Ada (in the case of GCC 3.1 and later) compilers. The full
346 distribution also includes runtime libraries for C++, Objective-C,
347 Fortran, and Java. In GCC 3.0 and later versions, the GNU compiler
348 testsuites are also included in the full distribution.
350 If you choose to download specific components, you must download the
351 core GCC distribution plus any language specific distributions you wish
352 to use. The core distribution includes the C language front end as
353 well as the shared components. Each language has a tarball which
354 includes the language front end as well as the language runtime (when
357 Unpack the core distribution as well as any language specific
358 distributions in the same directory.
360 If you also intend to build binutils (either to upgrade an existing
361 installation or for use in place of the corresponding tools of your
362 OS), unpack the binutils distribution either in the same directory or a
363 separate one. In the latter case, add symbolic links to any components
364 of the binutils you intend to build alongside the compiler (`bfd',
365 `binutils', `gas', `gprof', `ld', `opcodes', ...) to the directory
366 containing the GCC sources.
368 Likewise, the GMP and MPFR libraries can be automatically built
369 together with GCC. Unpack the GMP and/or MPFR source distributions in
370 the directory containing the GCC sources and rename their directories to
371 `gmp' and `mpfr', respectively (or use symbolic links with the same
375 File: gccinstall.info, Node: Configuration, Next: Building, Prev: Downloading the source, Up: Installing GCC
377 4 Installing GCC: Configuration
378 *******************************
380 Like most GNU software, GCC must be configured before it can be
381 built. This document describes the recommended configuration procedure
382 for both native and cross targets.
384 We use SRCDIR to refer to the toplevel source directory for GCC; we
385 use OBJDIR to refer to the toplevel build/object directory.
387 If you obtained the sources via SVN, SRCDIR must refer to the top
388 `gcc' directory, the one where the `MAINTAINERS' can be found, and not
389 its `gcc' subdirectory, otherwise the build will fail.
391 If either SRCDIR or OBJDIR is located on an automounted NFS file
392 system, the shell's built-in `pwd' command will return temporary
393 pathnames. Using these can lead to various sorts of build problems.
394 To avoid this issue, set the `PWDCMD' environment variable to an
395 automounter-aware `pwd' command, e.g., `pawd' or `amq -w', during the
396 configuration and build phases.
398 First, we *highly* recommend that GCC be built into a separate
399 directory than the sources which does *not* reside within the source
400 tree. This is how we generally build GCC; building where SRCDIR ==
401 OBJDIR should still work, but doesn't get extensive testing; building
402 where OBJDIR is a subdirectory of SRCDIR is unsupported.
404 If you have previously built GCC in the same directory for a
405 different target machine, do `make distclean' to delete all files that
406 might be invalid. One of the files this deletes is `Makefile'; if
407 `make distclean' complains that `Makefile' does not exist or issues a
408 message like "don't know how to make distclean" it probably means that
409 the directory is already suitably clean. However, with the recommended
410 method of building in a separate OBJDIR, you should simply use a
411 different OBJDIR for each target.
413 Second, when configuring a native system, either `cc' or `gcc' must
414 be in your path or you must set `CC' in your environment before running
415 configure. Otherwise the configuration scripts may fail.
421 % SRCDIR/configure [OPTIONS] [TARGET]
426 If you will be distributing binary versions of GCC, with modifications
427 to the source code, you should use the options described in this
428 section to make clear that your version contains modifications.
430 `--with-pkgversion=VERSION'
431 Specify a string that identifies your package. You may wish to
432 include a build number or build date. This version string will be
433 included in the output of `gcc --version'. This suffix does not
434 replace the default version string, only the `GCC' part.
436 The default value is `GCC'.
439 Specify the URL that users should visit if they wish to report a
440 bug. You are of course welcome to forward bugs reported to you to
441 the FSF, if you determine that they are not bugs in your
444 The default value refers to the FSF's GCC bug tracker.
450 * GCC has code to correctly determine the correct value for TARGET
451 for nearly all native systems. Therefore, we highly recommend you
452 not provide a configure target when configuring a native compiler.
454 * TARGET must be specified as `--target=TARGET' when configuring a
455 cross compiler; examples of valid targets would be m68k-coff,
458 * Specifying just TARGET instead of `--target=TARGET' implies that
459 the host defaults to TARGET.
461 Options specification
462 =====================
464 Use OPTIONS to override several configure time options for GCC. A list
465 of supported OPTIONS follows; `configure --help' may list other
466 options, but those not listed below may not work and should not
469 Note that each `--enable' option has a corresponding `--disable'
470 option and that each `--with' option has a corresponding `--without'
474 Specify the toplevel installation directory. This is the
475 recommended way to install the tools into a directory other than
476 the default. The toplevel installation directory defaults to
479 We *highly* recommend against DIRNAME being the same or a
480 subdirectory of OBJDIR or vice versa. If specifying a directory
481 beneath a user's home directory tree, some shells will not expand
482 DIRNAME correctly if it contains the `~' metacharacter; use
485 The following standard `autoconf' options are supported. Normally
486 you should not need to use these options.
487 `--exec-prefix=DIRNAME'
488 Specify the toplevel installation directory for
489 architecture-dependent files. The default is `PREFIX'.
492 Specify the installation directory for the executables called
493 by users (such as `gcc' and `g++'). The default is
497 Specify the installation directory for object code libraries
498 and internal data files of GCC. The default is
501 `--libexecdir=DIRNAME'
502 Specify the installation directory for internal executables
503 of GCC. The default is `EXEC-PREFIX/libexec'.
505 `--with-slibdir=DIRNAME'
506 Specify the installation directory for the shared libgcc
507 library. The default is `LIBDIR'.
510 Specify the installation directory for documentation in info
511 format. The default is `PREFIX/info'.
514 Specify the installation directory for some
515 architecture-independent data files referenced by GCC. The
516 default is `PREFIX/share'.
519 Specify the installation directory for manual pages. The
520 default is `PREFIX/man'. (Note that the manual pages are
521 only extracts from the full GCC manuals, which are provided
522 in Texinfo format. The manpages are derived by an automatic
523 conversion process from parts of the full manual.)
525 `--with-gxx-include-dir=DIRNAME'
526 Specify the installation directory for G++ header files. The
527 default is `PREFIX/include/c++/VERSION'.
530 `--program-prefix=PREFIX'
531 GCC supports some transformations of the names of its programs when
532 installing them. This option prepends PREFIX to the names of
533 programs to install in BINDIR (see above). For example, specifying
534 `--program-prefix=foo-' would result in `gcc' being installed as
535 `/usr/local/bin/foo-gcc'.
537 `--program-suffix=SUFFIX'
538 Appends SUFFIX to the names of programs to install in BINDIR (see
539 above). For example, specifying `--program-suffix=-3.1' would
540 result in `gcc' being installed as `/usr/local/bin/gcc-3.1'.
542 `--program-transform-name=PATTERN'
543 Applies the `sed' script PATTERN to be applied to the names of
544 programs to install in BINDIR (see above). PATTERN has to consist
545 of one or more basic `sed' editing commands, separated by
546 semicolons. For example, if you want the `gcc' program name to be
547 transformed to the installed program `/usr/local/bin/myowngcc' and
548 the `g++' program name to be transformed to
549 `/usr/local/bin/gspecial++' without changing other program names,
550 you could use the pattern
551 `--program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/''
552 to achieve this effect.
554 All three options can be combined and used together, resulting in
555 more complex conversion patterns. As a basic rule, PREFIX (and
556 SUFFIX) are prepended (appended) before further transformations
557 can happen with a special transformation script PATTERN.
559 As currently implemented, this option only takes effect for native
560 builds; cross compiler binaries' names are not transformed even
561 when a transformation is explicitly asked for by one of these
564 For native builds, some of the installed programs are also
565 installed with the target alias in front of their name, as in
566 `i686-pc-linux-gnu-gcc'. All of the above transformations happen
567 before the target alias is prepended to the name--so, specifying
568 `--program-prefix=foo-' and `program-suffix=-3.1', the resulting
569 binary would be installed as
570 `/usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1'.
572 As a last shortcoming, none of the installed Ada programs are
573 transformed yet, which will be fixed in some time.
575 `--with-local-prefix=DIRNAME'
576 Specify the installation directory for local include files. The
577 default is `/usr/local'. Specify this option if you want the
578 compiler to search directory `DIRNAME/include' for locally
579 installed header files _instead_ of `/usr/local/include'.
581 You should specify `--with-local-prefix' *only* if your site has a
582 different convention (not `/usr/local') for where to put
585 The default value for `--with-local-prefix' is `/usr/local'
586 regardless of the value of `--prefix'. Specifying `--prefix' has
587 no effect on which directory GCC searches for local header files.
588 This may seem counterintuitive, but actually it is logical.
590 The purpose of `--prefix' is to specify where to _install GCC_.
591 The local header files in `/usr/local/include'--if you put any in
592 that directory--are not part of GCC. They are part of other
593 programs--perhaps many others. (GCC installs its own header files
594 in another directory which is based on the `--prefix' value.)
596 Both the local-prefix include directory and the GCC-prefix include
597 directory are part of GCC's "system include" directories.
598 Although these two directories are not fixed, they need to be
599 searched in the proper order for the correct processing of the
600 include_next directive. The local-prefix include directory is
601 searched before the GCC-prefix include directory. Another
602 characteristic of system include directories is that pedantic
603 warnings are turned off for headers in these directories.
605 Some autoconf macros add `-I DIRECTORY' options to the compiler
606 command line, to ensure that directories containing installed
607 packages' headers are searched. When DIRECTORY is one of GCC's
608 system include directories, GCC will ignore the option so that
609 system directories continue to be processed in the correct order.
610 This may result in a search order different from what was
611 specified but the directory will still be searched.
613 GCC automatically searches for ordinary libraries using
614 `GCC_EXEC_PREFIX'. Thus, when the same installation prefix is
615 used for both GCC and packages, GCC will automatically search for
616 both headers and libraries. This provides a configuration that is
617 easy to use. GCC behaves in a manner similar to that when it is
618 installed as a system compiler in `/usr'.
620 Sites that need to install multiple versions of GCC may not want to
621 use the above simple configuration. It is possible to use the
622 `--program-prefix', `--program-suffix' and
623 `--program-transform-name' options to install multiple versions
624 into a single directory, but it may be simpler to use different
625 prefixes and the `--with-local-prefix' option to specify the
626 location of the site-specific files for each version. It will
627 then be necessary for users to specify explicitly the location of
628 local site libraries (e.g., with `LIBRARY_PATH').
630 The same value can be used for both `--with-local-prefix' and
631 `--prefix' provided it is not `/usr'. This can be used to avoid
632 the default search of `/usr/local/include'.
634 *Do not* specify `/usr' as the `--with-local-prefix'! The
635 directory you use for `--with-local-prefix' *must not* contain any
636 of the system's standard header files. If it did contain them,
637 certain programs would be miscompiled (including GNU Emacs, on
638 certain targets), because this would override and nullify the
639 header file corrections made by the `fixincludes' script.
641 Indications are that people who use this option use it based on
642 mistaken ideas of what it is for. People use it as if it
643 specified where to install part of GCC. Perhaps they make this
644 assumption because installing GCC creates the directory.
646 `--enable-shared[=PACKAGE[,...]]'
647 Build shared versions of libraries, if shared libraries are
648 supported on the target platform. Unlike GCC 2.95.x and earlier,
649 shared libraries are enabled by default on all platforms that
650 support shared libraries.
652 If a list of packages is given as an argument, build shared
653 libraries only for the listed packages. For other packages, only
654 static libraries will be built. Package names currently
655 recognized in the GCC tree are `libgcc' (also known as `gcc'),
656 `libstdc++' (not `libstdc++-v3'), `libffi', `zlib', `boehm-gc',
657 `ada', `libada', `libjava' and `libobjc'. Note `libiberty' does
658 not support shared libraries at all.
660 Use `--disable-shared' to build only static libraries. Note that
661 `--disable-shared' does not accept a list of package names as
662 argument, only `--enable-shared' does.
665 Specify that the compiler should assume that the assembler it
666 finds is the GNU assembler. However, this does not modify the
667 rules to find an assembler and will result in confusion if the
668 assembler found is not actually the GNU assembler. (Confusion may
669 also result if the compiler finds the GNU assembler but has not
670 been configured with `--with-gnu-as'.) If you have more than one
671 assembler installed on your system, you may want to use this
672 option in connection with `--with-as=PATHNAME' or
673 `--with-build-time-tools=PATHNAME'.
675 The following systems are the only ones where it makes a difference
676 whether you use the GNU assembler. On any other system,
677 `--with-gnu-as' has no effect.
683 * `sparc-sun-solaris2.ANY'
685 * `sparc64-ANY-solaris2.ANY'
688 Specify that the compiler should use the assembler pointed to by
689 PATHNAME, rather than the one found by the standard rules to find
690 an assembler, which are:
691 * Unless GCC is being built with a cross compiler, check the
692 `LIBEXEC/gcc/TARGET/VERSION' directory. LIBEXEC defaults to
693 `EXEC-PREFIX/libexec'; EXEC-PREFIX defaults to PREFIX, which
694 defaults to `/usr/local' unless overridden by the
695 `--prefix=PATHNAME' switch described above. TARGET is the
696 target system triple, such as `sparc-sun-solaris2.7', and
697 VERSION denotes the GCC version, such as 3.0.
699 * If the target system is the same that you are building on,
700 check operating system specific directories (e.g.
701 `/usr/ccs/bin' on Sun Solaris 2).
703 * Check in the `PATH' for a tool whose name is prefixed by the
704 target system triple.
706 * Check in the `PATH' for a tool whose name is not prefixed by
707 the target system triple, if the host and target system
708 triple are the same (in other words, we use a host tool if it
709 can be used for the target as well).
711 You may want to use `--with-as' if no assembler is installed in
712 the directories listed above, or if you have multiple assemblers
713 installed and want to choose one that is not found by the above
717 Same as `--with-gnu-as' but for the linker.
720 Same as `--with-as' but for the linker.
723 Specify that stabs debugging information should be used instead of
724 whatever format the host normally uses. Normally GCC uses the
725 same debug format as the host system.
727 On MIPS based systems and on Alphas, you must specify whether you
728 want GCC to create the normal ECOFF debugging format, or to use
729 BSD-style stabs passed through the ECOFF symbol table. The normal
730 ECOFF debug format cannot fully handle languages other than C.
731 BSD stabs format can handle other languages, but it only works
732 with the GNU debugger GDB.
734 Normally, GCC uses the ECOFF debugging format by default; if you
735 prefer BSD stabs, specify `--with-stabs' when you configure GCC.
737 No matter which default you choose when you configure GCC, the user
738 can use the `-gcoff' and `-gstabs+' options to specify explicitly
739 the debug format for a particular compilation.
741 `--with-stabs' is meaningful on the ISC system on the 386, also, if
742 `--with-gas' is used. It selects use of stabs debugging
743 information embedded in COFF output. This kind of debugging
744 information supports C++ well; ordinary COFF debugging information
747 `--with-stabs' is also meaningful on 386 systems running SVR4. It
748 selects use of stabs debugging information embedded in ELF output.
749 The C++ compiler currently (2.6.0) does not support the DWARF
750 debugging information normally used on 386 SVR4 platforms; stabs
751 provide a workable alternative. This requires gas and gdb, as the
752 normal SVR4 tools can not generate or interpret stabs.
755 Specify that multiple target libraries to support different target
756 variants, calling conventions, etc. should not be built. The
757 default is to build a predefined set of them.
759 Some targets provide finer-grained control over which multilibs
760 are built (e.g., `--disable-softfloat'):
765 fpu, 26bit, underscore, interwork, biendian, nofmult.
768 softfloat, m68881, m68000, m68020.
771 single-float, biendian, softfloat.
773 `powerpc*-*-*, rs6000*-*-*'
774 aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos,
779 Specify that the target supports threads. This affects the
780 Objective-C compiler and runtime library, and exception handling
781 for other languages like C++ and Java. On some systems, this is
784 In general, the best (and, in many cases, the only known) threading
785 model available will be configured for use. Beware that on some
786 systems, GCC has not been taught what threading models are
787 generally available for the system. In this case,
788 `--enable-threads' is an alias for `--enable-threads=single'.
791 Specify that threading support should be disabled for the system.
792 This is an alias for `--enable-threads=single'.
794 `--enable-threads=LIB'
795 Specify that LIB is the thread support library. This affects the
796 Objective-C compiler and runtime library, and exception handling
797 for other languages like C++ and Java. The possibilities for LIB
807 Ada tasking support. For non-Ada programs, this setting is
808 equivalent to `single'. When used in conjunction with the
809 Ada run time, it causes GCC to use the same thread primitives
810 as Ada uses. This option is necessary when using both Ada
811 and the back end exception handling, which is the default for
815 Generic MACH thread support, known to work on NeXTSTEP.
816 (Please note that the file needed to support this
817 configuration, `gthr-mach.h', is missing and thus this
818 setting will cause a known bootstrap failure.)
821 This is an alias for `single'.
824 Generic POSIX/Unix98 thread support.
827 Generic POSIX/Unix95 thread support.
830 RTEMS thread support.
833 Disable thread support, should work for all platforms.
836 Sun Solaris 2 thread support.
839 VxWorks thread support.
842 Microsoft Win32 API thread support.
845 Novell Kernel Services thread support.
848 Specify that the target supports TLS (Thread Local Storage).
849 Usually configure can correctly determine if TLS is supported. In
850 cases where it guesses incorrectly, TLS can be explicitly enabled
851 or disabled with `--enable-tls' or `--disable-tls'. This can
852 happen if the assembler supports TLS but the C library does not,
853 or if the assumptions made by the configure test are incorrect.
856 Specify that the target does not support TLS. This is an alias
857 for `--enable-tls=no'.
862 Specify which cpu variant the compiler should generate code for by
863 default. CPU will be used as the default value of the `-mcpu='
864 switch. This option is only supported on some targets, including
865 ARM, i386, M68k, PowerPC, and SPARC. The `--with-cpu-32' and
866 `--with-cpu-64' options specify separate default CPUs for 32-bit
867 and 64-bit modes; these options are only supported for i386 and
870 `--with-schedule=CPU'
880 These configure options provide default values for the
881 `-mschedule=', `-march=', `-mtune=', `-mabi=', and `-mfpu='
882 options and for `-mhard-float' or `-msoft-float'. As with
883 `--with-cpu', which switches will be accepted and acceptable values
884 of the arguments depend on the target.
887 Specify if the compiler should default to `-marm' or `-mthumb'.
888 This option is only supported on ARM targets.
891 Specify how the compiler should generate code for checking for
892 division by zero. This option is only supported on the MIPS
893 target. The possibilities for TYPE are:
895 Division by zero checks use conditional traps (this is the
896 default on systems that support conditional traps).
899 Division by zero checks use the break instruction.
902 On MIPS targets, make `-mllsc' the default when no `-mno-lsc'
903 option is passed. This is the default for Linux-based targets, as
904 the kernel will emulate them if the ISA does not provide them.
907 On MIPS targets, make `-mno-llsc' the default when no `-mllsc'
911 On MIPS targets, make use of copy relocations and PLTs. These
912 features are extensions to the traditional SVR4-based MIPS ABIs
913 and require support from GNU binutils and the runtime C library.
915 `--enable-__cxa_atexit'
916 Define if you want to use __cxa_atexit, rather than atexit, to
917 register C++ destructors for local statics and global objects.
918 This is essential for fully standards-compliant handling of
919 destructors, but requires __cxa_atexit in libc. This option is
920 currently only available on systems with GNU libc. When enabled,
921 this will cause `-fuse-cxa-atexit' to be passed by default.
923 `--enable-target-optspace'
924 Specify that target libraries should be optimized for code space
925 instead of code speed. This is the default for the m32r platform.
928 Specify that a user visible `cpp' program should not be installed.
930 `--with-cpp-install-dir=DIRNAME'
931 Specify that the user visible `cpp' program should be installed in
932 `PREFIX/DIRNAME/cpp', in addition to BINDIR.
934 `--enable-initfini-array'
935 Force the use of sections `.init_array' and `.fini_array' (instead
936 of `.init' and `.fini') for constructors and destructors. Option
937 `--disable-initfini-array' has the opposite effect. If neither
938 option is specified, the configure script will try to guess
939 whether the `.init_array' and `.fini_array' sections are supported
940 and, if they are, use them.
942 `--enable-maintainer-mode'
943 The build rules that regenerate the GCC master message catalog
944 `gcc.pot' are normally disabled. This is because it can only be
945 rebuilt if the complete source tree is present. If you have
946 changed the sources and want to rebuild the catalog, configuring
947 with `--enable-maintainer-mode' will enable this. Note that you
948 need a recent version of the `gettext' tools to do so.
950 `--disable-bootstrap'
951 For a native build, the default configuration is to perform a
952 3-stage bootstrap of the compiler when `make' is invoked, testing
953 that GCC can compile itself correctly. If you want to disable
954 this process, you can configure with `--disable-bootstrap'.
957 In special cases, you may want to perform a 3-stage build even if
958 the target and host triplets are different. This could happen
959 when the host can run code compiled for the target (e.g. host is
960 i686-linux, target is i486-linux). Starting from GCC 4.2, to do
961 this you have to configure explicitly with `--enable-bootstrap'.
963 `--enable-generated-files-in-srcdir'
964 Neither the .c and .h files that are generated from Bison and flex
965 nor the info manuals and man pages that are built from the .texi
966 files are present in the SVN development tree. When building GCC
967 from that development tree, or from one of our snapshots, those
968 generated files are placed in your build directory, which allows
969 for the source to be in a readonly directory.
971 If you configure with `--enable-generated-files-in-srcdir' then
972 those generated files will go into the source directory. This is
973 mainly intended for generating release or prerelease tarballs of
974 the GCC sources, since it is not a requirement that the users of
975 source releases to have flex, Bison, or makeinfo.
977 `--enable-version-specific-runtime-libs'
978 Specify that runtime libraries should be installed in the compiler
979 specific subdirectory (`LIBDIR/gcc') rather than the usual places.
980 In addition, `libstdc++''s include files will be installed into
981 `LIBDIR' unless you overruled it by using
982 `--with-gxx-include-dir=DIRNAME'. Using this option is
983 particularly useful if you intend to use several versions of GCC in
984 parallel. This is currently supported by `libgfortran',
985 `libjava', `libmudflap', `libstdc++', and `libobjc'.
987 `--enable-languages=LANG1,LANG2,...'
988 Specify that only a particular subset of compilers and their
989 runtime libraries should be built. For a list of valid values for
990 LANGN you can issue the following command in the `gcc' directory
991 of your GCC source tree:
992 grep language= */config-lang.in
993 Currently, you can use any of the following: `all', `ada', `c',
994 `c++', `fortran', `java', `objc', `obj-c++'. Building the Ada
995 compiler has special requirements, see below. If you do not pass
996 this flag, or specify the option `all', then all default languages
997 available in the `gcc' sub-tree will be configured. Ada and
998 Objective-C++ are not default languages; the rest are.
999 Re-defining `LANGUAGES' when calling `make' *does not* work
1000 anymore, as those language sub-directories might not have been
1003 `--enable-stage1-languages=LANG1,LANG2,...'
1004 Specify that a particular subset of compilers and their runtime
1005 libraries should be built with the system C compiler during stage
1006 1 of the bootstrap process, rather than only in later stages with
1007 the bootstrapped C compiler. The list of valid values is the same
1008 as for `--enable-languages', and the option `all' will select all
1009 of the languages enabled by `--enable-languages'. This option is
1010 primarily useful for GCC development; for instance, when a
1011 development version of the compiler cannot bootstrap due to
1012 compiler bugs, or when one is debugging front ends other than the
1013 C front end. When this option is used, one can then build the
1014 target libraries for the specified languages with the stage-1
1015 compiler by using `make stage1-bubble all-target', or run the
1016 testsuite on the stage-1 compiler for the specified languages
1017 using `make stage1-start check-gcc'.
1020 Specify that the run-time libraries and tools used by GNAT should
1021 not be built. This can be useful for debugging, or for
1022 compatibility with previous Ada build procedures, when it was
1023 required to explicitly do a `make -C gcc gnatlib_and_tools'.
1026 Specify that the run-time libraries for stack smashing protection
1027 should not be built.
1030 Specify that the run-time libraries used by GOMP should not be
1034 Specify that the compiler should use DWARF 2 debugging information
1037 `--enable-targets=all'
1038 `--enable-targets=TARGET_LIST'
1039 Some GCC targets, e.g. powerpc64-linux, build bi-arch compilers.
1040 These are compilers that are able to generate either 64-bit or
1041 32-bit code. Typically, the corresponding 32-bit target, e.g.
1042 powerpc-linux for powerpc64-linux, only generates 32-bit code.
1043 This option enables the 32-bit target to be a bi-arch compiler,
1044 which is useful when you want a bi-arch compiler that defaults to
1045 32-bit, and you are building a bi-arch or multi-arch binutils in a
1046 combined tree. Currently, this option only affects sparc-linux,
1047 powerpc-linux and x86-linux.
1049 `--enable-secureplt'
1050 This option enables `-msecure-plt' by default for powerpc-linux.
1051 *Note RS/6000 and PowerPC Options: (gcc)RS/6000 and PowerPC
1055 This option enables `-mcld' by default for 32-bit x86 targets.
1056 *Note i386 and x86-64 Options: (gcc)i386 and x86-64 Options,
1058 `--enable-win32-registry'
1059 `--enable-win32-registry=KEY'
1060 `--disable-win32-registry'
1061 The `--enable-win32-registry' option enables Microsoft
1062 Windows-hosted GCC to look up installations paths in the registry
1063 using the following key:
1065 `HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\KEY'
1067 KEY defaults to GCC version number, and can be overridden by the
1068 `--enable-win32-registry=KEY' option. Vendors and distributors
1069 who use custom installers are encouraged to provide a different
1070 key, perhaps one comprised of vendor name and GCC version number,
1071 to avoid conflict with existing installations. This feature is
1072 enabled by default, and can be disabled by
1073 `--disable-win32-registry' option. This option has no effect on
1077 Specify that the machine does not have a floating point unit. This
1078 option only applies to `m68k-sun-sunosN'. On any other system,
1079 `--nfp' has no effect.
1083 `--enable-werror=yes'
1084 `--enable-werror=no'
1085 When you specify this option, it controls whether certain files in
1086 the compiler are built with `-Werror' in bootstrap stage2 and
1087 later. If you don't specify it, `-Werror' is turned on for the
1088 main development trunk. However it defaults to off for release
1089 branches and final releases. The specific files which get
1090 `-Werror' are controlled by the Makefiles.
1093 `--enable-checking=LIST'
1094 When you specify this option, the compiler is built to perform
1095 internal consistency checks of the requested complexity. This
1096 does not change the generated code, but adds error checking within
1097 the compiler. This will slow down the compiler and may only work
1098 properly if you are building the compiler with GCC. This is `yes'
1099 by default when building from SVN or snapshots, but `release' for
1100 releases. The default for building the stage1 compiler is `yes'.
1101 More control over the checks may be had by specifying LIST. The
1102 categories of checks available are `yes' (most common checks
1103 `assert,misc,tree,gc,rtlflag,runtime'), `no' (no checks at all),
1104 `all' (all but `valgrind'), `release' (cheapest checks
1105 `assert,runtime') or `none' (same as `no'). Individual checks can
1106 be enabled with these flags `assert', `df', `fold', `gc', `gcac'
1107 `misc', `rtl', `rtlflag', `runtime', `tree', and `valgrind'.
1109 The `valgrind' check requires the external `valgrind' simulator,
1110 available from `http://valgrind.org/'. The `df', `rtl', `gcac'
1111 and `valgrind' checks are very expensive. To disable all
1112 checking, `--disable-checking' or `--enable-checking=none' must be
1113 explicitly requested. Disabling assertions will make the compiler
1114 and runtime slightly faster but increase the risk of undetected
1115 internal errors causing wrong code to be generated.
1117 `--disable-stage1-checking'
1119 `--enable-stage1-checking'
1120 `--enable-stage1-checking=LIST'
1121 If no `--enable-checking' option is specified the stage1 compiler
1122 will be built with `yes' checking enabled, otherwise the stage1
1123 checking flags are the same as specified by `--enable-checking'.
1124 To build the stage1 compiler with different checking options use
1125 `--enable-stage1-checking'. The list of checking options is the
1126 same as for `--enable-checking'. If your system is too slow or
1127 too small to bootstrap a released compiler with checking for
1128 stage1 enabled, you can use `--disable-stage1-checking' to disable
1129 checking for the stage1 compiler.
1132 `--enable-coverage=LEVEL'
1133 With this option, the compiler is built to collect self coverage
1134 information, every time it is run. This is for internal
1135 development purposes, and only works when the compiler is being
1136 built with gcc. The LEVEL argument controls whether the compiler
1137 is built optimized or not, values are `opt' and `noopt'. For
1138 coverage analysis you want to disable optimization, for
1139 performance analysis you want to enable optimization. When
1140 coverage is enabled, the default level is without optimization.
1142 `--enable-gather-detailed-mem-stats'
1143 When this option is specified more detailed information on memory
1144 allocation is gathered. This information is printed when using
1149 With this option you can specify the garbage collector
1150 implementation used during the compilation process. CHOICE can be
1151 one of `page' and `zone', where `page' is the default.
1155 The `--enable-nls' option enables Native Language Support (NLS),
1156 which lets GCC output diagnostics in languages other than American
1157 English. Native Language Support is enabled by default if not
1158 doing a canadian cross build. The `--disable-nls' option disables
1161 `--with-included-gettext'
1162 If NLS is enabled, the `--with-included-gettext' option causes the
1163 build procedure to prefer its copy of GNU `gettext'.
1166 If NLS is enabled, and if the host lacks `gettext' but has the
1167 inferior `catgets' interface, the GCC build procedure normally
1168 ignores `catgets' and instead uses GCC's copy of the GNU `gettext'
1169 library. The `--with-catgets' option causes the build procedure
1170 to use the host's `catgets' in this situation.
1172 `--with-libiconv-prefix=DIR'
1173 Search for libiconv header files in `DIR/include' and libiconv
1174 library files in `DIR/lib'.
1177 Enable configuration for an obsoleted system. If you attempt to
1178 configure GCC for a system (build, host, or target) which has been
1179 obsoleted, and you do not specify this flag, configure will halt
1180 with an error message.
1182 All support for systems which have been obsoleted in one release
1183 of GCC is removed entirely in the next major release, unless
1184 someone steps forward to maintain the port.
1186 `--enable-decimal-float'
1187 `--enable-decimal-float=yes'
1188 `--enable-decimal-float=no'
1189 `--enable-decimal-float=bid'
1190 `--enable-decimal-float=dpd'
1191 `--disable-decimal-float'
1192 Enable (or disable) support for the C decimal floating point
1193 extension that is in the IEEE 754-2008 standard. This is enabled
1194 by default only on PowerPC, i386, and x86_64 GNU/Linux systems.
1195 Other systems may also support it, but require the user to
1196 specifically enable it. You can optionally control which decimal
1197 floating point format is used (either `bid' or `dpd'). The `bid'
1198 (binary integer decimal) format is default on i386 and x86_64
1199 systems, and the `dpd' (densely packed decimal) format is default
1202 `--enable-fixed-point'
1203 `--disable-fixed-point'
1204 Enable (or disable) support for C fixed-point arithmetic. This
1205 option is enabled by default for some targets (such as MIPS) which
1206 have hardware-support for fixed-point operations. On other
1207 targets, you may enable this option manually.
1209 `--with-long-double-128'
1210 Specify if `long double' type should be 128-bit by default on
1211 selected GNU/Linux architectures. If using
1212 `--without-long-double-128', `long double' will be by default
1213 64-bit, the same as `double' type. When neither of these
1214 configure options are used, the default will be 128-bit `long
1215 double' when built against GNU C Library 2.4 and later, 64-bit
1216 `long double' otherwise.
1218 `--with-gmp=PATHNAME'
1219 `--with-gmp-include=PATHNAME'
1220 `--with-gmp-lib=PATHNAME'
1221 `--with-mpfr=PATHNAME'
1222 `--with-mpfr-include=PATHNAME'
1223 `--with-mpfr-lib=PATHNAME'
1224 If you do not have GMP (the GNU Multiple Precision library) and the
1225 MPFR Libraries installed in a standard location and you want to
1226 build GCC, you can explicitly specify the directory where they are
1227 installed (`--with-gmp=GMPINSTALLDIR',
1228 `--with-mpfr=MPFRINSTALLDIR'). The `--with-gmp=GMPINSTALLDIR'
1229 option is shorthand for `--with-gmp-lib=GMPINSTALLDIR/lib' and
1230 `--with-gmp-include=GMPINSTALLDIR/include'. Likewise the
1231 `--with-mpfr=MPFRINSTALLDIR' option is shorthand for
1232 `--with-mpfr-lib=MPFRINSTALLDIR/lib' and
1233 `--with-mpfr-include=MPFRINSTALLDIR/include'. If these shorthand
1234 assumptions are not correct, you can use the explicit include and
1235 lib options directly.
1237 `--with-ppl=PATHNAME'
1238 `--with-ppl-include=PATHNAME'
1239 `--with-ppl-lib=PATHNAME'
1240 `--with-cloog=PATHNAME'
1241 `--with-cloog-include=PATHNAME'
1242 `--with-cloog-lib=PATHNAME'
1243 If you do not have PPL (the Parma Polyhedra Library) and the CLooG
1244 libraries installed in a standard location and you want to build
1245 GCC, you can explicitly specify the directory where they are
1246 installed (`--with-ppl=PPLINSTALLDIR',
1247 `--with-cloog=CLOOGINSTALLDIR'). The `--with-ppl=PPLINSTALLDIR'
1248 option is shorthand for `--with-ppl-lib=PPLINSTALLDIR/lib' and
1249 `--with-ppl-include=PPLINSTALLDIR/include'. Likewise the
1250 `--with-cloog=CLOOGINSTALLDIR' option is shorthand for
1251 `--with-cloog-lib=CLOOGINSTALLDIR/lib' and
1252 `--with-cloog-include=CLOOGINSTALLDIR/include'. If these
1253 shorthand assumptions are not correct, you can use the explicit
1254 include and lib options directly.
1256 `--with-host-libstdcxx=LINKER-ARGS'
1257 If you are linking with a static copy of PPL, you can use this
1258 option to specify how the linker should find the standard C++
1259 library used internally by PPL. Typical values of LINKER-ARGS
1260 might be `-lstdc++' or `-Wl,-Bstatic,-lstdc++,-Bdynamic -lm'. If
1261 you are linking with a shared copy of PPL, you probably do not
1262 need this option; shared library dependencies will cause the
1263 linker to search for the standard C++ library automatically.
1265 `--with-debug-prefix-map=MAP'
1266 Convert source directory names using `-fdebug-prefix-map' when
1267 building runtime libraries. `MAP' is a space-separated list of
1268 maps of the form `OLD=NEW'.
1271 Cross-Compiler-Specific Options
1272 -------------------------------
1274 The following options only apply to building cross compilers.
1276 `--with-sysroot=DIR'
1277 Tells GCC to consider DIR as the root of a tree that contains a
1278 (subset of) the root filesystem of the target operating system.
1279 Target system headers, libraries and run-time object files will be
1280 searched in there. The specified directory is not copied into the
1281 install tree, unlike the options `--with-headers' and
1282 `--with-libs' that this option obsoletes. The default value, in
1283 case `--with-sysroot' is not given an argument, is
1284 `${gcc_tooldir}/sys-root'. If the specified directory is a
1285 subdirectory of `${exec_prefix}', then it will be found relative to
1286 the GCC binaries if the installation tree is moved.
1288 `--with-build-sysroot'
1289 `--with-build-sysroot=DIR'
1290 Tells GCC to consider DIR as the system root (see
1291 `--with-sysroot') while building target libraries, instead of the
1292 directory specified with `--with-sysroot'. This option is only
1293 useful when you are already using `--with-sysroot'. You can use
1294 `--with-build-sysroot' when you are configuring with `--prefix'
1295 set to a directory that is different from the one in which you are
1296 installing GCC and your target libraries.
1298 This option affects the system root for the compiler used to build
1299 target libraries (which runs on the build system); it does not
1300 affect the compiler which is used to build GCC itself.
1303 `--with-headers=DIR'
1304 Deprecated in favor of `--with-sysroot'. Specifies that target
1305 headers are available when building a cross compiler. The DIR
1306 argument specifies a directory which has the target include files.
1307 These include files will be copied into the `gcc' install
1308 directory. _This option with the DIR argument is required_ when
1309 building a cross compiler, if `PREFIX/TARGET/sys-include' doesn't
1310 pre-exist. If `PREFIX/TARGET/sys-include' does pre-exist, the DIR
1311 argument may be omitted. `fixincludes' will be run on these files
1312 to make them compatible with GCC.
1315 Tells GCC not use any target headers from a libc when building a
1316 cross compiler. When crossing to GNU/Linux, you need the headers
1317 so GCC can build the exception handling for libgcc.
1320 `--with-libs=``DIR1 DIR2 ... DIRN'''
1321 Deprecated in favor of `--with-sysroot'. Specifies a list of
1322 directories which contain the target runtime libraries. These
1323 libraries will be copied into the `gcc' install directory. If the
1324 directory list is omitted, this option has no effect.
1327 Specifies that `newlib' is being used as the target C library.
1328 This causes `__eprintf' to be omitted from `libgcc.a' on the
1329 assumption that it will be provided by `newlib'.
1331 `--with-build-time-tools=DIR'
1332 Specifies where to find the set of target tools (assembler,
1333 linker, etc.) that will be used while building GCC itself. This
1334 option can be useful if the directory layouts are different
1335 between the system you are building GCC on, and the system where
1338 For example, on a `ia64-hp-hpux' system, you may have the GNU
1339 assembler and linker in `/usr/bin', and the native tools in a
1340 different path, and build a toolchain that expects to find the
1341 native tools in `/usr/bin'.
1343 When you use this option, you should ensure that DIR includes
1344 `ar', `as', `ld', `nm', `ranlib' and `strip' if necessary, and
1345 possibly `objdump'. Otherwise, GCC may use an inconsistent set of
1348 Java-Specific Options
1349 ---------------------
1351 The following option applies to the build of the Java front end.
1354 Specify that the run-time libraries used by GCJ should not be
1355 built. This is useful in case you intend to use GCJ with some
1356 other run-time, or you're going to install it separately, or it
1357 just happens not to build on your particular machine. In general,
1358 if the Java front end is enabled, the GCJ libraries will be
1359 enabled too, unless they're known to not work on the target
1360 platform. If GCJ is enabled but `libgcj' isn't built, you may
1361 need to port it; in this case, before modifying the top-level
1362 `configure.in' so that `libgcj' is enabled by default on this
1363 platform, you may use `--enable-libgcj' to override the default.
1366 The following options apply to building `libgcj'.
1371 `--enable-java-maintainer-mode'
1372 By default the `libjava' build will not attempt to compile the
1373 `.java' source files to `.class'. Instead, it will use the
1374 `.class' files from the source tree. If you use this option you
1375 must have executables named `ecj1' and `gjavah' in your path for
1376 use by the build. You must use this option if you intend to
1377 modify any `.java' files in `libjava'.
1379 `--with-java-home=DIRNAME'
1380 This `libjava' option overrides the default value of the
1381 `java.home' system property. It is also used to set
1382 `sun.boot.class.path' to `DIRNAME/lib/rt.jar'. By default
1383 `java.home' is set to `PREFIX' and `sun.boot.class.path' to
1384 `DATADIR/java/libgcj-VERSION.jar'.
1386 `--with-ecj-jar=FILENAME'
1387 This option can be used to specify the location of an external jar
1388 file containing the Eclipse Java compiler. A specially modified
1389 version of this compiler is used by `gcj' to parse `.java' source
1390 files. If this option is given, the `libjava' build will create
1391 and install an `ecj1' executable which uses this jar file at
1394 If this option is not given, but an `ecj.jar' file is found in the
1395 topmost source tree at configure time, then the `libgcj' build
1396 will create and install `ecj1', and will also install the
1397 discovered `ecj.jar' into a suitable place in the install tree.
1399 If `ecj1' is not installed, then the user will have to supply one
1400 on his path in order for `gcj' to properly parse `.java' source
1401 files. A suitable jar is available from
1402 `ftp://sourceware.org/pub/java/'.
1404 `--disable-getenv-properties'
1405 Don't set system properties from `GCJ_PROPERTIES'.
1407 `--enable-hash-synchronization'
1408 Use a global hash table for monitor locks. Ordinarily, `libgcj''s
1409 `configure' script automatically makes the correct choice for this
1410 option for your platform. Only use this if you know you need the
1411 library to be configured differently.
1413 `--enable-interpreter'
1414 Enable the Java interpreter. The interpreter is automatically
1415 enabled by default on all platforms that support it. This option
1416 is really only useful if you want to disable the interpreter
1417 (using `--disable-interpreter').
1419 `--disable-java-net'
1420 Disable java.net. This disables the native part of java.net only,
1421 using non-functional stubs for native method implementations.
1424 Disable JVMPI support.
1426 `--disable-libgcj-bc'
1427 Disable BC ABI compilation of certain parts of libgcj. By default,
1428 some portions of libgcj are compiled with `-findirect-dispatch'
1429 and `-fno-indirect-classes', allowing them to be overridden at
1432 If `--disable-libgcj-bc' is specified, libgcj is built without
1433 these options. This allows the compile-time linker to resolve
1434 dependencies when statically linking to libgcj. However it makes
1435 it impossible to override the affected portions of libgcj at
1438 `--enable-reduced-reflection'
1439 Build most of libgcj with `-freduced-reflection'. This reduces
1440 the size of libgcj at the expense of not being able to do accurate
1441 reflection on the classes it contains. This option is safe if you
1442 know that code using libgcj will never use reflection on the
1443 standard runtime classes in libgcj (including using serialization,
1447 Enable runtime eCos target support.
1450 Don't use `libffi'. This will disable the interpreter and JNI
1451 support as well, as these require `libffi' to work.
1453 `--enable-libgcj-debug'
1454 Enable runtime debugging code.
1456 `--enable-libgcj-multifile'
1457 If specified, causes all `.java' source files to be compiled into
1458 `.class' files in one invocation of `gcj'. This can speed up
1459 build time, but is more resource-intensive. If this option is
1460 unspecified or disabled, `gcj' is invoked once for each `.java'
1461 file to compile into a `.class' file.
1463 `--with-libiconv-prefix=DIR'
1464 Search for libiconv in `DIR/include' and `DIR/lib'.
1466 `--enable-sjlj-exceptions'
1467 Force use of the `setjmp'/`longjmp'-based scheme for exceptions.
1468 `configure' ordinarily picks the correct value based on the
1469 platform. Only use this option if you are sure you need a
1472 `--with-system-zlib'
1473 Use installed `zlib' rather than that included with GCC.
1475 `--with-win32-nlsapi=ansi, unicows or unicode'
1476 Indicates how MinGW `libgcj' translates between UNICODE characters
1479 `--enable-java-home'
1480 If enabled, this creates a JPackage compatible SDK environment
1481 during install. Note that if -enable-java-home is used,
1482 -with-arch-directory=ARCH must also be specified.
1484 `--with-arch-directory=ARCH'
1485 Specifies the name to use for the `jre/lib/ARCH' directory in the
1486 SDK environment created when -enable-java-home is passed. Typical
1487 names for this directory include i386, amd64, ia64, etc.
1489 `--with-os-directory=DIR'
1490 Specifies the OS directory for the SDK include directory. This is
1491 set to auto detect, and is typically 'linux'.
1493 `--with-origin-name=NAME'
1494 Specifies the JPackage origin name. This defaults to the 'gcj' in
1497 `--with-arch-suffix=SUFFIX'
1498 Specifies the suffix for the sdk directory. Defaults to the empty
1499 string. Examples include '.x86_64' in
1500 'java-1.5.0-gcj-1.5.0.0.x86_64'.
1502 `--with-jvm-root-dir=DIR'
1503 Specifies where to install the SDK. Default is $(prefix)/lib/jvm.
1505 `--with-jvm-jar-dir=DIR'
1506 Specifies where to install jars. Default is
1507 $(prefix)/lib/jvm-exports.
1509 `--with-python-dir=DIR'
1510 Specifies where to install the Python modules used for
1511 aot-compile. DIR should not include the prefix used in
1512 installation. For example, if the Python modules are to be
1513 installed in /usr/lib/python2.5/site-packages, then
1514 -with-python-dir=/lib/python2.5/site-packages should be passed. If
1515 this is not specified, then the Python modules are installed in
1516 $(prefix)/share/python.
1518 `--enable-aot-compile-rpm'
1519 Adds aot-compile-rpm to the list of installed scripts.
1522 Use the single-byte `char' and the Win32 A functions natively,
1523 translating to and from UNICODE when using these functions.
1524 If unspecified, this is the default.
1527 Use the `WCHAR' and Win32 W functions natively. Adds
1528 `-lunicows' to `libgcj.spec' to link with `libunicows'.
1529 `unicows.dll' needs to be deployed on Microsoft Windows 9X
1530 machines running built executables. `libunicows.a', an
1531 open-source import library around Microsoft's `unicows.dll',
1532 is obtained from `http://libunicows.sourceforge.net/', which
1533 also gives details on getting `unicows.dll' from Microsoft.
1536 Use the `WCHAR' and Win32 W functions natively. Does _not_
1537 add `-lunicows' to `libgcj.spec'. The built executables will
1538 only run on Microsoft Windows NT and above.
1540 AWT-Specific Options
1541 ....................
1544 Use the X Window System.
1546 `--enable-java-awt=PEER(S)'
1547 Specifies the AWT peer library or libraries to build alongside
1548 `libgcj'. If this option is unspecified or disabled, AWT will be
1549 non-functional. Current valid values are `gtk' and `xlib'.
1550 Multiple libraries should be separated by a comma (i.e.
1551 `--enable-java-awt=gtk,xlib').
1553 `--enable-gtk-cairo'
1554 Build the cairo Graphics2D implementation on GTK.
1556 `--enable-java-gc=TYPE'
1557 Choose garbage collector. Defaults to `boehm' if unspecified.
1560 Do not try to compile and run a test GTK+ program.
1562 `--disable-glibtest'
1563 Do not try to compile and run a test GLIB program.
1565 `--with-libart-prefix=PFX'
1566 Prefix where libart is installed (optional).
1568 `--with-libart-exec-prefix=PFX'
1569 Exec prefix where libart is installed (optional).
1571 `--disable-libarttest'
1572 Do not try to compile and run a test libart program.
1576 File: gccinstall.info, Node: Building, Next: Testing, Prev: Configuration, Up: Installing GCC
1581 Now that GCC is configured, you are ready to build the compiler and
1584 Some commands executed when making the compiler may fail (return a
1585 nonzero status) and be ignored by `make'. These failures, which are
1586 often due to files that were not found, are expected, and can safely be
1589 It is normal to have compiler warnings when compiling certain files.
1590 Unless you are a GCC developer, you can generally ignore these warnings
1591 unless they cause compilation to fail. Developers should attempt to fix
1592 any warnings encountered, however they can temporarily continue past
1593 warnings-as-errors by specifying the configure flag `--disable-werror'.
1595 On certain old systems, defining certain environment variables such
1596 as `CC' can interfere with the functioning of `make'.
1598 If you encounter seemingly strange errors when trying to build the
1599 compiler in a directory other than the source directory, it could be
1600 because you have previously configured the compiler in the source
1601 directory. Make sure you have done all the necessary preparations.
1603 If you build GCC on a BSD system using a directory stored in an old
1604 System V file system, problems may occur in running `fixincludes' if the
1605 System V file system doesn't support symbolic links. These problems
1606 result in a failure to fix the declaration of `size_t' in
1607 `sys/types.h'. If you find that `size_t' is a signed type and that
1608 type mismatches occur, this could be the cause.
1610 The solution is not to use such a directory for building GCC.
1612 Similarly, when building from SVN or snapshots, or if you modify
1613 `*.l' files, you need the Flex lexical analyzer generator installed.
1614 If you do not modify `*.l' files, releases contain the Flex-generated
1615 files and you do not need Flex installed to build them. There is still
1616 one Flex-based lexical analyzer (part of the build machinery, not of
1617 GCC itself) that is used even if you only build the C front end.
1619 When building from SVN or snapshots, or if you modify Texinfo
1620 documentation, you need version 4.7 or later of Texinfo installed if you
1621 want Info documentation to be regenerated. Releases contain Info
1622 documentation pre-built for the unmodified documentation in the release.
1624 5.1 Building a native compiler
1625 ==============================
1627 For a native build, the default configuration is to perform a 3-stage
1628 bootstrap of the compiler when `make' is invoked. This will build the
1629 entire GCC system and ensure that it compiles itself correctly. It can
1630 be disabled with the `--disable-bootstrap' parameter to `configure',
1631 but bootstrapping is suggested because the compiler will be tested more
1632 completely and could also have better performance.
1634 The bootstrapping process will complete the following steps:
1636 * Build tools necessary to build the compiler.
1638 * Perform a 3-stage bootstrap of the compiler. This includes
1639 building three times the target tools for use by the compiler such
1640 as binutils (bfd, binutils, gas, gprof, ld, and opcodes) if they
1641 have been individually linked or moved into the top level GCC
1642 source tree before configuring.
1644 * Perform a comparison test of the stage2 and stage3 compilers.
1646 * Build runtime libraries using the stage3 compiler from the
1650 If you are short on disk space you might consider `make
1651 bootstrap-lean' instead. The sequence of compilation is the same
1652 described above, but object files from the stage1 and stage2 of the
1653 3-stage bootstrap of the compiler are deleted as soon as they are no
1656 If you wish to use non-default GCC flags when compiling the stage2
1657 and stage3 compilers, set `BOOT_CFLAGS' on the command line when doing
1658 `make'. For example, if you want to save additional space during the
1659 bootstrap and in the final installation as well, you can build the
1660 compiler binaries without debugging information as in the following
1661 example. This will save roughly 40% of disk space both for the
1662 bootstrap and the final installation. (Libraries will still contain
1663 debugging information.)
1665 make BOOT_CFLAGS='-O' bootstrap
1667 You can place non-default optimization flags into `BOOT_CFLAGS'; they
1668 are less well tested here than the default of `-g -O2', but should
1669 still work. In a few cases, you may find that you need to specify
1670 special flags such as `-msoft-float' here to complete the bootstrap; or,
1671 if the native compiler miscompiles the stage1 compiler, you may need to
1672 work around this, by choosing `BOOT_CFLAGS' to avoid the parts of the
1673 stage1 compiler that were miscompiled, or by using `make bootstrap4' to
1674 increase the number of stages of bootstrap.
1676 `BOOT_CFLAGS' does not apply to bootstrapped target libraries.
1677 Since these are always compiled with the compiler currently being
1678 bootstrapped, you can use `CFLAGS_FOR_TARGET' to modify their
1679 compilation flags, as for non-bootstrapped target libraries. Again, if
1680 the native compiler miscompiles the stage1 compiler, you may need to
1681 work around this by avoiding non-working parts of the stage1 compiler.
1682 Use `STAGE1_LIBCFLAGS' to this end.
1684 If you used the flag `--enable-languages=...' to restrict the
1685 compilers to be built, only those you've actually enabled will be
1686 built. This will of course only build those runtime libraries, for
1687 which the particular compiler has been built. Please note, that
1688 re-defining `LANGUAGES' when calling `make' *does not* work anymore!
1690 If the comparison of stage2 and stage3 fails, this normally indicates
1691 that the stage2 compiler has compiled GCC incorrectly, and is therefore
1692 a potentially serious bug which you should investigate and report. (On
1693 a few systems, meaningful comparison of object files is impossible; they
1694 always appear "different". If you encounter this problem, you will
1695 need to disable comparison in the `Makefile'.)
1697 If you do not want to bootstrap your compiler, you can configure with
1698 `--disable-bootstrap'. In particular cases, you may want to bootstrap
1699 your compiler even if the target system is not the same as the one you
1700 are building on: for example, you could build a
1701 `powerpc-unknown-linux-gnu' toolchain on a
1702 `powerpc64-unknown-linux-gnu' host. In this case, pass
1703 `--enable-bootstrap' to the configure script.
1705 5.2 Building a cross compiler
1706 =============================
1708 When building a cross compiler, it is not generally possible to do a
1709 3-stage bootstrap of the compiler. This makes for an interesting
1710 problem as parts of GCC can only be built with GCC.
1712 To build a cross compiler, we first recommend building and
1713 installing a native compiler. You can then use the native GCC compiler
1714 to build the cross compiler. The installed native compiler needs to be
1715 GCC version 2.95 or later.
1717 If the cross compiler is to be built with support for the Java
1718 programming language and the ability to compile .java source files is
1719 desired, the installed native compiler used to build the cross compiler
1720 needs to be the same GCC version as the cross compiler. In addition
1721 the cross compiler needs to be configured with `--with-ecj-jar=...'.
1723 Assuming you have already installed a native copy of GCC and
1724 configured your cross compiler, issue the command `make', which
1725 performs the following steps:
1727 * Build host tools necessary to build the compiler.
1729 * Build target tools for use by the compiler such as binutils (bfd,
1730 binutils, gas, gprof, ld, and opcodes) if they have been
1731 individually linked or moved into the top level GCC source tree
1734 * Build the compiler (single stage only).
1736 * Build runtime libraries using the compiler from the previous step.
1738 Note that if an error occurs in any step the make process will exit.
1740 If you are not building GNU binutils in the same source tree as GCC,
1741 you will need a cross-assembler and cross-linker installed before
1742 configuring GCC. Put them in the directory `PREFIX/TARGET/bin'. Here
1743 is a table of the tools you should put in this directory:
1746 This should be the cross-assembler.
1749 This should be the cross-linker.
1752 This should be the cross-archiver: a program which can manipulate
1753 archive files (linker libraries) in the target machine's format.
1756 This should be a program to construct a symbol table in an archive
1759 The installation of GCC will find these programs in that directory,
1760 and copy or link them to the proper place to for the cross-compiler to
1761 find them when run later.
1763 The easiest way to provide these files is to build the Binutils
1764 package. Configure it with the same `--host' and `--target' options
1765 that you use for configuring GCC, then build and install them. They
1766 install their executables automatically into the proper directory.
1767 Alas, they do not support all the targets that GCC supports.
1769 If you are not building a C library in the same source tree as GCC,
1770 you should also provide the target libraries and headers before
1771 configuring GCC, specifying the directories with `--with-sysroot' or
1772 `--with-headers' and `--with-libs'. Many targets also require "start
1773 files" such as `crt0.o' and `crtn.o' which are linked into each
1774 executable. There may be several alternatives for `crt0.o', for use
1775 with profiling or other compilation options. Check your target's
1776 definition of `STARTFILE_SPEC' to find out what start files it uses.
1778 5.3 Building in parallel
1779 ========================
1781 GNU Make 3.79 and above, which is necessary to build GCC, support
1782 building in parallel. To activate this, you can use `make -j 2'
1783 instead of `make'. You can also specify a bigger number, and in most
1784 cases using a value greater than the number of processors in your
1785 machine will result in fewer and shorter I/O latency hits, thus
1786 improving overall throughput; this is especially true for slow drives
1787 and network filesystems.
1789 5.4 Building the Ada compiler
1790 =============================
1792 In order to build GNAT, the Ada compiler, you need a working GNAT
1793 compiler (GCC version 3.4 or later). This includes GNAT tools such as
1794 `gnatmake' and `gnatlink', since the Ada front end is written in Ada and
1795 uses some GNAT-specific extensions.
1797 In order to build a cross compiler, it is suggested to install the
1798 new compiler as native first, and then use it to build the cross
1801 `configure' does not test whether the GNAT installation works and
1802 has a sufficiently recent version; if too old a GNAT version is
1803 installed, the build will fail unless `--enable-languages' is used to
1804 disable building the Ada front end.
1806 `ADA_INCLUDE_PATH' and `ADA_OBJECT_PATH' environment variables must
1807 not be set when building the Ada compiler, the Ada tools, or the Ada
1808 runtime libraries. You can check that your build environment is clean
1809 by verifying that `gnatls -v' lists only one explicit path in each
1812 5.5 Building with profile feedback
1813 ==================================
1815 It is possible to use profile feedback to optimize the compiler itself.
1816 This should result in a faster compiler binary. Experiments done on
1817 x86 using gcc 3.3 showed approximately 7 percent speedup on compiling C
1818 programs. To bootstrap the compiler with profile feedback, use `make
1821 When `make profiledbootstrap' is run, it will first build a `stage1'
1822 compiler. This compiler is used to build a `stageprofile' compiler
1823 instrumented to collect execution counts of instruction and branch
1824 probabilities. Then runtime libraries are compiled with profile
1825 collected. Finally a `stagefeedback' compiler is built using the
1826 information collected.
1828 Unlike standard bootstrap, several additional restrictions apply.
1829 The compiler used to build `stage1' needs to support a 64-bit integral
1830 type. It is recommended to only use GCC for this. Also parallel make
1831 is currently not supported since collisions in profile collecting may
1835 File: gccinstall.info, Node: Testing, Next: Final install, Prev: Building, Up: Installing GCC
1837 6 Installing GCC: Testing
1838 *************************
1840 Before you install GCC, we encourage you to run the testsuites and to
1841 compare your results with results from a similar configuration that have
1842 been submitted to the gcc-testresults mailing list. Some of these
1843 archived results are linked from the build status lists at
1844 `http://gcc.gnu.org/buildstat.html', although not everyone who reports
1845 a successful build runs the testsuites and submits the results. This
1846 step is optional and may require you to download additional software,
1847 but it can give you confidence in your new GCC installation or point out
1848 problems before you install and start using your new GCC.
1850 First, you must have downloaded the testsuites. These are part of
1851 the full distribution, but if you downloaded the "core" compiler plus
1852 any front ends, you must download the testsuites separately.
1854 Second, you must have the testing tools installed. This includes
1855 DejaGnu, Tcl, and Expect; the DejaGnu site has links to these.
1857 If the directories where `runtest' and `expect' were installed are
1858 not in the `PATH', you may need to set the following environment
1859 variables appropriately, as in the following example (which assumes
1860 that DejaGnu has been installed under `/usr/local'):
1862 TCL_LIBRARY = /usr/local/share/tcl8.0
1863 DEJAGNULIBS = /usr/local/share/dejagnu
1865 (On systems such as Cygwin, these paths are required to be actual
1866 paths, not mounts or links; presumably this is due to some lack of
1867 portability in the DejaGnu code.)
1869 Finally, you can run the testsuite (which may take a long time):
1870 cd OBJDIR; make -k check
1872 This will test various components of GCC, such as compiler front
1873 ends and runtime libraries. While running the testsuite, DejaGnu might
1874 emit some harmless messages resembling `WARNING: Couldn't find the
1875 global config file.' or `WARNING: Couldn't find tool init file' that
1878 If you are testing a cross-compiler, you may want to run the
1879 testsuite on a simulator as described at
1880 `http://gcc.gnu.org/simtest-howto.html'.
1882 6.1 How can you run the testsuite on selected tests?
1883 ====================================================
1885 In order to run sets of tests selectively, there are targets `make
1886 check-gcc' and `make check-g++' in the `gcc' subdirectory of the object
1887 directory. You can also just run `make check' in a subdirectory of the
1890 A more selective way to just run all `gcc' execute tests in the
1893 make check-gcc RUNTESTFLAGS="execute.exp OTHER-OPTIONS"
1895 Likewise, in order to run only the `g++' "old-deja" tests in the
1896 testsuite with filenames matching `9805*', you would use
1898 make check-g++ RUNTESTFLAGS="old-deja.exp=9805* OTHER-OPTIONS"
1900 The `*.exp' files are located in the testsuite directories of the GCC
1901 source, the most important ones being `compile.exp', `execute.exp',
1902 `dg.exp' and `old-deja.exp'. To get a list of the possible `*.exp'
1903 files, pipe the output of `make check' into a file and look at the
1904 `Running ... .exp' lines.
1906 6.2 Passing options and running multiple testsuites
1907 ===================================================
1909 You can pass multiple options to the testsuite using the
1910 `--target_board' option of DejaGNU, either passed as part of
1911 `RUNTESTFLAGS', or directly to `runtest' if you prefer to work outside
1912 the makefiles. For example,
1914 make check-g++ RUNTESTFLAGS="--target_board=unix/-O3/-fmerge-constants"
1916 will run the standard `g++' testsuites ("unix" is the target name
1917 for a standard native testsuite situation), passing `-O3
1918 -fmerge-constants' to the compiler on every test, i.e., slashes
1921 You can run the testsuites multiple times using combinations of
1922 options with a syntax similar to the brace expansion of popular shells:
1924 ..."--target_board=arm-sim\{-mhard-float,-msoft-float\}\{-O1,-O2,-O3,\}"
1926 (Note the empty option caused by the trailing comma in the final
1927 group.) The following will run each testsuite eight times using the
1928 `arm-sim' target, as if you had specified all possible combinations
1931 --target_board=arm-sim/-mhard-float/-O1
1932 --target_board=arm-sim/-mhard-float/-O2
1933 --target_board=arm-sim/-mhard-float/-O3
1934 --target_board=arm-sim/-mhard-float
1935 --target_board=arm-sim/-msoft-float/-O1
1936 --target_board=arm-sim/-msoft-float/-O2
1937 --target_board=arm-sim/-msoft-float/-O3
1938 --target_board=arm-sim/-msoft-float
1940 They can be combined as many times as you wish, in arbitrary ways.
1943 ..."--target_board=unix/-Wextra\{-O3,-fno-strength\}\{-fomit-frame,\}"
1945 will generate four combinations, all involving `-Wextra'.
1947 The disadvantage to this method is that the testsuites are run in
1948 serial, which is a waste on multiprocessor systems. For users with GNU
1949 Make and a shell which performs brace expansion, you can run the
1950 testsuites in parallel by having the shell perform the combinations and
1951 `make' do the parallel runs. Instead of using `--target_board', use a
1952 special makefile target:
1954 make -jN check-TESTSUITE//TEST-TARGET/OPTION1/OPTION2/...
1958 make -j3 check-gcc//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
1960 will run three concurrent "make-gcc" testsuites, eventually testing
1961 all ten combinations as described above. Note that this is currently
1962 only supported in the `gcc' subdirectory. (To see how this works, try
1963 typing `echo' before the example given here.)
1965 6.3 Additional testing for Java Class Libraries
1966 ===============================================
1968 The Java runtime tests can be executed via `make check' in the
1969 `TARGET/libjava/testsuite' directory in the build tree.
1971 The Mauve Project provides a suite of tests for the Java Class
1972 Libraries. This suite can be run as part of libgcj testing by placing
1973 the Mauve tree within the libjava testsuite at
1974 `libjava/testsuite/libjava.mauve/mauve', or by specifying the location
1975 of that tree when invoking `make', as in `make MAUVEDIR=~/mauve check'.
1977 6.4 How to interpret test results
1978 =================================
1980 The result of running the testsuite are various `*.sum' and `*.log'
1981 files in the testsuite subdirectories. The `*.log' files contain a
1982 detailed log of the compiler invocations and the corresponding results,
1983 the `*.sum' files summarize the results. These summaries contain
1984 status codes for all tests:
1986 * PASS: the test passed as expected
1988 * XPASS: the test unexpectedly passed
1990 * FAIL: the test unexpectedly failed
1992 * XFAIL: the test failed as expected
1994 * UNSUPPORTED: the test is not supported on this platform
1996 * ERROR: the testsuite detected an error
1998 * WARNING: the testsuite detected a possible problem
2000 It is normal for some tests to report unexpected failures. At the
2001 current time the testing harness does not allow fine grained control
2002 over whether or not a test is expected to fail. This problem should be
2003 fixed in future releases.
2005 6.5 Submitting test results
2006 ===========================
2008 If you want to report the results to the GCC project, use the
2009 `contrib/test_summary' shell script. Start it in the OBJDIR with
2011 SRCDIR/contrib/test_summary -p your_commentary.txt \
2012 -m gcc-testresults@gcc.gnu.org |sh
2014 This script uses the `Mail' program to send the results, so make
2015 sure it is in your `PATH'. The file `your_commentary.txt' is prepended
2016 to the testsuite summary and should contain any special remarks you
2017 have on your results or your build environment. Please do not edit the
2018 testsuite result block or the subject line, as these messages may be
2019 automatically processed.
2022 File: gccinstall.info, Node: Final install, Prev: Testing, Up: Installing GCC
2024 7 Installing GCC: Final installation
2025 ************************************
2027 Now that GCC has been built (and optionally tested), you can install
2029 cd OBJDIR; make install
2031 We strongly recommend to install into a target directory where there
2032 is no previous version of GCC present. Also, the GNAT runtime should
2033 not be stripped, as this would break certain features of the debugger
2034 that depend on this debugging information (catching Ada exceptions for
2037 That step completes the installation of GCC; user level binaries can
2038 be found in `PREFIX/bin' where PREFIX is the value you specified with
2039 the `--prefix' to configure (or `/usr/local' by default). (If you
2040 specified `--bindir', that directory will be used instead; otherwise,
2041 if you specified `--exec-prefix', `EXEC-PREFIX/bin' will be used.)
2042 Headers for the C++ and Java libraries are installed in
2043 `PREFIX/include'; libraries in `LIBDIR' (normally `PREFIX/lib');
2044 internal parts of the compiler in `LIBDIR/gcc' and `LIBEXECDIR/gcc';
2045 documentation in info format in `INFODIR' (normally `PREFIX/info').
2047 When installing cross-compilers, GCC's executables are not only
2048 installed into `BINDIR', that is, `EXEC-PREFIX/bin', but additionally
2049 into `EXEC-PREFIX/TARGET-ALIAS/bin', if that directory exists.
2050 Typically, such "tooldirs" hold target-specific binutils, including
2051 assembler and linker.
2053 Installation into a temporary staging area or into a `chroot' jail
2054 can be achieved with the command
2056 make DESTDIR=PATH-TO-ROOTDIR install
2058 where PATH-TO-ROOTDIR is the absolute path of a directory relative to
2059 which all installation paths will be interpreted. Note that the
2060 directory specified by `DESTDIR' need not exist yet; it will be created
2063 There is a subtle point with tooldirs and `DESTDIR': If you relocate
2064 a cross-compiler installation with e.g. `DESTDIR=ROOTDIR', then the
2065 directory `ROOTDIR/EXEC-PREFIX/TARGET-ALIAS/bin' will be filled with
2066 duplicated GCC executables only if it already exists, it will not be
2067 created otherwise. This is regarded as a feature, not as a bug,
2068 because it gives slightly more control to the packagers using the
2071 If you are bootstrapping a released version of GCC then please
2072 quickly review the build status page for your release, available from
2073 `http://gcc.gnu.org/buildstat.html'. If your system is not listed for
2074 the version of GCC that you built, send a note to <gcc@gcc.gnu.org>
2075 indicating that you successfully built and installed GCC. Include the
2076 following information:
2078 * Output from running `SRCDIR/config.guess'. Do not send that file
2079 itself, just the one-line output from running it.
2081 * The output of `gcc -v' for your newly installed `gcc'. This tells
2082 us which version of GCC you built and the options you passed to
2085 * Whether you enabled all languages or a subset of them. If you
2086 used a full distribution then this information is part of the
2087 configure options in the output of `gcc -v', but if you downloaded
2088 the "core" compiler plus additional front ends then it isn't
2089 apparent which ones you built unless you tell us about it.
2091 * If the build was for GNU/Linux, also include:
2092 * The distribution name and version (e.g., Red Hat 7.1 or
2093 Debian 2.2.3); this information should be available from
2096 * The version of the Linux kernel, available from `uname
2097 --version' or `uname -a'.
2099 * The version of glibc you used; for RPM-based systems like Red
2100 Hat, Mandrake, and SuSE type `rpm -q glibc' to get the glibc
2101 version, and on systems like Debian and Progeny use `dpkg -l
2103 For other systems, you can include similar information if you
2104 think it is relevant.
2106 * Any other information that you think would be useful to people
2107 building GCC on the same configuration. The new entry in the
2108 build status list will include a link to the archived copy of your
2111 We'd also like to know if the *Note host/target specific
2112 installation notes: Specific. didn't include your host/target
2113 information or if that information is incomplete or out of date. Send
2114 a note to <gcc@gcc.gnu.org> detailing how the information should be
2117 If you find a bug, please report it following the bug reporting
2120 If you want to print the GCC manuals, do `cd OBJDIR; make dvi'. You
2121 will need to have `texi2dvi' (version at least 4.7) and TeX installed.
2122 This creates a number of `.dvi' files in subdirectories of `OBJDIR';
2123 these may be converted for printing with programs such as `dvips'.
2124 Alternately, by using `make pdf' in place of `make dvi', you can create
2125 documentation in the form of `.pdf' files; this requires `texi2pdf',
2126 which is included with Texinfo version 4.8 and later. You can also buy
2127 printed manuals from the Free Software Foundation, though such manuals
2128 may not be for the most recent version of GCC.
2130 If you would like to generate online HTML documentation, do `cd
2131 OBJDIR; make html' and HTML will be generated for the gcc manuals in
2135 File: gccinstall.info, Node: Binaries, Next: Specific, Prev: Installing GCC, Up: Top
2137 8 Installing GCC: Binaries
2138 **************************
2140 We are often asked about pre-compiled versions of GCC. While we
2141 cannot provide these for all platforms, below you'll find links to
2142 binaries for various platforms where creating them by yourself is not
2143 easy due to various reasons.
2145 Please note that we did not create these binaries, nor do we support
2146 them. If you have any problems installing them, please contact their
2150 * Bull's Freeware and Shareware Archive for AIX;
2152 * Hudson Valley Community College Open Source Software for IBM
2155 * AIX 5L and 6 Open Source Packages.
2159 * Renesas H8/300[HS]--GNU Development Tools for the Renesas
2163 * HP-UX Porting Center;
2165 * Binaries for HP-UX 11.00 at Aachen University of Technology.
2167 * Motorola 68HC11/68HC12--GNU Development Tools for the Motorola
2170 * SCO OpenServer/Unixware.
2172 * Solaris 2 (SPARC, Intel)--Sunfreeware.
2174 * SGI--SGI Freeware.
2176 * Microsoft Windows:
2177 * The Cygwin project;
2179 * The MinGW project.
2181 * The Written Word offers binaries for AIX 4.3.3, 5.1 and 5.2, IRIX
2182 6.5, Tru64 UNIX 4.0D and 5.1, GNU/Linux (i386), HP-UX 10.20,
2183 11.00, and 11.11, and Solaris/SPARC 2.5.1, 2.6, 7, 8, 9 and 10.
2185 * OpenPKG offers binaries for quite a number of platforms.
2187 * The GFortran Wiki has links to GNU Fortran binaries for several
2190 In addition to those specific offerings, you can get a binary
2191 distribution CD-ROM from the Free Software Foundation. It contains
2192 binaries for a number of platforms, and includes not only GCC, but
2193 other stuff as well. The current CD does not contain the latest
2194 version of GCC, but it should allow bootstrapping the compiler. An
2195 updated version of that disk is in the works.
2198 File: gccinstall.info, Node: Specific, Next: Old, Prev: Binaries, Up: Top
2200 9 Host/target specific installation notes for GCC
2201 *************************************************
2203 Please read this document carefully _before_ installing the GNU
2204 Compiler Collection on your machine.
2206 Note that this list of install notes is _not_ a list of supported
2207 hosts or targets. Not all supported hosts and targets are listed here,
2208 only the ones that require host-specific or target-specific information
2214 This section contains general configuration information for all
2215 alpha-based platforms using ELF (in particular, ignore this section for
2216 DEC OSF/1, Digital UNIX and Tru64 UNIX). In addition to reading this
2217 section, please read all other sections that match your target.
2219 We require binutils 2.11.2 or newer. Previous binutils releases had
2220 a number of problems with DWARF 2 debugging information, not the least
2221 of which is incorrect linking of shared libraries.
2226 Systems using processors that implement the DEC Alpha architecture and
2227 are running the DEC/Compaq Unix (DEC OSF/1, Digital UNIX, or Compaq
2228 Tru64 UNIX) operating system, for example the DEC Alpha AXP systems.
2230 As of GCC 3.2, versions before `alpha*-dec-osf4' are no longer
2231 supported. (These are the versions which identify themselves as DEC
2234 In Digital Unix V4.0, virtual memory exhausted bootstrap failures
2235 may be fixed by configuring with `--with-gc=simple', reconfiguring
2236 Kernel Virtual Memory and Swap parameters per the `/usr/sbin/sys_check'
2237 Tuning Suggestions, or applying the patch in
2238 `http://gcc.gnu.org/ml/gcc/2002-08/msg00822.html'.
2240 In Tru64 UNIX V5.1, Compaq introduced a new assembler that does not
2241 currently (2001-06-13) work with `mips-tfile'. As a workaround, we
2242 need to use the old assembler, invoked via the barely documented
2243 `-oldas' option. To bootstrap GCC, you either need to use the Compaq C
2246 % CC=cc SRCDIR/configure [OPTIONS] [TARGET]
2248 or you can use a copy of GCC 2.95.3 or higher built on Tru64 UNIX
2251 % CC=gcc -Wa,-oldas SRCDIR/configure [OPTIONS] [TARGET]
2253 As of GNU binutils 2.11.2, neither GNU `as' nor GNU `ld' are
2254 supported on Tru64 UNIX, so you must not configure GCC with
2255 `--with-gnu-as' or `--with-gnu-ld'.
2257 GCC writes a `.verstamp' directive to the assembler output file
2258 unless it is built as a cross-compiler. It gets the version to use from
2259 the system header file `/usr/include/stamp.h'. If you install a new
2260 version of DEC Unix, you should rebuild GCC to pick up the new version
2263 `make compare' may fail on old versions of DEC Unix unless you add
2264 `-save-temps' to `BOOT_CFLAGS'. On these systems, the name of the
2265 assembler input file is stored in the object file, and that makes
2266 comparison fail if it differs between the `stage1' and `stage2'
2267 compilations. The option `-save-temps' forces a fixed name to be used
2268 for the assembler input file, instead of a randomly chosen name in
2269 `/tmp'. Do not add `-save-temps' unless the comparisons fail without
2270 that option. If you add `-save-temps', you will have to manually
2271 delete the `.i' and `.s' files after each series of compilations.
2273 GCC now supports both the native (ECOFF) debugging format used by DBX
2274 and GDB and an encapsulated STABS format for use only with GDB. See the
2275 discussion of the `--with-stabs' option of `configure' above for more
2276 information on these formats and how to select them.
2278 There is a bug in DEC's assembler that produces incorrect line
2279 numbers for ECOFF format when the `.align' directive is used. To work
2280 around this problem, GCC will not emit such alignment directives while
2281 writing ECOFF format debugging information even if optimization is
2282 being performed. Unfortunately, this has the very undesirable
2283 side-effect that code addresses when `-O' is specified are different
2284 depending on whether or not `-g' is also specified.
2286 To avoid this behavior, specify `-gstabs+' and use GDB instead of
2287 DBX. DEC is now aware of this problem with the assembler and hopes to
2288 provide a fix shortly.
2293 Argonaut ARC processor. This configuration is intended for embedded
2299 ARM-family processors. Subtargets that use the ELF object format
2300 require GNU binutils 2.13 or newer. Such subtargets include:
2301 `arm-*-freebsd', `arm-*-netbsdelf', `arm-*-*linux' and `arm-*-rtems'.
2306 ARM-family processors. Note that there are two different varieties of
2307 PE format subtarget supported: `arm-wince-pe' and `arm-pe' as well as a
2308 standard COFF target `arm-*-coff'.
2313 ARM-family processors. These targets support the AOUT file format:
2314 `arm-*-aout', `arm-*-netbsd'.
2319 ATMEL AVR-family micro controllers. These are used in embedded
2320 applications. There are no standard Unix configurations. *Note AVR
2321 Options: (gcc)AVR Options, for the list of supported MCU types.
2323 Use `configure --target=avr --enable-languages="c"' to configure GCC.
2325 Further installation notes and other useful information about AVR
2326 tools can also be obtained from:
2328 * http://www.nongnu.org/avr/
2330 * http://home.overta.ru/users/denisc/
2332 * http://www.amelek.gda.pl/avr/
2334 We _strongly_ recommend using binutils 2.13 or newer.
2336 The following error:
2337 Error: register required
2339 indicates that you should upgrade to a newer version of the binutils.
2344 The Blackfin processor, an Analog Devices DSP. *Note Blackfin Options:
2345 (gcc)Blackfin Options,
2347 More information, and a version of binutils with support for this
2348 processor, is available at `http://blackfin.uclinux.org'
2353 CRIS is the CPU architecture in Axis Communications ETRAX
2354 system-on-a-chip series. These are used in embedded applications.
2356 *Note CRIS Options: (gcc)CRIS Options, for a list of CRIS-specific
2359 There are a few different CRIS targets:
2361 Mainly for monolithic embedded systems. Includes a multilib for
2362 the `v10' core used in `ETRAX 100 LX'.
2364 `cris-axis-linux-gnu'
2365 A GNU/Linux port for the CRIS architecture, currently targeting
2366 `ETRAX 100 LX' by default.
2368 For `cris-axis-elf' you need binutils 2.11 or newer. For
2369 `cris-axis-linux-gnu' you need binutils 2.12 or newer.
2371 Pre-packaged tools can be obtained from
2372 `ftp://ftp.axis.com/pub/axis/tools/cris/compiler-kit/'. More
2373 information about this platform is available at
2374 `http://developer.axis.com/'.
2379 The CRX CompactRISC architecture is a low-power 32-bit architecture with
2380 fast context switching and architectural extensibility features.
2382 *Note CRX Options: (gcc)CRX Options,
2384 Use `configure --target=crx-elf --enable-languages=c,c++' to
2385 configure GCC for building a CRX cross-compiler. The option
2386 `--target=crx-elf' is also used to build the `newlib' C library for CRX.
2388 It is also possible to build libstdc++-v3 for the CRX architecture.
2389 This needs to be done in a separate step with the following configure
2390 settings: `gcc/libstdc++-v3/configure --host=crx-elf --with-newlib
2391 --enable-sjlj-exceptions --enable-cxx-flags='-fexceptions -frtti''
2396 Please have a look at the binaries page.
2398 You cannot install GCC by itself on MSDOS; it will not compile under
2399 any MSDOS compiler except itself. You need to get the complete
2400 compilation package DJGPP, which includes binaries as well as sources,
2401 and includes all the necessary compilation tools and libraries.
2406 The version of binutils installed in `/usr/bin' probably works with
2407 this release of GCC. However, on FreeBSD 4, bootstrapping against the
2408 latest FSF binutils is known to improve overall testsuite results; and,
2409 on FreeBSD/alpha, using binutils 2.14 or later is required to build
2412 Support for FreeBSD 1 was discontinued in GCC 3.2.
2414 Support for FreeBSD 2 will be discontinued after GCC 3.4. The
2415 following was true for GCC 3.1 but the current status is unknown. For
2416 FreeBSD 2 or any mutant a.out versions of FreeBSD 3: All configuration
2417 support and files as shipped with GCC 2.95 are still in place. FreeBSD
2418 2.2.7 has been known to bootstrap completely; however, it is unknown
2419 which version of binutils was used (it is assumed that it was the
2420 system copy in `/usr/bin') and C++ EH failures were noted.
2422 For FreeBSD using the ELF file format: DWARF 2 debugging is now the
2423 default for all CPU architectures. It had been the default on
2424 FreeBSD/alpha since its inception. You may use `-gstabs' instead of
2425 `-g', if you really want the old debugging format. There are no known
2426 issues with mixing object files and libraries with different debugging
2427 formats. Otherwise, this release of GCC should now match more of the
2428 configuration used in the stock FreeBSD configuration of GCC. In
2429 particular, `--enable-threads' is now configured by default. However,
2430 as a general user, do not attempt to replace the system compiler with
2431 this release. Known to bootstrap and check with good results on
2432 FreeBSD 4.9-STABLE and 5-CURRENT. In the past, known to bootstrap and
2433 check with good results on FreeBSD 3.0, 3.4, 4.0, 4.2, 4.3, 4.4, 4.5,
2436 In principle, `--enable-threads' is now compatible with
2437 `--enable-libgcj' on FreeBSD. However, it has only been built and
2438 tested on `i386-*-freebsd[45]' and `alpha-*-freebsd[45]'. The static
2439 library may be incorrectly built (symbols are missing at link time).
2440 There is a rare timing-based startup hang (probably involves an
2441 assumption about the thread library). Multi-threaded boehm-gc
2442 (required for libjava) exposes severe threaded signal-handling bugs on
2443 FreeBSD before 4.5-RELEASE. Other CPU architectures supported by
2444 FreeBSD will require additional configuration tuning in, at the very
2445 least, both boehm-gc and libffi.
2447 Shared `libgcc_s.so' is now built and installed by default.
2452 Renesas H8/300 series of processors.
2454 Please have a look at the binaries page.
2456 The calling convention and structure layout has changed in release
2457 2.6. All code must be recompiled. The calling convention now passes
2458 the first three arguments in function calls in registers. Structures
2459 are no longer a multiple of 2 bytes.
2464 Support for HP-UX version 9 and older was discontinued in GCC 3.4.
2466 We require using gas/binutils on all hppa platforms. Version 2.19 or
2467 later is recommended.
2469 It may be helpful to configure GCC with the `--with-gnu-as' and
2470 `--with-as=...' options to ensure that GCC can find GAS.
2472 The HP assembler should not be used with GCC. It is rarely tested
2473 and may not work. It shouldn't be used with any languages other than C
2474 due to its many limitations.
2476 Specifically, `-g' does not work (HP-UX uses a peculiar debugging
2477 format which GCC does not know about). It also inserts timestamps into
2478 each object file it creates, causing the 3-stage comparison test to
2479 fail during a bootstrap. You should be able to continue by saying
2480 `make all-host all-target' after getting the failure from `make'.
2482 Various GCC features are not supported. For example, it does not
2483 support weak symbols or alias definitions. As a result, explicit
2484 template instantiations are required when using C++. This makes it
2485 difficult if not impossible to build many C++ applications.
2487 There are two default scheduling models for instructions. These are
2488 PROCESSOR_7100LC and PROCESSOR_8000. They are selected from the pa-risc
2489 architecture specified for the target machine when configuring.
2490 PROCESSOR_8000 is the default. PROCESSOR_7100LC is selected when the
2491 target is a `hppa1*' machine.
2493 The PROCESSOR_8000 model is not well suited to older processors.
2494 Thus, it is important to completely specify the machine architecture
2495 when configuring if you want a model other than PROCESSOR_8000. The
2496 macro TARGET_SCHED_DEFAULT can be defined in BOOT_CFLAGS if a different
2497 default scheduling model is desired.
2499 As of GCC 4.0, GCC uses the UNIX 95 namespace for HP-UX 10.10
2500 through 11.00, and the UNIX 98 namespace for HP-UX 11.11 and later.
2501 This namespace change might cause problems when bootstrapping with an
2502 earlier version of GCC or the HP compiler as essentially the same
2503 namespace is required for an entire build. This problem can be avoided
2504 in a number of ways. With HP cc, `UNIX_STD' can be set to `95' or
2505 `98'. Another way is to add an appropriate set of predefines to `CC'.
2506 The description for the `munix=' option contains a list of the
2507 predefines used with each standard.
2509 More specific information to `hppa*-hp-hpux*' targets follows.
2514 For hpux10.20, we _highly_ recommend you pick up the latest sed patch
2515 `PHCO_19798' from HP. HP has two sites which provide patches free of
2518 * `http://us.itrc.hp.com/service/home/home.do' US, Canada,
2519 Asia-Pacific, and Latin-America.
2521 * `http://europe.itrc.hp.com/service/home/home.do' Europe.
2523 The C++ ABI has changed incompatibly in GCC 4.0. COMDAT subspaces
2524 are used for one-only code and data. This resolves many of the previous
2525 problems in using C++ on this target. However, the ABI is not
2526 compatible with the one implemented under HP-UX 11 using secondary
2532 GCC 3.0 and up support HP-UX 11. GCC 2.95.x is not supported and cannot
2533 be used to compile GCC 3.0 and up.
2535 The libffi and libjava libraries haven't been ported to 64-bit HP-UX
2538 Refer to binaries for information about obtaining precompiled GCC
2539 binaries for HP-UX. Precompiled binaries must be obtained to build the
2540 Ada language as it can't be bootstrapped using C. Ada is only
2541 available for the 32-bit PA-RISC runtime.
2543 Starting with GCC 3.4 an ISO C compiler is required to bootstrap.
2544 The bundled compiler supports only traditional C; you will need either
2545 HP's unbundled compiler, or a binary distribution of GCC.
2547 It is possible to build GCC 3.3 starting with the bundled HP
2548 compiler, but the process requires several steps. GCC 3.3 can then be
2549 used to build later versions. The fastjar program contains ISO C code
2550 and can't be built with the HP bundled compiler. This problem can be
2551 avoided by not building the Java language. For example, use the
2552 `--enable-languages="c,c++,f77,objc"' option in your configure command.
2554 There are several possible approaches to building the distribution.
2555 Binutils can be built first using the HP tools. Then, the GCC
2556 distribution can be built. The second approach is to build GCC first
2557 using the HP tools, then build binutils, then rebuild GCC. There have
2558 been problems with various binary distributions, so it is best not to
2559 start from a binary distribution.
2561 On 64-bit capable systems, there are two distinct targets. Different
2562 installation prefixes must be used if both are to be installed on the
2563 same system. The `hppa[1-2]*-hp-hpux11*' target generates code for the
2564 32-bit PA-RISC runtime architecture and uses the HP linker. The
2565 `hppa64-hp-hpux11*' target generates 64-bit code for the PA-RISC 2.0
2568 The script config.guess now selects the target type based on the
2569 compiler detected during configuration. You must define `PATH' or `CC'
2570 so that configure finds an appropriate compiler for the initial
2571 bootstrap. When `CC' is used, the definition should contain the
2572 options that are needed whenever `CC' is used.
2574 Specifically, options that determine the runtime architecture must be
2575 in `CC' to correctly select the target for the build. It is also
2576 convenient to place many other compiler options in `CC'. For example,
2577 `CC="cc -Ac +DA2.0W -Wp,-H16376 -D_CLASSIC_TYPES -D_HPUX_SOURCE"' can
2578 be used to bootstrap the GCC 3.3 branch with the HP compiler in 64-bit
2579 K&R/bundled mode. The `+DA2.0W' option will result in the automatic
2580 selection of the `hppa64-hp-hpux11*' target. The macro definition
2581 table of cpp needs to be increased for a successful build with the HP
2582 compiler. _CLASSIC_TYPES and _HPUX_SOURCE need to be defined when
2583 building with the bundled compiler, or when using the `-Ac' option.
2584 These defines aren't necessary with `-Ae'.
2586 It is best to explicitly configure the `hppa64-hp-hpux11*' target
2587 with the `--with-ld=...' option. This overrides the standard search
2588 for ld. The two linkers supported on this target require different
2589 commands. The default linker is determined during configuration. As a
2590 result, it's not possible to switch linkers in the middle of a GCC
2591 build. This has been reported to sometimes occur in unified builds of
2594 A recent linker patch must be installed for the correct operation of
2595 GCC 3.3 and later. `PHSS_26559' and `PHSS_24304' are the oldest linker
2596 patches that are known to work. They are for HP-UX 11.00 and 11.11,
2597 respectively. `PHSS_24303', the companion to `PHSS_24304', might be
2598 usable but it hasn't been tested. These patches have been superseded.
2599 Consult the HP patch database to obtain the currently recommended
2600 linker patch for your system.
2602 The patches are necessary for the support of weak symbols on the
2603 32-bit port, and for the running of initializers and finalizers. Weak
2604 symbols are implemented using SOM secondary definition symbols. Prior
2605 to HP-UX 11, there are bugs in the linker support for secondary symbols.
2606 The patches correct a problem of linker core dumps creating shared
2607 libraries containing secondary symbols, as well as various other
2608 linking issues involving secondary symbols.
2610 GCC 3.3 uses the ELF DT_INIT_ARRAY and DT_FINI_ARRAY capabilities to
2611 run initializers and finalizers on the 64-bit port. The 32-bit port
2612 uses the linker `+init' and `+fini' options for the same purpose. The
2613 patches correct various problems with the +init/+fini options,
2614 including program core dumps. Binutils 2.14 corrects a problem on the
2615 64-bit port resulting from HP's non-standard use of the .init and .fini
2616 sections for array initializers and finalizers.
2618 Although the HP and GNU linkers are both supported for the
2619 `hppa64-hp-hpux11*' target, it is strongly recommended that the HP
2620 linker be used for link editing on this target.
2622 At this time, the GNU linker does not support the creation of long
2623 branch stubs. As a result, it can't successfully link binaries
2624 containing branch offsets larger than 8 megabytes. In addition, there
2625 are problems linking shared libraries, linking executables with
2626 `-static', and with dwarf2 unwind and exception support. It also
2627 doesn't provide stubs for internal calls to global functions in shared
2628 libraries, so these calls can't be overloaded.
2630 The HP dynamic loader does not support GNU symbol versioning, so
2631 symbol versioning is not supported. It may be necessary to disable
2632 symbol versioning with `--disable-symvers' when using GNU ld.
2634 POSIX threads are the default. The optional DCE thread library is
2635 not supported, so `--enable-threads=dce' does not work.
2640 Versions of libstdc++-v3 starting with 3.2.1 require bug fixes present
2641 in glibc 2.2.5 and later. More information is available in the
2642 libstdc++-v3 documentation.
2647 As of GCC 3.3, binutils 2.13.1 or later is required for this platform.
2648 See bug 10877 for more information.
2650 If you receive Signal 11 errors when building on GNU/Linux, then it
2651 is possible you have a hardware problem. Further information on this
2652 can be found on www.bitwizard.nl.
2657 Use this for Solaris 10 or later on x86 and x86-64 systems. This
2658 configuration is supported by GCC 4.0 and later versions only.
2660 It is recommended that you configure GCC to use the GNU assembler in
2661 `/usr/sfw/bin/gas' but the Sun linker, using the options `--with-gnu-as
2662 --with-as=/usr/sfw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld'.
2667 IA-64 processor (also known as IPF, or Itanium Processor Family)
2670 If you are using the installed system libunwind library with
2671 `--with-system-libunwind', then you must use libunwind 0.98 or later.
2673 None of the following versions of GCC has an ABI that is compatible
2674 with any of the other versions in this list, with the exception that
2675 Red Hat 2.96 and Trillian 000171 are compatible with each other: 3.1,
2676 3.0.2, 3.0.1, 3.0, Red Hat 2.96, and Trillian 000717. This primarily
2677 affects C++ programs and programs that create shared libraries. GCC
2678 3.1 or later is recommended for compiling linux, the kernel. As of
2679 version 3.1 GCC is believed to be fully ABI compliant, and hence no
2680 more major ABI changes are expected.
2685 Building GCC on this target requires the GNU Assembler. The bundled HP
2686 assembler will not work. To prevent GCC from using the wrong assembler,
2687 the option `--with-gnu-as' may be necessary.
2689 The GCC libunwind library has not been ported to HPUX. This means
2690 that for GCC versions 3.2.3 and earlier, `--enable-libunwind-exceptions'
2691 is required to build GCC. For GCC 3.3 and later, this is the default.
2692 For gcc 3.4.3 and later, `--enable-libunwind-exceptions' is removed and
2693 the system libunwind library will always be used.
2698 Support for AIX version 3 and older was discontinued in GCC 3.4.
2700 "out of memory" bootstrap failures may indicate a problem with
2701 process resource limits (ulimit). Hard limits are configured in the
2702 `/etc/security/limits' system configuration file.
2704 To speed up the configuration phases of bootstrapping and installing
2705 GCC, one may use GNU Bash instead of AIX `/bin/sh', e.g.,
2707 % CONFIG_SHELL=/opt/freeware/bin/bash
2708 % export CONFIG_SHELL
2710 and then proceed as described in the build instructions, where we
2711 strongly recommend specifying an absolute path to invoke
2714 Because GCC on AIX is built as a 32-bit executable by default,
2715 (although it can generate 64-bit programs) the GMP and MPFR libraries
2716 required by gfortran must be 32-bit libraries. Building GMP and MPFR
2717 as static archive libraries works better than shared libraries.
2719 Errors involving `alloca' when building GCC generally are due to an
2720 incorrect definition of `CC' in the Makefile or mixing files compiled
2721 with the native C compiler and GCC. During the stage1 phase of the
2722 build, the native AIX compiler *must* be invoked as `cc' (not `xlc').
2723 Once `configure' has been informed of `xlc', one needs to use `make
2724 distclean' to remove the configure cache files and ensure that `CC'
2725 environment variable does not provide a definition that will confuse
2726 `configure'. If this error occurs during stage2 or later, then the
2727 problem most likely is the version of Make (see above).
2729 The native `as' and `ld' are recommended for bootstrapping on AIX 4
2730 and required for bootstrapping on AIX 5L. The GNU Assembler reports
2731 that it supports WEAK symbols on AIX 4, which causes GCC to try to
2732 utilize weak symbol functionality although it is not supported. The GNU
2733 Assembler and Linker do not support AIX 5L sufficiently to bootstrap
2734 GCC. The native AIX tools do interoperate with GCC.
2736 Building `libstdc++.a' requires a fix for an AIX Assembler bug APAR
2737 IY26685 (AIX 4.3) or APAR IY25528 (AIX 5.1). It also requires a fix
2738 for another AIX Assembler bug and a co-dependent AIX Archiver fix
2739 referenced as APAR IY53606 (AIX 5.2) or a APAR IY54774 (AIX 5.1)
2741 `libstdc++' in GCC 3.4 increments the major version number of the
2742 shared object and GCC installation places the `libstdc++.a' shared
2743 library in a common location which will overwrite the and GCC 3.3
2744 version of the shared library. Applications either need to be
2745 re-linked against the new shared library or the GCC 3.1 and GCC 3.3
2746 versions of the `libstdc++' shared object needs to be available to the
2747 AIX runtime loader. The GCC 3.1 `libstdc++.so.4', if present, and GCC
2748 3.3 `libstdc++.so.5' shared objects can be installed for runtime
2749 dynamic loading using the following steps to set the `F_LOADONLY' flag
2750 in the shared object for _each_ multilib `libstdc++.a' installed:
2752 Extract the shared objects from the currently installed
2753 `libstdc++.a' archive:
2754 % ar -x libstdc++.a libstdc++.so.4 libstdc++.so.5
2756 Enable the `F_LOADONLY' flag so that the shared object will be
2757 available for runtime dynamic loading, but not linking:
2758 % strip -e libstdc++.so.4 libstdc++.so.5
2760 Archive the runtime-only shared object in the GCC 3.4 `libstdc++.a'
2762 % ar -q libstdc++.a libstdc++.so.4 libstdc++.so.5
2764 Linking executables and shared libraries may produce warnings of
2765 duplicate symbols. The assembly files generated by GCC for AIX always
2766 have included multiple symbol definitions for certain global variable
2767 and function declarations in the original program. The warnings should
2768 not prevent the linker from producing a correct library or runnable
2771 AIX 4.3 utilizes a "large format" archive to support both 32-bit and
2772 64-bit object modules. The routines provided in AIX 4.3.0 and AIX 4.3.1
2773 to parse archive libraries did not handle the new format correctly.
2774 These routines are used by GCC and result in error messages during
2775 linking such as "not a COFF file". The version of the routines shipped
2776 with AIX 4.3.1 should work for a 32-bit environment. The `-g' option
2777 of the archive command may be used to create archives of 32-bit objects
2778 using the original "small format". A correct version of the routines
2779 is shipped with AIX 4.3.2 and above.
2781 Some versions of the AIX binder (linker) can fail with a relocation
2782 overflow severe error when the `-bbigtoc' option is used to link
2783 GCC-produced object files into an executable that overflows the TOC. A
2784 fix for APAR IX75823 (OVERFLOW DURING LINK WHEN USING GCC AND -BBIGTOC)
2785 is available from IBM Customer Support and from its
2786 techsupport.services.ibm.com website as PTF U455193.
2788 The AIX 4.3.2.1 linker (bos.rte.bind_cmds Level 4.3.2.1) will dump
2789 core with a segmentation fault when invoked by any version of GCC. A
2790 fix for APAR IX87327 is available from IBM Customer Support and from its
2791 techsupport.services.ibm.com website as PTF U461879. This fix is
2792 incorporated in AIX 4.3.3 and above.
2794 The initial assembler shipped with AIX 4.3.0 generates incorrect
2795 object files. A fix for APAR IX74254 (64BIT DISASSEMBLED OUTPUT FROM
2796 COMPILER FAILS TO ASSEMBLE/BIND) is available from IBM Customer Support
2797 and from its techsupport.services.ibm.com website as PTF U453956. This
2798 fix is incorporated in AIX 4.3.1 and above.
2800 AIX provides National Language Support (NLS). Compilers and
2801 assemblers use NLS to support locale-specific representations of
2802 various data formats including floating-point numbers (e.g., `.' vs
2803 `,' for separating decimal fractions). There have been problems
2804 reported where GCC does not produce the same floating-point formats
2805 that the assembler expects. If one encounters this problem, set the
2806 `LANG' environment variable to `C' or `En_US'.
2808 By default, GCC for AIX 4.1 and above produces code that can be used
2809 on both Power or PowerPC processors.
2811 A default can be specified with the `-mcpu=CPU_TYPE' switch and
2812 using the configure option `--with-cpu-CPU_TYPE'.
2817 Vitesse IQ2000 processors. These are used in embedded applications.
2818 There are no standard Unix configurations.
2823 Renesas M32C processor. This configuration is intended for embedded
2829 Renesas M32R processor. This configuration is intended for embedded
2835 Motorola 68HC11 family micro controllers. These are used in embedded
2836 applications. There are no standard Unix configurations.
2841 Motorola 68HC12 family micro controllers. These are used in embedded
2842 applications. There are no standard Unix configurations.
2847 By default, `m68k-*-aout', `m68k-*-coff*', `m68k-*-elf*',
2848 `m68k-*-rtems', `m68k-*-uclinux' and `m68k-*-linux' build libraries
2849 for both M680x0 and ColdFire processors. If you only need the M680x0
2850 libraries, you can omit the ColdFire ones by passing `--with-arch=m68k'
2851 to `configure'. Alternatively, you can omit the M680x0 libraries by
2852 passing `--with-arch=cf' to `configure'. These targets default to 5206
2853 or 5475 code as appropriate for the target system when configured with
2854 `--with-arch=cf' and 68020 code otherwise.
2856 The `m68k-*-netbsd' and `m68k-*-openbsd' targets also support the
2857 `--with-arch' option. They will generate ColdFire CFV4e code when
2858 configured with `--with-arch=cf' and 68020 code otherwise.
2860 You can override the default processors listed above by configuring
2861 with `--with-cpu=TARGET'. This TARGET can either be a `-mcpu' argument
2862 or one of the following values: `m68000', `m68010', `m68020', `m68030',
2863 `m68040', `m68060', `m68020-40' and `m68020-60'.
2868 GCC 4.3 changed the uClinux configuration so that it uses the
2869 `m68k-linux-gnu' ABI rather than the `m68k-elf' ABI. It also added
2870 improved support for C++ and flat shared libraries, both of which were
2871 ABI changes. However, you can still use the original ABI by
2872 configuring for `m68k-uclinuxoldabi' or `m68k-VENDOR-uclinuxoldabi'.
2877 If on a MIPS system you get an error message saying "does not have gp
2878 sections for all it's [sic] sectons [sic]", don't worry about it. This
2879 happens whenever you use GAS with the MIPS linker, but there is not
2880 really anything wrong, and it is okay to use the output file. You can
2881 stop such warnings by installing the GNU linker.
2883 It would be nice to extend GAS to produce the gp tables, but they are
2884 optional, and there should not be a warning about their absence.
2886 The libstdc++ atomic locking routines for MIPS targets requires MIPS
2887 II and later. A patch went in just after the GCC 3.3 release to make
2888 `mips*-*-*' use the generic implementation instead. You can also
2889 configure for `mipsel-elf' as a workaround. The `mips*-*-linux*'
2890 target continues to use the MIPS II routines. More work on this is
2891 expected in future releases.
2893 The built-in `__sync_*' functions are available on MIPS II and later
2894 systems and others that support the `ll', `sc' and `sync' instructions.
2895 This can be overridden by passing `--with-llsc' or `--without-llsc'
2896 when configuring GCC. Since the Linux kernel emulates these
2897 instructions if they are missing, the default for `mips*-*-linux*'
2898 targets is `--with-llsc'. The `--with-llsc' and `--without-llsc'
2899 configure options may be overridden at compile time by passing the
2900 `-mllsc' or `-mno-llsc' options to the compiler.
2902 MIPS systems check for division by zero (unless
2903 `-mno-check-zero-division' is passed to the compiler) by generating
2904 either a conditional trap or a break instruction. Using trap results
2905 in smaller code, but is only supported on MIPS II and later. Also,
2906 some versions of the Linux kernel have a bug that prevents trap from
2907 generating the proper signal (`SIGFPE'). To enable the use of break,
2908 use the `--with-divide=breaks' `configure' option when configuring GCC.
2909 The default is to use traps on systems that support them.
2911 Cross-compilers for the MIPS as target using the MIPS assembler
2912 currently do not work, because the auxiliary programs `mips-tdump.c'
2913 and `mips-tfile.c' can't be compiled on anything but a MIPS. It does
2914 work to cross compile for a MIPS if you use the GNU assembler and
2917 The assembler from GNU binutils 2.17 and earlier has a bug in the way
2918 it sorts relocations for REL targets (o32, o64, EABI). This can cause
2919 bad code to be generated for simple C++ programs. Also the linker from
2920 GNU binutils versions prior to 2.17 has a bug which causes the runtime
2921 linker stubs in very large programs, like `libgcj.so', to be
2922 incorrectly generated. GNU Binutils 2.18 and later (and snapshots made
2923 after Nov. 9, 2006) should be free from both of these problems.
2928 In order to compile GCC on an SGI running IRIX 5, the `compiler_dev.hdr'
2929 subsystem must be installed from the IDO CD-ROM supplied by SGI. It is
2930 also available for download from
2931 `ftp://ftp.sgi.com/sgi/IRIX5.3/iris-development-option-5.3.tardist'.
2933 If you use the MIPS C compiler to bootstrap, it may be necessary to
2934 increase its table size for switch statements with the `-Wf,-XNg1500'
2935 option. If you use the `-O2' optimization option, you also need to use
2938 To enable debugging under IRIX 5, you must use GNU binutils 2.15 or
2939 later, and use the `--with-gnu-ld' `configure' option when configuring
2940 GCC. You need to use GNU `ar' and `nm', also distributed with GNU
2943 Some users have reported that `/bin/sh' will hang during bootstrap.
2944 This problem can be avoided by running the commands:
2946 % CONFIG_SHELL=/bin/ksh
2947 % export CONFIG_SHELL
2949 before starting the build.
2954 If you are using SGI's MIPSpro `cc' as your bootstrap compiler, you must
2955 ensure that the N32 ABI is in use. To test this, compile a simple C
2956 file with `cc' and then run `file' on the resulting object file. The
2957 output should look like:
2959 test.o: ELF N32 MSB ...
2963 test.o: ELF 32-bit MSB ...
2967 test.o: ELF 64-bit MSB ...
2969 then your version of `cc' uses the O32 or N64 ABI by default. You
2970 should set the environment variable `CC' to `cc -n32' before
2973 If you want the resulting `gcc' to run on old 32-bit systems with
2974 the MIPS R4400 CPU, you need to ensure that only code for the `mips3'
2975 instruction set architecture (ISA) is generated. While GCC 3.x does
2976 this correctly, both GCC 2.95 and SGI's MIPSpro `cc' may change the ISA
2977 depending on the machine where GCC is built. Using one of them as the
2978 bootstrap compiler may result in `mips4' code, which won't run at all
2979 on `mips3'-only systems. For the test program above, you should see:
2981 test.o: ELF N32 MSB mips-3 ...
2985 test.o: ELF N32 MSB mips-4 ...
2987 instead, you should set the environment variable `CC' to `cc -n32
2988 -mips3' or `gcc -mips3' respectively before configuring GCC.
2990 MIPSpro C 7.4 may cause bootstrap failures, due to a bug when
2991 inlining `memcmp'. Either add `-U__INLINE_INTRINSICS' to the `CC'
2992 environment variable as a workaround or upgrade to MIPSpro C 7.4.1m.
2994 GCC on IRIX 6 is usually built to support the N32, O32 and N64 ABIs.
2995 If you build GCC on a system that doesn't have the N64 libraries
2996 installed or cannot run 64-bit binaries, you need to configure with
2997 `--disable-multilib' so GCC doesn't try to use them. This will disable
2998 building the O32 libraries, too. Look for `/usr/lib64/libc.so.1' to
2999 see if you have the 64-bit libraries installed.
3001 To enable debugging for the O32 ABI, you must use GNU `as' from GNU
3002 binutils 2.15 or later. You may also use GNU `ld', but this is not
3003 required and currently causes some problems with Ada.
3005 The `--enable-libgcj' option is disabled by default: IRIX 6 uses a
3006 very low default limit (20480) for the command line length. Although
3007 `libtool' contains a workaround for this problem, at least the N64
3008 `libgcj' is known not to build despite this, running into an internal
3009 error of the native `ld'. A sure fix is to increase this limit
3010 (`ncargs') to its maximum of 262144 bytes. If you have root access,
3011 you can use the `systune' command to do this.
3013 `wchar_t' support in `libstdc++' is not available for old IRIX 6.5.x
3014 releases, x < 19. The problem cannot be autodetected and in order to
3015 build GCC for such targets you need to configure with
3016 `--disable-wchar_t'.
3018 See `http://freeware.sgi.com/' for more information about using GCC
3024 You can specify a default version for the `-mcpu=CPU_TYPE' switch by
3025 using the configure option `--with-cpu-CPU_TYPE'.
3027 You will need binutils 2.15 or newer for a working GCC.
3032 PowerPC running Darwin (Mac OS X kernel).
3034 Pre-installed versions of Mac OS X may not include any developer
3035 tools, meaning that you will not be able to build GCC from source. Tool
3036 binaries are available at
3037 `http://developer.apple.com/darwin/projects/compiler/' (free
3038 registration required).
3040 This version of GCC requires at least cctools-590.36. The
3041 cctools-590.36 package referenced from
3042 `http://gcc.gnu.org/ml/gcc/2006-03/msg00507.html' will not work on
3043 systems older than 10.3.9 (aka darwin7.9.0).
3048 PowerPC system in big endian mode, running System V.4.
3050 powerpc*-*-linux-gnu*
3051 =====================
3053 PowerPC system in big endian mode running Linux.
3058 PowerPC system in big endian mode running NetBSD.
3063 Embedded PowerPC system in big endian mode for use in running under the
3069 Embedded PowerPC system in big endian mode.
3074 PowerPC system in little endian mode, running System V.4.
3079 Embedded PowerPC system in little endian mode for use in running under
3085 Embedded PowerPC system in little endian mode.
3090 S/390 system running GNU/Linux for S/390.
3095 zSeries system (64-bit) running GNU/Linux for zSeries.
3100 zSeries system (64-bit) running TPF. This platform is supported as
3101 cross-compilation target only.
3106 Sun does not ship a C compiler with Solaris 2. To bootstrap and install
3107 GCC you first have to install a pre-built compiler, see the binaries
3110 The Solaris 2 `/bin/sh' will often fail to configure `libstdc++-v3',
3111 `boehm-gc' or `libjava'. We therefore recommend using the following
3112 initial sequence of commands
3114 % CONFIG_SHELL=/bin/ksh
3115 % export CONFIG_SHELL
3117 and proceed as described in the configure instructions. In addition
3118 we strongly recommend specifying an absolute path to invoke
3121 Solaris 2 comes with a number of optional OS packages. Some of these
3122 are needed to use GCC fully, namely `SUNWarc', `SUNWbtool', `SUNWesu',
3123 `SUNWhea', `SUNWlibm', `SUNWsprot', and `SUNWtoo'. If you did not
3124 install all optional packages when installing Solaris 2, you will need
3125 to verify that the packages that GCC needs are installed.
3127 To check whether an optional package is installed, use the `pkginfo'
3128 command. To add an optional package, use the `pkgadd' command. For
3129 further details, see the Solaris 2 documentation.
3131 Trying to use the linker and other tools in `/usr/ucb' to install
3132 GCC has been observed to cause trouble. For example, the linker may
3133 hang indefinitely. The fix is to remove `/usr/ucb' from your `PATH'.
3135 The build process works more smoothly with the legacy Sun tools so,
3136 if you have `/usr/xpg4/bin' in your `PATH', we recommend that you place
3137 `/usr/bin' before `/usr/xpg4/bin' for the duration of the build.
3139 We recommend the use of GNU binutils 2.14 or later, or the vendor
3140 tools (Sun `as', Sun `ld'). Note that your mileage may vary if you use
3141 a combination of the GNU tools and the Sun tools: while the combination
3142 GNU `as' + Sun `ld' should reasonably work, the reverse combination Sun
3143 `as' + GNU `ld' is known to cause memory corruption at runtime in some
3144 cases for C++ programs.
3146 The stock GNU binutils 2.15 release is broken on this platform
3147 because of a single bug. It has been fixed on the 2.15 branch in the
3148 CVS repository. You can obtain a working version by checking out the
3149 binutils-2_15-branch from the CVS repository or applying the patch
3150 `http://sourceware.org/ml/binutils-cvs/2004-09/msg00036.html' to the
3153 We recommend the use of GNU binutils 2.16 or later in conjunction
3154 with GCC 4.x, or the vendor tools (Sun `as', Sun `ld'). However, for
3155 Solaris 10 and above, an additional patch is required in order for the
3156 GNU linker to be able to cope with a new flavor of shared libraries.
3157 You can obtain a working version by checking out the
3158 binutils-2_16-branch from the CVS repository or applying the patch
3159 `http://sourceware.org/ml/binutils-cvs/2005-07/msg00122.html' to the
3162 Sun bug 4296832 turns up when compiling X11 headers with GCC 2.95 or
3163 newer: `g++' will complain that types are missing. These headers
3164 assume that omitting the type means `int'; this assumption worked for
3165 C89 but is wrong for C++, and is now wrong for C99 also.
3167 `g++' accepts such (invalid) constructs with the option
3168 `-fpermissive'; it will assume that any missing type is `int' (as
3171 There are patches for Solaris 7 (108376-21 or newer for SPARC,
3172 108377-20 for Intel), and Solaris 8 (108652-24 or newer for SPARC,
3173 108653-22 for Intel) that fix this bug.
3175 Sun bug 4927647 sometimes causes random spurious testsuite failures
3176 related to missing diagnostic output. This bug doesn't affect GCC
3177 itself, rather it is a kernel bug triggered by the `expect' program
3178 which is used only by the GCC testsuite driver. When the bug causes
3179 the `expect' program to miss anticipated output, extra testsuite
3182 There are patches for Solaris 8 (117350-12 or newer for SPARC,
3183 117351-12 or newer for Intel) and Solaris 9 (117171-11 or newer for
3184 SPARC, 117172-11 or newer for Intel) that address this problem.
3189 When GCC is configured to use binutils 2.14 or later the binaries
3190 produced are smaller than the ones produced using Sun's native tools;
3191 this difference is quite significant for binaries containing debugging
3194 Starting with Solaris 7, the operating system is capable of executing
3195 64-bit SPARC V9 binaries. GCC 3.1 and later properly supports this;
3196 the `-m64' option enables 64-bit code generation. However, if all you
3197 want is code tuned for the UltraSPARC CPU, you should try the
3198 `-mtune=ultrasparc' option instead, which produces code that, unlike
3199 full 64-bit code, can still run on non-UltraSPARC machines.
3201 When configuring on a Solaris 7 or later system that is running a
3202 kernel that supports only 32-bit binaries, one must configure with
3203 `--disable-multilib', since we will not be able to build the 64-bit
3206 GCC 3.3 and GCC 3.4 trigger code generation bugs in earlier versions
3207 of the GNU compiler (especially GCC 3.0.x versions), which lead to the
3208 miscompilation of the stage1 compiler and the subsequent failure of the
3209 bootstrap process. A workaround is to use GCC 3.2.3 as an intermediary
3210 stage, i.e. to bootstrap that compiler with the base compiler and then
3211 use it to bootstrap the final compiler.
3213 GCC 3.4 triggers a code generation bug in versions 5.4 (Sun ONE
3214 Studio 7) and 5.5 (Sun ONE Studio 8) of the Sun compiler, which causes
3215 a bootstrap failure in form of a miscompilation of the stage1 compiler
3216 by the Sun compiler. This is Sun bug 4974440. This is fixed with
3219 GCC 3.4 changed the default debugging format from STABS to DWARF-2
3220 for 32-bit code on Solaris 7 and later. If you use the Sun assembler,
3221 this change apparently runs afoul of Sun bug 4910101 (which is
3222 referenced as a x86-only problem by Sun, probably because they do not
3223 use DWARF-2). A symptom of the problem is that you cannot compile C++
3224 programs like `groff' 1.19.1 without getting messages similar to the
3227 ld: warning: relocation error: R_SPARC_UA32: ...
3228 external symbolic relocation against non-allocatable section
3229 .debug_info cannot be processed at runtime: relocation ignored.
3231 To work around this problem, compile with `-gstabs+' instead of
3234 When configuring the GNU Multiple Precision Library (GMP) or the MPFR
3235 library on a Solaris 7 or later system, the canonical target triplet
3236 must be specified as the `build' parameter on the configure line. This
3237 triplet can be obtained by invoking ./config.guess in the toplevel
3238 source directory of GCC (and not that of GMP or MPFR). For example on
3241 % ./configure --build=sparc-sun-solaris2.7 --prefix=xxx
3243 sparc-sun-solaris2.7
3244 ====================
3246 Sun patch 107058-01 (1999-01-13) for Solaris 7/SPARC triggers a bug in
3247 the dynamic linker. This problem (Sun bug 4210064) affects GCC 2.8 and
3248 later, including all EGCS releases. Sun formerly recommended 107058-01
3249 for all Solaris 7 users, but around 1999-09-01 it started to recommend
3250 it only for people who use Sun's compilers.
3252 Here are some workarounds to this problem:
3253 * Do not install Sun patch 107058-01 until after Sun releases a
3254 complete patch for bug 4210064. This is the simplest course to
3255 take, unless you must also use Sun's C compiler. Unfortunately
3256 107058-01 is preinstalled on some new Solaris 7-based hosts, so
3257 you may have to back it out.
3259 * Copy the original, unpatched Solaris 7 `/usr/ccs/bin/as' into
3260 `/usr/local/libexec/gcc/sparc-sun-solaris2.7/3.4/as', adjusting
3261 the latter name to fit your local conventions and software version
3264 * Install Sun patch 106950-03 (1999-05-25) or later. Nobody with
3265 both 107058-01 and 106950-03 installed has reported the bug with
3266 GCC and Sun's dynamic linker. This last course of action is
3267 riskiest, for two reasons. First, you must install 106950 on all
3268 hosts that run code generated by GCC; it doesn't suffice to
3269 install it only on the hosts that run GCC itself. Second, Sun
3270 says that 106950-03 is only a partial fix for bug 4210064, but Sun
3271 doesn't know whether the partial fix is adequate for GCC.
3272 Revision -08 or later should fix the bug. The current (as of
3273 2004-05-23) revision is -24, and is included in the Solaris 7
3274 Recommended Patch Cluster.
3276 GCC 3.3 triggers a bug in version 5.0 Alpha 03/27/98 of the Sun
3277 assembler, which causes a bootstrap failure when linking the 64-bit
3278 shared version of libgcc. A typical error message is:
3280 ld: fatal: relocation error: R_SPARC_32: file libgcc/sparcv9/_muldi3.o:
3281 symbol <unknown>: offset 0xffffffff7ec133e7 is non-aligned.
3283 This bug has been fixed in the final 5.0 version of the assembler.
3285 A similar problem was reported for version Sun WorkShop 6 99/08/18
3286 of the Sun assembler, which causes a bootstrap failure with GCC 4.0.0:
3288 ld: fatal: relocation error: R_SPARC_DISP32:
3289 file .libs/libstdc++.lax/libsupc++convenience.a/vterminate.o:
3290 symbol <unknown>: offset 0xfccd33ad is non-aligned
3292 This bug has been fixed in more recent revisions of the assembler.
3297 GCC versions 3.0 and higher require binutils 2.11.2 and glibc 2.2.4 or
3298 newer on this platform. All earlier binutils and glibc releases
3299 mishandled unaligned relocations on `sparc-*-*' targets.
3304 When configuring the GNU Multiple Precision Library (GMP) or the MPFR
3305 library, the canonical target triplet must be specified as the `build'
3306 parameter on the configure line. For example on a Solaris 7 system:
3308 % ./configure --build=sparc64-sun-solaris2.7 --prefix=xxx
3310 The following compiler flags must be specified in the configure step
3311 in order to bootstrap this target with the Sun compiler:
3313 % CC="cc -xarch=v9 -xildoff" SRCDIR/configure [OPTIONS] [TARGET]
3315 `-xarch=v9' specifies the SPARC-V9 architecture to the Sun toolchain
3316 and `-xildoff' turns off the incremental linker.
3321 This is a synonym for sparc64-*-solaris2*.
3326 Support for VxWorks is in flux. At present GCC supports _only_ the
3327 very recent VxWorks 5.5 (aka Tornado 2.2) release, and only on PowerPC.
3328 We welcome patches for other architectures supported by VxWorks 5.5.
3329 Support for VxWorks AE would also be welcome; we believe this is merely
3330 a matter of writing an appropriate "configlette" (see below). We are
3331 not interested in supporting older, a.out or COFF-based, versions of
3334 VxWorks comes with an older version of GCC installed in
3335 `$WIND_BASE/host'; we recommend you do not overwrite it. Choose an
3336 installation PREFIX entirely outside $WIND_BASE. Before running
3337 `configure', create the directories `PREFIX' and `PREFIX/bin'. Link or
3338 copy the appropriate assembler, linker, etc. into `PREFIX/bin', and set
3339 your PATH to include that directory while running both `configure' and
3342 You must give `configure' the `--with-headers=$WIND_BASE/target/h'
3343 switch so that it can find the VxWorks system headers. Since VxWorks
3344 is a cross compilation target only, you must also specify
3345 `--target=TARGET'. `configure' will attempt to create the directory
3346 `PREFIX/TARGET/sys-include' and copy files into it; make sure the user
3347 running `configure' has sufficient privilege to do so.
3349 GCC's exception handling runtime requires a special "configlette"
3350 module, `contrib/gthr_supp_vxw_5x.c'. Follow the instructions in that
3351 file to add the module to your kernel build. (Future versions of
3352 VxWorks will incorporate this module.)
3354 x86_64-*-*, amd64-*-*
3355 =====================
3357 GCC supports the x86-64 architecture implemented by the AMD64 processor
3358 (amd64-*-* is an alias for x86_64-*-*) on GNU/Linux, FreeBSD and NetBSD.
3359 On GNU/Linux the default is a bi-arch compiler which is able to generate
3360 both 64-bit x86-64 and 32-bit x86 code (via the `-m32' switch).
3365 This target is intended for embedded Xtensa systems using the `newlib'
3366 C library. It uses ELF but does not support shared objects.
3367 Designed-defined instructions specified via the Tensilica Instruction
3368 Extension (TIE) language are only supported through inline assembly.
3370 The Xtensa configuration information must be specified prior to
3371 building GCC. The `include/xtensa-config.h' header file contains the
3372 configuration information. If you created your own Xtensa
3373 configuration with the Xtensa Processor Generator, the downloaded files
3374 include a customized copy of this header file, which you can use to
3375 replace the default header file.
3380 This target is for Xtensa systems running GNU/Linux. It supports ELF
3381 shared objects and the GNU C library (glibc). It also generates
3382 position-independent code (PIC) regardless of whether the `-fpic' or
3383 `-fPIC' options are used. In other respects, this target is the same
3384 as the `xtensa*-*-elf' target.
3389 Intel 16-bit versions
3390 ---------------------
3392 The 16-bit versions of Microsoft Windows, such as Windows 3.1, are not
3395 However, the 32-bit port has limited support for Microsoft Windows
3396 3.11 in the Win32s environment, as a target only. See below.
3398 Intel 32-bit versions
3399 ---------------------
3401 The 32-bit versions of Windows, including Windows 95, Windows NT,
3402 Windows XP, and Windows Vista, are supported by several different target
3403 platforms. These targets differ in which Windows subsystem they target
3404 and which C libraries are used.
3406 * Cygwin *-*-cygwin: Cygwin provides a user-space Linux API
3407 emulation layer in the Win32 subsystem.
3409 * Interix *-*-interix: The Interix subsystem provides native support
3412 * MinGW *-*-mingw: MinGW is a native GCC port for the Win32
3413 subsystem that provides a subset of POSIX.
3415 * MKS i386-pc-mks: NuTCracker from MKS. See
3416 `http://www.mkssoftware.com/' for more information.
3418 Intel 64-bit versions
3419 ---------------------
3421 GCC contains support for x86-64 using the mingw-w64 runtime library,
3422 available from `http://mingw-w64.sourceforge.net/'. This library
3423 should be used with the target triple x86_64-pc-mingw32.
3425 Presently Windows for Itanium is not supported.
3430 Windows CE is supported as a target only on ARM (arm-wince-pe), Hitachi
3431 SuperH (sh-wince-pe), and MIPS (mips-wince-pe).
3433 Other Windows Platforms
3434 -----------------------
3436 GCC no longer supports Windows NT on the Alpha or PowerPC.
3438 GCC no longer supports the Windows POSIX subsystem. However, it does
3439 support the Interix subsystem. See above.
3441 Old target names including *-*-winnt and *-*-windowsnt are no longer
3444 PW32 (i386-pc-pw32) support was never completed, and the project
3445 seems to be inactive. See `http://pw32.sourceforge.net/' for more
3448 UWIN support has been removed due to a lack of maintenance.
3453 Ports of GCC are included with the Cygwin environment.
3455 GCC will build under Cygwin without modification; it does not build
3456 with Microsoft's C++ compiler and there are no plans to make it do so.
3458 Cygwin can be compiled with i?86-pc-cygwin.
3463 The Interix target is used by OpenNT, Interix, Services For UNIX (SFU),
3464 and Subsystem for UNIX-based Applications (SUA). Applications compiled
3465 with this target run in the Interix subsystem, which is separate from
3466 the Win32 subsystem. This target was last known to work in GCC 3.3.
3468 For more information, see `http://www.interix.com/'.
3473 GCC will build with and support only MinGW runtime 3.12 and later.
3474 Earlier versions of headers are incompatible with the new default
3475 semantics of `extern inline' in `-std=c99' and `-std=gnu99' modes.
3480 GCC does not currently support OS/2. However, Andrew Zabolotny has been
3481 working on a generic OS/2 port with pgcc. The current code can be found
3482 at http://www.goof.com/pcg/os2/.
3487 GCC contains support files for many older (1980s and early 1990s) Unix
3488 variants. For the most part, support for these systems has not been
3489 deliberately removed, but it has not been maintained for several years
3490 and may suffer from bitrot.
3492 Starting with GCC 3.1, each release has a list of "obsoleted"
3493 systems. Support for these systems is still present in that release,
3494 but `configure' will fail unless the `--enable-obsolete' option is
3495 given. Unless a maintainer steps forward, support for these systems
3496 will be removed from the next release of GCC.
3498 Support for old systems as hosts for GCC can cause problems if the
3499 workarounds for compiler, library and operating system bugs affect the
3500 cleanliness or maintainability of the rest of GCC. In some cases, to
3501 bring GCC up on such a system, if still possible with current GCC, may
3502 require first installing an old version of GCC which did work on that
3503 system, and using it to compile a more recent GCC, to avoid bugs in the
3504 vendor compiler. Old releases of GCC 1 and GCC 2 are available in the
3505 `old-releases' directory on the GCC mirror sites. Header bugs may
3506 generally be avoided using `fixincludes', but bugs or deficiencies in
3507 libraries and the operating system may still cause problems.
3509 Support for older systems as targets for cross-compilation is less
3510 problematic than support for them as hosts for GCC; if an enthusiast
3511 wishes to make such a target work again (including resurrecting any of
3512 the targets that never worked with GCC 2, starting from the last
3513 version before they were removed), patches following the usual
3514 requirements would be likely to be accepted, since they should not
3515 affect the support for more modern targets.
3517 For some systems, old versions of GNU binutils may also be useful,
3518 and are available from `pub/binutils/old-releases' on sourceware.org
3521 Some of the information on specific systems above relates to such
3522 older systems, but much of the information about GCC on such systems
3523 (which may no longer be applicable to current GCC) is to be found in
3524 the GCC texinfo manual.
3526 all ELF targets (SVR4, Solaris 2, etc.)
3527 =======================================
3529 C++ support is significantly better on ELF targets if you use the GNU
3530 linker; duplicate copies of inlines, vtables and template
3531 instantiations will be discarded automatically.
3534 File: gccinstall.info, Node: Old, Next: GNU Free Documentation License, Prev: Specific, Up: Top
3536 10 Old installation documentation
3537 *********************************
3539 Note most of this information is out of date and superseded by the
3540 previous chapters of this manual. It is provided for historical
3541 reference only, because of a lack of volunteers to merge it into the
3546 * Configurations:: Configurations Supported by GCC.
3548 Here is the procedure for installing GCC on a GNU or Unix system.
3550 1. If you have chosen a configuration for GCC which requires other GNU
3551 tools (such as GAS or the GNU linker) instead of the standard
3552 system tools, install the required tools in the build directory
3553 under the names `as', `ld' or whatever is appropriate.
3555 Alternatively, you can do subsequent compilation using a value of
3556 the `PATH' environment variable such that the necessary GNU tools
3557 come before the standard system tools.
3559 2. Specify the host, build and target machine configurations. You do
3560 this when you run the `configure' script.
3562 The "build" machine is the system which you are using, the "host"
3563 machine is the system where you want to run the resulting compiler
3564 (normally the build machine), and the "target" machine is the
3565 system for which you want the compiler to generate code.
3567 If you are building a compiler to produce code for the machine it
3568 runs on (a native compiler), you normally do not need to specify
3569 any operands to `configure'; it will try to guess the type of
3570 machine you are on and use that as the build, host and target
3571 machines. So you don't need to specify a configuration when
3572 building a native compiler unless `configure' cannot figure out
3573 what your configuration is or guesses wrong.
3575 In those cases, specify the build machine's "configuration name"
3576 with the `--host' option; the host and target will default to be
3577 the same as the host machine.
3581 ./configure --host=sparc-sun-sunos4.1
3583 A configuration name may be canonical or it may be more or less
3586 A canonical configuration name has three parts, separated by
3587 dashes. It looks like this: `CPU-COMPANY-SYSTEM'. (The three
3588 parts may themselves contain dashes; `configure' can figure out
3589 which dashes serve which purpose.) For example,
3590 `m68k-sun-sunos4.1' specifies a Sun 3.
3592 You can also replace parts of the configuration by nicknames or
3593 aliases. For example, `sun3' stands for `m68k-sun', so
3594 `sun3-sunos4.1' is another way to specify a Sun 3.
3596 You can specify a version number after any of the system types,
3597 and some of the CPU types. In most cases, the version is
3598 irrelevant, and will be ignored. So you might as well specify the
3599 version if you know it.
3601 See *Note Configurations::, for a list of supported configuration
3602 names and notes on many of the configurations. You should check
3603 the notes in that section before proceeding any further with the
3604 installation of GCC.
3608 File: gccinstall.info, Node: Configurations, Up: Old
3610 10.1 Configurations Supported by GCC
3611 ====================================
3613 Here are the possible CPU types:
3615 1750a, a29k, alpha, arm, avr, cN, clipper, dsp16xx, elxsi, fr30,
3616 h8300, hppa1.0, hppa1.1, i370, i386, i486, i586, i686, i786, i860,
3617 i960, ip2k, m32r, m68000, m68k, m6811, m6812, m88k, mcore, mips,
3618 mipsel, mips64, mips64el, mn10200, mn10300, ns32k, pdp11, powerpc,
3619 powerpcle, romp, rs6000, sh, sparc, sparclite, sparc64, v850, vax,
3622 Here are the recognized company names. As you can see, customary
3623 abbreviations are used rather than the longer official names.
3625 acorn, alliant, altos, apollo, apple, att, bull, cbm, convergent,
3626 convex, crds, dec, dg, dolphin, elxsi, encore, harris, hitachi,
3627 hp, ibm, intergraph, isi, mips, motorola, ncr, next, ns, omron,
3628 plexus, sequent, sgi, sony, sun, tti, unicom, wrs.
3630 The company name is meaningful only to disambiguate when the rest of
3631 the information supplied is insufficient. You can omit it, writing
3632 just `CPU-SYSTEM', if it is not needed. For example, `vax-ultrix4.2'
3633 is equivalent to `vax-dec-ultrix4.2'.
3635 Here is a list of system types:
3637 386bsd, aix, acis, amigaos, aos, aout, aux, bosx, bsd, clix, coff,
3638 ctix, cxux, dgux, dynix, ebmon, ecoff, elf, esix, freebsd, hms,
3639 genix, gnu, linux, linux-gnu, hiux, hpux, iris, irix, isc, luna,
3640 lynxos, mach, minix, msdos, mvs, netbsd, newsos, nindy, ns, osf,
3641 osfrose, ptx, riscix, riscos, rtu, sco, sim, solaris, sunos, sym,
3642 sysv, udi, ultrix, unicos, uniplus, unos, vms, vsta, vxworks,
3645 You can omit the system type; then `configure' guesses the operating
3646 system from the CPU and company.
3648 You can add a version number to the system type; this may or may not
3649 make a difference. For example, you can write `bsd4.3' or `bsd4.4' to
3650 distinguish versions of BSD. In practice, the version number is most
3651 needed for `sysv3' and `sysv4', which are often treated differently.
3653 `linux-gnu' is the canonical name for the GNU/Linux target; however
3654 GCC will also accept `linux'. The version of the kernel in use is not
3655 relevant on these systems. A suffix such as `libc1' or `aout'
3656 distinguishes major versions of the C library; all of the suffixed
3657 versions are obsolete.
3659 If you specify an impossible combination such as `i860-dg-vms', then
3660 you may get an error message from `configure', or it may ignore part of
3661 the information and do the best it can with the rest. `configure'
3662 always prints the canonical name for the alternative that it used. GCC
3663 does not support all possible alternatives.
3665 Often a particular model of machine has a name. Many machine names
3666 are recognized as aliases for CPU/company combinations. Thus, the
3667 machine name `sun3', mentioned above, is an alias for `m68k-sun'.
3668 Sometimes we accept a company name as a machine name, when the name is
3669 popularly used for a particular machine. Here is a table of the known
3672 3300, 3b1, 3bN, 7300, altos3068, altos, apollo68, att-7300,
3673 balance, convex-cN, crds, decstation-3100, decstation, delta,
3674 encore, fx2800, gmicro, hp7NN, hp8NN, hp9k2NN, hp9k3NN, hp9k7NN,
3675 hp9k8NN, iris4d, iris, isi68, m3230, magnum, merlin, miniframe,
3676 mmax, news-3600, news800, news, next, pbd, pc532, pmax, powerpc,
3677 powerpcle, ps2, risc-news, rtpc, sun2, sun386i, sun386, sun3,
3678 sun4, symmetry, tower-32, tower.
3680 Remember that a machine name specifies both the cpu type and the company
3681 name. If you want to install your own homemade configuration files,
3682 you can use `local' as the company name to access them. If you use
3683 configuration `CPU-local', the configuration name without the cpu prefix
3684 is used to form the configuration file names.
3686 Thus, if you specify `m68k-local', configuration uses files
3687 `m68k.md', `local.h', `m68k.c', `xm-local.h', `t-local', and `x-local',
3688 all in the directory `config/m68k'.
3691 File: gccinstall.info, Node: GNU Free Documentation License, Next: Concept Index, Prev: Old, Up: Top
3693 GNU Free Documentation License
3694 ******************************
3696 Version 1.2, November 2002
3698 Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
3699 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
3701 Everyone is permitted to copy and distribute verbatim copies
3702 of this license document, but changing it is not allowed.
3706 The purpose of this License is to make a manual, textbook, or other
3707 functional and useful document "free" in the sense of freedom: to
3708 assure everyone the effective freedom to copy and redistribute it,
3709 with or without modifying it, either commercially or
3710 noncommercially. Secondarily, this License preserves for the
3711 author and publisher a way to get credit for their work, while not
3712 being considered responsible for modifications made by others.
3714 This License is a kind of "copyleft", which means that derivative
3715 works of the document must themselves be free in the same sense.
3716 It complements the GNU General Public License, which is a copyleft
3717 license designed for free software.
3719 We have designed this License in order to use it for manuals for
3720 free software, because free software needs free documentation: a
3721 free program should come with manuals providing the same freedoms
3722 that the software does. But this License is not limited to
3723 software manuals; it can be used for any textual work, regardless
3724 of subject matter or whether it is published as a printed book.
3725 We recommend this License principally for works whose purpose is
3726 instruction or reference.
3728 1. APPLICABILITY AND DEFINITIONS
3730 This License applies to any manual or other work, in any medium,
3731 that contains a notice placed by the copyright holder saying it
3732 can be distributed under the terms of this License. Such a notice
3733 grants a world-wide, royalty-free license, unlimited in duration,
3734 to use that work under the conditions stated herein. The
3735 "Document", below, refers to any such manual or work. Any member
3736 of the public is a licensee, and is addressed as "you". You
3737 accept the license if you copy, modify or distribute the work in a
3738 way requiring permission under copyright law.
3740 A "Modified Version" of the Document means any work containing the
3741 Document or a portion of it, either copied verbatim, or with
3742 modifications and/or translated into another language.
3744 A "Secondary Section" is a named appendix or a front-matter section
3745 of the Document that deals exclusively with the relationship of the
3746 publishers or authors of the Document to the Document's overall
3747 subject (or to related matters) and contains nothing that could
3748 fall directly within that overall subject. (Thus, if the Document
3749 is in part a textbook of mathematics, a Secondary Section may not
3750 explain any mathematics.) The relationship could be a matter of
3751 historical connection with the subject or with related matters, or
3752 of legal, commercial, philosophical, ethical or political position
3755 The "Invariant Sections" are certain Secondary Sections whose
3756 titles are designated, as being those of Invariant Sections, in
3757 the notice that says that the Document is released under this
3758 License. If a section does not fit the above definition of
3759 Secondary then it is not allowed to be designated as Invariant.
3760 The Document may contain zero Invariant Sections. If the Document
3761 does not identify any Invariant Sections then there are none.
3763 The "Cover Texts" are certain short passages of text that are
3764 listed, as Front-Cover Texts or Back-Cover Texts, in the notice
3765 that says that the Document is released under this License. A
3766 Front-Cover Text may be at most 5 words, and a Back-Cover Text may
3767 be at most 25 words.
3769 A "Transparent" copy of the Document means a machine-readable copy,
3770 represented in a format whose specification is available to the
3771 general public, that is suitable for revising the document
3772 straightforwardly with generic text editors or (for images
3773 composed of pixels) generic paint programs or (for drawings) some
3774 widely available drawing editor, and that is suitable for input to
3775 text formatters or for automatic translation to a variety of
3776 formats suitable for input to text formatters. A copy made in an
3777 otherwise Transparent file format whose markup, or absence of
3778 markup, has been arranged to thwart or discourage subsequent
3779 modification by readers is not Transparent. An image format is
3780 not Transparent if used for any substantial amount of text. A
3781 copy that is not "Transparent" is called "Opaque".
3783 Examples of suitable formats for Transparent copies include plain
3784 ASCII without markup, Texinfo input format, LaTeX input format,
3785 SGML or XML using a publicly available DTD, and
3786 standard-conforming simple HTML, PostScript or PDF designed for
3787 human modification. Examples of transparent image formats include
3788 PNG, XCF and JPG. Opaque formats include proprietary formats that
3789 can be read and edited only by proprietary word processors, SGML or
3790 XML for which the DTD and/or processing tools are not generally
3791 available, and the machine-generated HTML, PostScript or PDF
3792 produced by some word processors for output purposes only.
3794 The "Title Page" means, for a printed book, the title page itself,
3795 plus such following pages as are needed to hold, legibly, the
3796 material this License requires to appear in the title page. For
3797 works in formats which do not have any title page as such, "Title
3798 Page" means the text near the most prominent appearance of the
3799 work's title, preceding the beginning of the body of the text.
3801 A section "Entitled XYZ" means a named subunit of the Document
3802 whose title either is precisely XYZ or contains XYZ in parentheses
3803 following text that translates XYZ in another language. (Here XYZ
3804 stands for a specific section name mentioned below, such as
3805 "Acknowledgements", "Dedications", "Endorsements", or "History".)
3806 To "Preserve the Title" of such a section when you modify the
3807 Document means that it remains a section "Entitled XYZ" according
3810 The Document may include Warranty Disclaimers next to the notice
3811 which states that this License applies to the Document. These
3812 Warranty Disclaimers are considered to be included by reference in
3813 this License, but only as regards disclaiming warranties: any other
3814 implication that these Warranty Disclaimers may have is void and
3815 has no effect on the meaning of this License.
3819 You may copy and distribute the Document in any medium, either
3820 commercially or noncommercially, provided that this License, the
3821 copyright notices, and the license notice saying this License
3822 applies to the Document are reproduced in all copies, and that you
3823 add no other conditions whatsoever to those of this License. You
3824 may not use technical measures to obstruct or control the reading
3825 or further copying of the copies you make or distribute. However,
3826 you may accept compensation in exchange for copies. If you
3827 distribute a large enough number of copies you must also follow
3828 the conditions in section 3.
3830 You may also lend copies, under the same conditions stated above,
3831 and you may publicly display copies.
3833 3. COPYING IN QUANTITY
3835 If you publish printed copies (or copies in media that commonly
3836 have printed covers) of the Document, numbering more than 100, and
3837 the Document's license notice requires Cover Texts, you must
3838 enclose the copies in covers that carry, clearly and legibly, all
3839 these Cover Texts: Front-Cover Texts on the front cover, and
3840 Back-Cover Texts on the back cover. Both covers must also clearly
3841 and legibly identify you as the publisher of these copies. The
3842 front cover must present the full title with all words of the
3843 title equally prominent and visible. You may add other material
3844 on the covers in addition. Copying with changes limited to the
3845 covers, as long as they preserve the title of the Document and
3846 satisfy these conditions, can be treated as verbatim copying in
3849 If the required texts for either cover are too voluminous to fit
3850 legibly, you should put the first ones listed (as many as fit
3851 reasonably) on the actual cover, and continue the rest onto
3854 If you publish or distribute Opaque copies of the Document
3855 numbering more than 100, you must either include a
3856 machine-readable Transparent copy along with each Opaque copy, or
3857 state in or with each Opaque copy a computer-network location from
3858 which the general network-using public has access to download
3859 using public-standard network protocols a complete Transparent
3860 copy of the Document, free of added material. If you use the
3861 latter option, you must take reasonably prudent steps, when you
3862 begin distribution of Opaque copies in quantity, to ensure that
3863 this Transparent copy will remain thus accessible at the stated
3864 location until at least one year after the last time you
3865 distribute an Opaque copy (directly or through your agents or
3866 retailers) of that edition to the public.
3868 It is requested, but not required, that you contact the authors of
3869 the Document well before redistributing any large number of
3870 copies, to give them a chance to provide you with an updated
3871 version of the Document.
3875 You may copy and distribute a Modified Version of the Document
3876 under the conditions of sections 2 and 3 above, provided that you
3877 release the Modified Version under precisely this License, with
3878 the Modified Version filling the role of the Document, thus
3879 licensing distribution and modification of the Modified Version to
3880 whoever possesses a copy of it. In addition, you must do these
3881 things in the Modified Version:
3883 A. Use in the Title Page (and on the covers, if any) a title
3884 distinct from that of the Document, and from those of
3885 previous versions (which should, if there were any, be listed
3886 in the History section of the Document). You may use the
3887 same title as a previous version if the original publisher of
3888 that version gives permission.
3890 B. List on the Title Page, as authors, one or more persons or
3891 entities responsible for authorship of the modifications in
3892 the Modified Version, together with at least five of the
3893 principal authors of the Document (all of its principal
3894 authors, if it has fewer than five), unless they release you
3895 from this requirement.
3897 C. State on the Title page the name of the publisher of the
3898 Modified Version, as the publisher.
3900 D. Preserve all the copyright notices of the Document.
3902 E. Add an appropriate copyright notice for your modifications
3903 adjacent to the other copyright notices.
3905 F. Include, immediately after the copyright notices, a license
3906 notice giving the public permission to use the Modified
3907 Version under the terms of this License, in the form shown in
3910 G. Preserve in that license notice the full lists of Invariant
3911 Sections and required Cover Texts given in the Document's
3914 H. Include an unaltered copy of this License.
3916 I. Preserve the section Entitled "History", Preserve its Title,
3917 and add to it an item stating at least the title, year, new
3918 authors, and publisher of the Modified Version as given on
3919 the Title Page. If there is no section Entitled "History" in
3920 the Document, create one stating the title, year, authors,
3921 and publisher of the Document as given on its Title Page,
3922 then add an item describing the Modified Version as stated in
3923 the previous sentence.
3925 J. Preserve the network location, if any, given in the Document
3926 for public access to a Transparent copy of the Document, and
3927 likewise the network locations given in the Document for
3928 previous versions it was based on. These may be placed in
3929 the "History" section. You may omit a network location for a
3930 work that was published at least four years before the
3931 Document itself, or if the original publisher of the version
3932 it refers to gives permission.
3934 K. For any section Entitled "Acknowledgements" or "Dedications",
3935 Preserve the Title of the section, and preserve in the
3936 section all the substance and tone of each of the contributor
3937 acknowledgements and/or dedications given therein.
3939 L. Preserve all the Invariant Sections of the Document,
3940 unaltered in their text and in their titles. Section numbers
3941 or the equivalent are not considered part of the section
3944 M. Delete any section Entitled "Endorsements". Such a section
3945 may not be included in the Modified Version.
3947 N. Do not retitle any existing section to be Entitled
3948 "Endorsements" or to conflict in title with any Invariant
3951 O. Preserve any Warranty Disclaimers.
3953 If the Modified Version includes new front-matter sections or
3954 appendices that qualify as Secondary Sections and contain no
3955 material copied from the Document, you may at your option
3956 designate some or all of these sections as invariant. To do this,
3957 add their titles to the list of Invariant Sections in the Modified
3958 Version's license notice. These titles must be distinct from any
3959 other section titles.
3961 You may add a section Entitled "Endorsements", provided it contains
3962 nothing but endorsements of your Modified Version by various
3963 parties--for example, statements of peer review or that the text
3964 has been approved by an organization as the authoritative
3965 definition of a standard.
3967 You may add a passage of up to five words as a Front-Cover Text,
3968 and a passage of up to 25 words as a Back-Cover Text, to the end
3969 of the list of Cover Texts in the Modified Version. Only one
3970 passage of Front-Cover Text and one of Back-Cover Text may be
3971 added by (or through arrangements made by) any one entity. If the
3972 Document already includes a cover text for the same cover,
3973 previously added by you or by arrangement made by the same entity
3974 you are acting on behalf of, you may not add another; but you may
3975 replace the old one, on explicit permission from the previous
3976 publisher that added the old one.
3978 The author(s) and publisher(s) of the Document do not by this
3979 License give permission to use their names for publicity for or to
3980 assert or imply endorsement of any Modified Version.
3982 5. COMBINING DOCUMENTS
3984 You may combine the Document with other documents released under
3985 this License, under the terms defined in section 4 above for
3986 modified versions, provided that you include in the combination
3987 all of the Invariant Sections of all of the original documents,
3988 unmodified, and list them all as Invariant Sections of your
3989 combined work in its license notice, and that you preserve all
3990 their Warranty Disclaimers.
3992 The combined work need only contain one copy of this License, and
3993 multiple identical Invariant Sections may be replaced with a single
3994 copy. If there are multiple Invariant Sections with the same name
3995 but different contents, make the title of each such section unique
3996 by adding at the end of it, in parentheses, the name of the
3997 original author or publisher of that section if known, or else a
3998 unique number. Make the same adjustment to the section titles in
3999 the list of Invariant Sections in the license notice of the
4002 In the combination, you must combine any sections Entitled
4003 "History" in the various original documents, forming one section
4004 Entitled "History"; likewise combine any sections Entitled
4005 "Acknowledgements", and any sections Entitled "Dedications". You
4006 must delete all sections Entitled "Endorsements."
4008 6. COLLECTIONS OF DOCUMENTS
4010 You may make a collection consisting of the Document and other
4011 documents released under this License, and replace the individual
4012 copies of this License in the various documents with a single copy
4013 that is included in the collection, provided that you follow the
4014 rules of this License for verbatim copying of each of the
4015 documents in all other respects.
4017 You may extract a single document from such a collection, and
4018 distribute it individually under this License, provided you insert
4019 a copy of this License into the extracted document, and follow
4020 this License in all other respects regarding verbatim copying of
4023 7. AGGREGATION WITH INDEPENDENT WORKS
4025 A compilation of the Document or its derivatives with other
4026 separate and independent documents or works, in or on a volume of
4027 a storage or distribution medium, is called an "aggregate" if the
4028 copyright resulting from the compilation is not used to limit the
4029 legal rights of the compilation's users beyond what the individual
4030 works permit. When the Document is included in an aggregate, this
4031 License does not apply to the other works in the aggregate which
4032 are not themselves derivative works of the Document.
4034 If the Cover Text requirement of section 3 is applicable to these
4035 copies of the Document, then if the Document is less than one half
4036 of the entire aggregate, the Document's Cover Texts may be placed
4037 on covers that bracket the Document within the aggregate, or the
4038 electronic equivalent of covers if the Document is in electronic
4039 form. Otherwise they must appear on printed covers that bracket
4040 the whole aggregate.
4044 Translation is considered a kind of modification, so you may
4045 distribute translations of the Document under the terms of section
4046 4. Replacing Invariant Sections with translations requires special
4047 permission from their copyright holders, but you may include
4048 translations of some or all Invariant Sections in addition to the
4049 original versions of these Invariant Sections. You may include a
4050 translation of this License, and all the license notices in the
4051 Document, and any Warranty Disclaimers, provided that you also
4052 include the original English version of this License and the
4053 original versions of those notices and disclaimers. In case of a
4054 disagreement between the translation and the original version of
4055 this License or a notice or disclaimer, the original version will
4058 If a section in the Document is Entitled "Acknowledgements",
4059 "Dedications", or "History", the requirement (section 4) to
4060 Preserve its Title (section 1) will typically require changing the
4065 You may not copy, modify, sublicense, or distribute the Document
4066 except as expressly provided for under this License. Any other
4067 attempt to copy, modify, sublicense or distribute the Document is
4068 void, and will automatically terminate your rights under this
4069 License. However, parties who have received copies, or rights,
4070 from you under this License will not have their licenses
4071 terminated so long as such parties remain in full compliance.
4073 10. FUTURE REVISIONS OF THIS LICENSE
4075 The Free Software Foundation may publish new, revised versions of
4076 the GNU Free Documentation License from time to time. Such new
4077 versions will be similar in spirit to the present version, but may
4078 differ in detail to address new problems or concerns. See
4079 `http://www.gnu.org/copyleft/'.
4081 Each version of the License is given a distinguishing version
4082 number. If the Document specifies that a particular numbered
4083 version of this License "or any later version" applies to it, you
4084 have the option of following the terms and conditions either of
4085 that specified version or of any later version that has been
4086 published (not as a draft) by the Free Software Foundation. If
4087 the Document does not specify a version number of this License,
4088 you may choose any version ever published (not as a draft) by the
4089 Free Software Foundation.
4091 ADDENDUM: How to use this License for your documents
4092 ====================================================
4094 To use this License in a document you have written, include a copy of
4095 the License in the document and put the following copyright and license
4096 notices just after the title page:
4098 Copyright (C) YEAR YOUR NAME.
4099 Permission is granted to copy, distribute and/or modify this document
4100 under the terms of the GNU Free Documentation License, Version 1.2
4101 or any later version published by the Free Software Foundation;
4102 with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
4103 Texts. A copy of the license is included in the section entitled ``GNU
4104 Free Documentation License''.
4106 If you have Invariant Sections, Front-Cover Texts and Back-Cover
4107 Texts, replace the "with...Texts." line with this:
4109 with the Invariant Sections being LIST THEIR TITLES, with
4110 the Front-Cover Texts being LIST, and with the Back-Cover Texts
4113 If you have Invariant Sections without Cover Texts, or some other
4114 combination of the three, merge those two alternatives to suit the
4117 If your document contains nontrivial examples of program code, we
4118 recommend releasing these examples in parallel under your choice of
4119 free software license, such as the GNU General Public License, to
4120 permit their use in free software.
4123 File: gccinstall.info, Node: Concept Index, Prev: GNU Free Documentation License, Up: Top
4131 * Binaries: Binaries. (line 6)
4132 * Configuration: Configuration. (line 6)
4133 * configurations supported by GCC: Configurations. (line 6)
4134 * Downloading GCC: Downloading the source.
4136 * Downloading the Source: Downloading the source.
4138 * FDL, GNU Free Documentation License: GNU Free Documentation License.
4140 * Host specific installation: Specific. (line 6)
4141 * Installing GCC: Binaries: Binaries. (line 6)
4142 * Installing GCC: Building: Building. (line 6)
4143 * Installing GCC: Configuration: Configuration. (line 6)
4144 * Installing GCC: Testing: Testing. (line 6)
4145 * Prerequisites: Prerequisites. (line 6)
4146 * Specific: Specific. (line 6)
4147 * Specific installation notes: Specific. (line 6)
4148 * Target specific installation: Specific. (line 6)
4149 * Target specific installation notes: Specific. (line 6)
4150 * Testing: Testing. (line 6)
4151 * Testsuite: Testing. (line 6)
4157 Node: Installing GCC
\x7f2492
4158 Node: Prerequisites
\x7f4007
4159 Node: Downloading the source
\x7f13012
4160 Node: Configuration
\x7f14933
4161 Ref: with-gnu-as
\x7f28350
4162 Ref: with-as
\x7f29248
4163 Ref: with-gnu-ld
\x7f30661
4164 Node: Building
\x7f67818
4165 Node: Testing
\x7f79761
4166 Node: Final install
\x7f87541
4167 Node: Binaries
\x7f92771
4168 Node: Specific
\x7f94744
4169 Ref: alpha-x-x
\x7f95250
4170 Ref: alpha-dec-osf
\x7f95739
4171 Ref: arc-x-elf
\x7f98862
4172 Ref: arm-x-elf
\x7f98962
4173 Ref: arm-x-coff
\x7f99182
4174 Ref: arm-x-aout
\x7f99384
4180 Ref: x-x-freebsd
\x7f102234
4181 Ref: h8300-hms
\x7f104617
4182 Ref: hppa-hp-hpux
\x7f104969
4183 Ref: hppa-hp-hpux10
\x7f107340
4184 Ref: hppa-hp-hpux11
\x7f107973
4185 Ref: x-x-linux-gnu
\x7f113632
4186 Ref: ix86-x-linux
\x7f113825
4187 Ref: ix86-x-solaris210
\x7f114138
4188 Ref: ia64-x-linux
\x7f114524
4189 Ref: ia64-x-hpux
\x7f115294
4190 Ref: x-ibm-aix
\x7f115849
4191 Ref: iq2000-x-elf
\x7f121832
4192 Ref: m32c-x-elf
\x7f121972
4193 Ref: m32r-x-elf
\x7f122074
4194 Ref: m6811-elf
\x7f122176
4195 Ref: m6812-elf
\x7f122326
4196 Ref: m68k-x-x
\x7f122476
4197 Ref: m68k-x-uclinux
\x7f123481
4198 Ref: mips-x-x
\x7f123844
4199 Ref: mips-sgi-irix5
\x7f126521
4200 Ref: mips-sgi-irix6
\x7f127469
4201 Ref: powerpc-x-x
\x7f130276
4202 Ref: powerpc-x-darwin
\x7f130481
4203 Ref: powerpc-x-elf
\x7f131028
4204 Ref: powerpc-x-linux-gnu
\x7f131113
4205 Ref: powerpc-x-netbsd
\x7f131208
4206 Ref: powerpc-x-eabisim
\x7f131296
4207 Ref: powerpc-x-eabi
\x7f131422
4208 Ref: powerpcle-x-elf
\x7f131498
4209 Ref: powerpcle-x-eabisim
\x7f131590
4210 Ref: powerpcle-x-eabi
\x7f131723
4211 Ref: s390-x-linux
\x7f131806
4212 Ref: s390x-x-linux
\x7f131878
4213 Ref: s390x-ibm-tpf
\x7f131965
4214 Ref: x-x-solaris2
\x7f132096
4215 Ref: sparc-sun-solaris2
\x7f135973
4216 Ref: sparc-sun-solaris27
\x7f138694
4217 Ref: sparc-x-linux
\x7f141158
4218 Ref: sparc64-x-solaris2
\x7f141383
4219 Ref: sparcv9-x-solaris2
\x7f142028
4220 Ref: x-x-vxworks
\x7f142113
4221 Ref: x86-64-x-x
\x7f143635
4222 Ref: xtensa-x-elf
\x7f143963
4223 Ref: xtensa-x-linux
\x7f144634
4224 Ref: windows
\x7f144975
4225 Ref: x-x-cygwin
\x7f146930
4226 Ref: x-x-interix
\x7f147200
4227 Ref: x-x-mingw32
\x7f147566
4229 Ref: older
\x7f147983
4232 Node: Configurations
\x7f153495
4233 Node: GNU Free Documentation License
\x7f157477
4234 Node: Concept Index
\x7f179893