Home | History | Annotate | Line # | Download | only in INSTALL
prerequisites.html revision 1.6
      1  1.6  mrg <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      2  1.6  mrg <html>
      3  1.6  mrg <!-- Copyright (C) 1988-2015 Free Software Foundation, Inc.
      4  1.1  mrg 
      5  1.6  mrg Permission is granted to copy, distribute and/or modify this document
      6  1.3  mrg under the terms of the GNU Free Documentation License, Version 1.3 or
      7  1.1  mrg any later version published by the Free Software Foundation; with no
      8  1.1  mrg Invariant Sections, the Front-Cover texts being (a) (see below), and
      9  1.1  mrg with the Back-Cover Texts being (b) (see below).  A copy of the
     10  1.6  mrg license is included in the section entitled "GNU
     11  1.6  mrg Free Documentation License".
     12  1.1  mrg 
     13  1.1  mrg (a) The FSF's Front-Cover Text is:
     14  1.1  mrg 
     15  1.6  mrg A GNU Manual
     16  1.1  mrg 
     17  1.1  mrg (b) The FSF's Back-Cover Text is:
     18  1.1  mrg 
     19  1.6  mrg You have freedom to copy and modify this GNU Manual, like GNU
     20  1.1  mrg      software.  Copies published by the Free Software Foundation raise
     21  1.6  mrg      funds for GNU development. -->
     22  1.6  mrg <!-- Created by GNU Texinfo 6.1, http://www.gnu.org/software/texinfo/ -->
     23  1.6  mrg <head>
     24  1.6  mrg <title>Installing GCC</title>
     25  1.6  mrg 
     26  1.6  mrg <meta name="description" content="Installing GCC">
     27  1.6  mrg <meta name="keywords" content="Installing GCC">
     28  1.6  mrg <meta name="resource-type" content="document">
     29  1.6  mrg <meta name="distribution" content="global">
     30  1.6  mrg <meta name="Generator" content="makeinfo">
     31  1.6  mrg <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     32  1.6  mrg <style type="text/css">
     33  1.6  mrg <!--
     34  1.6  mrg a.summary-letter {text-decoration: none}
     35  1.6  mrg blockquote.indentedblock {margin-right: 0em}
     36  1.6  mrg blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
     37  1.6  mrg blockquote.smallquotation {font-size: smaller}
     38  1.6  mrg div.display {margin-left: 3.2em}
     39  1.6  mrg div.example {margin-left: 3.2em}
     40  1.6  mrg div.lisp {margin-left: 3.2em}
     41  1.6  mrg div.smalldisplay {margin-left: 3.2em}
     42  1.6  mrg div.smallexample {margin-left: 3.2em}
     43  1.6  mrg div.smalllisp {margin-left: 3.2em}
     44  1.6  mrg kbd {font-style: oblique}
     45  1.6  mrg pre.display {font-family: inherit}
     46  1.6  mrg pre.format {font-family: inherit}
     47  1.6  mrg pre.menu-comment {font-family: serif}
     48  1.6  mrg pre.menu-preformatted {font-family: serif}
     49  1.6  mrg pre.smalldisplay {font-family: inherit; font-size: smaller}
     50  1.6  mrg pre.smallexample {font-size: smaller}
     51  1.6  mrg pre.smallformat {font-family: inherit; font-size: smaller}
     52  1.6  mrg pre.smalllisp {font-size: smaller}
     53  1.6  mrg span.nolinebreak {white-space: nowrap}
     54  1.6  mrg span.roman {font-family: initial; font-weight: normal}
     55  1.6  mrg span.sansserif {font-family: sans-serif; font-weight: normal}
     56  1.6  mrg ul.no-bullet {list-style: none}
     57  1.6  mrg -->
     58  1.6  mrg </style>
     59  1.6  mrg 
     60  1.6  mrg 
     61  1.1  mrg </head>
     62  1.6  mrg 
     63  1.6  mrg <body lang="en">
     64  1.6  mrg <h1 class="settitle" align="center">Installing GCC</h1>
     65  1.6  mrg 
     66  1.6  mrg 
     67  1.6  mrg 
     68  1.6  mrg 
     69  1.6  mrg 
     70  1.6  mrg 
     71  1.6  mrg 
     72  1.6  mrg 
     73  1.6  mrg 
     74  1.6  mrg 
     75  1.6  mrg 
     76  1.6  mrg 
     77  1.6  mrg 
     78  1.6  mrg 
     79  1.6  mrg 
     80  1.6  mrg 
     81  1.6  mrg 
     82  1.6  mrg <a name="index-Prerequisites"></a>
     83  1.6  mrg 
     84  1.6  mrg <p>GCC requires that various tools and packages be available for use in the
     85  1.1  mrg build procedure.  Modifying GCC sources requires additional tools
     86  1.1  mrg described below.
     87  1.6  mrg </p>
     88  1.6  mrg <a name="Tools_002fpackages-necessary-for-building-GCC"></a>
     89  1.6  mrg <h3 class="heading">Tools/packages necessary for building GCC</h3>
     90  1.6  mrg <dl compact="compact">
     91  1.6  mrg <dt>ISO C++98 compiler</dt>
     92  1.6  mrg <dd><p>Necessary to bootstrap GCC, although versions of GCC prior
     93  1.3  mrg to 4.8 also allow bootstrapping with a ISO C89 compiler and versions
     94  1.3  mrg of GCC prior to 3.4 also allow bootstrapping with a traditional
     95  1.3  mrg (K&amp;R) C compiler.
     96  1.6  mrg </p>
     97  1.6  mrg <p>To build all languages in a cross-compiler or other configuration where
     98  1.1  mrg 3-stage bootstrap is not performed, you need to start with an existing
     99  1.3  mrg GCC binary (version 3.4 or later) because source code for language
    100  1.1  mrg frontends other than C might use GCC extensions.
    101  1.6  mrg </p>
    102  1.6  mrg <p>Note that to bootstrap GCC with versions of GCC earlier than 3.4, you
    103  1.6  mrg may need to use <samp>--disable-stage1-checking</samp>, though
    104  1.3  mrg bootstrapping the compiler with such earlier compilers is strongly
    105  1.3  mrg discouraged.
    106  1.6  mrg </p>
    107  1.6  mrg </dd>
    108  1.6  mrg <dt>C standard library and headers</dt>
    109  1.6  mrg <dd>
    110  1.6  mrg <p>In order to build GCC, the C standard library and headers must be present
    111  1.5  mrg for all target variants for which target libraries will be built (and not
    112  1.5  mrg only the variant of the host C++ compiler).
    113  1.6  mrg </p>
    114  1.6  mrg <p>This affects the popular &lsquo;<samp>x86_64-unknown-linux-gnu</samp>&rsquo; platform (among
    115  1.6  mrg other multilib targets), for which 64-bit (&lsquo;<samp>x86_64</samp>&rsquo;) and 32-bit
    116  1.6  mrg (&lsquo;<samp>i386</samp>&rsquo;) libc headers are usually packaged separately. If you do a
    117  1.6  mrg build of a native compiler on &lsquo;<samp>x86_64-unknown-linux-gnu</samp>&rsquo;, make sure you
    118  1.5  mrg either have the 32-bit libc developer package properly installed (the exact
    119  1.5  mrg name of the package depends on your distro) or you must build GCC as a
    120  1.5  mrg 64-bit only compiler by configuring with the option
    121  1.6  mrg <samp>--disable-multilib</samp>.  Otherwise, you may encounter an error such as
    122  1.6  mrg &lsquo;<samp>fatal error: gnu/stubs-32.h: No such file</samp>&rsquo;
    123  1.6  mrg </p>
    124  1.6  mrg </dd>
    125  1.6  mrg <dt>GNAT</dt>
    126  1.6  mrg <dd>
    127  1.6  mrg <p>In order to build the Ada compiler (GNAT) you must already have GNAT
    128  1.1  mrg installed because portions of the Ada frontend are written in Ada (with
    129  1.1  mrg GNAT extensions.)  Refer to the Ada installation instructions for more
    130  1.1  mrg specific information.
    131  1.6  mrg </p>
    132  1.6  mrg </dd>
    133  1.6  mrg <dt>A &ldquo;working&rdquo; POSIX compatible shell, or GNU bash</dt>
    134  1.6  mrg <dd>
    135  1.6  mrg <p>Necessary when running <code>configure</code> because some
    136  1.6  mrg <code>/bin/sh</code> shells have bugs and may crash when configuring the
    137  1.6  mrg target libraries.  In other cases, <code>/bin/sh</code> or <code>ksh</code>
    138  1.1  mrg have disastrous corner-case performance problems.  This
    139  1.6  mrg can cause target <code>configure</code> runs to literally take days to
    140  1.1  mrg complete in some cases.
    141  1.6  mrg </p>
    142  1.6  mrg <p>So on some platforms <code>/bin/ksh</code> is sufficient, on others it
    143  1.6  mrg isn&rsquo;t.  See the host/target specific instructions for your platform, or
    144  1.6  mrg use <code>bash</code> to be sure.  Then set <code>CONFIG_SHELL</code> in your
    145  1.1  mrg environment to your &ldquo;good&rdquo; shell prior to running
    146  1.6  mrg <code>configure</code>/<code>make</code>.
    147  1.6  mrg </p>
    148  1.6  mrg <p><code>zsh</code> is not a fully compliant POSIX shell and will not
    149  1.1  mrg work when configuring GCC.
    150  1.6  mrg </p>
    151  1.6  mrg </dd>
    152  1.6  mrg <dt>A POSIX or SVR4 awk</dt>
    153  1.6  mrg <dd>
    154  1.6  mrg <p>Necessary for creating some of the generated source files for GCC.
    155  1.1  mrg If in doubt, use a recent GNU awk version, as some of the older ones
    156  1.1  mrg are broken.  GNU awk version 3.1.5 is known to work.
    157  1.6  mrg </p>
    158  1.6  mrg </dd>
    159  1.6  mrg <dt>GNU binutils</dt>
    160  1.6  mrg <dd>
    161  1.6  mrg <p>Necessary in some circumstances, optional in others.  See the
    162  1.1  mrg host/target specific instructions for your platform for the exact
    163  1.1  mrg requirements.
    164  1.6  mrg </p>
    165  1.6  mrg </dd>
    166  1.6  mrg <dt>gzip version 1.2.4 (or later) or</dt>
    167  1.6  mrg <dt>bzip2 version 1.0.2 (or later)</dt>
    168  1.6  mrg <dd>
    169  1.6  mrg <p>Necessary to uncompress GCC <code>tar</code> files when source code is
    170  1.1  mrg obtained via FTP mirror sites.
    171  1.6  mrg </p>
    172  1.6  mrg </dd>
    173  1.6  mrg <dt>GNU make version 3.80 (or later)</dt>
    174  1.6  mrg <dd>
    175  1.6  mrg <p>You must have GNU make installed to build GCC.
    176  1.6  mrg </p>
    177  1.6  mrg </dd>
    178  1.6  mrg <dt>GNU tar version 1.14 (or later)</dt>
    179  1.6  mrg <dd>
    180  1.6  mrg <p>Necessary (only on some platforms) to untar the source code.  Many
    181  1.6  mrg systems&rsquo; <code>tar</code> programs will also work, only try GNU
    182  1.6  mrg <code>tar</code> if you have problems.
    183  1.6  mrg </p>
    184  1.6  mrg </dd>
    185  1.6  mrg <dt>Perl version 5.6.1 (or later)</dt>
    186  1.6  mrg <dd>
    187  1.6  mrg <p>Necessary when targeting Darwin, building &lsquo;<samp>libstdc++</samp>&rsquo;,
    188  1.6  mrg and not using <samp>--disable-symvers</samp>.
    189  1.6  mrg Necessary when targeting Solaris 2 with Sun <code>ld</code> and not using
    190  1.6  mrg <samp>--disable-symvers</samp>.  The bundled <code>perl</code> in Solaris&nbsp;8
    191  1.3  mrg and up works.
    192  1.6  mrg </p>
    193  1.6  mrg <p>Necessary when regenerating <samp>Makefile</samp> dependencies in libiberty.
    194  1.6  mrg Necessary when regenerating <samp>libiberty/functions.texi</samp>.
    195  1.6  mrg Necessary when generating manpages from Texinfo manuals.
    196  1.3  mrg Used by various scripts to generate some files included in SVN (mainly
    197  1.3  mrg Unicode-related and rarely changing) from source tables.
    198  1.6  mrg </p>
    199  1.6  mrg </dd>
    200  1.6  mrg <dt><code>jar</code>, or InfoZIP (<code>zip</code> and <code>unzip</code>)</dt>
    201  1.6  mrg <dd>
    202  1.6  mrg <p>Necessary to build libgcj, the GCJ runtime.
    203  1.6  mrg </p>
    204  1.6  mrg </dd>
    205  1.3  mrg </dl>
    206  1.3  mrg 
    207  1.6  mrg <p>Several support libraries are necessary to build GCC, some are required,
    208  1.3  mrg others optional.  While any sufficiently new version of required tools
    209  1.3  mrg usually work, library requirements are generally stricter.  Newer
    210  1.6  mrg versions may work in some cases, but it&rsquo;s safer to use the exact
    211  1.3  mrg versions documented.  We appreciate bug reports about problems with
    212  1.3  mrg newer versions, though.  If your OS vendor provides packages for the
    213  1.3  mrg support libraries then using those packages may be the simplest way to
    214  1.3  mrg install the libraries.
    215  1.6  mrg </p>
    216  1.6  mrg <dl compact="compact">
    217  1.6  mrg <dt>GNU Multiple Precision Library (GMP) version 4.3.2 (or later)</dt>
    218  1.6  mrg <dd>
    219  1.6  mrg <p>Necessary to build GCC.  If a GMP source distribution is found in a
    220  1.6  mrg subdirectory of your GCC sources named <samp>gmp</samp>, it will be built
    221  1.3  mrg together with GCC.  Alternatively, if GMP is already installed but it
    222  1.3  mrg is not in your library search path, you will have to configure with the
    223  1.6  mrg <samp>--with-gmp</samp> configure option.  See also <samp>--with-gmp-lib</samp>
    224  1.6  mrg and <samp>--with-gmp-include</samp>.
    225  1.6  mrg </p>
    226  1.6  mrg </dd>
    227  1.6  mrg <dt>MPFR Library version 2.4.2 (or later)</dt>
    228  1.6  mrg <dd>
    229  1.6  mrg <p>Necessary to build GCC.  It can be downloaded from
    230  1.3  mrg <a href="http://www.mpfr.org/">http://www.mpfr.org/</a>.  If an MPFR source distribution is found
    231  1.6  mrg in a subdirectory of your GCC sources named <samp>mpfr</samp>, it will be
    232  1.3  mrg built together with GCC.  Alternatively, if MPFR is already installed
    233  1.3  mrg but it is not in your default library search path, the
    234  1.6  mrg <samp>--with-mpfr</samp> configure option should be used.  See also
    235  1.6  mrg <samp>--with-mpfr-lib</samp> and <samp>--with-mpfr-include</samp>.
    236  1.6  mrg </p>
    237  1.6  mrg </dd>
    238  1.6  mrg <dt>MPC Library version 0.8.1 (or later)</dt>
    239  1.6  mrg <dd>
    240  1.6  mrg <p>Necessary to build GCC.  It can be downloaded from
    241  1.3  mrg <a href="http://www.multiprecision.org/">http://www.multiprecision.org/</a>.  If an MPC source distribution
    242  1.6  mrg is found in a subdirectory of your GCC sources named <samp>mpc</samp>, it
    243  1.3  mrg will be built together with GCC.  Alternatively, if MPC is already
    244  1.3  mrg installed but it is not in your default library search path, the
    245  1.6  mrg <samp>--with-mpc</samp> configure option should be used.  See also
    246  1.6  mrg <samp>--with-mpc-lib</samp> and <samp>--with-mpc-include</samp>.
    247  1.6  mrg </p>
    248  1.6  mrg </dd>
    249  1.6  mrg <dt>ISL Library version 0.14 (or 0.12.2)</dt>
    250  1.6  mrg <dd>
    251  1.6  mrg <p>Necessary to build GCC with the Graphite loop optimizations.
    252  1.3  mrg It can be downloaded from <a href="ftp://gcc.gnu.org/pub/gcc/infrastructure/">ftp://gcc.gnu.org/pub/gcc/infrastructure/</a>
    253  1.6  mrg as <samp>isl-0.12.2.tar.bz2</samp>.  If an ISL source distribution is found
    254  1.6  mrg in a subdirectory of your GCC sources named <samp>isl</samp>, it will be
    255  1.6  mrg built together with GCC.  Alternatively, the <samp>--with-isl</samp> configure
    256  1.5  mrg option should be used if ISL is not installed in your default library
    257  1.5  mrg search path.
    258  1.6  mrg </p>
    259  1.6  mrg </dd>
    260  1.6  mrg </dl>
    261  1.1  mrg 
    262  1.6  mrg <a name="Tools_002fpackages-necessary-for-modifying-GCC"></a>
    263  1.6  mrg <h3 class="heading">Tools/packages necessary for modifying GCC</h3>
    264  1.6  mrg <dl compact="compact">
    265  1.6  mrg <dt>autoconf version 2.64</dt>
    266  1.6  mrg <dt>GNU m4 version 1.4.6 (or later)</dt>
    267  1.6  mrg <dd>
    268  1.6  mrg <p>Necessary when modifying <samp>configure.ac</samp>, <samp>aclocal.m4</samp>, etc.
    269  1.6  mrg to regenerate <samp>configure</samp> and <samp>config.in</samp> files.
    270  1.6  mrg </p>
    271  1.6  mrg </dd>
    272  1.6  mrg <dt>automake version 1.11.1</dt>
    273  1.6  mrg <dd>
    274  1.6  mrg <p>Necessary when modifying a <samp>Makefile.am</samp> file to regenerate its
    275  1.6  mrg associated <samp>Makefile.in</samp>.
    276  1.6  mrg </p>
    277  1.6  mrg <p>Much of GCC does not use automake, so directly edit the <samp>Makefile.in</samp>
    278  1.6  mrg file.  Specifically this applies to the <samp>gcc</samp>, <samp>intl</samp>,
    279  1.6  mrg <samp>libcpp</samp>, <samp>libiberty</samp>, <samp>libobjc</samp> directories as well
    280  1.1  mrg as any of their subdirectories.
    281  1.6  mrg </p>
    282  1.6  mrg <p>For directories that use automake, GCC requires the latest release in
    283  1.1  mrg the 1.11 series, which is currently 1.11.1.  When regenerating a directory
    284  1.1  mrg to a newer version, please update all the directories using an older 1.11
    285  1.1  mrg to the latest released version.
    286  1.6  mrg </p>
    287  1.6  mrg </dd>
    288  1.6  mrg <dt>gettext version 0.14.5 (or later)</dt>
    289  1.6  mrg <dd>
    290  1.6  mrg <p>Needed to regenerate <samp>gcc.pot</samp>.
    291  1.6  mrg </p>
    292  1.6  mrg </dd>
    293  1.6  mrg <dt>gperf version 2.7.2 (or later)</dt>
    294  1.6  mrg <dd>
    295  1.6  mrg <p>Necessary when modifying <code>gperf</code> input files, e.g.
    296  1.6  mrg <samp>gcc/cp/cfns.gperf</samp> to regenerate its associated header file, e.g.
    297  1.6  mrg <samp>gcc/cp/cfns.h</samp>.
    298  1.6  mrg </p>
    299  1.6  mrg </dd>
    300  1.6  mrg <dt>DejaGnu 1.4.4</dt>
    301  1.6  mrg <dt>Expect</dt>
    302  1.6  mrg <dt>Tcl</dt>
    303  1.6  mrg <dd>
    304  1.6  mrg <p>Necessary to run the GCC testsuite; see the section on testing for
    305  1.5  mrg details.  Tcl 8.6 has a known regression in RE pattern handling that
    306  1.5  mrg make parts of the testsuite fail.  See
    307  1.5  mrg <a href="http://core.tcl.tk/tcl/tktview/267b7e2334ee2e9de34c4b00d6e72e2f1997085f">http://core.tcl.tk/tcl/tktview/267b7e2334ee2e9de34c4b00d6e72e2f1997085f</a>
    308  1.5  mrg for more information.  This bug has been fixed in 8.6.1.
    309  1.6  mrg </p>
    310  1.6  mrg </dd>
    311  1.6  mrg <dt>autogen version 5.5.4 (or later) and</dt>
    312  1.6  mrg <dt>guile version 1.4.1 (or later)</dt>
    313  1.6  mrg <dd>
    314  1.6  mrg <p>Necessary to regenerate <samp>fixinc/fixincl.x</samp> from
    315  1.6  mrg <samp>fixinc/inclhack.def</samp> and <samp>fixinc/*.tpl</samp>.
    316  1.6  mrg </p>
    317  1.6  mrg <p>Necessary to run &lsquo;<samp>make check</samp>&rsquo; for <samp>fixinc</samp>.
    318  1.6  mrg </p>
    319  1.6  mrg <p>Necessary to regenerate the top level <samp>Makefile.in</samp> file from
    320  1.6  mrg <samp>Makefile.tpl</samp> and <samp>Makefile.def</samp>.
    321  1.6  mrg </p>
    322  1.6  mrg </dd>
    323  1.6  mrg <dt>Flex version 2.5.4 (or later)</dt>
    324  1.6  mrg <dd>
    325  1.6  mrg <p>Necessary when modifying <samp>*.l</samp> files.
    326  1.6  mrg </p>
    327  1.6  mrg <p>Necessary to build GCC during development because the generated output
    328  1.1  mrg files are not included in the SVN repository.  They are included in
    329  1.1  mrg releases.
    330  1.6  mrg </p>
    331  1.6  mrg </dd>
    332  1.6  mrg <dt>Texinfo version 4.7 (or later)</dt>
    333  1.6  mrg <dd>
    334  1.6  mrg <p>Necessary for running <code>makeinfo</code> when modifying <samp>*.texi</samp>
    335  1.1  mrg files to test your changes.
    336  1.6  mrg </p>
    337  1.6  mrg <p>Necessary for running <code>make dvi</code> or <code>make pdf</code> to
    338  1.1  mrg create printable documentation in DVI or PDF format.  Texinfo version
    339  1.6  mrg 4.8 or later is required for <code>make pdf</code>.
    340  1.6  mrg </p>
    341  1.6  mrg <p>Necessary to build GCC documentation during development because the
    342  1.1  mrg generated output files are not included in the SVN repository.  They are
    343  1.1  mrg included in releases.
    344  1.6  mrg </p>
    345  1.6  mrg </dd>
    346  1.6  mrg <dt>TeX (any working version)</dt>
    347  1.6  mrg <dd>
    348  1.6  mrg <p>Necessary for running <code>texi2dvi</code> and <code>texi2pdf</code>, which
    349  1.6  mrg are used when running <code>make dvi</code> or <code>make pdf</code> to create
    350  1.6  mrg DVI or PDF files, respectively.
    351  1.6  mrg </p>
    352  1.6  mrg </dd>
    353  1.6  mrg <dt>Sphinx version 1.0 (or later)</dt>
    354  1.6  mrg <dd>
    355  1.6  mrg <p>Necessary to regenerate <samp>jit/docs/_build/texinfo</samp> from the <samp>.rst</samp>
    356  1.6  mrg files in the directories below <samp>jit/docs</samp>.
    357  1.6  mrg </p>
    358  1.6  mrg </dd>
    359  1.6  mrg <dt>SVN (any version)</dt>
    360  1.6  mrg <dt>SSH (any version)</dt>
    361  1.6  mrg <dd>
    362  1.6  mrg <p>Necessary to access the SVN repository.  Public releases and weekly
    363  1.6  mrg snapshots of the development sources are also available via FTP.
    364  1.6  mrg </p>
    365  1.6  mrg </dd>
    366  1.6  mrg <dt>GNU diffutils version 2.7 (or later)</dt>
    367  1.6  mrg <dd>
    368  1.6  mrg <p>Useful when submitting patches for the GCC source code.
    369  1.6  mrg </p>
    370  1.6  mrg </dd>
    371  1.6  mrg <dt>patch version 2.5.4 (or later)</dt>
    372  1.6  mrg <dd>
    373  1.6  mrg <p>Necessary when applying patches, created with <code>diff</code>, to one&rsquo;s
    374  1.6  mrg own sources.
    375  1.6  mrg </p>
    376  1.6  mrg </dd>
    377  1.6  mrg <dt>ecj1</dt>
    378  1.6  mrg <dt>gjavah</dt>
    379  1.6  mrg <dd>
    380  1.6  mrg <p>If you wish to modify <samp>.java</samp> files in libjava, you will need to
    381  1.6  mrg configure with <samp>--enable-java-maintainer-mode</samp>, and you will need
    382  1.6  mrg to have executables named <code>ecj1</code> and <code>gjavah</code> in your path.
    383  1.6  mrg The <code>ecj1</code> executable should run the Eclipse Java compiler via
    384  1.6  mrg the GCC-specific entry point.  You can download a suitable jar from
    385  1.6  mrg <a href="ftp://sourceware.org/pub/java/">ftp://sourceware.org/pub/java/</a>, or by running the script
    386  1.6  mrg <code>contrib/download_ecj</code>.
    387  1.6  mrg </p>
    388  1.6  mrg </dd>
    389  1.6  mrg <dt>antlr.jar version 2.7.1 (or later)</dt>
    390  1.6  mrg <dt>antlr binary</dt>
    391  1.6  mrg <dd>
    392  1.6  mrg <p>If you wish to build the <code>gjdoc</code> binary in libjava, you will
    393  1.6  mrg need to have an <samp>antlr.jar</samp> library available. The library is
    394  1.6  mrg searched for in system locations but can be specified with
    395  1.6  mrg <samp>--with-antlr-jar=</samp> instead.  When configuring with
    396  1.6  mrg <samp>--enable-java-maintainer-mode</samp>, you will need to have one of
    397  1.6  mrg the executables named <code>cantlr</code>, <code>runantlr</code> or
    398  1.6  mrg <code>antlr</code> in your path.
    399  1.6  mrg </p>
    400  1.6  mrg </dd>
    401  1.6  mrg </dl>
    402  1.6  mrg 
    403  1.6  mrg <hr />
    404  1.6  mrg <p>
    405  1.6  mrg <p><a href="./index.html">Return to the GCC Installation page</a>
    406  1.6  mrg </p>
    407  1.6  mrg 
    408  1.6  mrg 
    409  1.1  mrg 
    410  1.1  mrg 
    411  1.5  mrg 
    412  1.1  mrg 
    413  1.1  mrg 
    414  1.1  mrg 
    415  1.1  mrg 
    416  1.1  mrg 
    417  1.1  mrg 
    418  1.1  mrg 
    419  1.1  mrg 
    420  1.6  mrg </body>
    421  1.6  mrg </html>
    422