source: general/prog/gcc3.xml@ 6722219

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6722219 was 1039de3, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #3

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5831 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY gcc3-download-http "http://ftp.gnu.org/gnu/gcc/gcc-&gcc3-version;/gcc-&gcc3-version;.tar.bz2">
8 <!ENTITY gcc3-download-ftp "ftp://ftp.gnu.org/gnu/gcc/gcc-&gcc3-version;/gcc-&gcc3-version;.tar.bz2">
9 <!ENTITY gcc3-md5sum "6936616a967da5a0b46f1e7424a06414">
10 <!ENTITY gcc3-size "24 MB">
11 <!ENTITY gcc3-buildsize "433 MB (includes running the test suite)">
12 <!ENTITY gcc3-time "5.2 SBU (additional 11.2 SBU to run the test suite)">
13]>
14
15<sect1 id="gcc3" xreflabel="GCC-&gcc3-version;">
16 <?dbhtml filename="gcc3.html" ?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 <keywordset>
22 <keyword role="package">gcc-&gcc3-version;.tar</keyword>
23 <keyword role="ftpdir">gcc</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>GCC-&gcc3-version;</title>
28
29 <indexterm zone="gcc3">
30 <primary sortas="a-GCC-3-3">GCC-&gcc3-version;</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to GCC-&gcc3-version;</title>
35
36 <para>The reason for installing
37 <application>GCC</application>-&gcc3-version; is that
38 some packages have not been updated to be compiled by
39 <application>GCC</application>-&gcc-version;. Additionally,
40 some pre-compiled packages may require the
41 <application>GCC</application>-&gcc3-version; libraries at run-time.</para>
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>Download (HTTP): <ulink url="&gcc3-download-http;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download (FTP): <ulink url="&gcc3-download-ftp;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download MD5 sum: &gcc3-md5sum;</para>
53 </listitem>
54 <listitem>
55 <para>Download size: &gcc3-size;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated disk space required: &gcc3-buildsize;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated build time: &gcc3-time;</para>
62 </listitem>
63 </itemizedlist>
64
65 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
66 <itemizedlist spacing='compact'>
67 <listitem>
68 <para>Required patch: <ulink
69 url="&patch-root;/gcc-&gcc3-version;-no_fixincludes-1.patch"/></para>
70 </listitem>
71 <listitem>
72 <para>Required patch: <ulink
73 url="&patch-root;/gcc-&gcc3-version;-linkonce-1.patch"/></para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">GCC-&gcc3-version; Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Optional</bridgehead>
80 <para role="optional"><xref linkend="dejagnu"/> (required to run the full test suite)</para>
81
82 <para condition="html" role="usernotes">User Notes:
83 <ulink url="&blfs-wiki;/gcc3"/></para>
84
85 </sect2>
86
87 <sect2 role="installation">
88 <title>Installation of GCC-&gcc3-version;</title>
89
90 <para>Install <application>GCC</application>-&gcc3-version; by running
91 the following commands:</para>
92
93<screen><userinput>patch -Np1 -i ../gcc-&gcc3-version;-no_fixincludes-1.patch &amp;&amp;
94patch -Np1 -i ../gcc-&gcc3-version;-linkonce-1.patch &amp;&amp;
95mkdir ../gcc-build &amp;&amp;
96cd ../gcc-build &amp;&amp;
97../gcc-&gcc3-version;/configure --prefix=/opt/gcc-&gcc3-version; \
98 --enable-shared --enable-languages=c,c++ --enable-threads=posix &amp;&amp;
99make bootstrap</userinput></screen>
100
101 <para>If desired, run the test suite using the following commands. The
102 <command>test_summary</command> commands create log files which can be
103 compared to known good results located at <ulink
104 url="&files-anduin;/gcc336_test.txt"/>.</para>
105
106<screen><userinput>make -k check &amp;&amp;
107../gcc-&gcc3-version;/contrib/test_summary >test_summary.log 2>&amp;1 &amp;&amp;
108../gcc-&gcc3-version;/contrib/test_summary | \
109 grep -A7 Summ >test_summary_short.log 2>&amp;1</userinput></screen>
110
111 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
112
113<screen role="root"><userinput>make install &amp;&amp;
114mv -v /opt/gcc-&gcc3-version;/lib/libstdc++.so.5* /usr/lib &amp;&amp;
115ln -v -sf /usr/lib/libstdc++.so.5.0.7 /opt/gcc-&gcc3-version;/lib &amp;&amp;
116ln -v -sf libstdc++.so.5.0.7 /opt/gcc-&gcc3-version;/lib/libstdc++.so.5 &amp;&amp;
117chown -v -R root:root \
118 /opt/gcc-&gcc3-version;/lib/gcc-lib/i686-pc-linux-gnu/&gcc3-version;/include</userinput></screen>
119
120 </sect2>
121
122 <sect2 role="commands">
123 <title>Command Explanations</title>
124
125 <para><command>mkdir ../gcc-build; cd ../gcc-build</command>: The
126 <application>GCC</application> development team recommends
127 building in a separate directory.</para>
128
129 <para><parameter>--enable-shared --enable-languages=c,c++
130 --enable-threads=posix</parameter>: Configures
131 <application>GCC</application> to build the
132 <application>C</application> and <application>C++</application> compilers
133 and enable the related <application>C++</application> options.</para>
134
135 <para><command>mv -v /opt/gcc-&gcc3-version;/lib/libstdc++.so.5*
136 /usr/lib</command>: Moves the <application>C++</application> library to the
137 standard lib directory to avoid having to add
138 <userinput>/opt/gcc-&gcc3-version;/lib</userinput> to
139 <filename>/etc/ld.so.conf</filename>.</para>
140
141 </sect2>
142
143 <sect2 role="configuration">
144 <title>Configuring GCC-&gcc3-version;</title>
145
146 <sect3>
147 <title>Configuration information</title>
148
149 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
150
151 <para>If you only need the GCC-&gcc3-version; C++ library, you may delete
152 <filename>/opt/gcc-&gcc3-version;</filename>.</para>
153
154 <para>Whenever you need to use GCC-&gcc3-version; instead of your system
155 installed compiler, add
156 <filename class="directory">/opt/gcc-&gcc3-version;/bin</filename> to the
157 front of your <envar>PATH</envar> or (preferably) set the <envar>CC</envar>
158 environment variable before compiling the concerned package.</para>
159
160 </sect3>
161
162 </sect2>
163
164 <sect2 role="content">
165 <title>Contents</title>
166
167 <segmentedlist>
168 <segtitle>Installed Programs</segtitle>
169 <segtitle>Installed Libraries</segtitle>
170 <segtitle>Installed Directory</segtitle>
171
172 <seglistitem>
173 <seg>c++, cpp, g++, gcc, gccbug, gcov, and architecture specific
174 names of these programs.</seg>
175 <seg>libgcc_s.so, libiberty.a, libstdc++.{a,so}, libsupc++.a, and other
176 support libraries and files.</seg>
177 <seg>/opt/gcc-&gcc3-version;</seg>
178 </seglistitem>
179 </segmentedlist>
180
181 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
182
183 <para>The GCC-&gcc3-version; package contains the
184 <command>gcc</command>-&gcc3-version; <application>C</application> and
185 <application>C++</application> compilers and the GCC-&gcc3-version;
186 <filename>libstdc++.so</filename> library that is required by some
187 commercial and pre-compiled packages.</para>
188
189 </sect2>
190
191</sect1>
Note: See TracBrowser for help on using the repository browser.