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