[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>
|
---|
[12836f5] | 43 |
|
---|
[ed3be61] | 44 | <para>If building on x86_64, change the default directory name for 64-bit
|
---|
[be3d9f3] | 45 | libraries to <quote>lib</quote>:</para>
|
---|
| 46 |
|
---|
| 47 | <screen><userinput remap="pre">case $(uname -m) in
|
---|
| 48 | x86_64)
|
---|
| 49 | sed -e '/m64=/s/lib64/lib/' \
|
---|
| 50 | -i.orig gcc/config/i386/t-linux64
|
---|
| 51 | ;;
|
---|
| 52 | esac</userinput></screen>
|
---|
| 53 |
|
---|
[f1dd547] | 54 | <para>The GCC documentation recommends building GCC in a dedicated build directory:</para>
|
---|
[73aedd1d] | 55 |
|
---|
[f1dd547] | 56 | <screen><userinput remap="pre">mkdir -v build
|
---|
| 57 | cd build</userinput></screen>
|
---|
[73aedd1d] | 58 |
|
---|
[6a82dd9] | 59 | <para>Prepare GCC for compilation:</para>
|
---|
[73aedd1d] | 60 |
|
---|
[f1dd547] | 61 | <screen><userinput remap="configure">SED=sed \
|
---|
| 62 | ../configure --prefix=/usr \
|
---|
| 63 | --enable-languages=c,c++ \
|
---|
| 64 | --disable-multilib \
|
---|
| 65 | --disable-bootstrap \
|
---|
| 66 | --with-system-zlib</userinput></screen>
|
---|
[73aedd1d] | 67 |
|
---|
[1cdaff9] | 68 | <para>Note that for other languages, there are some prerequisites that
|
---|
[93756f6] | 69 | are not yet available. See the
|
---|
[0ee07e5] | 70 | <ulink url="&blfs-book;general/gcc.html">BLFS Book</ulink>
|
---|
[93756f6] | 71 | for instructions on how to build all of GCC's supported languages.</para>
|
---|
[182d5d3] | 72 |
|
---|
[ae4d45a] | 73 | <variablelist>
|
---|
[0cba512d] | 74 | <title>The meaning of the new configure parameters:</title>
|
---|
[cde2ae7] | 75 |
|
---|
[ff0f063] | 76 | <varlistentry>
|
---|
[cde2ae7] | 77 | <term><envar>SED=sed</envar></term>
|
---|
[ff0f063] | 78 | <listitem>
|
---|
[cde2ae7] | 79 | <para>Setting this environment variable prevents a hard-coded
|
---|
| 80 | path to /tools/bin/sed.</para>
|
---|
[ff0f063] | 81 | </listitem>
|
---|
| 82 | </varlistentry>
|
---|
[3dfd95e] | 83 | <!--
|
---|
[d4407c7] | 84 | <varlistentry>
|
---|
[3dfd95e] | 85 | <term><parameter>- -disable-libmpx</parameter></term>
|
---|
[d4407c7] | 86 | <listitem>
|
---|
| 87 | <para>This switch tells GCC to not build mpx (Memory Protection
|
---|
| 88 | Extensions) that can cause problems on some processors. It has
|
---|
| 89 | been removed from the next version of gcc.</para>
|
---|
| 90 | </listitem>
|
---|
| 91 | </varlistentry>
|
---|
[3dfd95e] | 92 | -->
|
---|
[ae4d45a] | 93 | <varlistentry>
|
---|
| 94 | <term><parameter>--with-system-zlib</parameter></term>
|
---|
| 95 | <listitem>
|
---|
| 96 | <para>This switch tells GCC to link to the system installed copy of
|
---|
[8dac2e2] | 97 | the Zlib library, rather than its own internal copy.</para>
|
---|
[ae4d45a] | 98 | </listitem>
|
---|
| 99 | </varlistentry>
|
---|
| 100 | </variablelist>
|
---|
| 101 |
|
---|
[6a82dd9] | 102 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 103 |
|
---|
[0445a3d] | 104 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 105 |
|
---|
[6a82dd9] | 106 | <important>
|
---|
| 107 | <para>In this section, the test suite for GCC is considered
|
---|
| 108 | critical. Do not skip it under any circumstance.</para>
|
---|
| 109 | </important>
|
---|
[81fd230] | 110 |
|
---|
[4e48f56e] | 111 | <para>One set of tests in the GCC test suite is known to exhaust the stack,
|
---|
| 112 | so increase the stack size prior to running the tests:</para>
|
---|
| 113 |
|
---|
[2efa44a] | 114 | <screen><userinput remap="test">ulimit -s 32768</userinput></screen>
|
---|
[4e48f56e] | 115 |
|
---|
[76db8d6] | 116 | <para>Test the results as a non-privileged user, but do not stop at errors:</para>
|
---|
| 117 |
|
---|
| 118 | <screen><userinput remap="test">chown -Rv nobody .
|
---|
| 119 | su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
|
---|
[73aedd1d] | 120 |
|
---|
[9278974d] | 121 | <para>To receive a summary of the test suite results, run:</para>
|
---|
| 122 |
|
---|
[f1dd547] | 123 | <screen><userinput remap="test">../contrib/test_summary</userinput></screen>
|
---|
[9278974d] | 124 |
|
---|
| 125 | <para>For only the summaries, pipe the output through
|
---|
| 126 | <userinput>grep -A7 Summ</userinput>.</para>
|
---|
| 127 |
|
---|
| 128 | <para>Results can be compared with those located at <ulink
|
---|
[98e7ac4] | 129 | url="&test-results;"/> and
|
---|
[b30de8f] | 130 | <ulink url="https://gcc.gnu.org/ml/gcc-testresults/"/>.</para>
|
---|
[9278974d] | 131 |
|
---|
[7433c5d] | 132 | <para>Six tests related to get_time are known to fail. These are
|
---|
| 133 | apparantly related to the en_HK locale.</para>
|
---|
| 134 |
|
---|
[b9e4312] | 135 | <para>Two tests named lookup.cc and reverse.cc in experimental/net
|
---|
| 136 | are known to fail in LFS chroot environment because they require
|
---|
| 137 | /etc/hosts and iana-etc.</para>
|
---|
| 138 |
|
---|
| 139 | <para>Two tests named pr57193.c and pr90178.c are known to fail.</para>
|
---|
| 140 |
|
---|
[9278974d] | 141 | <para>A few unexpected failures cannot always be avoided. The GCC developers
|
---|
[0238d49] | 142 | are usually aware of these issues, but have not resolved them yet.
|
---|
[9278974d] | 143 | Unless the test results are vastly different from those at the above URL,
|
---|
| 144 | it is safe to continue.</para>
|
---|
[73aedd1d] | 145 |
|
---|
[ac95fdb] | 146 | <!--note><para>
|
---|
[e3e989a] | 147 | On some combinations of kernel configuration and AMD processors
|
---|
| 148 | there may be more than 1100 failures in the gcc.target/i386/mpx
|
---|
| 149 | tests (which are designed to test the MPX option on recent
|
---|
| 150 | Intel processors). These can safely be ignored on AMD
|
---|
[1c8cc71] | 151 | processors. These tests will also fail on Intel processors if MPX support
|
---|
| 152 | is not enabled in the kernel even though it is present on the CPU.
|
---|
[ac95fdb] | 153 | </para></note-->
|
---|
[e3e989a] | 154 |
|
---|
[dacb13d] | 155 | <para>Install the package and remove an unneeded directory:</para>
|
---|
[73aedd1d] | 156 |
|
---|
[3f01429] | 157 | <screen><userinput remap="install">make install
|
---|
[dacb13d] | 158 | rm -rf /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include-fixed/bits/</userinput></screen>
|
---|
[73aedd1d] | 159 |
|
---|
[60b23a6f] | 160 | <para>Create a symlink required by the <ulink
|
---|
[b30de8f] | 161 | url="https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s09.html">FHS</ulink>
|
---|
[60b23a6f] | 162 | for "historical" reasons.</para>
|
---|
[73aedd1d] | 163 |
|
---|
[0445a3d] | 164 | <screen><userinput remap="install">ln -sv ../usr/bin/cpp /lib</userinput></screen>
|
---|
[73aedd1d] | 165 |
|
---|
[6a82dd9] | 166 | <para>Many packages use the name <command>cc</command> to call the C
|
---|
| 167 | compiler. To satisfy those packages, create a symlink:</para>
|
---|
[1ba726f] | 168 |
|
---|
[0445a3d] | 169 | <screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen>
|
---|
[1ba726f] | 170 |
|
---|
[6206f72] | 171 | <para>Add a compatibility symlink to enable building programs with
|
---|
| 172 | Link Time Optimization (LTO):</para>
|
---|
| 173 |
|
---|
[aa9bb6c] | 174 | <screen><userinput remap="install">install -v -dm755 /usr/lib/bfd-plugins
|
---|
[040ecb6] | 175 | ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \
|
---|
| 176 | /usr/lib/bfd-plugins/</userinput></screen>
|
---|
[6206f72] | 177 |
|
---|
[09f1daf] | 178 | <para>Now that our final toolchain is in place, it is important to again ensure
|
---|
| 179 | that compiling and linking will work as expected. We do this by performing
|
---|
| 180 | the same sanity checks as we did earlier in the chapter:</para>
|
---|
| 181 |
|
---|
[d9441360] | 182 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 183 | href="adjusting.xml"
|
---|
[09f1daf] | 184 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
| 185 |
|
---|
[d9441360] | 186 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 187 | href="adjusting.xml"
|
---|
[09f1daf] | 188 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
| 189 |
|
---|
[d9441360] | 190 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 191 | href="adjusting.xml"
|
---|
[09f1daf] | 192 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 193 |
|
---|
[d9441360] | 194 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 195 | href="adjusting.xml"
|
---|
[09f1daf] | 196 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
| 197 |
|
---|
[d9441360] | 198 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 199 | href="adjusting.xml"
|
---|
[09f1daf] | 200 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
| 201 |
|
---|
[d9441360] | 202 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 203 | href="adjusting.xml"
|
---|
[09f1daf] | 204 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
| 205 |
|
---|
[98e7ac4] | 206 | <screen><computeroutput>/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crt1.o succeeded
|
---|
| 207 | /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crti.o succeeded
|
---|
| 208 | /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crtn.o succeeded</computeroutput></screen>
|
---|
[09f1daf] | 209 |
|
---|
[6e88633] | 210 | <para>Depending on your machine architecture, the above may differ slightly,
|
---|
| 211 | the difference usually being the name of the directory
|
---|
[be3d9f3] | 212 | after <filename class="directory">/usr/lib/gcc</filename>. The important
|
---|
| 213 | thing to look for here is that <command>gcc</command> has found all three
|
---|
[5f7456b] | 214 | <filename>crt*.o</filename> files under the
|
---|
| 215 | <filename class="directory">/usr/lib</filename> directory.</para>
|
---|
[6e88633] | 216 |
|
---|
[d9441360] | 217 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 218 | href="adjusting.xml"
|
---|
[09f1daf] | 219 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 220 |
|
---|
[041c8f67] | 221 | <screen><userinput>grep -B4 '^ /usr/include' dummy.log</userinput></screen>
|
---|
[e9a652b] | 222 |
|
---|
[d9441360] | 223 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 224 | href="adjusting.xml"
|
---|
[09f1daf] | 225 | xpointer="xpointer(//*[@os='h'])"/>
|
---|
| 226 |
|
---|
[e9a652b] | 227 | <screen><computeroutput>#include <...> search starts here:
|
---|
[98e7ac4] | 228 | /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include
|
---|
[c528e3a] | 229 | /usr/local/include
|
---|
[98e7ac4] | 230 | /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include-fixed
|
---|
[e9a652b] | 231 | /usr/include</computeroutput></screen>
|
---|
| 232 |
|
---|
[6e88633] | 233 | <para>Again, note that the directory named after your target triplet may be
|
---|
| 234 | different than the above, depending on your architecture.</para>
|
---|
| 235 |
|
---|
[0d84af1] | 236 | <!-- This appears to be obsolete
|
---|
| 237 |
|
---|
[3f39abf3] | 238 | <note><para>As of version 4.3.0, GCC now unconditionally installs the
|
---|
| 239 | <filename>limits.h</filename> file into the private
|
---|
[041c8f67] | 240 | <filename class="directory">include-fixed</filename> directory, and that
|
---|
[3f39abf3] | 241 | directory is required to be in place.</para></note>
|
---|
[0d84af1] | 242 | -->
|
---|
[3f39abf3] | 243 |
|
---|
[d9441360] | 244 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 245 | href="adjusting.xml"
|
---|
[09f1daf] | 246 | xpointer="xpointer(//*[@os='i'])"/>
|
---|
| 247 |
|
---|
[d9441360] | 248 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 249 | href="adjusting.xml"
|
---|
[09f1daf] | 250 | xpointer="xpointer(//*[@os='j'])"/>
|
---|
| 251 |
|
---|
[d9441360] | 252 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 253 | href="adjusting.xml"
|
---|
[09f1daf] | 254 | xpointer="xpointer(//*[@os='k'])"/>
|
---|
| 255 |
|
---|
[98e7ac4] | 256 | <screen><computeroutput>SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64")
|
---|
| 257 | SEARCH_DIR("/usr/local/lib64")
|
---|
| 258 | SEARCH_DIR("/lib64")
|
---|
| 259 | SEARCH_DIR("/usr/lib64")
|
---|
| 260 | SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
|
---|
[e9a652b] | 261 | SEARCH_DIR("/usr/local/lib")
|
---|
| 262 | SEARCH_DIR("/lib")
|
---|
[6e88633] | 263 | SEARCH_DIR("/usr/lib");</computeroutput></screen>
|
---|
| 264 |
|
---|
[98e7ac4] | 265 | <para>A 32-bit system may see a few different directories. For example, here
|
---|
| 266 | is the output from an i686 machine:</para>
|
---|
[6e88633] | 267 |
|
---|
[98e7ac4] | 268 | <screen><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32")
|
---|
| 269 | SEARCH_DIR("/usr/local/lib32")
|
---|
| 270 | SEARCH_DIR("/lib32")
|
---|
| 271 | SEARCH_DIR("/usr/lib32")
|
---|
| 272 | SEARCH_DIR("/usr/i686-pc-linux-gnu/lib")
|
---|
[6e88633] | 273 | SEARCH_DIR("/usr/local/lib")
|
---|
| 274 | SEARCH_DIR("/lib")
|
---|
[e9a652b] | 275 | SEARCH_DIR("/usr/lib");</computeroutput></screen>
|
---|
| 276 |
|
---|
[d9441360] | 277 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 278 | href="adjusting.xml"
|
---|
[09f1daf] | 279 | xpointer="xpointer(//*[@os='l'])"/>
|
---|
| 280 |
|
---|
[d9441360] | 281 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 282 | href="adjusting.xml"
|
---|
[09f1daf] | 283 | xpointer="xpointer(//*[@os='m'])"/>
|
---|
| 284 |
|
---|
[d9441360] | 285 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 286 | href="adjusting.xml"
|
---|
[09f1daf] | 287 | xpointer="xpointer(//*[@os='n'])"/>
|
---|
| 288 |
|
---|
[d9441360] | 289 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 290 | href="adjusting.xml"
|
---|
[09f1daf] | 291 | xpointer="xpointer(//*[@os='o'])"/>
|
---|
| 292 |
|
---|
[d9441360] | 293 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 294 | href="adjusting.xml"
|
---|
[09f1daf] | 295 | xpointer="xpointer(//*[@os='p'])"/>
|
---|
| 296 |
|
---|
[d9441360] | 297 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 298 | href="adjusting.xml"
|
---|
[09f1daf] | 299 | xpointer="xpointer(//*[@os='q'])"/>
|
---|
| 300 |
|
---|
[d9441360] | 301 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 302 | href="adjusting.xml"
|
---|
[09f1daf] | 303 | xpointer="xpointer(//*[@os='r'])"/>
|
---|
| 304 |
|
---|
[d9441360] | 305 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 306 | href="adjusting.xml"
|
---|
[09f1daf] | 307 | xpointer="xpointer(//*[@os='s'])"/>
|
---|
| 308 |
|
---|
[d9441360] | 309 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 310 | href="adjusting.xml"
|
---|
[09f1daf] | 311 | xpointer="xpointer(//*[@os='t'])"/>
|
---|
[6a82dd9] | 312 |
|
---|
[d9441360] | 313 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 314 | href="adjusting.xml"
|
---|
[e9a652b] | 315 | xpointer="xpointer(//*[@os='u'])"/>
|
---|
| 316 |
|
---|
[d9441360] | 317 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[1a3e6a3] | 318 | href="adjusting.xml"
|
---|
[e9a652b] | 319 | xpointer="xpointer(//*[@os='v'])"/>
|
---|
| 320 |
|
---|
[970a126] | 321 | <para>Finally, move a misplaced file:</para>
|
---|
[39ec01c] | 322 |
|
---|
[970a126] | 323 | <screen><userinput remap="install">mkdir -pv /usr/share/gdb/auto-load/usr/lib
|
---|
| 324 | mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
|
---|
[39ec01c] | 325 |
|
---|
[6a82dd9] | 326 | </sect2>
|
---|
| 327 |
|
---|
| 328 | <sect2 id="contents-gcc" role="content">
|
---|
| 329 | <title>Contents of GCC</title>
|
---|
| 330 |
|
---|
| 331 | <segmentedlist>
|
---|
| 332 | <segtitle>Installed programs</segtitle>
|
---|
| 333 | <segtitle>Installed libraries</segtitle>
|
---|
[fe05b08] | 334 | <segtitle>Installed directories</segtitle>
|
---|
[6a82dd9] | 335 |
|
---|
| 336 | <seglistitem>
|
---|
[2ca8941] | 337 | <seg>c++, cc (link to gcc), cpp, g++, gcc,
|
---|
[78cc3be] | 338 | gcc-ar, gcc-nm, gcc-ranlib, gcov, gcov-dump, and gcov-tool</seg>
|
---|
[e0901b3] | 339 |
|
---|
[78cc3be] | 340 | <seg>libasan.{a,so}, libatomic.{a,so}, libcc1.so, libgcc.a, libgcc_eh.a,
|
---|
| 341 | libgcc_s.so, libgcov.a, libgomp.{a,so}, libitm.{a,so},
|
---|
| 342 | liblsan.{a,so}, liblto_plugin.so,
|
---|
| 343 | libquadmath.{a,so}, libssp.{a,so}, libssp_nonshared.a,
|
---|
| 344 | libstdc++.{a,so}, libstdc++fs.a, libsupc++.a, libtsan.{a,so},
|
---|
| 345 | and libubsan.{a,so}</seg>
|
---|
[2ca8941] | 346 |
|
---|
[7bb9fda] | 347 | <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and
|
---|
[4e8a532] | 348 | /usr/share/gcc-&gcc-version;</seg>
|
---|
[6a82dd9] | 349 | </seglistitem>
|
---|
| 350 | </segmentedlist>
|
---|
| 351 |
|
---|
| 352 | <variablelist>
|
---|
| 353 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 354 | <?dbfo list-presentation="list"?>
|
---|
| 355 | <?dbhtml list-presentation="table"?>
|
---|
| 356 |
|
---|
[75128571] | 357 | <varlistentry id="c">
|
---|
| 358 | <term><command>c++</command></term>
|
---|
| 359 | <listitem>
|
---|
| 360 | <para>The C++ compiler</para>
|
---|
| 361 | <indexterm zone="ch-system-gcc c">
|
---|
| 362 | <primary sortas="b-c++">c++</primary>
|
---|
| 363 | </indexterm>
|
---|
| 364 | </listitem>
|
---|
| 365 | </varlistentry>
|
---|
| 366 |
|
---|
[6a82dd9] | 367 | <varlistentry id="cc">
|
---|
| 368 | <term><command>cc</command></term>
|
---|
| 369 | <listitem>
|
---|
| 370 | <para>The C compiler</para>
|
---|
| 371 | <indexterm zone="ch-system-gcc cc">
|
---|
| 372 | <primary sortas="b-cc">cc</primary>
|
---|
| 373 | </indexterm>
|
---|
| 374 | </listitem>
|
---|
| 375 | </varlistentry>
|
---|
| 376 |
|
---|
| 377 | <varlistentry id="cpp">
|
---|
| 378 | <term><command>cpp</command></term>
|
---|
| 379 | <listitem>
|
---|
| 380 | <para>The C preprocessor; it is used by the compiler to expand the
|
---|
| 381 | #include, #define, and similar statements in the source files</para>
|
---|
| 382 | <indexterm zone="ch-system-gcc cpp">
|
---|
| 383 | <primary sortas="b-cpp">cpp</primary>
|
---|
| 384 | </indexterm>
|
---|
| 385 | </listitem>
|
---|
| 386 | </varlistentry>
|
---|
| 387 |
|
---|
| 388 | <varlistentry id="g">
|
---|
| 389 | <term><command>g++</command></term>
|
---|
| 390 | <listitem>
|
---|
| 391 | <para>The C++ compiler</para>
|
---|
| 392 | <indexterm zone="ch-system-gcc g">
|
---|
| 393 | <primary sortas="b-g++">g++</primary>
|
---|
| 394 | </indexterm>
|
---|
| 395 | </listitem>
|
---|
| 396 | </varlistentry>
|
---|
| 397 |
|
---|
| 398 | <varlistentry id="gcc">
|
---|
| 399 | <term><command>gcc</command></term>
|
---|
| 400 | <listitem>
|
---|
| 401 | <para>The C compiler</para>
|
---|
| 402 | <indexterm zone="ch-system-gcc gcc">
|
---|
| 403 | <primary sortas="b-gcc">gcc</primary>
|
---|
| 404 | </indexterm>
|
---|
| 405 | </listitem>
|
---|
| 406 | </varlistentry>
|
---|
| 407 |
|
---|
[e0901b3] | 408 | <varlistentry id="gcc-ar">
|
---|
| 409 | <term><command>gcc-ar</command></term>
|
---|
| 410 | <listitem>
|
---|
| 411 | <para>A wrapper around <command>ar</command> that adds a
|
---|
[afba93b] | 412 | plugin to the command line. This program is only used
|
---|
[edbeeb5] | 413 | to add "link time optimization" and is not useful with the
|
---|
[afba93b] | 414 | default build options</para>
|
---|
[e0901b3] | 415 | <indexterm zone="ch-system-gcc gcc-ar">
|
---|
| 416 | <primary sortas="b-gcc-ar">gc-ar</primary>
|
---|
| 417 | </indexterm>
|
---|
| 418 | </listitem>
|
---|
| 419 | </varlistentry>
|
---|
| 420 |
|
---|
| 421 | <varlistentry id="gcc-nm">
|
---|
| 422 | <term><command>gcc-nm</command></term>
|
---|
| 423 | <listitem>
|
---|
| 424 | <para>A wrapper around <command>nm</command> that adds a
|
---|
[afba93b] | 425 | plugin to the command line. This program is only used
|
---|
[a885478] | 426 | to add "link time optimization" and is not useful with the
|
---|
[afba93b] | 427 | default build options</para>
|
---|
[e0901b3] | 428 | <indexterm zone="ch-system-gcc gcc-nm">
|
---|
| 429 | <primary sortas="b-gcc-nm">gc-nm</primary>
|
---|
| 430 | </indexterm>
|
---|
| 431 | </listitem>
|
---|
| 432 | </varlistentry>
|
---|
| 433 |
|
---|
| 434 | <varlistentry id="gcc-ranlib">
|
---|
| 435 | <term><command>gcc-ranlib</command></term>
|
---|
| 436 | <listitem>
|
---|
| 437 | <para>A wrapper around <command>ranlib</command> that adds a
|
---|
[afba93b] | 438 | plugin to the command line. This program is only used
|
---|
[a885478] | 439 | to add "link time optimization" and is not useful with the
|
---|
[afba93b] | 440 | default build options</para>
|
---|
[e0901b3] | 441 | <indexterm zone="ch-system-gcc gcc-ranlib">
|
---|
| 442 | <primary sortas="b-gcc-ranlib">gc-ranlib</primary>
|
---|
| 443 | </indexterm>
|
---|
| 444 | </listitem>
|
---|
| 445 | </varlistentry>
|
---|
[6a82dd9] | 446 |
|
---|
| 447 | <varlistentry id="gcov">
|
---|
| 448 | <term><command>gcov</command></term>
|
---|
| 449 | <listitem>
|
---|
| 450 | <para>A coverage testing tool; it is used to analyze programs to
|
---|
| 451 | determine where optimizations will have the most effect</para>
|
---|
| 452 | <indexterm zone="ch-system-gcc gcov">
|
---|
| 453 | <primary sortas="b-gcov">gcov</primary>
|
---|
| 454 | </indexterm>
|
---|
[4783efe] | 455 | </listitem>
|
---|
| 456 | </varlistentry>
|
---|
| 457 |
|
---|
[78cc3be] | 458 | <varlistentry id="gcov-dump">
|
---|
| 459 | <term><command>gcov-dump</command></term>
|
---|
| 460 | <listitem>
|
---|
| 461 | <para>Offline gcda and gcno profile dump tool</para>
|
---|
| 462 | <indexterm zone="ch-system-gcc gcov-dump">
|
---|
| 463 | <primary sortas="b-gcov-dump">gcov-dump</primary>
|
---|
| 464 | </indexterm>
|
---|
| 465 | </listitem>
|
---|
| 466 | </varlistentry>
|
---|
| 467 |
|
---|
| 468 | <varlistentry id="gcov-tool">
|
---|
| 469 | <term><command>gcov-tool</command></term>
|
---|
| 470 | <listitem>
|
---|
| 471 | <para>Offline gcda profile processing tool</para>
|
---|
| 472 | <indexterm zone="ch-system-gcc gcov-tool">
|
---|
| 473 | <primary sortas="b-gcov-tool">gcov-tool</primary>
|
---|
| 474 | </indexterm>
|
---|
| 475 | </listitem>
|
---|
| 476 | </varlistentry>
|
---|
| 477 |
|
---|
[4783efe] | 478 | <varlistentry id="libasan">
|
---|
[78cc3be] | 479 | <term><filename class="libraryfile">libasan</filename></term>
|
---|
[4783efe] | 480 | <listitem>
|
---|
| 481 | <para>The Address Sanitizer runtime library</para>
|
---|
| 482 | <indexterm zone="ch-system-gcc libasan">
|
---|
| 483 | <primary sortas="b-libasan">libasan</primary>
|
---|
| 484 | </indexterm>
|
---|
[6a82dd9] | 485 | </listitem>
|
---|
| 486 | </varlistentry>
|
---|
| 487 |
|
---|
[78cc3be] | 488 | <varlistentry id="libatomic">
|
---|
| 489 | <term><filename class="libraryfile">libatomic</filename></term>
|
---|
| 490 | <listitem>
|
---|
| 491 | <para>GCC atomic built-in runtime library</para>
|
---|
| 492 | <indexterm zone="ch-system-gcc libatomic">
|
---|
| 493 | <primary sortas="b-libatomic">libatomic</primary>
|
---|
| 494 | </indexterm>
|
---|
| 495 | </listitem>
|
---|
| 496 | </varlistentry>
|
---|
| 497 |
|
---|
| 498 | <varlistentry id="libcc1">
|
---|
| 499 | <term><filename class="libraryfile">libcc1</filename></term>
|
---|
| 500 | <listitem>
|
---|
| 501 | <para>The C preprocessing library</para>
|
---|
| 502 | <indexterm zone="ch-system-gcc libcc1">
|
---|
| 503 | <primary sortas="b-libcc1">libcc1</primary>
|
---|
| 504 | </indexterm>
|
---|
| 505 | </listitem>
|
---|
| 506 | </varlistentry>
|
---|
| 507 |
|
---|
[6a82dd9] | 508 | <varlistentry id="libgcc">
|
---|
| 509 | <term><filename class="libraryfile">libgcc</filename></term>
|
---|
| 510 | <listitem>
|
---|
| 511 | <para>Contains run-time support for <command>gcc</command></para>
|
---|
| 512 | <indexterm zone="ch-system-gcc libgcc">
|
---|
[afba93b] | 513 | <primary sortas="c-libgcc">libgcc</primary>
|
---|
[6a82dd9] | 514 | </indexterm>
|
---|
| 515 | </listitem>
|
---|
| 516 | </varlistentry>
|
---|
| 517 |
|
---|
[90aae6b] | 518 | <varlistentry id="libgcov">
|
---|
| 519 | <term><filename class="libraryfile">libgcov</filename></term>
|
---|
| 520 | <listitem>
|
---|
| 521 | <para>This library is linked in to a program when GCC is instructed
|
---|
| 522 | to enable profiling</para>
|
---|
| 523 | <indexterm zone="ch-system-gcc libgcov">
|
---|
| 524 | <primary sortas="c-libgcov">libgcov</primary>
|
---|
| 525 | </indexterm>
|
---|
| 526 | </listitem>
|
---|
| 527 | </varlistentry>
|
---|
| 528 |
|
---|
| 529 | <varlistentry id="libgomp">
|
---|
| 530 | <term><filename class="libraryfile">libgomp</filename></term>
|
---|
| 531 | <listitem>
|
---|
| 532 | <para>GNU implementation of the OpenMP API for multi-platform
|
---|
| 533 | shared-memory parallel programming in C/C++ and Fortran</para>
|
---|
| 534 | <indexterm zone="ch-system-gcc libgomp">
|
---|
| 535 | <primary sortas="c-libgomp">libgomp</primary>
|
---|
| 536 | </indexterm>
|
---|
| 537 | </listitem>
|
---|
| 538 | </varlistentry>
|
---|
| 539 |
|
---|
[78cc3be] | 540 | <varlistentry id="liblsan">
|
---|
| 541 | <term><filename class="libraryfile">liblsan</filename></term>
|
---|
[b755562] | 542 | <listitem>
|
---|
[78cc3be] | 543 | <para>The Leak Sanitizer runtime library</para>
|
---|
| 544 | <indexterm zone="ch-system-gcc liblsan">
|
---|
| 545 | <primary sortas="c-liblsan">liblsan</primary>
|
---|
[b755562] | 546 | </indexterm>
|
---|
| 547 | </listitem>
|
---|
| 548 | </varlistentry>
|
---|
| 549 |
|
---|
[3119ddc] | 550 | <varlistentry id="liblto_plugin">
|
---|
| 551 | <term><filename class="libraryfile">liblto_plugin</filename></term>
|
---|
| 552 | <listitem>
|
---|
| 553 | <para>GCC's Link Time Optimization (LTO) plugin allows GCC to perform
|
---|
[afba93b] | 554 | optimizations across compilation units</para>
|
---|
[3119ddc] | 555 | <indexterm zone="ch-system-gcc liblto_plugin">
|
---|
[afba93b] | 556 | <primary sortas="c-liblto_plugin">liblto_plugin</primary>
|
---|
[3119ddc] | 557 | </indexterm>
|
---|
| 558 | </listitem>
|
---|
| 559 | </varlistentry>
|
---|
[7bb9fda] | 560 |
|
---|
[3119ddc] | 561 | <varlistentry id="libquadmath">
|
---|
| 562 | <term><filename class="libraryfile">libquadmath</filename></term>
|
---|
| 563 | <listitem>
|
---|
| 564 | <para>GCC Quad Precision Math Library API</para>
|
---|
| 565 | <indexterm zone="ch-system-gcc libquadmath">
|
---|
[afba93b] | 566 | <primary sortas="c-libquadmath">libquadmath</primary>
|
---|
[3119ddc] | 567 | </indexterm>
|
---|
| 568 | </listitem>
|
---|
| 569 | </varlistentry>
|
---|
| 570 |
|
---|
[2791a8e] | 571 | <varlistentry id="libssp">
|
---|
| 572 | <term><filename class="libraryfile">libssp</filename></term>
|
---|
| 573 | <listitem>
|
---|
| 574 | <para>Contains routines supporting GCC's stack-smashing protection
|
---|
| 575 | functionality</para>
|
---|
| 576 | <indexterm zone="ch-system-gcc libssp">
|
---|
[afba93b] | 577 | <primary sortas="c-libssp">libssp</primary>
|
---|
[2791a8e] | 578 | </indexterm>
|
---|
| 579 | </listitem>
|
---|
| 580 | </varlistentry>
|
---|
| 581 |
|
---|
[6a82dd9] | 582 | <varlistentry id="libstdc">
|
---|
| 583 | <term><filename class="libraryfile">libstdc++</filename></term>
|
---|
| 584 | <listitem>
|
---|
| 585 | <para>The standard C++ library</para>
|
---|
| 586 | <indexterm zone="ch-system-gcc libstdc">
|
---|
| 587 | <primary sortas="c-libstdc++">libstdc++</primary>
|
---|
| 588 | </indexterm>
|
---|
| 589 | </listitem>
|
---|
| 590 | </varlistentry>
|
---|
| 591 |
|
---|
[78cc3be] | 592 | <varlistentry id="libstdcfs">
|
---|
| 593 | <term><filename class="libraryfile">libstdc++fs</filename></term>
|
---|
| 594 | <listitem>
|
---|
| 595 | <para>ISO/IEC TS 18822:2015 Filesystem library</para>
|
---|
| 596 | <indexterm zone="ch-system-gcc libstdcfs">
|
---|
| 597 | <primary sortas="c-libstdc++fs">libstdc++fs</primary>
|
---|
| 598 | </indexterm>
|
---|
| 599 | </listitem>
|
---|
| 600 | </varlistentry>
|
---|
| 601 |
|
---|
[6a82dd9] | 602 | <varlistentry id="libsupc">
|
---|
| 603 | <term><filename class="libraryfile">libsupc++</filename></term>
|
---|
| 604 | <listitem>
|
---|
| 605 | <para>Provides supporting routines for the C++ programming
|
---|
| 606 | language</para>
|
---|
| 607 | <indexterm zone="ch-system-gcc libsupc">
|
---|
| 608 | <primary sortas="c-libsupc++">libsupc++</primary>
|
---|
| 609 | </indexterm>
|
---|
| 610 | </listitem>
|
---|
| 611 | </varlistentry>
|
---|
| 612 |
|
---|
[f6b1d91] | 613 | <varlistentry id="libtsan">
|
---|
| 614 | <term><filename class="libraryfile">libtsan</filename></term>
|
---|
| 615 | <listitem>
|
---|
| 616 | <para>The Thread Sanitizer runtime library</para>
|
---|
| 617 | <indexterm zone="ch-system-gcc libtsan">
|
---|
| 618 | <primary sortas="c-libtsan">libtsan</primary>
|
---|
| 619 | </indexterm>
|
---|
| 620 | </listitem>
|
---|
| 621 | </varlistentry>
|
---|
| 622 |
|
---|
[78cc3be] | 623 | <varlistentry id="libubsan">
|
---|
| 624 | <term><filename class="libraryfile">libubsan</filename></term>
|
---|
| 625 | <listitem>
|
---|
| 626 | <para>The Undefined Behavior Sanitizer runtime library</para>
|
---|
| 627 | <indexterm zone="ch-system-gcc libubsan">
|
---|
| 628 | <primary sortas="c-libubsan">libubsan</primary>
|
---|
| 629 | </indexterm>
|
---|
| 630 | </listitem>
|
---|
| 631 | </varlistentry>
|
---|
| 632 |
|
---|
[6a82dd9] | 633 | </variablelist>
|
---|
| 634 |
|
---|
| 635 | </sect2>
|
---|
[673b0d8] | 636 |
|
---|
| 637 | </sect1>
|
---|