[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[800c9c3] | 7 | <!ENTITY gcc-download-http "http://ftp.gnu.org/gnu/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2">
|
---|
[52d29f7] | 8 | <!ENTITY gcc-download-ftp "ftp://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2">
|
---|
[fa0e8e65] | 9 | <!ENTITY gcc-md5sum "6ff1af12c53cbb3f79b27f2d6a9a3d50">
|
---|
| 10 | <!ENTITY gcc-size "32.9 MB">
|
---|
[e88817b5] | 11 | <!ENTITY gcc-buildsize "1.7 GB">
|
---|
[fa0e8e65] | 12 | <!ENTITY gcc-time "60 SBU (build, test and install all compilers)">
|
---|
[f182eed] | 13 |
|
---|
[60a31248] | 14 | <!ENTITY gnat-download-http "&sources-anduin-http;/g/gnat-3.15p-i686-pc-redhat71-gnu-bin.tar.bz2">
|
---|
| 15 | <!ENTITY gnat-download-ftp "&sources-anduin-ftp;/g/gnat-3.15p-i686-pc-redhat71-gnu-bin.tar.bz2">
|
---|
[f182eed] | 16 | <!ENTITY gnat-md5sum "c9aad2da908a40e876c24fc85f248b51">
|
---|
| 17 | <!ENTITY gnat-size "11.6 MB">
|
---|
| 18 | <!ENTITY gnat-buildsize "97.7 MB">
|
---|
[4ea5113] | 19 | <!ENTITY gnat-time "less than 0.1 SBU">
|
---|
[52d29f7] | 20 | ]>
|
---|
| 21 |
|
---|
[58bd309a] | 22 | <sect1 id="gcc" xreflabel="GCC-&gcc-version;">
|
---|
[70e3220] | 23 | <?dbhtml filename="gcc.html" ?>
|
---|
| 24 |
|
---|
| 25 | <sect1info>
|
---|
| 26 | <othername>$LastChangedBy$</othername>
|
---|
| 27 | <date>$Date$</date>
|
---|
[256ee72c] | 28 | <keywordset>
|
---|
| 29 | <keyword role="package">gcc-&gcc-version;.tar</keyword>
|
---|
[22ac237] | 30 | <keyword role="ftpdir">gcc</keyword>
|
---|
[256ee72c] | 31 | </keywordset>
|
---|
[70e3220] | 32 | </sect1info>
|
---|
| 33 |
|
---|
| 34 | <title>GCC-&gcc-version;</title>
|
---|
| 35 |
|
---|
| 36 | <indexterm zone="gcc">
|
---|
[800c9c3] | 37 | <primary sortas="a-gcc-4-0">GCC-&gcc-version;</primary>
|
---|
[70e3220] | 38 | </indexterm>
|
---|
| 39 |
|
---|
| 40 | <sect2 role="package">
|
---|
| 41 | <title>Introduction to GCC</title>
|
---|
| 42 |
|
---|
[8092658] | 43 | <para>The <application>GCC</application> package contains GNU compilers.
|
---|
[800c9c3] | 44 | This package is useful for compiling programs written in C, C++, Fortran,
|
---|
| 45 | Java, Objective C and Ada. Also included is GNU Treelang. Treelang is a
|
---|
| 46 | sample language, useful only to help people understand how to implement a
|
---|
| 47 | new language front end to GCC. It is not a useful language in itself other
|
---|
| 48 | than as an example or basis for building a new language. Therefore only
|
---|
| 49 | language developers are likely to have an interest in it.</para>
|
---|
| 50 |
|
---|
| 51 | <note>
|
---|
| 52 | <para>The Fortran compiler included with the
|
---|
| 53 | <application>GCC</application>-4.x package now aims to be conformant
|
---|
| 54 | with the Fortran 95 standard, not the Fortran 77 standard as all previous
|
---|
| 55 | versions of <application>GCC</application> have been. Please note the
|
---|
| 56 | following paragraph copied directly from the
|
---|
| 57 | <application>GCC</application>-&gcc-version; <command>gfortran</command>
|
---|
| 58 | man page.</para>
|
---|
| 59 |
|
---|
| 60 | <para><quote>Gfortran is not yet a fully conformant Fortran 95 compiler.
|
---|
| 61 | It can generate code for most constructs and expressions, but work
|
---|
| 62 | remains to be done. In particular, there are known deficiencies with
|
---|
| 63 | ENTRY, NAMELIST, and sophisticated use of MODULES, POINTERS and DERIVED
|
---|
| 64 | TYPES. For those whose Fortran codes conform to either the Fortran 77
|
---|
| 65 | standard or the GNU Fortran 77 language, we recommend to use
|
---|
| 66 | <command>g77</command> from <application>GCC</application>
|
---|
[8cfa6af] | 67 | 3.4.x</quote></para>
|
---|
| 68 |
|
---|
| 69 | <para>Instructions to install the 3.4.6 version of the Fortran compiler
|
---|
[fea3ac80] | 70 | can be found in <xref linkend='gcc3'/> and on the
|
---|
[8cfa6af] | 71 | <ulink url="http://wiki.linuxfromscratch.org/blfs/wiki/gcc3">BLFS
|
---|
| 72 | Wiki</ulink>.</para>
|
---|
[800c9c3] | 73 | </note>
|
---|
[70e3220] | 74 |
|
---|
| 75 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 76 | <itemizedlist spacing="compact">
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>Download (HTTP): <ulink url="&gcc-download-http;"/></para>
|
---|
| 79 | </listitem>
|
---|
| 80 | <listitem>
|
---|
| 81 | <para>Download (FTP): <ulink url="&gcc-download-ftp;"/></para>
|
---|
| 82 | </listitem>
|
---|
| 83 | <listitem>
|
---|
| 84 | <para>Download MD5 sum: &gcc-md5sum;</para>
|
---|
| 85 | </listitem>
|
---|
| 86 | <listitem>
|
---|
| 87 | <para>Download size: &gcc-size;</para>
|
---|
| 88 | </listitem>
|
---|
| 89 | <listitem>
|
---|
| 90 | <para>Estimated disk space required: &gcc-buildsize;</para>
|
---|
| 91 | </listitem>
|
---|
| 92 | <listitem>
|
---|
| 93 | <para>Estimated build time: &gcc-time;</para>
|
---|
| 94 | </listitem>
|
---|
| 95 | </itemizedlist>
|
---|
| 96 |
|
---|
| 97 | <bridgehead renderas="sect3">GCC Dependencies</bridgehead>
|
---|
| 98 |
|
---|
| 99 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[256ee72c] | 100 | <para role="recommended"><xref linkend="dejagnu"/></para>
|
---|
[70e3220] | 101 |
|
---|
[800c9c3] | 102 | <bridgehead renderas="sect4">Optional (Required to Build the Fortran
|
---|
| 103 | Compiler)</bridgehead>
|
---|
[256ee72c] | 104 | <para role="optional"><xref linkend="gmp"/> and
|
---|
[800c9c3] | 105 | <ulink url="http://www.mpfr.org/">MPFR</ulink></para>
|
---|
| 106 |
|
---|
[70e3220] | 107 | <note>
|
---|
[8092658] | 108 | <para>If you plan to compile Ada, you will need to install
|
---|
| 109 | <application>GNAT</application> temporarily to satisfy the circular
|
---|
[0619e6d] | 110 | dependency when you recompile <application>GCC</application>
|
---|
[70e3220] | 111 | to include Ada.</para>
|
---|
| 112 | </note>
|
---|
| 113 |
|
---|
[800c9c3] | 114 | <bridgehead renderas="sect3">GNAT-3.15 Package Information</bridgehead>
|
---|
[70e3220] | 115 | <itemizedlist spacing="compact">
|
---|
| 116 | <listitem>
|
---|
| 117 | <para>Download (HTTP): <ulink url="&gnat-download-http;"/></para>
|
---|
| 118 | </listitem>
|
---|
| 119 | <listitem>
|
---|
| 120 | <para>Download (FTP): <ulink url="&gnat-download-ftp;"/></para>
|
---|
| 121 | </listitem>
|
---|
| 122 | <listitem>
|
---|
| 123 | <para>Download MD5 sum: &gnat-md5sum;</para>
|
---|
| 124 | </listitem>
|
---|
| 125 | <listitem>
|
---|
| 126 | <para>Download size: &gnat-size;</para>
|
---|
| 127 | </listitem>
|
---|
[f182eed] | 128 | <listitem>
|
---|
| 129 | <para>Estimated disk space required: &gnat-buildsize;</para>
|
---|
| 130 | </listitem>
|
---|
[70e3220] | 131 | <listitem>
|
---|
| 132 | <para>Estimated build time: &gnat-time;</para>
|
---|
| 133 | </listitem>
|
---|
| 134 | </itemizedlist>
|
---|
| 135 |
|
---|
| 136 | <bridgehead renderas="sect3">GNAT Dependencies</bridgehead>
|
---|
| 137 |
|
---|
| 138 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[256ee72c] | 139 | <para role="required"><xref linkend="tcsh"/></para>
|
---|
[70e3220] | 140 |
|
---|
[1039de3] | 141 | <para condition="html" role="usernotes">User Notes:
|
---|
| 142 | <ulink url="&blfs-wiki;/gcc"/></para>
|
---|
| 143 |
|
---|
[70e3220] | 144 | </sect2>
|
---|
| 145 |
|
---|
| 146 | <sect2 role="installation">
|
---|
| 147 | <title>Installation of GNAT</title>
|
---|
| 148 |
|
---|
[8092658] | 149 | <para>Install <application>GNAT</application> by running
|
---|
[70e3220] | 150 | the following commands:</para>
|
---|
| 151 |
|
---|
| 152 | <screen><userinput>./doconfig</userinput></screen>
|
---|
| 153 |
|
---|
| 154 | <para>The above script will ask you how and where you would like to install
|
---|
[f182eed] | 155 | <application>GNAT</application>. To avoid conflicts with the system
|
---|
| 156 | <command>gcc</command>, the package will be installed in a separate
|
---|
| 157 | directory that can later be removed from the system.</para>
|
---|
[70e3220] | 158 |
|
---|
[0619e6d] | 159 | <para>In response to the questions asked by the <command>doconfig</command>
|
---|
[70e3220] | 160 | script, enter <userinput>3</userinput> in response to the first question
|
---|
[800c9c3] | 161 | and <userinput>/opt/gnat</userinput> in response to the second
|
---|
| 162 | question.</para>
|
---|
[70e3220] | 163 |
|
---|
[800c9c3] | 164 | <para>To finish the installation, run the following command as the
|
---|
[70e3220] | 165 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 166 |
|
---|
| 167 | <screen role="root"><userinput>./doinstall</userinput></screen>
|
---|
| 168 |
|
---|
[8092658] | 169 | <para>The <application>GNAT</application> compiler can be
|
---|
| 170 | invoked by executing the <command>gcc</command> binary installed
|
---|
[70e3220] | 171 | by the above script.</para>
|
---|
| 172 |
|
---|
[0619e6d] | 173 | <para>You may now remove the <application>GNAT</application>
|
---|
[70e3220] | 174 | source directory:</para>
|
---|
| 175 |
|
---|
| 176 | <screen><userinput>cd .. &&
|
---|
| 177 | rm -rf gnat-3.15p-i686-pc-linux-gnu-bin</userinput></screen>
|
---|
| 178 |
|
---|
[8092658] | 179 | <para>Prepare to compile <application>GCC</application> by placing the
|
---|
[800c9c3] | 180 | <application>GNAT</application> version of <command>gcc</command> at the
|
---|
| 181 | beginning of the <envar>PATH</envar> variable by using the following
|
---|
| 182 | commands:</para>
|
---|
[70e3220] | 183 |
|
---|
| 184 | <screen><userinput>PATH_HOLD=$PATH &&
|
---|
[fa0e8e65] | 185 | export PATH=/opt/gnat/bin:$PATH_HOLD</userinput></screen>
|
---|
[70e3220] | 186 |
|
---|
| 187 | </sect2>
|
---|
| 188 |
|
---|
| 189 | <sect2 role="installation">
|
---|
| 190 | <title>Installation of GCC</title>
|
---|
| 191 |
|
---|
[8092658] | 192 | <para>Install <application>GCC</application> by running the
|
---|
[70e3220] | 193 | following commands:</para>
|
---|
| 194 |
|
---|
| 195 | <important>
|
---|
[8092658] | 196 | <para>The installation process may overwrite your existing
|
---|
[800c9c3] | 197 | <application>GCC</application> <command>gcc</command> and
|
---|
| 198 | <command>c++</command> compilers and libraries. It is highly recommended
|
---|
| 199 | that you have the <application>Tcl</application>,
|
---|
[0619e6d] | 200 | <application>Expect</application> and <application>DejaGnu</application>
|
---|
[4ea5113] | 201 | packages installed before beginning the build so you can run the full
|
---|
| 202 | suite of tests.</para>
|
---|
[70e3220] | 203 |
|
---|
[8092658] | 204 | <para>Do not continue with the <command>make install</command> command
|
---|
[fa0e8e65] | 205 | until you are confident the build was successful. You can compare your
|
---|
[4ea5113] | 206 | test results with those found at
|
---|
| 207 | <ulink url="http://gcc.gnu.org/ml/gcc-testresults/"/>. There's also an
|
---|
[e88817b5] | 208 | i686 platform test result produced by an LFS-SVN-20051127 system at
|
---|
[fa0e8e65] | 209 | <ulink url="&files-anduin;/gcc403_test.txt"/>. You
|
---|
[4ea5113] | 210 | may also want to refer to the information found in the
|
---|
[800c9c3] | 211 | <application>GCC</application>-Pass 2 section of Chapter 5 in the LFS
|
---|
[e88817b5] | 212 | book (<ulink url="&lfs-root;/chapter05/gcc-pass2.html"/>).</para>
|
---|
[70e3220] | 213 | </important>
|
---|
| 214 |
|
---|
[fa0e8e65] | 215 | <!-- The instructions below perform a 'make bootstrap' instead of just
|
---|
| 216 | a plain 'make' intentionally. Even though we assume that the current
|
---|
| 217 | version of GCC is installed in LFS, because this installation includes
|
---|
| 218 | the Ada compiler as an installed language, a bootstrap is required.
|
---|
| 219 | The GNAT compiler must be used for stage1 of the bootstrap in order to
|
---|
| 220 | build Ada, therefore we must bootstrap, else we would have a GCC
|
---|
| 221 | installed on the system that was produced by a foriegn compiler. -->
|
---|
[d02add0] | 222 |
|
---|
[800c9c3] | 223 | <screen><userinput>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in &&
|
---|
[01d7eb0] | 224 | sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in &&
|
---|
[8ca386d] | 225 | mkdir ../gcc-build &&
|
---|
| 226 | cd ../gcc-build &&
|
---|
[800c9c3] | 227 | ../gcc-&gcc-version;/configure \
|
---|
| 228 | --prefix=/usr \
|
---|
| 229 | --libexecdir=/usr/lib \
|
---|
| 230 | --enable-shared \
|
---|
| 231 | --enable-threads=posix \
|
---|
| 232 | --enable-__cxa_atexit \
|
---|
| 233 | --enable-clocale=gnu \
|
---|
| 234 | --enable-languages=c,c++,objc,f95,ada,java,treelang &&
|
---|
[572c673] | 235 | make bootstrap &&
|
---|
[8ca386d] | 236 | make -k check &&
|
---|
[70e3220] | 237 | ../gcc-&gcc-version;/contrib/test_summary</userinput></screen>
|
---|
[8c9ec303] | 238 |
|
---|
[70e3220] | 239 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[8c9ec303] | 240 |
|
---|
[70e3220] | 241 | <screen role="root"><userinput>make install &&
|
---|
[8c9ec303] | 242 | ln -v -sf ../usr/bin/cpp /lib &&
|
---|
| 243 | ln -v -sf gcc /usr/bin/cc &&
|
---|
[38485e5c] | 244 | chown -v -R root:root \
|
---|
| 245 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include &&
|
---|
| 246 | chown -v -R root:root \
|
---|
[70e3220] | 247 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/ada{lib,include}</userinput></screen>
|
---|
| 248 |
|
---|
[f182eed] | 249 | <para>The <filename class='libraryfile'>libffi</filename> interface header
|
---|
| 250 | is installed in a location where other packages will not be able to find
|
---|
| 251 | it. If you included Java as one of the installed languages, create a
|
---|
| 252 | symbolic link in <filename class='directory'>/usr/include</filename> to
|
---|
| 253 | remedy this:</para>
|
---|
| 254 |
|
---|
| 255 | <screen role="root"><userinput>ln -v -sf `find /usr/lib/gcc -name ffitarget.h` /usr/include</userinput></screen>
|
---|
| 256 |
|
---|
[8092658] | 257 | <para>As the <systemitem class="username">root</systemitem> user, remove the
|
---|
[70e3220] | 258 | <application>GNAT</application> installation:</para>
|
---|
| 259 |
|
---|
| 260 | <screen role="root"><userinput>rm -rf /opt/gnat</userinput></screen>
|
---|
| 261 |
|
---|
[8092658] | 262 | <para>Now, as the unprivileged user, restore your old
|
---|
[70e3220] | 263 | <envar>PATH</envar>:</para>
|
---|
| 264 |
|
---|
| 265 | <screen><userinput>export PATH=$PATH_HOLD &&
|
---|
| 266 | unset PATH_HOLD</userinput></screen>
|
---|
| 267 |
|
---|
| 268 | </sect2>
|
---|
| 269 |
|
---|
| 270 | <sect2 role="commands">
|
---|
| 271 | <title>Command Explanations</title>
|
---|
| 272 |
|
---|
[8092658] | 273 | <para><command>sed -i 's/install_to_$(INSTALL_DEST) //'
|
---|
[800c9c3] | 274 | libiberty/Makefile.in</command>: This command suppresses the installation
|
---|
| 275 | of <filename class='libraryfile'>libiberty.a</filename> as the version
|
---|
| 276 | provided by <application>Binutils</application> is used instead.</para>
|
---|
[70e3220] | 277 |
|
---|
[8092658] | 278 | <para><command>mkdir ../gcc-build; cd ../gcc-build</command>: The
|
---|
| 279 | <application>GCC</application> documentation recommends
|
---|
[70e3220] | 280 | building the package in a dedicated build directory.</para>
|
---|
| 281 |
|
---|
| 282 | <para><parameter>--enable-shared --enable-threads=posix
|
---|
[800c9c3] | 283 | --enable-__cxa_atexit</parameter>: These parameters are required to build
|
---|
[70e3220] | 284 | the <application>C++</application> libraries to published standards.</para>
|
---|
| 285 |
|
---|
| 286 | <para><parameter>--enable-clocale=gnu</parameter>: This command is a
|
---|
| 287 | failsafe for incomplete locale data.</para>
|
---|
| 288 |
|
---|
[800c9c3] | 289 | <para>
|
---|
| 290 | <parameter>--enable-languages=c,c++,objc,f95,ada,java,treelang</parameter>:
|
---|
[8092658] | 291 | This command identifies which languages to build. You may modify this command
|
---|
[70e3220] | 292 | to remove undesired languages.</para>
|
---|
| 293 |
|
---|
[8092658] | 294 | <para><command>make -k check</command>: This command runs the test suite
|
---|
[800c9c3] | 295 | without stopping if any errors are encountered.</para>
|
---|
[70e3220] | 296 |
|
---|
[8092658] | 297 | <para><command>../gcc-&gcc-version;/contrib/test_summary</command>: This
|
---|
| 298 | command will produce a summary of the test suite results. You can append
|
---|
[70e3220] | 299 | <command>| grep -A7 Summ</command> to the command to produce an even more
|
---|
[800c9c3] | 300 | condensed version of the summary. You may also wish to redirect the output
|
---|
| 301 | to a file for review and comparison later on.</para>
|
---|
[70e3220] | 302 |
|
---|
[800c9c3] | 303 | <para><command>ln -v -sf ../usr/bin/cpp /lib</command>: This command
|
---|
| 304 | creates a link to the C PreProcessor as some packages expect it to be
|
---|
| 305 | installed in the <filename class='directory'>/lib</filename>
|
---|
| 306 | directory.</para>
|
---|
[70e3220] | 307 |
|
---|
[800c9c3] | 308 | <para><command>ln -v -sf gcc /usr/bin/cc</command>: This link is created as
|
---|
| 309 | some packages refer to the C compiler using an alternate name.</para>
|
---|
[70e3220] | 310 |
|
---|
[800c9c3] | 311 | <para><command>chown -v -R root:root
|
---|
| 312 | /usr/lib/gcc/i686-pc-linux-gnu/...</command>:
|
---|
[8092658] | 313 | If the package is built by a user other than root, the ownership of the
|
---|
| 314 | installed <filename class='directory'>include</filename> and
|
---|
| 315 | <filename class='directory'>adalib</filename> directories (and their
|
---|
[800c9c3] | 316 | contents) will be incorrect. These commands change the ownership to the
|
---|
| 317 | <systemitem class="username">root</systemitem> user and group . Omit the
|
---|
| 318 | command changing the Ada directories if you did not include Ada as one of
|
---|
| 319 | the installed languages.</para>
|
---|
[70e3220] | 320 |
|
---|
| 321 | </sect2>
|
---|
| 322 |
|
---|
| 323 | <sect2 role="content">
|
---|
| 324 | <title>Contents</title>
|
---|
| 325 |
|
---|
| 326 | <segmentedlist>
|
---|
| 327 | <segtitle>Installed Programs</segtitle>
|
---|
| 328 | <segtitle>Installed Libraries</segtitle>
|
---|
| 329 | <segtitle>Installed Directories</segtitle>
|
---|
| 330 |
|
---|
| 331 | <seglistitem>
|
---|
[800c9c3] | 332 | <seg>addr2name.awk, fastjar, gcj, gcj-dbtool,gcjh, gfortran, gij,
|
---|
| 333 | gjnih, gnat, gnatbind, gnatbl, gnatchop, gnatclean, gnatfind, gnatkr,
|
---|
| 334 | gnatlink, gnatls, gnatmake, gnatname, gnatprep, gnatxref, gprmake,
|
---|
| 335 | grepjar, grmic, grmiregistry, gtreelang, jcf-dump, jv-convert, jv-scan
|
---|
| 336 | and architecture specific names for gcj and gcjh</seg>
|
---|
[1039de3] | 337 | <seg>libffi.{so,a}, libgcj.{so,a}, libgfortran.{so,a},
|
---|
| 338 | libgfortranbegin.a, libgij.{so,a}, libobjc.{so,a} and numerous other
|
---|
[800c9c3] | 339 | run-time libraries and executables in /usr/lib/gcc</seg>
|
---|
| 340 | <seg>/usr/include/c++/4.0.1/gcj,
|
---|
| 341 | /usr/include/c++/4.0.1/gnu,
|
---|
| 342 | /usr/include/c++/4.0.1/java,
|
---|
| 343 | /usr/include/c++/4.0.1/javax,
|
---|
| 344 | /usr/include/c++/4.0.1/org,
|
---|
| 345 | /usr/lib/gcc/i686-pc-linux-gnu/4.0.1/adainclude,
|
---|
| 346 | /usr/lib/gcc/i686-pc-linux-gnu/4.0.1/adalib,
|
---|
| 347 | /usr/lib/gcj-4.0.1,
|
---|
| 348 | /usr/lib/security
|
---|
| 349 | and /usr/share/java</seg>
|
---|
[70e3220] | 350 | </seglistitem>
|
---|
| 351 | </segmentedlist>
|
---|
| 352 |
|
---|
[800c9c3] | 353 | <para>Some program and library names and descriptions are not listed here,
|
---|
| 354 | but can be found at
|
---|
| 355 | <ulink url="&lfs-root;/chapter06/gcc.html#contents-gcc"/> as they were
|
---|
| 356 | initially installed during the building of LFS.</para>
|
---|
| 357 |
|
---|
[70e3220] | 358 | <variablelist>
|
---|
| 359 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 360 | <?dbfo list-presentation="list"?>
|
---|
| 361 | <?dbhtml list-presentation="table"?>
|
---|
| 362 |
|
---|
| 363 | <varlistentry id="addr2name.awk">
|
---|
| 364 | <term><command>addr2name.awk</command></term>
|
---|
| 365 | <listitem>
|
---|
| 366 | <para> emulates some of the functionality of addr2line.</para>
|
---|
| 367 | <indexterm zone="gcc addr2name.awk">
|
---|
| 368 | <primary sortas="b-addr2name.awk">addr2name.awk</primary>
|
---|
| 369 | </indexterm>
|
---|
| 370 | </listitem>
|
---|
| 371 | </varlistentry>
|
---|
| 372 |
|
---|
[800c9c3] | 373 | <varlistentry id="fastjar-gcc">
|
---|
| 374 | <term><command>fastjar</command></term>
|
---|
[70e3220] | 375 | <listitem>
|
---|
[800c9c3] | 376 | <para>is an archive tool for <application>Java</application> archives.</para>
|
---|
| 377 | <indexterm zone="gcc fastjar-gcc">
|
---|
| 378 | <primary sortas="b-fastjar">fastjar</primary>
|
---|
[70e3220] | 379 | </indexterm>
|
---|
| 380 | </listitem>
|
---|
| 381 | </varlistentry>
|
---|
| 382 |
|
---|
| 383 | <varlistentry id="gcj">
|
---|
| 384 | <term><command>gcj</command></term>
|
---|
| 385 | <listitem>
|
---|
[8092658] | 386 | <para>is an ahead-of-time compiler for the
|
---|
[70e3220] | 387 | <application>Java</application> language.</para>
|
---|
| 388 | <indexterm zone="gcc gcj">
|
---|
| 389 | <primary sortas="b-gcj">gcj</primary>
|
---|
| 390 | </indexterm>
|
---|
| 391 | </listitem>
|
---|
| 392 | </varlistentry>
|
---|
| 393 |
|
---|
[800c9c3] | 394 | <varlistentry id="gcj-dbtool">
|
---|
| 395 | <term><command>gcj-dbtool</command></term>
|
---|
| 396 | <listitem>
|
---|
| 397 | <para>is a tool for creating and manipulating class file mapping
|
---|
| 398 | databases.</para>
|
---|
| 399 | <indexterm zone="gcc gcj-dbtool">
|
---|
| 400 | <primary sortas="b-gcj-dbtool">gcj-dbtool</primary>
|
---|
| 401 | </indexterm>
|
---|
| 402 | </listitem>
|
---|
| 403 | </varlistentry>
|
---|
| 404 |
|
---|
[70e3220] | 405 | <varlistentry id="gcjh">
|
---|
| 406 | <term><command>gcjh</command></term>
|
---|
| 407 | <listitem>
|
---|
[0619e6d] | 408 | <para>generates header files from <application>Java</application>
|
---|
[70e3220] | 409 | class files.</para>
|
---|
| 410 | <indexterm zone="gcc gcjh">
|
---|
| 411 | <primary sortas="b-gcjh">gcjh</primary>
|
---|
| 412 | </indexterm>
|
---|
| 413 | </listitem>
|
---|
| 414 | </varlistentry>
|
---|
| 415 |
|
---|
[800c9c3] | 416 | <varlistentry id="gfortran">
|
---|
| 417 | <term><command>gfortran</command></term>
|
---|
| 418 | <listitem>
|
---|
| 419 | <para>is the <application>Fortran</application> compiler invoked by
|
---|
| 420 | <command>gcc</command>.</para>
|
---|
| 421 | <indexterm zone="gcc gfortran">
|
---|
| 422 | <primary sortas="b-gfortran">gfortran</primary>
|
---|
| 423 | </indexterm>
|
---|
| 424 | </listitem>
|
---|
| 425 | </varlistentry>
|
---|
| 426 |
|
---|
[70e3220] | 427 | <varlistentry id="gij">
|
---|
| 428 | <term><command>gij</command></term>
|
---|
| 429 | <listitem>
|
---|
[0619e6d] | 430 | <para>is the GNU interpreter for <application>Java</application>
|
---|
[70e3220] | 431 | bytecode.</para>
|
---|
| 432 | <indexterm zone="gcc gij">
|
---|
| 433 | <primary sortas="b-gij">gij</primary>
|
---|
| 434 | </indexterm>
|
---|
| 435 | </listitem>
|
---|
| 436 | </varlistentry>
|
---|
| 437 |
|
---|
[800c9c3] | 438 | <varlistentry id="gjnih">
|
---|
| 439 | <term><command>gjnij</command></term>
|
---|
| 440 | <listitem>
|
---|
| 441 | <para>is used to generate JNI header files from class files. Running
|
---|
| 442 | it is equivalent to running <command>gcjh -jni</command>.</para>
|
---|
| 443 | <indexterm zone="gcc gjnih">
|
---|
| 444 | <primary sortas="b-gjnih">gjnih</primary>
|
---|
| 445 | </indexterm>
|
---|
| 446 | </listitem>
|
---|
| 447 | </varlistentry>
|
---|
| 448 |
|
---|
[70e3220] | 449 | <varlistentry id="gnat">
|
---|
| 450 | <term><command>gnat</command></term>
|
---|
| 451 | <listitem>
|
---|
[8092658] | 452 | <para>is the <application>Ada</application> compiler invoked by
|
---|
[70e3220] | 453 | <command>gcc</command>.</para>
|
---|
| 454 | <indexterm zone="gcc gnat">
|
---|
| 455 | <primary sortas="b-gnat">gnat</primary>
|
---|
| 456 | </indexterm>
|
---|
| 457 | </listitem>
|
---|
| 458 | </varlistentry>
|
---|
| 459 |
|
---|
| 460 | <varlistentry id="gnatbind">
|
---|
| 461 | <term><command>gnatbind</command></term>
|
---|
| 462 | <listitem>
|
---|
| 463 | <para>is used to bind compiled objects.</para>
|
---|
| 464 | <indexterm zone="gcc gnatbind">
|
---|
| 465 | <primary sortas="b-gnatbind">gnatbind</primary>
|
---|
| 466 | </indexterm>
|
---|
| 467 | </listitem>
|
---|
| 468 | </varlistentry>
|
---|
| 469 |
|
---|
| 470 | <varlistentry id="gnatbl">
|
---|
| 471 | <term><command>gnatbl</command></term>
|
---|
| 472 | <listitem>
|
---|
| 473 | <para>is the <application>Ada</application> linker.</para>
|
---|
| 474 | <indexterm zone="gcc gnatbl">
|
---|
| 475 | <primary sortas="b-gnatbl">gnatbl</primary>
|
---|
| 476 | </indexterm>
|
---|
| 477 | </listitem>
|
---|
| 478 | </varlistentry>
|
---|
| 479 |
|
---|
| 480 | <varlistentry id="gnatchop">
|
---|
| 481 | <term><command>gnatchop</command></term>
|
---|
| 482 | <listitem>
|
---|
[8092658] | 483 | <para>is useful for renaming files to meet the standard
|
---|
[70e3220] | 484 | <application>Ada</application> default file naming conventions.</para>
|
---|
| 485 | <indexterm zone="gcc gnatchop">
|
---|
| 486 | <primary sortas="b-gnatchop">gnatchop</primary>
|
---|
| 487 | </indexterm>
|
---|
| 488 | </listitem>
|
---|
| 489 | </varlistentry>
|
---|
| 490 |
|
---|
| 491 | <varlistentry id="gnatclean">
|
---|
| 492 | <term><command>gnatclean</command></term>
|
---|
| 493 | <listitem>
|
---|
[8092658] | 494 | <para>is used to remove files associated with a
|
---|
[70e3220] | 495 | <application>GNAT</application> project.</para>
|
---|
| 496 | <indexterm zone="gcc gnatclean">
|
---|
| 497 | <primary sortas="b-gnatclean">gnatclean</primary>
|
---|
| 498 | </indexterm>
|
---|
| 499 | </listitem>
|
---|
| 500 | </varlistentry>
|
---|
| 501 |
|
---|
| 502 | <varlistentry id="gnatfind">
|
---|
| 503 | <term><command>gnatfind</command></term>
|
---|
| 504 | <listitem>
|
---|
| 505 | <para> is the <application>GNAT</application> definition/use finder.</para>
|
---|
| 506 | <indexterm zone="gcc gnatfind">
|
---|
| 507 | <primary sortas="b-gnatfind">gnatfind</primary>
|
---|
| 508 | </indexterm>
|
---|
| 509 | </listitem>
|
---|
| 510 | </varlistentry>
|
---|
| 511 |
|
---|
| 512 | <varlistentry id="gnatkr">
|
---|
| 513 | <term><command>gnatkr</command></term>
|
---|
| 514 | <listitem>
|
---|
[8092658] | 515 | <para>is used to determine the crunched name for a given file, when
|
---|
[70e3220] | 516 | crunched to a specified maximum length.</para>
|
---|
| 517 | <indexterm zone="gcc gnatkr">
|
---|
| 518 | <primary sortas="b-gnatkr">gnatkr</primary>
|
---|
| 519 | </indexterm>
|
---|
| 520 | </listitem>
|
---|
| 521 | </varlistentry>
|
---|
| 522 |
|
---|
| 523 | <varlistentry id="gnatlink">
|
---|
| 524 | <term><command>gnatlink</command></term>
|
---|
| 525 | <listitem>
|
---|
| 526 | <para>is used to link programs and build an executable file.</para>
|
---|
| 527 | <indexterm zone="gcc gnatlink">
|
---|
| 528 | <primary sortas="b-gnatlink">gnatlink</primary>
|
---|
| 529 | </indexterm>
|
---|
| 530 | </listitem>
|
---|
| 531 | </varlistentry>
|
---|
| 532 |
|
---|
| 533 | <varlistentry id="gnatls">
|
---|
| 534 | <term><command>gnatls</command></term>
|
---|
| 535 | <listitem>
|
---|
| 536 | <para>is the compiled unit browser.</para>
|
---|
| 537 | <indexterm zone="gcc gnatls">
|
---|
| 538 | <primary sortas="b-gnatls">gnatls</primary>
|
---|
| 539 | </indexterm>
|
---|
| 540 | </listitem>
|
---|
| 541 | </varlistentry>
|
---|
| 542 |
|
---|
| 543 | <varlistentry id="gnatmake">
|
---|
| 544 | <term><command>gnatmake</command></term>
|
---|
| 545 | <listitem>
|
---|
| 546 | <para>is an automatic <command>make</command> facility.</para>
|
---|
| 547 | <indexterm zone="gcc gnatmake">
|
---|
| 548 | <primary sortas="b-gnatmake">gnatmake</primary>
|
---|
| 549 | </indexterm>
|
---|
| 550 | </listitem>
|
---|
| 551 | </varlistentry>
|
---|
| 552 |
|
---|
| 553 | <varlistentry id="gnatname">
|
---|
| 554 | <term><command>gnatname</command></term>
|
---|
| 555 | <listitem>
|
---|
| 556 | <para>will list the files associated with a
|
---|
| 557 | <application>GNAT</application> project.</para>
|
---|
| 558 | <indexterm zone="gcc gnatname">
|
---|
| 559 | <primary sortas="b-gnatname">gnatname</primary>
|
---|
| 560 | </indexterm>
|
---|
| 561 | </listitem>
|
---|
| 562 | </varlistentry>
|
---|
| 563 |
|
---|
| 564 | <varlistentry id="gnatprep">
|
---|
| 565 | <term><command>gnatprep</command></term>
|
---|
| 566 | <listitem>
|
---|
| 567 | <para>is the <application>GNAT</application> external preprocessor.</para>
|
---|
| 568 | <indexterm zone="gcc gnatprep">
|
---|
| 569 | <primary sortas="b-gnatprep">gnatprep</primary>
|
---|
| 570 | </indexterm>
|
---|
| 571 | </listitem>
|
---|
| 572 | </varlistentry>
|
---|
| 573 |
|
---|
| 574 | <varlistentry id="gnatxref">
|
---|
| 575 | <term><command>gnatxref</command></term>
|
---|
| 576 | <listitem>
|
---|
| 577 | <para>is the <application>GNAT</application> cross-referencer.</para>
|
---|
| 578 | <indexterm zone="gcc gnatxref">
|
---|
| 579 | <primary sortas="b-gnatxref">gnatxref</primary>
|
---|
| 580 | </indexterm>
|
---|
| 581 | </listitem>
|
---|
| 582 | </varlistentry>
|
---|
| 583 |
|
---|
[800c9c3] | 584 | <varlistentry id="gprmake">
|
---|
| 585 | <term><command>gprmake</command></term>
|
---|
[70e3220] | 586 | <listitem>
|
---|
[8092658] | 587 | <para>is a tool used to create <filename>Makefile</filename>s that
|
---|
[70e3220] | 588 | support compilation by multiple languages.</para>
|
---|
[800c9c3] | 589 | <indexterm zone="gcc gprmake">
|
---|
| 590 | <primary sortas="b-gprmake">gprmake</primary>
|
---|
[70e3220] | 591 | </indexterm>
|
---|
| 592 | </listitem>
|
---|
| 593 | </varlistentry>
|
---|
| 594 |
|
---|
| 595 | <varlistentry id="grepjar">
|
---|
| 596 | <term><command>grepjar</command></term>
|
---|
| 597 | <listitem>
|
---|
| 598 | <para>searches <filename>jar</filename> files for a pattern.</para>
|
---|
| 599 | <indexterm zone="gcc grepjar">
|
---|
| 600 | <primary sortas="b-grepjar">grepjar</primary>
|
---|
| 601 | </indexterm>
|
---|
| 602 | </listitem>
|
---|
| 603 | </varlistentry>
|
---|
| 604 |
|
---|
[800c9c3] | 605 | <varlistentry id="grmic-gcc">
|
---|
| 606 | <term><command>grmic</command></term>
|
---|
[70e3220] | 607 | <listitem>
|
---|
[800c9c3] | 608 | <para>generates stubs for Remote Method Invocation.</para>
|
---|
| 609 | <indexterm zone="gcc grmic-gcc">
|
---|
| 610 | <primary sortas="b-grmic">grmic</primary>
|
---|
| 611 | </indexterm>
|
---|
| 612 | </listitem>
|
---|
| 613 | </varlistentry>
|
---|
| 614 |
|
---|
| 615 | <varlistentry id="grmiregistry-gcc">
|
---|
| 616 | <term><command>grmiregistry</command></term>
|
---|
| 617 | <listitem>
|
---|
| 618 | <para> starts a remote object registry on the current host.</para>
|
---|
| 619 | <indexterm zone="gcc grmiregistry-gcc">
|
---|
| 620 | <primary sortas="b-grmiregistry">grmiregistry</primary>
|
---|
| 621 | </indexterm>
|
---|
| 622 | </listitem>
|
---|
| 623 | </varlistentry>
|
---|
| 624 |
|
---|
| 625 | <varlistentry id="gtreelang">
|
---|
| 626 | <term><command>gtreelang</command></term>
|
---|
| 627 | <listitem>
|
---|
| 628 | <para>is largely a cut down version of C, designed to showcase the
|
---|
| 629 | features of the <application>GCC</application> code generation back
|
---|
| 630 | end. Only those features that are directly supported by the
|
---|
| 631 | <application>GCC</application> code generation back end are
|
---|
| 632 | implemented. Features are implemented in a manner which is easiest
|
---|
| 633 | and clearest to implement. Not all or even most code generation back
|
---|
| 634 | end features are implemented. The intention is to add features
|
---|
| 635 | incrementally until most features of the
|
---|
| 636 | <application>GCC</application> back end are implemented in
|
---|
| 637 | Treelang.</para>
|
---|
| 638 | <indexterm zone="gcc gtreelang">
|
---|
| 639 | <primary sortas="b-gtreelang">gtreelang</primary>
|
---|
[70e3220] | 640 | </indexterm>
|
---|
| 641 | </listitem>
|
---|
| 642 | </varlistentry>
|
---|
| 643 |
|
---|
| 644 | <varlistentry id="jcf-dump">
|
---|
| 645 | <term><command>jcf-dump</command></term>
|
---|
| 646 | <listitem>
|
---|
[0619e6d] | 647 | <para>prints information about <application>Java</application>
|
---|
[70e3220] | 648 | class files.</para>
|
---|
| 649 | <indexterm zone="gcc jcf-dump">
|
---|
| 650 | <primary sortas="b-jcf-dump">jcf-dump</primary>
|
---|
| 651 | </indexterm>
|
---|
| 652 | </listitem>
|
---|
| 653 | </varlistentry>
|
---|
| 654 |
|
---|
| 655 | <varlistentry id="jv-convert">
|
---|
| 656 | <term><command>jv-convert</command></term>
|
---|
| 657 | <listitem>
|
---|
| 658 | <para>converts files from one encoding to another.</para>
|
---|
| 659 | <indexterm zone="gcc jv-convert">
|
---|
| 660 | <primary sortas="b-jv-convert">jv-convert</primary>
|
---|
| 661 | </indexterm>
|
---|
| 662 | </listitem>
|
---|
| 663 | </varlistentry>
|
---|
| 664 |
|
---|
| 665 | <varlistentry id="jv-scan">
|
---|
| 666 | <term><command>jv-scan</command></term>
|
---|
| 667 | <listitem>
|
---|
[0619e6d] | 668 | <para>prints information about <application>Java</application>
|
---|
[70e3220] | 669 | source files.</para>
|
---|
| 670 | <indexterm zone="gcc jv-scan">
|
---|
| 671 | <primary sortas="b-jv-scan">jv-scan</primary>
|
---|
| 672 | </indexterm>
|
---|
| 673 | </listitem>
|
---|
| 674 | </varlistentry>
|
---|
| 675 |
|
---|
| 676 | </variablelist>
|
---|
| 677 |
|
---|
| 678 | </sect2>
|
---|
[1a686a1] | 679 |
|
---|
| 680 | </sect1>
|
---|