[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[6a82dd9] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-gcc" role="wrap">
|
---|
[6a82dd9] | 9 | <?dbhtml filename="gcc.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>gcc</productname>
|
---|
| 13 | <productnumber>&gcc-version;</productnumber>
|
---|
| 14 | <address>&gcc-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[6a82dd9] | 17 | <title>GCC-&gcc-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-gcc">
|
---|
| 20 | <primary sortas="a-GCC">GCC</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[6370fa6] | 25 |
|
---|
[6a82dd9] | 26 | <para>The GCC package contains the GNU compiler collection, which includes
|
---|
| 27 | the C and C++ compilers.</para>
|
---|
[673b0d8] | 28 |
|
---|
[6a82dd9] | 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 32 |
|
---|
[6a82dd9] | 33 | <seglistitem>
|
---|
[e4a5635] | 34 | <seg>&gcc-ch6-sbu;</seg>
|
---|
| 35 | <seg>&gcc-ch6-du;</seg>
|
---|
[6a82dd9] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
[3554fa3a] | 38 |
|
---|
[6a82dd9] | 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of GCC</title>
|
---|
| 43 |
|
---|
[07312f6] | 44 | <para>As in <xref linkend="ch-tools-gcc-pass2"/>, apply the following
|
---|
| 45 | <command>sed</command> to force the build to use the
|
---|
| 46 | <option>-fomit-frame-pointer</option> compiler flag in order to ensure
|
---|
[2ca8941] | 47 | consistent compiler builds:</para>
|
---|
[2e02c35] | 48 |
|
---|
[6e88633] | 49 | <screen><userinput remap="pre">case `uname -m` in
|
---|
[9f5aaf7] | 50 | i?86) sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in ;;
|
---|
[6e88633] | 51 | esac</userinput></screen>
|
---|
[b755562] | 52 | <!--
|
---|
[ff0f063] | 53 | <para>Workaround a bug so that GCC doesn't install
|
---|
| 54 | <filename class="libraryfile">libiberty.a</filename>, which is already
|
---|
| 55 | provided by Binutils:</para>
|
---|
| 56 |
|
---|
| 57 | <screen><userinput remap="pre">sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen>
|
---|
[b755562] | 58 | -->
|
---|
[289207b] | 59 | <para>Also fix an error in one of the check Makefiles and disable one test in
|
---|
| 60 | the g++ libmudflap test suite:</para>
|
---|
[2efa44a] | 61 |
|
---|
[289207b] | 62 | <screen><userinput remap="pre">sed -i -e /autogen/d -e /check.sh/d fixincludes/Makefile.in
|
---|
| 63 | mv -v libmudflap/testsuite/libmudflap.c++/pass41-frag.cxx{,.disable}</userinput></screen>
|
---|
[2efa44a] | 64 |
|
---|
[6a82dd9] | 65 | <para>The GCC documentation recommends building GCC outside of the source
|
---|
| 66 | directory in a dedicated build directory:</para>
|
---|
[73aedd1d] | 67 |
|
---|
[0445a3d] | 68 | <screen><userinput remap="pre">mkdir -v ../gcc-build
|
---|
[73aedd1d] | 69 | cd ../gcc-build</userinput></screen>
|
---|
| 70 |
|
---|
[6a82dd9] | 71 | <para>Prepare GCC for compilation:</para>
|
---|
[73aedd1d] | 72 |
|
---|
[cde2ae7] | 73 | <screen><userinput remap="configure">SED=sed \
|
---|
| 74 | ../gcc-&gcc-version;/configure --prefix=/usr \
|
---|
[ff0f063] | 75 | --enable-shared \
|
---|
| 76 | --enable-threads=posix \
|
---|
| 77 | --enable-__cxa_atexit \
|
---|
| 78 | --enable-clocale=gnu \
|
---|
| 79 | --enable-languages=c,c++ \
|
---|
| 80 | --disable-multilib \
|
---|
| 81 | --disable-bootstrap \
|
---|
[9f5aaf7] | 82 | --with-system-zlib</userinput></screen>
|
---|
[73aedd1d] | 83 |
|
---|
[1cdaff9] | 84 | <para>Note that for other languages, there are some prerequisites that
|
---|
| 85 | are not available. See the BLFS Book for instructions on how to
|
---|
[182d5d3] | 86 | build all the GCC supported languages.</para>
|
---|
| 87 |
|
---|
[ae4d45a] | 88 | <variablelist>
|
---|
| 89 | <title>The meaning of the new configure option:</title>
|
---|
[cde2ae7] | 90 |
|
---|
[ff0f063] | 91 | <varlistentry>
|
---|
[cde2ae7] | 92 | <term><envar>SED=sed</envar></term>
|
---|
[ff0f063] | 93 | <listitem>
|
---|
[cde2ae7] | 94 | <para>Setting this environment variable prevents a hard-coded
|
---|
| 95 | path to /tools/bin/sed.</para>
|
---|
[ff0f063] | 96 | </listitem>
|
---|
| 97 | </varlistentry>
|
---|
[cde2ae7] | 98 |
|
---|
[ae4d45a] | 99 | <varlistentry>
|
---|
| 100 | <term><parameter>--with-system-zlib</parameter></term>
|
---|
| 101 | <listitem>
|
---|
| 102 | <para>This switch tells GCC to link to the system installed copy of
|
---|
[8dac2e2] | 103 | the Zlib library, rather than its own internal copy.</para>
|
---|
[ae4d45a] | 104 | </listitem>
|
---|
| 105 | </varlistentry>
|
---|
| 106 | </variablelist>
|
---|
| 107 |
|
---|
[6a82dd9] | 108 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 109 |
|
---|
[0445a3d] | 110 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 111 |
|
---|
[6a82dd9] | 112 | <important>
|
---|
| 113 | <para>In this section, the test suite for GCC is considered
|
---|
| 114 | critical. Do not skip it under any circumstance.</para>
|
---|
| 115 | </important>
|
---|
[81fd230] | 116 |
|
---|
[4e48f56e] | 117 | <para>One set of tests in the GCC test suite is known to exhaust the stack,
|
---|
| 118 | so increase the stack size prior to running the tests:</para>
|
---|
| 119 |
|
---|
[2efa44a] | 120 | <screen><userinput remap="test">ulimit -s 32768</userinput></screen>
|
---|
[4e48f56e] | 121 |
|
---|
[6a82dd9] | 122 | <para>Test the results, but do not stop at errors:</para>
|
---|
[73aedd1d] | 123 |
|
---|
[0445a3d] | 124 | <screen><userinput remap="test">make -k check</userinput></screen>
|
---|
[73aedd1d] | 125 |
|
---|
[9278974d] | 126 | <para>To receive a summary of the test suite results, run:</para>
|
---|
| 127 |
|
---|
[0445a3d] | 128 | <screen><userinput remap="test">../gcc-&gcc-version;/contrib/test_summary</userinput></screen>
|
---|
[9278974d] | 129 |
|
---|
| 130 | <para>For only the summaries, pipe the output through
|
---|
| 131 | <userinput>grep -A7 Summ</userinput>.</para>
|
---|
| 132 |
|
---|
| 133 | <para>Results can be compared with those located at <ulink
|
---|
[536ce32] | 134 | url="&test-results;"/> and <ulink url="http://gcc.gnu.org/ml/gcc-testresults/"/>.</para>
|
---|
[9278974d] | 135 |
|
---|
| 136 | <para>A few unexpected failures cannot always be avoided. The GCC developers
|
---|
| 137 | are usually aware of these issues, but have not resolved them yet. In
|
---|
| 138 | particular, the <filename class="libraryfile">libmudflap</filename> tests
|
---|
[16a59d0d] | 139 | are known to be particularly problematic as a result of a bug in GCC
|
---|
[9278974d] | 140 | (<ulink url="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20003"/>).
|
---|
| 141 | Unless the test results are vastly different from those at the above URL,
|
---|
| 142 | it is safe to continue.</para>
|
---|
[73aedd1d] | 143 |
|
---|
[6a82dd9] | 144 | <para>Install the package:</para>
|
---|
[73aedd1d] | 145 |
|
---|
[0445a3d] | 146 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 147 |
|
---|
[6a82dd9] | 148 | <para>Some packages expect the C preprocessor to be installed in the
|
---|
| 149 | <filename class="directory">/lib</filename> directory.
|
---|
| 150 | To support those packages, create this symlink:</para>
|
---|
[73aedd1d] | 151 |
|
---|
[0445a3d] | 152 | <screen><userinput remap="install">ln -sv ../usr/bin/cpp /lib</userinput></screen>
|
---|
[73aedd1d] | 153 |
|
---|
[6a82dd9] | 154 | <para>Many packages use the name <command>cc</command> to call the C
|
---|
| 155 | compiler. To satisfy those packages, create a symlink:</para>
|
---|
[1ba726f] | 156 |
|
---|
[0445a3d] | 157 | <screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen>
|
---|
[1ba726f] | 158 |
|
---|
[09f1daf] | 159 | <para>Now that our final toolchain is in place, it is important to again ensure
|
---|
| 160 | that compiling and linking will work as expected. We do this by performing
|
---|
| 161 | the same sanity checks as we did earlier in the chapter:</para>
|
---|
| 162 |
|
---|
[d9441360] | 163 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 164 | href="adjusting.xml"
|
---|
[09f1daf] | 165 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
| 166 |
|
---|
[d9441360] | 167 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 168 | href="adjusting.xml"
|
---|
[09f1daf] | 169 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
| 170 |
|
---|
[d9441360] | 171 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 172 | href="adjusting.xml"
|
---|
[09f1daf] | 173 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 174 |
|
---|
[d9441360] | 175 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 176 | href="adjusting.xml"
|
---|
[09f1daf] | 177 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
| 178 |
|
---|
[d9441360] | 179 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 180 | href="adjusting.xml"
|
---|
[09f1daf] | 181 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
| 182 |
|
---|
[d9441360] | 183 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 184 | href="adjusting.xml"
|
---|
[09f1daf] | 185 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
| 186 |
|
---|
| 187 | <screen><computeroutput>/usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/../../../crt1.o succeeded
|
---|
| 188 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/../../../crti.o succeeded
|
---|
| 189 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/../../../crtn.o succeeded</computeroutput></screen>
|
---|
| 190 |
|
---|
[6e88633] | 191 | <para>Depending on your machine architecture, the above may differ slightly,
|
---|
| 192 | the difference usually being the name of the directory
|
---|
| 193 | after <filename class="directory">/usr/lib/gcc</filename>. If your machine is
|
---|
| 194 | a 64-bit system, you may also see a directory named <filename class="directory">lib64</filename>
|
---|
| 195 | towards the end of the string. The important thing to
|
---|
[5f7456b] | 196 | look for here is that <command>gcc</command> has found all three
|
---|
| 197 | <filename>crt*.o</filename> files under the
|
---|
| 198 | <filename class="directory">/usr/lib</filename> directory.</para>
|
---|
[6e88633] | 199 |
|
---|
[d9441360] | 200 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 201 | href="adjusting.xml"
|
---|
[09f1daf] | 202 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 203 |
|
---|
[041c8f67] | 204 | <screen><userinput>grep -B4 '^ /usr/include' dummy.log</userinput></screen>
|
---|
[e9a652b] | 205 |
|
---|
[d9441360] | 206 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 207 | href="adjusting.xml"
|
---|
[09f1daf] | 208 | xpointer="xpointer(//*[@os='h'])"/>
|
---|
| 209 |
|
---|
[e9a652b] | 210 | <screen><computeroutput>#include <...> search starts here:
|
---|
[865fe24] | 211 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include
|
---|
[c528e3a] | 212 | /usr/local/include
|
---|
[3f39abf3] | 213 | /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/include-fixed
|
---|
[e9a652b] | 214 | /usr/include</computeroutput></screen>
|
---|
| 215 |
|
---|
[6e88633] | 216 | <para>Again, note that the directory named after your target triplet may be
|
---|
| 217 | different than the above, depending on your architecture.</para>
|
---|
| 218 |
|
---|
[3f39abf3] | 219 | <note><para>As of version 4.3.0, GCC now unconditionally installs the
|
---|
| 220 | <filename>limits.h</filename> file into the private
|
---|
[041c8f67] | 221 | <filename class="directory">include-fixed</filename> directory, and that
|
---|
[3f39abf3] | 222 | directory is required to be in place.</para></note>
|
---|
| 223 |
|
---|
[d9441360] | 224 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 225 | href="adjusting.xml"
|
---|
[09f1daf] | 226 | xpointer="xpointer(//*[@os='i'])"/>
|
---|
| 227 |
|
---|
[d9441360] | 228 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 229 | href="adjusting.xml"
|
---|
[09f1daf] | 230 | xpointer="xpointer(//*[@os='j'])"/>
|
---|
| 231 |
|
---|
[d9441360] | 232 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 233 | href="adjusting.xml"
|
---|
[09f1daf] | 234 | xpointer="xpointer(//*[@os='k'])"/>
|
---|
| 235 |
|
---|
[e9a652b] | 236 | <screen><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib")
|
---|
| 237 | SEARCH_DIR("/usr/local/lib")
|
---|
| 238 | SEARCH_DIR("/lib")
|
---|
[6e88633] | 239 | SEARCH_DIR("/usr/lib");</computeroutput></screen>
|
---|
| 240 |
|
---|
| 241 | <para>A 64-bit system may see a few more directories. For example, here
|
---|
[f1994dc] | 242 | is the output from an x86_64 machine:</para>
|
---|
[6e88633] | 243 |
|
---|
| 244 | <screen><computeroutput>SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib64")
|
---|
| 245 | SEARCH_DIR("/usr/local/lib64")
|
---|
| 246 | SEARCH_DIR("/lib64")
|
---|
| 247 | SEARCH_DIR("/usr/lib64")
|
---|
| 248 | SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib")
|
---|
| 249 | SEARCH_DIR("/usr/local/lib")
|
---|
| 250 | SEARCH_DIR("/lib")
|
---|
[e9a652b] | 251 | SEARCH_DIR("/usr/lib");</computeroutput></screen>
|
---|
| 252 |
|
---|
[d9441360] | 253 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 254 | href="adjusting.xml"
|
---|
[09f1daf] | 255 | xpointer="xpointer(//*[@os='l'])"/>
|
---|
| 256 |
|
---|
[d9441360] | 257 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 258 | href="adjusting.xml"
|
---|
[09f1daf] | 259 | xpointer="xpointer(//*[@os='m'])"/>
|
---|
| 260 |
|
---|
[d9441360] | 261 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 262 | href="adjusting.xml"
|
---|
[09f1daf] | 263 | xpointer="xpointer(//*[@os='n'])"/>
|
---|
| 264 |
|
---|
[d9441360] | 265 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 266 | href="adjusting.xml"
|
---|
[09f1daf] | 267 | xpointer="xpointer(//*[@os='o'])"/>
|
---|
| 268 |
|
---|
[d9441360] | 269 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 270 | href="adjusting.xml"
|
---|
[09f1daf] | 271 | xpointer="xpointer(//*[@os='p'])"/>
|
---|
| 272 |
|
---|
[d9441360] | 273 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 274 | href="adjusting.xml"
|
---|
[09f1daf] | 275 | xpointer="xpointer(//*[@os='q'])"/>
|
---|
| 276 |
|
---|
[d9441360] | 277 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 278 | href="adjusting.xml"
|
---|
[09f1daf] | 279 | xpointer="xpointer(//*[@os='r'])"/>
|
---|
| 280 |
|
---|
[d9441360] | 281 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 282 | href="adjusting.xml"
|
---|
[09f1daf] | 283 | xpointer="xpointer(//*[@os='s'])"/>
|
---|
| 284 |
|
---|
[d9441360] | 285 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 286 | href="adjusting.xml"
|
---|
[09f1daf] | 287 | xpointer="xpointer(//*[@os='t'])"/>
|
---|
[6a82dd9] | 288 |
|
---|
[d9441360] | 289 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 290 | href="adjusting.xml"
|
---|
[e9a652b] | 291 | xpointer="xpointer(//*[@os='u'])"/>
|
---|
| 292 |
|
---|
[d9441360] | 293 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 294 | href="adjusting.xml"
|
---|
[e9a652b] | 295 | xpointer="xpointer(//*[@os='v'])"/>
|
---|
| 296 |
|
---|
[970a126] | 297 | <para>Finally, move a misplaced file:</para>
|
---|
[39ec01c] | 298 |
|
---|
[970a126] | 299 | <screen><userinput remap="install">mkdir -pv /usr/share/gdb/auto-load/usr/lib
|
---|
| 300 | mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
|
---|
[39ec01c] | 301 |
|
---|
[6a82dd9] | 302 | </sect2>
|
---|
| 303 |
|
---|
| 304 | <sect2 id="contents-gcc" role="content">
|
---|
| 305 | <title>Contents of GCC</title>
|
---|
| 306 |
|
---|
| 307 | <segmentedlist>
|
---|
| 308 | <segtitle>Installed programs</segtitle>
|
---|
| 309 | <segtitle>Installed libraries</segtitle>
|
---|
[fe05b08] | 310 | <segtitle>Installed directories</segtitle>
|
---|
[6a82dd9] | 311 |
|
---|
| 312 | <seglistitem>
|
---|
[2ca8941] | 313 | <seg>c++, cc (link to gcc), cpp, g++, gcc,
|
---|
[b5b97081] | 314 | gcc-ar, gcc-nm, gcc-ranlib, and gcov</seg>
|
---|
[e0901b3] | 315 |
|
---|
[b5b97081] | 316 | <seg>libasan.{a,so}, libatomic.{a,so}, libgcc.a, libgcc_eh.a,
|
---|
[b755562] | 317 | libgcc_s.so, libgcov.a, libgomp.{a,so}, libiberty.a, libitm.{a,so},
|
---|
[3119ddc] | 318 | liblto_plugin.so, libmudflap.{a,so}, libmudflapth.{a,so},
|
---|
| 319 | libquadmath.{a,so}, libssp.{a,so},
|
---|
[f6b1d91] | 320 | libssp_nonshared.a, libstdc++.{a,so}, libsupc++.a and libtsan.{a,so}</seg>
|
---|
[2ca8941] | 321 |
|
---|
[fe05b08] | 322 | <seg>/usr/include/c++, /usr/lib/gcc, /usr/share/gcc-&gcc-version;</seg>
|
---|
[6a82dd9] | 323 | </seglistitem>
|
---|
| 324 | </segmentedlist>
|
---|
| 325 |
|
---|
| 326 | <variablelist>
|
---|
| 327 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 328 | <?dbfo list-presentation="list"?>
|
---|
| 329 | <?dbhtml list-presentation="table"?>
|
---|
| 330 |
|
---|
[75128571] | 331 | <varlistentry id="c">
|
---|
| 332 | <term><command>c++</command></term>
|
---|
| 333 | <listitem>
|
---|
| 334 | <para>The C++ compiler</para>
|
---|
| 335 | <indexterm zone="ch-system-gcc c">
|
---|
| 336 | <primary sortas="b-c++">c++</primary>
|
---|
| 337 | </indexterm>
|
---|
| 338 | </listitem>
|
---|
| 339 | </varlistentry>
|
---|
| 340 |
|
---|
[6a82dd9] | 341 | <varlistentry id="cc">
|
---|
| 342 | <term><command>cc</command></term>
|
---|
| 343 | <listitem>
|
---|
| 344 | <para>The C compiler</para>
|
---|
| 345 | <indexterm zone="ch-system-gcc cc">
|
---|
| 346 | <primary sortas="b-cc">cc</primary>
|
---|
| 347 | </indexterm>
|
---|
| 348 | </listitem>
|
---|
| 349 | </varlistentry>
|
---|
| 350 |
|
---|
| 351 | <varlistentry id="cpp">
|
---|
| 352 | <term><command>cpp</command></term>
|
---|
| 353 | <listitem>
|
---|
| 354 | <para>The C preprocessor; it is used by the compiler to expand the
|
---|
| 355 | #include, #define, and similar statements in the source files</para>
|
---|
| 356 | <indexterm zone="ch-system-gcc cpp">
|
---|
| 357 | <primary sortas="b-cpp">cpp</primary>
|
---|
| 358 | </indexterm>
|
---|
| 359 | </listitem>
|
---|
| 360 | </varlistentry>
|
---|
| 361 |
|
---|
| 362 | <varlistentry id="g">
|
---|
| 363 | <term><command>g++</command></term>
|
---|
| 364 | <listitem>
|
---|
| 365 | <para>The C++ compiler</para>
|
---|
| 366 | <indexterm zone="ch-system-gcc g">
|
---|
| 367 | <primary sortas="b-g++">g++</primary>
|
---|
| 368 | </indexterm>
|
---|
| 369 | </listitem>
|
---|
| 370 | </varlistentry>
|
---|
| 371 |
|
---|
| 372 | <varlistentry id="gcc">
|
---|
| 373 | <term><command>gcc</command></term>
|
---|
| 374 | <listitem>
|
---|
| 375 | <para>The C compiler</para>
|
---|
| 376 | <indexterm zone="ch-system-gcc gcc">
|
---|
| 377 | <primary sortas="b-gcc">gcc</primary>
|
---|
| 378 | </indexterm>
|
---|
| 379 | </listitem>
|
---|
| 380 | </varlistentry>
|
---|
| 381 |
|
---|
[e0901b3] | 382 | <varlistentry id="gcc-ar">
|
---|
| 383 | <term><command>gcc-ar</command></term>
|
---|
| 384 | <listitem>
|
---|
| 385 | <para>A wrapper around <command>ar</command> that adds a
|
---|
| 386 | plugin to the command line. This program is only used
|
---|
| 387 | to add "link time optization" and is not useful with the
|
---|
| 388 | default build options.</para>
|
---|
| 389 | <indexterm zone="ch-system-gcc gcc-ar">
|
---|
| 390 | <primary sortas="b-gcc-ar">gc-ar</primary>
|
---|
| 391 | </indexterm>
|
---|
| 392 | </listitem>
|
---|
| 393 | </varlistentry>
|
---|
| 394 |
|
---|
| 395 | <varlistentry id="gcc-nm">
|
---|
| 396 | <term><command>gcc-nm</command></term>
|
---|
| 397 | <listitem>
|
---|
| 398 | <para>A wrapper around <command>nm</command> that adds a
|
---|
| 399 | plugin to the command line. This program is only used
|
---|
| 400 | to add "link time optization" and is not useful with the
|
---|
| 401 | default build options.</para>
|
---|
| 402 | <indexterm zone="ch-system-gcc gcc-nm">
|
---|
| 403 | <primary sortas="b-gcc-nm">gc-nm</primary>
|
---|
| 404 | </indexterm>
|
---|
| 405 | </listitem>
|
---|
| 406 | </varlistentry>
|
---|
| 407 |
|
---|
| 408 | <varlistentry id="gcc-ranlib">
|
---|
| 409 | <term><command>gcc-ranlib</command></term>
|
---|
| 410 | <listitem>
|
---|
| 411 | <para>A wrapper around <command>ranlib</command> that adds a
|
---|
| 412 | plugin to the command line. This program is only used
|
---|
| 413 | to add "link time optization" and is not useful with the
|
---|
| 414 | default build options.</para>
|
---|
| 415 | <indexterm zone="ch-system-gcc gcc-ranlib">
|
---|
| 416 | <primary sortas="b-gcc-ranlib">gc-ranlib</primary>
|
---|
| 417 | </indexterm>
|
---|
| 418 | </listitem>
|
---|
| 419 | </varlistentry>
|
---|
[6a82dd9] | 420 |
|
---|
| 421 | <varlistentry id="gcov">
|
---|
| 422 | <term><command>gcov</command></term>
|
---|
| 423 | <listitem>
|
---|
| 424 | <para>A coverage testing tool; it is used to analyze programs to
|
---|
| 425 | determine where optimizations will have the most effect</para>
|
---|
| 426 | <indexterm zone="ch-system-gcc gcov">
|
---|
| 427 | <primary sortas="b-gcov">gcov</primary>
|
---|
| 428 | </indexterm>
|
---|
[4783efe] | 429 | </listitem>
|
---|
| 430 | </varlistentry>
|
---|
| 431 |
|
---|
| 432 | <varlistentry id="libasan">
|
---|
| 433 | <term><command>libasan</command></term>
|
---|
| 434 | <listitem>
|
---|
| 435 | <para>The Address Sanitizer runtime library</para>
|
---|
| 436 | <indexterm zone="ch-system-gcc libasan">
|
---|
| 437 | <primary sortas="b-libasan">libasan</primary>
|
---|
| 438 | </indexterm>
|
---|
[6a82dd9] | 439 | </listitem>
|
---|
| 440 | </varlistentry>
|
---|
| 441 |
|
---|
| 442 | <varlistentry id="libgcc">
|
---|
| 443 | <term><filename class="libraryfile">libgcc</filename></term>
|
---|
| 444 | <listitem>
|
---|
| 445 | <para>Contains run-time support for <command>gcc</command></para>
|
---|
| 446 | <indexterm zone="ch-system-gcc libgcc">
|
---|
| 447 | <primary sortas="c-libgcc*">libgcc*</primary>
|
---|
| 448 | </indexterm>
|
---|
| 449 | </listitem>
|
---|
| 450 | </varlistentry>
|
---|
| 451 |
|
---|
[90aae6b] | 452 | <varlistentry id="libgcov">
|
---|
| 453 | <term><filename class="libraryfile">libgcov</filename></term>
|
---|
| 454 | <listitem>
|
---|
| 455 | <para>This library is linked in to a program when GCC is instructed
|
---|
| 456 | to enable profiling</para>
|
---|
| 457 | <indexterm zone="ch-system-gcc libgcov">
|
---|
| 458 | <primary sortas="c-libgcov">libgcov</primary>
|
---|
| 459 | </indexterm>
|
---|
| 460 | </listitem>
|
---|
| 461 | </varlistentry>
|
---|
| 462 |
|
---|
| 463 | <varlistentry id="libgomp">
|
---|
| 464 | <term><filename class="libraryfile">libgomp</filename></term>
|
---|
| 465 | <listitem>
|
---|
| 466 | <para>GNU implementation of the OpenMP API for multi-platform
|
---|
| 467 | shared-memory parallel programming in C/C++ and Fortran</para>
|
---|
| 468 | <indexterm zone="ch-system-gcc libgomp">
|
---|
| 469 | <primary sortas="c-libgomp">libgomp</primary>
|
---|
| 470 | </indexterm>
|
---|
| 471 | </listitem>
|
---|
| 472 | </varlistentry>
|
---|
| 473 |
|
---|
[b755562] | 474 | <varlistentry id="libiberty">
|
---|
| 475 | <term><filename class="libraryfile">libiberty</filename></term>
|
---|
| 476 | <listitem>
|
---|
| 477 | <para>Contains routines used by various GNU programs, including
|
---|
| 478 | <command>getopt</command>, <command>obstack</command>,
|
---|
| 479 | <command>strerror</command>, <command>strtol</command>, and
|
---|
| 480 | <command>strtoul</command></para>
|
---|
| 481 | <indexterm zone="ch-system-gcc libiberty">
|
---|
| 482 | <primary sortas="c-libiberty">libiberty</primary>
|
---|
| 483 | </indexterm>
|
---|
| 484 | </listitem>
|
---|
| 485 | </varlistentry>
|
---|
| 486 |
|
---|
[3119ddc] | 487 | <varlistentry id="liblto_plugin">
|
---|
| 488 | <term><filename class="libraryfile">liblto_plugin</filename></term>
|
---|
| 489 | <listitem>
|
---|
| 490 | <para>GCC's Link Time Optimization (LTO) plugin allows GCC to perform
|
---|
| 491 | optimizations across compilation units.</para>
|
---|
| 492 | <indexterm zone="ch-system-gcc liblto_plugin">
|
---|
| 493 | <primary sortas="c-liblto_plugin*">liblto_plugin*</primary>
|
---|
| 494 | </indexterm>
|
---|
| 495 | </listitem>
|
---|
| 496 | </varlistentry>
|
---|
| 497 |
|
---|
[2791a8e] | 498 | <varlistentry id="libmudflap">
|
---|
| 499 | <term><filename class="libraryfile">libmudflap</filename></term>
|
---|
| 500 | <listitem>
|
---|
| 501 | <para>Contains routines that support GCC's bounds checking
|
---|
| 502 | functionality</para>
|
---|
| 503 | <indexterm zone="ch-system-gcc libmudflap">
|
---|
| 504 | <primary sortas="c-libmudflap*">libmudflap*</primary>
|
---|
| 505 | </indexterm>
|
---|
| 506 | </listitem>
|
---|
| 507 | </varlistentry>
|
---|
| 508 |
|
---|
[3119ddc] | 509 | <varlistentry id="libquadmath">
|
---|
| 510 | <term><filename class="libraryfile">libquadmath</filename></term>
|
---|
| 511 | <listitem>
|
---|
| 512 | <para>GCC Quad Precision Math Library API</para>
|
---|
| 513 | <indexterm zone="ch-system-gcc libquadmath">
|
---|
| 514 | <primary sortas="c-libquadmath*">libquadmath*</primary>
|
---|
| 515 | </indexterm>
|
---|
| 516 | </listitem>
|
---|
| 517 | </varlistentry>
|
---|
| 518 |
|
---|
[2791a8e] | 519 | <varlistentry id="libssp">
|
---|
| 520 | <term><filename class="libraryfile">libssp</filename></term>
|
---|
| 521 | <listitem>
|
---|
| 522 | <para>Contains routines supporting GCC's stack-smashing protection
|
---|
| 523 | functionality</para>
|
---|
| 524 | <indexterm zone="ch-system-gcc libssp">
|
---|
| 525 | <primary sortas="c-libssp*">libssp*</primary>
|
---|
| 526 | </indexterm>
|
---|
| 527 | </listitem>
|
---|
| 528 | </varlistentry>
|
---|
| 529 |
|
---|
[6a82dd9] | 530 | <varlistentry id="libstdc">
|
---|
| 531 | <term><filename class="libraryfile">libstdc++</filename></term>
|
---|
| 532 | <listitem>
|
---|
| 533 | <para>The standard C++ library</para>
|
---|
| 534 | <indexterm zone="ch-system-gcc libstdc">
|
---|
| 535 | <primary sortas="c-libstdc++">libstdc++</primary>
|
---|
| 536 | </indexterm>
|
---|
| 537 | </listitem>
|
---|
| 538 | </varlistentry>
|
---|
| 539 |
|
---|
| 540 | <varlistentry id="libsupc">
|
---|
| 541 | <term><filename class="libraryfile">libsupc++</filename></term>
|
---|
| 542 | <listitem>
|
---|
| 543 | <para>Provides supporting routines for the C++ programming
|
---|
| 544 | language</para>
|
---|
| 545 | <indexterm zone="ch-system-gcc libsupc">
|
---|
| 546 | <primary sortas="c-libsupc++">libsupc++</primary>
|
---|
| 547 | </indexterm>
|
---|
| 548 | </listitem>
|
---|
| 549 | </varlistentry>
|
---|
| 550 |
|
---|
[f6b1d91] | 551 | <varlistentry id="libtsan">
|
---|
| 552 | <term><filename class="libraryfile">libtsan</filename></term>
|
---|
| 553 | <listitem>
|
---|
| 554 | <para>The Thread Sanitizer runtime library</para>
|
---|
| 555 | <indexterm zone="ch-system-gcc libtsan">
|
---|
| 556 | <primary sortas="c-libtsan">libtsan</primary>
|
---|
| 557 | </indexterm>
|
---|
| 558 | </listitem>
|
---|
| 559 | </varlistentry>
|
---|
| 560 |
|
---|
[6a82dd9] | 561 | </variablelist>
|
---|
| 562 |
|
---|
| 563 | </sect2>
|
---|
[673b0d8] | 564 |
|
---|
| 565 | </sect1>
|
---|