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