source: chapter08/gcc.xml@ 164d38e

10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 164d38e was f36db31, checked in by Xi Ruoyao <xry111@…>, 3 years ago

ch08/gcc: /usr/lib/bfd-plugins is already created by binutils

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12116 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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