[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/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">
|
---|
[9268fb5] | 8 | <!ENTITY gcc-download-ftp "ftp://ftp.gnu.org/gnu/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2">
|
---|
[0c927ec] | 9 | <!ENTITY gcc-md5sum "a3d7d63b9cb6b6ea049469a0c4a43c9d">
|
---|
| 10 | <!ENTITY gcc-size "82 MB">
|
---|
[7cadfea] | 11 | <!ENTITY gcc-buildsize "6.6 GB">
|
---|
| 12 | <!ENTITY gcc-time "110 SBU">
|
---|
[5512e64] | 13 |
|
---|
[d5855dc] | 14 | <!ENTITY gnat-download-http "https://libre.adacore.com/download/">
|
---|
[b9e7422] | 15 | <!-- We don't know what platform, so this is commented out
|
---|
| 16 | <!ENTITY gnat-md5sum "6425f2c7cabbdee4595b4b7c0d47237f">
|
---|
| 17 | <!ENTITY gnat-size "110 MB"> -->
|
---|
[52d29f7] | 18 | ]>
|
---|
| 19 |
|
---|
[58bd309a] | 20 | <sect1 id="gcc" xreflabel="GCC-&gcc-version;">
|
---|
[70e3220] | 21 | <?dbhtml filename="gcc.html" ?>
|
---|
| 22 |
|
---|
| 23 | <sect1info>
|
---|
| 24 | <othername>$LastChangedBy$</othername>
|
---|
| 25 | <date>$Date$</date>
|
---|
| 26 | </sect1info>
|
---|
| 27 |
|
---|
| 28 | <title>GCC-&gcc-version;</title>
|
---|
| 29 |
|
---|
| 30 | <indexterm zone="gcc">
|
---|
[800c9c3] | 31 | <primary sortas="a-gcc-4-0">GCC-&gcc-version;</primary>
|
---|
[70e3220] | 32 | </indexterm>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="package">
|
---|
| 35 | <title>Introduction to GCC</title>
|
---|
| 36 |
|
---|
[8092658] | 37 | <para>The <application>GCC</application> package contains GNU compilers.
|
---|
[800c9c3] | 38 | This package is useful for compiling programs written in C, C++, Fortran,
|
---|
[034eda7] | 39 | Java, Objective C, Objective C++, Ada, and Go. You should ensure you
|
---|
| 40 | actually need one of these additional compilers (C and C++ are installed
|
---|
| 41 | in LFS) before you install them. Additionally, there are instructions in
|
---|
| 42 | the BLFS book to install <xref linkend="openjdk"/>, which can be used
|
---|
| 43 | instead of the Java provided by the <application>GCC</application> package.
|
---|
| 44 | Many consider the Iced Tea version to be a more robust Java environment
|
---|
| 45 | than the one provided by <application>GCC</application>.</para>
|
---|
[5512e64] | 46 |
|
---|
[7cadfea] | 47 | &lfs75_checked;
|
---|
[625d5fe5] | 48 |
|
---|
[636acbb1] | 49 | <caution>
|
---|
| 50 | <para>If you are upgrading <application>GCC</application> from any other
|
---|
| 51 | version prior to &gcc-version;, then you must be careful compiling 3rd
|
---|
| 52 | party kernel modules. You should ensure that the kernel and all its
|
---|
| 53 | native modules are also compiled using the same version of
|
---|
| 54 | <application>GCC</application> that you use to build the 3rd party module.
|
---|
| 55 | This issue does not affect native kernel (and kernel modules) updates,
|
---|
| 56 | as the instructions below are a complete reinstallation of
|
---|
| 57 | <application>GCC</application>. If you have existing 3rd party modules
|
---|
| 58 | installed, ensure they are recompiled using the updated version of
|
---|
| 59 | <application>GCC</application>. As always, never update the kernel
|
---|
| 60 | headers from the ones used when <application>Glibc</application> was
|
---|
| 61 | compiled during LFS.</para>
|
---|
| 62 | </caution>
|
---|
| 63 |
|
---|
[70e3220] | 64 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 65 | <itemizedlist spacing="compact">
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>Download (HTTP): <ulink url="&gcc-download-http;"/></para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>Download (FTP): <ulink url="&gcc-download-ftp;"/></para>
|
---|
| 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>Download MD5 sum: &gcc-md5sum;</para>
|
---|
| 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>Download size: &gcc-size;</para>
|
---|
| 77 | </listitem>
|
---|
| 78 | <listitem>
|
---|
| 79 | <para>Estimated disk space required: &gcc-buildsize;</para>
|
---|
| 80 | </listitem>
|
---|
| 81 | <listitem>
|
---|
| 82 | <para>Estimated build time: &gcc-time;</para>
|
---|
| 83 | </listitem>
|
---|
| 84 | </itemizedlist>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect3">GCC Dependencies</bridgehead>
|
---|
| 87 |
|
---|
[034eda7] | 88 | <bridgehead renderas="sect4">Required if building java</bridgehead>
|
---|
| 89 | <para role="required">
|
---|
| 90 | <xref linkend="zip"/>,
|
---|
| 91 | <xref linkend="unzip"/>, and
|
---|
| 92 | <xref linkend="which"/>
|
---|
| 93 | </para>
|
---|
| 94 |
|
---|
[7cadfea] | 95 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 96 | <para role="recommended">
|
---|
| 97 | <xref linkend="dejagnu"/>
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
[70e3220] | 100 | <note>
|
---|
[034eda7] | 101 | <para>If you plan to compile Ada, you will need to install
|
---|
| 102 | <application>GNAT</application> temporarily to satisfy the circular
|
---|
| 103 | dependency when you recompile <application>GCC</application>
|
---|
| 104 | to include Ada. At the AdaCore download page, choose your platform and
|
---|
[a9aa69f] | 105 | 2013, then select the file to download. You probably want the x86-linux
|
---|
[034eda7] | 106 | or x86_64-linux file.</para>
|
---|
[70e3220] | 107 | </note>
|
---|
[7cadfea] | 108 |
|
---|
[a9aa69f] | 109 | <bridgehead renderas="sect3">GNAT GPL 2013 Package Information</bridgehead>
|
---|
[70e3220] | 110 | <itemizedlist spacing="compact">
|
---|
| 111 | <listitem>
|
---|
| 112 | <para>Download (HTTP): <ulink url="&gnat-download-http;"/></para>
|
---|
| 113 | </listitem>
|
---|
| 114 | </itemizedlist>
|
---|
[034eda7] | 115 |
|
---|
[1039de3] | 116 | <para condition="html" role="usernotes">User Notes:
|
---|
| 117 | <ulink url="&blfs-wiki;/gcc"/></para>
|
---|
| 118 |
|
---|
[70e3220] | 119 | </sect2>
|
---|
[034eda7] | 120 |
|
---|
[70e3220] | 121 | <sect2 role="installation">
|
---|
| 122 | <title>Installation of GNAT</title>
|
---|
| 123 |
|
---|
[034eda7] | 124 | <para>Before unpacking and changing into the GCC source directory, first
|
---|
[a9aa69f] | 125 | unpack the <application>GNAT</application> tarball. You may have to drill
|
---|
| 126 | down several levels and unpack a second tarball. For example,
|
---|
| 127 | AdaCore-Download-2013-07-22_0530.tar expands to
|
---|
| 128 | <filename>x86_64-linux/2013/gnatgpl/gnat-gpl-2013-x86_64-pc-linux-gnu-bin.tar.gz</filename>.
|
---|
| 129 | Expand this second tarball and change into the newly created directory.
|
---|
| 130 | Install <application>GNAT</application> by running the following
|
---|
| 131 | command:</para>
|
---|
[70e3220] | 132 |
|
---|
[a9aa69f] | 133 | <screen><userinput>make ins-all prefix=/opt/gnat</userinput></screen>
|
---|
[3a3f7b84] | 134 |
|
---|
[a9aa69f] | 135 | <para>The <application>GNAT</application> compiler can be invoked by
|
---|
| 136 | executing the <command>gcc</command> binary installed in <filename
|
---|
[1aa6f05] | 137 | class="directory">/opt/gnat/bin</filename>.</para>
|
---|
[70e3220] | 138 |
|
---|
[0619e6d] | 139 | <para>You may now remove the <application>GNAT</application>
|
---|
[a9aa69f] | 140 | source directory if desired.</para>
|
---|
[70e3220] | 141 |
|
---|
[8092658] | 142 | <para>Prepare to compile <application>GCC</application> by placing the
|
---|
[800c9c3] | 143 | <application>GNAT</application> version of <command>gcc</command> at the
|
---|
| 144 | beginning of the <envar>PATH</envar> variable by using the following
|
---|
[a9aa69f] | 145 | commands as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[70e3220] | 146 |
|
---|
| 147 | <screen><userinput>PATH_HOLD=$PATH &&
|
---|
[a9aa69f] | 148 | export PATH=/opt/gnat/bin:$PATH_HOLD</userinput></screen>
|
---|
[70e3220] | 149 |
|
---|
[034eda7] | 150 | <para>Doing so has the drawback that the <application>GCC</application>
|
---|
| 151 | and <application>Binutils</application> executables are taken
|
---|
| 152 | from the just installed <application>GNAT</application> package, but the
|
---|
| 153 | versions of those executables are outdated compared to those installed in
|
---|
| 154 | LFS. This is not important for the <application>GCC</application> compilers,
|
---|
| 155 | since they recompile themselves during the bootstrap process. On the other
|
---|
| 156 | hand, the outdated <command>ld</command> and <command>as</command> tools
|
---|
| 157 | are used all along. In order to use the LFS tools, issue:</para>
|
---|
| 158 |
|
---|
[a9aa69f] | 159 | <screen><userinput>find /opt/gnat -name ld -exec mv -v {} {}.old \;
|
---|
| 160 | find /opt/gnat -name as -exec mv -v {} {}.old \;</userinput></screen>
|
---|
[034eda7] | 161 |
|
---|
[70e3220] | 162 | </sect2>
|
---|
[034eda7] | 163 |
|
---|
[70e3220] | 164 | <sect2 role="installation">
|
---|
| 165 | <title>Installation of GCC</title>
|
---|
| 166 |
|
---|
| 167 | <important>
|
---|
[8092658] | 168 | <para>The installation process may overwrite your existing
|
---|
[800c9c3] | 169 | <application>GCC</application> <command>gcc</command> and
|
---|
[034eda7] | 170 | <command>c++</command> compilers and libraries. Having the
|
---|
[d14cd9a1] | 171 | <application>Tcl</application>, <application>Expect</application> and
|
---|
| 172 | <application>DejaGnu</application> packages installed before beginning
|
---|
| 173 | the build is highly recommended so you can run the full suite of
|
---|
| 174 | tests.</para>
|
---|
[70e3220] | 175 |
|
---|
[8092658] | 176 | <para>Do not continue with the <command>make install</command> command
|
---|
[fa0e8e65] | 177 | until you are confident the build was successful. You can compare your
|
---|
[d14cd9a1] | 178 | test results with those found at <ulink
|
---|
| 179 | url="http://gcc.gnu.org/ml/gcc-testresults/"/>. You may also want to
|
---|
| 180 | refer to the information found in the <application>GCC</application>
|
---|
| 181 | section of Chapter 6 in the LFS book (<ulink
|
---|
| 182 | url="&lfs-root;/chapter06/gcc.html"/>).</para>
|
---|
[70e3220] | 183 | </important>
|
---|
| 184 |
|
---|
[7cadfea] | 185 | <para>The instructions below will make sure that <quote>bootstrap</quote>
|
---|
[1aa6f05] | 186 | is performed intentionally. This is necessary if the
|
---|
[7cadfea] | 187 | <application>Ada</application> compiler is being built anyway. Even if it
|
---|
| 188 | isn't, a bootstrap is recommended for robustness. To disable bootstrap
|
---|
| 189 | anyways, pass <parameter>--disable-bootstrap</parameter> to the
|
---|
| 190 | <command>./configure</command> options below.</para>
|
---|
| 191 |
|
---|
| 192 | <para>Install <application>GCC</application> by running the
|
---|
| 193 | following commands:</para>
|
---|
[d02add0] | 194 |
|
---|
[a9aa69f] | 195 | <screen><userinput>sed -i 's/\(install.*:\) install-.*recursive/\1/' libffi/Makefile.in &&
|
---|
| 196 | sed -i 's/\(install-data-am:\).*/\1/' libffi/include/Makefile.in &&
|
---|
[d14cd9a1] | 197 |
|
---|
| 198 | case `uname -m` in
|
---|
| 199 | i?86) sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in ;;
|
---|
| 200 | esac &&
|
---|
[5512e64] | 201 |
|
---|
[7cadfea] | 202 | sed -i -e /autogen/d -e /check.sh/d fixincludes/Makefile.in
|
---|
| 203 | mv -v libmudflap/testsuite/libmudflap.c++/pass41-frag.cxx{,.disable}
|
---|
| 204 |
|
---|
[8ca386d] | 205 | mkdir ../gcc-build &&
|
---|
[5512e64] | 206 | cd ../gcc-build &&
|
---|
| 207 |
|
---|
[d3757f1c] | 208 | ../gcc-&gcc-version;/configure \
|
---|
| 209 | --prefix=/usr \
|
---|
| 210 | --libdir=/usr/lib \
|
---|
| 211 | --enable-shared \
|
---|
| 212 | --enable-threads=posix \
|
---|
| 213 | --enable-__cxa_atexit \
|
---|
[7cadfea] | 214 | --enable-clocale=gnu \
|
---|
[d3757f1c] | 215 | --disable-multilib \
|
---|
| 216 | --with-system-zlib \
|
---|
| 217 | --enable-lto \
|
---|
[034eda7] | 218 | --enable-languages=c,c++,fortran,ada,go,java,objc,obj-c++ &&
|
---|
[7cadfea] | 219 | make</userinput></screen>
|
---|
[5512e64] | 220 |
|
---|
[7cadfea] | 221 | <para>If you have installed additional packages such as
|
---|
| 222 | <application>Valgrind</application> and <application>GDB</application>,
|
---|
| 223 | the <application>GCC</application> part of the testsuite will run more
|
---|
| 224 | tests than in LFS. Some of those will report FAIL and others XPASS
|
---|
| 225 | (pass when expected to FAIL). To run the tests, issue:</para>
|
---|
[d3757f1c] | 226 |
|
---|
[7cadfea] | 227 | <screen><userinput>ulimit -s 32768 &&
|
---|
[a9aa69f] | 228 | make -k check &&
|
---|
[5512e64] | 229 |
|
---|
[70e3220] | 230 | ../gcc-&gcc-version;/contrib/test_summary</userinput></screen>
|
---|
[8c9ec303] | 231 |
|
---|
[70e3220] | 232 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[8c9ec303] | 233 |
|
---|
[70e3220] | 234 | <screen role="root"><userinput>make install &&
|
---|
[5512e64] | 235 |
|
---|
[8c9ec303] | 236 | ln -v -sf ../usr/bin/cpp /lib &&
|
---|
[a9aa69f] | 237 | ln -v -sf gcc /usr/bin/cc &&
|
---|
[5512e64] | 238 |
|
---|
[7cadfea] | 239 | mkdir -pv /usr/share/gdb/auto-load/usr/lib &&
|
---|
| 240 | mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib &&
|
---|
| 241 |
|
---|
[38485e5c] | 242 | chown -v -R root:root \
|
---|
[034eda7] | 243 | /usr/lib/gcc/*linux-gnu/&gcc-version;/include{,-fixed} \
|
---|
| 244 | /usr/lib/gcc/*linux-gnu/&gcc-version;/ada{lib,include}</userinput></screen>
|
---|
[f182eed] | 245 |
|
---|
[a9aa69f] | 246 | <para>You should now remove the <application>GNAT</application>
|
---|
| 247 | installation and perform other cleanups:</para>
|
---|
[70e3220] | 248 |
|
---|
[a9aa69f] | 249 | <screen><userinput>rm -rf /opt/gnat &&
|
---|
[034eda7] | 250 | export PATH=$PATH_HOLD &&
|
---|
[70e3220] | 251 | unset PATH_HOLD</userinput></screen>
|
---|
[034eda7] | 252 |
|
---|
[70e3220] | 253 | </sect2>
|
---|
| 254 |
|
---|
| 255 | <sect2 role="commands">
|
---|
| 256 | <title>Command Explanations</title>
|
---|
| 257 |
|
---|
[034eda7] | 258 | <para>The first two <command>sed</command> commands prevent the
|
---|
| 259 | installation of the <application>libffi</application> library bundled
|
---|
| 260 | with <application>GCC</application>, since it is outdated compared to
|
---|
[7cadfea] | 261 | <xref linkend="libffi"/>. The following three commands are the same
|
---|
| 262 | ones used during the build of LFS.</para>
|
---|
[70e3220] | 263 |
|
---|
[8092658] | 264 | <para><command>mkdir ../gcc-build; cd ../gcc-build</command>: The
|
---|
| 265 | <application>GCC</application> documentation recommends
|
---|
[70e3220] | 266 | building the package in a dedicated build directory.</para>
|
---|
| 267 |
|
---|
| 268 | <para><parameter>--enable-shared --enable-threads=posix
|
---|
[800c9c3] | 269 | --enable-__cxa_atexit</parameter>: These parameters are required to build
|
---|
[70e3220] | 270 | the <application>C++</application> libraries to published standards.</para>
|
---|
| 271 |
|
---|
[5512e64] | 272 | <para><parameter>--enable-clocale=gnu</parameter>: This parameter is a
|
---|
[70e3220] | 273 | failsafe for incomplete locale data.</para>
|
---|
| 274 |
|
---|
[7cadfea] | 275 | <para><parameter>--disable-multilib</parameter>: This parameter ensures
|
---|
| 276 | that files are created for the specific architecture of your computer.</para>
|
---|
| 277 |
|
---|
[034eda7] | 278 | <para><parameter>--enable-lto</parameter>: Setting this parameter allows
|
---|
[7cadfea] | 279 | to build a compiler which is able to perform <quote>Link Time
|
---|
| 280 | Optimization (LTO)</quote>.</para>
|
---|
[034eda7] | 281 |
|
---|
[800c9c3] | 282 | <para>
|
---|
[7cadfea] | 283 | <parameter>--enable-languages=c,c++,fortran,ada,go,java,objc,obj-c++</parameter>:
|
---|
[034eda7] | 284 | This command identifies which languages to build. You may modify
|
---|
| 285 | this command to remove undesired languages.</para>
|
---|
[70e3220] | 286 |
|
---|
[a9aa69f] | 287 | <para><command>ulimit -s 32768</command>: This command prevents several
|
---|
| 288 | tests from running out of stack space.</para>
|
---|
| 289 |
|
---|
[8092658] | 290 | <para><command>make -k check</command>: This command runs the test suite
|
---|
[800c9c3] | 291 | without stopping if any errors are encountered.</para>
|
---|
[70e3220] | 292 |
|
---|
[8092658] | 293 | <para><command>../gcc-&gcc-version;/contrib/test_summary</command>: This
|
---|
| 294 | command will produce a summary of the test suite results. You can append
|
---|
[70e3220] | 295 | <command>| grep -A7 Summ</command> to the command to produce an even more
|
---|
[800c9c3] | 296 | condensed version of the summary. You may also wish to redirect the output
|
---|
| 297 | to a file for review and comparison later on.</para>
|
---|
[70e3220] | 298 |
|
---|
[800c9c3] | 299 | <para><command>ln -v -sf ../usr/bin/cpp /lib</command>: This command
|
---|
| 300 | creates a link to the C PreProcessor as some packages expect it to be
|
---|
[7cadfea] | 301 | installed in the <filename class="directory">/lib</filename>
|
---|
[800c9c3] | 302 | directory.</para>
|
---|
[70e3220] | 303 |
|
---|
[800c9c3] | 304 | <para><command>ln -v -sf gcc /usr/bin/cc</command>: This link is created as
|
---|
| 305 | some packages refer to the C compiler using an alternate name.</para>
|
---|
[034eda7] | 306 |
|
---|
[800c9c3] | 307 | <para><command>chown -v -R root:root
|
---|
[034eda7] | 308 | /usr/lib/gcc/*linux-gnu/...</command>:
|
---|
[8092658] | 309 | If the package is built by a user other than root, the ownership of the
|
---|
[7cadfea] | 310 | installed <filename class="directory">include</filename> and
|
---|
| 311 | <filename class="directory">adalib</filename> directories (and their
|
---|
[800c9c3] | 312 | contents) will be incorrect. These commands change the ownership to the
|
---|
| 313 | <systemitem class="username">root</systemitem> user and group . Omit the
|
---|
| 314 | command changing the Ada directories if you did not include Ada as one of
|
---|
| 315 | the installed languages.</para>
|
---|
[034eda7] | 316 |
|
---|
[70e3220] | 317 | </sect2>
|
---|
| 318 |
|
---|
| 319 | <sect2 role="content">
|
---|
| 320 | <title>Contents</title>
|
---|
| 321 |
|
---|
| 322 | <segmentedlist>
|
---|
| 323 | <segtitle>Installed Programs</segtitle>
|
---|
| 324 | <segtitle>Installed Libraries</segtitle>
|
---|
| 325 | <segtitle>Installed Directories</segtitle>
|
---|
| 326 |
|
---|
| 327 | <seglistitem>
|
---|
[7cadfea] | 328 | <seg>
|
---|
| 329 | aot-compile, gappletviewer, gc-analyze, gccgo, gcj, gcj-dbtool,
|
---|
| 330 | gcjh, gfortran, gij, gjar, gjarsigner, gjavah, gkeytool,
|
---|
| 331 | gnat, gnatbind, gnatchop, gnatclean, gnatfind, gnative2ascii, gnatkr,
|
---|
| 332 | gnatlink, gnatls, gnatmake, gnatname, gnatprep, gnatxref, gorbd,
|
---|
| 333 | grmic, grmid, grmiregistry, gserialver, gtnameserv, jcf-dump,
|
---|
| 334 | jv-convert, rebuild-gcj-db, and architecture specific names
|
---|
| 335 | </seg>
|
---|
| 336 | <seg>
|
---|
| 337 | libgcj_bc.so, libgcj.so, libgcj-tools.so, libgfortran.{so,a},
|
---|
| 338 | libgij.so, libgo.{so,a}, libgobegin.a, libobjc.{so,a} and numerous other
|
---|
| 339 | run-time libraries and executables in /usr/lib/gcc and /usr/libexec/gcc
|
---|
| 340 | </seg>
|
---|
| 341 | <seg>
|
---|
| 342 | /usr/include/c++/&gcc-version;/{gcj,gnu,java,javax,org,sun},
|
---|
| 343 | /usr/lib/gcc/<arch-model>-linux-gnu/&gcc-version;/ada{include,lib},
|
---|
| 344 | /usr/lib/gcj-&gcc-version;-13,
|
---|
| 345 | /usr/lib/go,
|
---|
| 346 | /usr/lib/security, and
|
---|
| 347 | /usr/share/java
|
---|
| 348 | </seg>
|
---|
[70e3220] | 349 | </seglistitem>
|
---|
| 350 | </segmentedlist>
|
---|
| 351 |
|
---|
[800c9c3] | 352 | <para>Some program and library names and descriptions are not listed here,
|
---|
| 353 | but can be found at
|
---|
| 354 | <ulink url="&lfs-root;/chapter06/gcc.html#contents-gcc"/> as they were
|
---|
| 355 | initially installed during the building of LFS.</para>
|
---|
| 356 |
|
---|
[70e3220] | 357 | <variablelist>
|
---|
| 358 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 359 | <?dbfo list-presentation="list"?>
|
---|
| 360 | <?dbhtml list-presentation="table"?>
|
---|
| 361 |
|
---|
[034eda7] | 362 | <varlistentry id="aot-compile">
|
---|
| 363 | <term><command>aot-compile</command></term>
|
---|
[70e3220] | 364 | <listitem>
|
---|
[034eda7] | 365 | <para>searches a directory for Java bytecode and uses
|
---|
| 366 | <command>gcj</command> to compile it to native code.</para>
|
---|
| 367 | <indexterm zone="gcc aot-compile">
|
---|
| 368 | <primary sortas="b-aot-compile">aot-compile</primary>
|
---|
[70e3220] | 369 | </indexterm>
|
---|
| 370 | </listitem>
|
---|
| 371 | </varlistentry>
|
---|
| 372 |
|
---|
[034eda7] | 373 | <varlistentry id="gappletviewer">
|
---|
| 374 | <term><command>gappletviewer</command></term>
|
---|
[70e3220] | 375 | <listitem>
|
---|
[034eda7] | 376 | <para>loads and run a <application>Java</application> applet.</para>
|
---|
| 377 | <indexterm zone="gcc gappletviewer">
|
---|
| 378 | <primary sortas="b-gappletviewer">gappletviewer</primary>
|
---|
| 379 | </indexterm>
|
---|
| 380 | </listitem>
|
---|
| 381 | </varlistentry>
|
---|
| 382 |
|
---|
| 383 | <varlistentry id="gc-analyze">
|
---|
| 384 | <term><command>gc-analyze</command></term>
|
---|
| 385 | <listitem>
|
---|
| 386 | <para>analyzes garbage collector (GC) memory dumps from
|
---|
| 387 | <application>Java</application> code.</para>
|
---|
| 388 | <indexterm zone="gcc gc-analyze">
|
---|
| 389 | <primary sortas="b-gc-analyze">gc-analyze</primary>
|
---|
| 390 | </indexterm>
|
---|
| 391 | </listitem>
|
---|
| 392 | </varlistentry>
|
---|
| 393 |
|
---|
| 394 | <varlistentry id="gccgo">
|
---|
| 395 | <term><command>gccgo</command></term>
|
---|
| 396 | <listitem>
|
---|
| 397 | <para>is a GCC-based compiler for the
|
---|
| 398 | <application>Go</application> language.</para>
|
---|
| 399 | <indexterm zone="gcc gccgo">
|
---|
| 400 | <primary sortas="b-gccgo">gccgo</primary>
|
---|
[70e3220] | 401 | </indexterm>
|
---|
| 402 | </listitem>
|
---|
| 403 | </varlistentry>
|
---|
| 404 |
|
---|
| 405 | <varlistentry id="gcj">
|
---|
| 406 | <term><command>gcj</command></term>
|
---|
| 407 | <listitem>
|
---|
[8092658] | 408 | <para>is an ahead-of-time compiler for the
|
---|
[70e3220] | 409 | <application>Java</application> language.</para>
|
---|
| 410 | <indexterm zone="gcc gcj">
|
---|
| 411 | <primary sortas="b-gcj">gcj</primary>
|
---|
| 412 | </indexterm>
|
---|
| 413 | </listitem>
|
---|
| 414 | </varlistentry>
|
---|
| 415 |
|
---|
[800c9c3] | 416 | <varlistentry id="gcj-dbtool">
|
---|
| 417 | <term><command>gcj-dbtool</command></term>
|
---|
| 418 | <listitem>
|
---|
| 419 | <para>is a tool for creating and manipulating class file mapping
|
---|
| 420 | databases.</para>
|
---|
| 421 | <indexterm zone="gcc gcj-dbtool">
|
---|
| 422 | <primary sortas="b-gcj-dbtool">gcj-dbtool</primary>
|
---|
| 423 | </indexterm>
|
---|
| 424 | </listitem>
|
---|
| 425 | </varlistentry>
|
---|
| 426 |
|
---|
[70e3220] | 427 | <varlistentry id="gcjh">
|
---|
| 428 | <term><command>gcjh</command></term>
|
---|
| 429 | <listitem>
|
---|
[0619e6d] | 430 | <para>generates header files from <application>Java</application>
|
---|
[70e3220] | 431 | class files.</para>
|
---|
| 432 | <indexterm zone="gcc gcjh">
|
---|
| 433 | <primary sortas="b-gcjh">gcjh</primary>
|
---|
| 434 | </indexterm>
|
---|
| 435 | </listitem>
|
---|
| 436 | </varlistentry>
|
---|
| 437 |
|
---|
[800c9c3] | 438 | <varlistentry id="gfortran">
|
---|
| 439 | <term><command>gfortran</command></term>
|
---|
| 440 | <listitem>
|
---|
| 441 | <para>is the <application>Fortran</application> compiler invoked by
|
---|
| 442 | <command>gcc</command>.</para>
|
---|
| 443 | <indexterm zone="gcc gfortran">
|
---|
| 444 | <primary sortas="b-gfortran">gfortran</primary>
|
---|
| 445 | </indexterm>
|
---|
| 446 | </listitem>
|
---|
| 447 | </varlistentry>
|
---|
| 448 |
|
---|
[70e3220] | 449 | <varlistentry id="gij">
|
---|
| 450 | <term><command>gij</command></term>
|
---|
| 451 | <listitem>
|
---|
[0619e6d] | 452 | <para>is the GNU interpreter for <application>Java</application>
|
---|
[70e3220] | 453 | bytecode.</para>
|
---|
| 454 | <indexterm zone="gcc gij">
|
---|
| 455 | <primary sortas="b-gij">gij</primary>
|
---|
| 456 | </indexterm>
|
---|
| 457 | </listitem>
|
---|
| 458 | </varlistentry>
|
---|
| 459 |
|
---|
[034eda7] | 460 | <varlistentry id="gjar">
|
---|
| 461 | <term><command>gjar</command></term>
|
---|
| 462 | <listitem>
|
---|
| 463 | <para>is an (partial) implementation of the <command>jar</command>
|
---|
| 464 | utility that comes with Sun's JDK.</para>
|
---|
| 465 | <indexterm zone="gcc gjar">
|
---|
| 466 | <primary sortas="b-gjar">gjar</primary>
|
---|
| 467 | </indexterm>
|
---|
| 468 | </listitem>
|
---|
| 469 | </varlistentry>
|
---|
| 470 |
|
---|
| 471 | <varlistentry id="gjarsigner">
|
---|
| 472 | <term><command>gjarsigner</command></term>
|
---|
| 473 | <listitem>
|
---|
| 474 | <para>is a Java ARchive (JAR) file signing and verification
|
---|
| 475 | tool.</para>
|
---|
| 476 | <indexterm zone="gcc gjarsigner">
|
---|
| 477 | <primary sortas="b-gjarsigner">gjarsigner</primary>
|
---|
| 478 | </indexterm>
|
---|
| 479 | </listitem>
|
---|
| 480 | </varlistentry>
|
---|
| 481 |
|
---|
| 482 | <varlistentry id="gjavah">
|
---|
| 483 | <term><command>gjavah</command></term>
|
---|
[800c9c3] | 484 | <listitem>
|
---|
[034eda7] | 485 | <para>generates header files from Java class files.</para>
|
---|
| 486 | <indexterm zone="gcc gjavah">
|
---|
| 487 | <primary sortas="b-gjavah">gjavah</primary>
|
---|
[800c9c3] | 488 | </indexterm>
|
---|
| 489 | </listitem>
|
---|
| 490 | </varlistentry>
|
---|
[034eda7] | 491 |
|
---|
| 492 | <varlistentry id="gkeytool">
|
---|
| 493 | <term><command>gkeytool</command></term>
|
---|
| 494 | <listitem>
|
---|
| 495 | <para>manages private keys and public certificates in a
|
---|
| 496 | <application>Java</application> environment.</para>
|
---|
| 497 | <indexterm zone="gcc gkeytool">
|
---|
| 498 | <primary sortas="b-gkeytool">gkeytool</primary>
|
---|
| 499 | </indexterm>
|
---|
| 500 | </listitem>
|
---|
| 501 | </varlistentry>
|
---|
| 502 |
|
---|
[70e3220] | 503 | <varlistentry id="gnat">
|
---|
| 504 | <term><command>gnat</command></term>
|
---|
| 505 | <listitem>
|
---|
[8092658] | 506 | <para>is the <application>Ada</application> compiler invoked by
|
---|
[70e3220] | 507 | <command>gcc</command>.</para>
|
---|
| 508 | <indexterm zone="gcc gnat">
|
---|
| 509 | <primary sortas="b-gnat">gnat</primary>
|
---|
| 510 | </indexterm>
|
---|
| 511 | </listitem>
|
---|
| 512 | </varlistentry>
|
---|
| 513 |
|
---|
| 514 | <varlistentry id="gnatbind">
|
---|
| 515 | <term><command>gnatbind</command></term>
|
---|
| 516 | <listitem>
|
---|
| 517 | <para>is used to bind compiled objects.</para>
|
---|
| 518 | <indexterm zone="gcc gnatbind">
|
---|
| 519 | <primary sortas="b-gnatbind">gnatbind</primary>
|
---|
| 520 | </indexterm>
|
---|
| 521 | </listitem>
|
---|
| 522 | </varlistentry>
|
---|
| 523 |
|
---|
| 524 | <varlistentry id="gnatchop">
|
---|
| 525 | <term><command>gnatchop</command></term>
|
---|
| 526 | <listitem>
|
---|
[8092658] | 527 | <para>is useful for renaming files to meet the standard
|
---|
[70e3220] | 528 | <application>Ada</application> default file naming conventions.</para>
|
---|
| 529 | <indexterm zone="gcc gnatchop">
|
---|
| 530 | <primary sortas="b-gnatchop">gnatchop</primary>
|
---|
| 531 | </indexterm>
|
---|
| 532 | </listitem>
|
---|
| 533 | </varlistentry>
|
---|
| 534 |
|
---|
| 535 | <varlistentry id="gnatclean">
|
---|
| 536 | <term><command>gnatclean</command></term>
|
---|
| 537 | <listitem>
|
---|
[8092658] | 538 | <para>is used to remove files associated with a
|
---|
[70e3220] | 539 | <application>GNAT</application> project.</para>
|
---|
| 540 | <indexterm zone="gcc gnatclean">
|
---|
| 541 | <primary sortas="b-gnatclean">gnatclean</primary>
|
---|
| 542 | </indexterm>
|
---|
| 543 | </listitem>
|
---|
| 544 | </varlistentry>
|
---|
| 545 |
|
---|
| 546 | <varlistentry id="gnatfind">
|
---|
| 547 | <term><command>gnatfind</command></term>
|
---|
| 548 | <listitem>
|
---|
| 549 | <para> is the <application>GNAT</application> definition/use finder.</para>
|
---|
| 550 | <indexterm zone="gcc gnatfind">
|
---|
| 551 | <primary sortas="b-gnatfind">gnatfind</primary>
|
---|
| 552 | </indexterm>
|
---|
| 553 | </listitem>
|
---|
| 554 | </varlistentry>
|
---|
| 555 |
|
---|
[034eda7] | 556 | <varlistentry id="gnative2ascii">
|
---|
| 557 | <term><command>gnative2ascii</command></term>
|
---|
| 558 | <listitem>
|
---|
| 559 | <para>is an encoding converter for <application>Java</application>.</para>
|
---|
| 560 | <indexterm zone="gcc gnative2ascii">
|
---|
| 561 | <primary sortas="b-gnative2ascii">gnative2ascii</primary>
|
---|
| 562 | </indexterm>
|
---|
| 563 | </listitem>
|
---|
| 564 | </varlistentry>
|
---|
| 565 |
|
---|
[70e3220] | 566 | <varlistentry id="gnatkr">
|
---|
| 567 | <term><command>gnatkr</command></term>
|
---|
| 568 | <listitem>
|
---|
[8092658] | 569 | <para>is used to determine the crunched name for a given file, when
|
---|
[70e3220] | 570 | crunched to a specified maximum length.</para>
|
---|
| 571 | <indexterm zone="gcc gnatkr">
|
---|
| 572 | <primary sortas="b-gnatkr">gnatkr</primary>
|
---|
| 573 | </indexterm>
|
---|
| 574 | </listitem>
|
---|
| 575 | </varlistentry>
|
---|
| 576 |
|
---|
| 577 | <varlistentry id="gnatlink">
|
---|
| 578 | <term><command>gnatlink</command></term>
|
---|
| 579 | <listitem>
|
---|
| 580 | <para>is used to link programs and build an executable file.</para>
|
---|
| 581 | <indexterm zone="gcc gnatlink">
|
---|
| 582 | <primary sortas="b-gnatlink">gnatlink</primary>
|
---|
| 583 | </indexterm>
|
---|
| 584 | </listitem>
|
---|
| 585 | </varlistentry>
|
---|
| 586 |
|
---|
| 587 | <varlistentry id="gnatls">
|
---|
| 588 | <term><command>gnatls</command></term>
|
---|
| 589 | <listitem>
|
---|
| 590 | <para>is the compiled unit browser.</para>
|
---|
| 591 | <indexterm zone="gcc gnatls">
|
---|
| 592 | <primary sortas="b-gnatls">gnatls</primary>
|
---|
| 593 | </indexterm>
|
---|
| 594 | </listitem>
|
---|
| 595 | </varlistentry>
|
---|
| 596 |
|
---|
| 597 | <varlistentry id="gnatmake">
|
---|
| 598 | <term><command>gnatmake</command></term>
|
---|
| 599 | <listitem>
|
---|
| 600 | <para>is an automatic <command>make</command> facility.</para>
|
---|
| 601 | <indexterm zone="gcc gnatmake">
|
---|
| 602 | <primary sortas="b-gnatmake">gnatmake</primary>
|
---|
| 603 | </indexterm>
|
---|
| 604 | </listitem>
|
---|
| 605 | </varlistentry>
|
---|
| 606 |
|
---|
| 607 | <varlistentry id="gnatname">
|
---|
| 608 | <term><command>gnatname</command></term>
|
---|
| 609 | <listitem>
|
---|
| 610 | <para>will list the files associated with a
|
---|
| 611 | <application>GNAT</application> project.</para>
|
---|
| 612 | <indexterm zone="gcc gnatname">
|
---|
| 613 | <primary sortas="b-gnatname">gnatname</primary>
|
---|
| 614 | </indexterm>
|
---|
| 615 | </listitem>
|
---|
| 616 | </varlistentry>
|
---|
| 617 |
|
---|
| 618 | <varlistentry id="gnatprep">
|
---|
| 619 | <term><command>gnatprep</command></term>
|
---|
| 620 | <listitem>
|
---|
| 621 | <para>is the <application>GNAT</application> external preprocessor.</para>
|
---|
| 622 | <indexterm zone="gcc gnatprep">
|
---|
| 623 | <primary sortas="b-gnatprep">gnatprep</primary>
|
---|
| 624 | </indexterm>
|
---|
| 625 | </listitem>
|
---|
| 626 | </varlistentry>
|
---|
| 627 |
|
---|
| 628 | <varlistentry id="gnatxref">
|
---|
| 629 | <term><command>gnatxref</command></term>
|
---|
| 630 | <listitem>
|
---|
| 631 | <para>is the <application>GNAT</application> cross-referencer.</para>
|
---|
| 632 | <indexterm zone="gcc gnatxref">
|
---|
| 633 | <primary sortas="b-gnatxref">gnatxref</primary>
|
---|
| 634 | </indexterm>
|
---|
| 635 | </listitem>
|
---|
| 636 | </varlistentry>
|
---|
| 637 |
|
---|
[034eda7] | 638 | <varlistentry id="gorbd">
|
---|
| 639 | <term><command>gorbd</command></term>
|
---|
[70e3220] | 640 | <listitem>
|
---|
[034eda7] | 641 | <para>is an object request broker daemon.</para>
|
---|
| 642 | <indexterm zone="gcc gorbd">
|
---|
| 643 | <primary sortas="b-gorbd">gorbd</primary>
|
---|
[70e3220] | 644 | </indexterm>
|
---|
| 645 | </listitem>
|
---|
| 646 | </varlistentry>
|
---|
| 647 |
|
---|
[800c9c3] | 648 | <varlistentry id="grmic-gcc">
|
---|
| 649 | <term><command>grmic</command></term>
|
---|
[70e3220] | 650 | <listitem>
|
---|
[800c9c3] | 651 | <para>generates stubs for Remote Method Invocation.</para>
|
---|
| 652 | <indexterm zone="gcc grmic-gcc">
|
---|
| 653 | <primary sortas="b-grmic">grmic</primary>
|
---|
| 654 | </indexterm>
|
---|
| 655 | </listitem>
|
---|
| 656 | </varlistentry>
|
---|
| 657 |
|
---|
[034eda7] | 658 | <varlistentry id="grmid-gcc">
|
---|
| 659 | <term><command>grmid</command></term>
|
---|
| 660 | <listitem>
|
---|
| 661 | <para>RMI activation system daemon.</para>
|
---|
| 662 | <indexterm zone="gcc grmid-gcc">
|
---|
| 663 | <primary sortas="b-grmid">grmid</primary>
|
---|
| 664 | </indexterm>
|
---|
| 665 | </listitem>
|
---|
| 666 | </varlistentry>
|
---|
| 667 |
|
---|
[800c9c3] | 668 | <varlistentry id="grmiregistry-gcc">
|
---|
| 669 | <term><command>grmiregistry</command></term>
|
---|
| 670 | <listitem>
|
---|
| 671 | <para> starts a remote object registry on the current host.</para>
|
---|
| 672 | <indexterm zone="gcc grmiregistry-gcc">
|
---|
| 673 | <primary sortas="b-grmiregistry">grmiregistry</primary>
|
---|
| 674 | </indexterm>
|
---|
| 675 | </listitem>
|
---|
| 676 | </varlistentry>
|
---|
| 677 |
|
---|
[034eda7] | 678 | <varlistentry id="gserialver">
|
---|
| 679 | <term><command>gserialver</command></term>
|
---|
| 680 | <listitem>
|
---|
| 681 | <para> prints the serialVersionUID of the specified class.</para>
|
---|
| 682 | <indexterm zone="gcc gserialver">
|
---|
| 683 | <primary sortas="b-gserialver">gserialver</primary>
|
---|
| 684 | </indexterm>
|
---|
| 685 | </listitem>
|
---|
| 686 | </varlistentry>
|
---|
| 687 |
|
---|
| 688 | <varlistentry id="gtnameserv">
|
---|
| 689 | <term><command>gtnameserv</command></term>
|
---|
[800c9c3] | 690 | <listitem>
|
---|
[034eda7] | 691 | <para> starts a naming service.</para>
|
---|
| 692 | <indexterm zone="gcc gtnameserv">
|
---|
| 693 | <primary sortas="b-gtnameserv">gtnameserv</primary>
|
---|
[70e3220] | 694 | </indexterm>
|
---|
| 695 | </listitem>
|
---|
| 696 | </varlistentry>
|
---|
| 697 |
|
---|
| 698 | <varlistentry id="jcf-dump">
|
---|
| 699 | <term><command>jcf-dump</command></term>
|
---|
| 700 | <listitem>
|
---|
[0619e6d] | 701 | <para>prints information about <application>Java</application>
|
---|
[70e3220] | 702 | class files.</para>
|
---|
| 703 | <indexterm zone="gcc jcf-dump">
|
---|
| 704 | <primary sortas="b-jcf-dump">jcf-dump</primary>
|
---|
| 705 | </indexterm>
|
---|
| 706 | </listitem>
|
---|
| 707 | </varlistentry>
|
---|
| 708 |
|
---|
| 709 | <varlistentry id="jv-convert">
|
---|
| 710 | <term><command>jv-convert</command></term>
|
---|
| 711 | <listitem>
|
---|
| 712 | <para>converts files from one encoding to another.</para>
|
---|
| 713 | <indexterm zone="gcc jv-convert">
|
---|
| 714 | <primary sortas="b-jv-convert">jv-convert</primary>
|
---|
| 715 | </indexterm>
|
---|
| 716 | </listitem>
|
---|
| 717 | </varlistentry>
|
---|
| 718 |
|
---|
[034eda7] | 719 | <varlistentry id="rebuild-gcj-db">
|
---|
| 720 | <term><command>rebuild-gcj-db</command></term>
|
---|
[70e3220] | 721 | <listitem>
|
---|
[034eda7] | 722 | <para>Merge the per-solib databases made by
|
---|
| 723 | <application>aot-compile</application> into one system-wide
|
---|
| 724 | database.</para>
|
---|
| 725 | <indexterm zone="gcc rebuild-gcj-db">
|
---|
| 726 | <primary sortas="b-rebuild-gcj-db">rebuild-gcj-db</primary>
|
---|
[70e3220] | 727 | </indexterm>
|
---|
| 728 | </listitem>
|
---|
| 729 | </varlistentry>
|
---|
| 730 |
|
---|
| 731 | </variablelist>
|
---|
| 732 |
|
---|
| 733 | </sect2>
|
---|
[1a686a1] | 734 |
|
---|
| 735 | </sect1>
|
---|