source: general/prog/gcc3.xml@ 355e538

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.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 355e538 was 355e538, checked in by Randy McMurchy <randy@…>, 19 years ago

Added DejaGNU optional dependency to GCC-3; minor wording changes to J2SDK dependencies

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

  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[d496aea]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[b94988f]7 <!ENTITY gcc3-download-http "http://ftp.gnu.org/gnu/gcc/gcc-&gcc3-version;/gcc-&gcc3-version;.tar.bz2">
[8c9ec303]8 <!ENTITY gcc3-download-ftp "ftp://ftp.gnu.org/gnu/gcc/gcc-&gcc3-version;/gcc-&gcc3-version;.tar.bz2">
9 <!ENTITY gcc3-md5sum "a1c267b34f05c8660b24251865614d8b">
[4697ee3]10 <!ENTITY gcc3-size "23 MB">
[b94988f]11 <!ENTITY gcc3-buildsize "489 MB">
12 <!ENTITY gcc3-time "5.72 SBU (additional 12.54 SBU to run the test suite)">
[d496aea]13]>
14
15<sect1 id="gcc3" xreflabel="GCC-&gcc3-version;">
16<sect1info>
[8f244f27]17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
[d496aea]19</sect1info>
20<?dbhtml filename="gcc3.html" ?>
[b94988f]21<title><application><acronym>GCC</acronym></application>-&gcc3-version;</title>
22<indexterm zone="gcc3">
[8c9ec303]23<primary sortas="a-GCC-3-3">GCC-&gcc3-version;</primary></indexterm>
[d496aea]24
25<sect2>
[8f244f27]26<title>Introduction to
27<application><acronym>GCC</acronym></application>-&gcc3-version;</title>
[d496aea]28
[b94988f]29<para>The reason for installing
30<application><acronym>GCC</acronym></application>-&gcc3-version; is that
[8f244f27]31some <acronym>BLFS</acronym> packages (such as compiled
32<application>Java</application> and <application>OpenOffice</application>)
[b94988f]33have not been updated to be compilable by
34<application><acronym>GCC</acronym></application>-&gcc-version;. Additionally,
35some pre-compiled packages may require the
36<application><acronym>GCC</acronym></application>-&gcc3-version;
37libraries.</para>
[d496aea]38
39<sect3><title>Package information</title>
40<itemizedlist spacing='compact'>
41<listitem><para>Download (HTTP): <ulink
42url="&gcc3-download-http;"/></para></listitem>
43<listitem><para>Download (FTP): <ulink
44url="&gcc3-download-ftp;"/></para></listitem>
[8c9ec303]45<listitem><para>Download MD5 sum: &gcc3-md5sum;</para></listitem>
[d496aea]46<listitem><para>Download size: &gcc3-size;</para></listitem>
[4697ee3]47<listitem><para>Estimated disk space required:
[d496aea]48&gcc3-buildsize;</para></listitem>
49<listitem><para>Estimated build time:
50&gcc3-time;</para></listitem></itemizedlist>
51</sect3>
52
53<sect3><title>Additional downloads</title>
54<itemizedlist spacing='compact'>
[b94988f]55<listitem><para>Required patch: <ulink
56url="&patch-root;/gcc-&gcc3-version;-no_fixincludes-1.patch"/></para>
57</listitem>
58<listitem><para>Required patch: <ulink
59url="&patch-root;/gcc-&gcc3-version;-linkonce-1.patch"/></para>
60</listitem>
[d496aea]61</itemizedlist>
62</sect3>
63
[355e538]64<sect3><title><application><acronym>GCC</acronym>-3</application>
65dependencies</title>
66<sect4><title>Optional</title>
67<para><xref linkend="dejagnu"/> (required to run the full test suite)</para>
68</sect4>
69</sect3>
70
[d496aea]71</sect2>
72
73<sect2>
[355e538]74<title>Installation of
75<application><acronym>GCC</acronym>-3</application></title>
[d496aea]76
[2dfcd1d]77<screen><userinput><command>patch -Np1 -i ../gcc-&gcc3-version;-no_fixincludes-1.patch &amp;&amp;
[b94988f]78patch -Np1 -i ../gcc-&gcc3-version;-linkonce-1.patch &amp;&amp;
79mkdir ../gcc-build &amp;&amp;
80cd ../gcc-build &amp;&amp;
81../gcc-&gcc3-version;/configure \
[d496aea]82 --prefix=/opt/gcc-&gcc3-version; \
83 --enable-shared --enable-languages=c,c++ \
[b94988f]84 --enable-threads=posix &amp;&amp;
[d260aaf4]85make bootstrap</command></userinput></screen>
86
87<para>Now, as the root user:</para>
88
89<screen><userinput role='root'><command>make install &amp;&amp;
[b94988f]90mv /opt/gcc-&gcc3-version;/lib/libstdc++.so.5* /usr/lib &amp;&amp;
[8f244f27]91ln -sf /usr/lib/libstdc++.so.5.0.6 /opt/gcc-&gcc3-version;/lib &amp;&amp;
92ln -sf libstdc++.so.5.0.6 /opt/gcc-&gcc3-version;/lib/libstdc++.so.5 &amp;&amp;
[b94988f]93chown -R root:root \
94 /opt/gcc-&gcc3-version;/lib/gcc-lib/i686-pc-linux-gnu/&gcc3-version;/include</command></userinput></screen>
95
96</sect2>
[d496aea]97
[b94988f]98<sect2>
99<title>Command explanations</title>
[d496aea]100
[b94988f]101<para><command>mkdir ../gcc-build; cd ../gcc-build</command>: The
102<application><acronym>GCC</acronym></application> development team recommends
103building in a separate directory.</para>
[d496aea]104
[b94988f]105<para><parameter>--enable-shared --enable-languages=c,c++
106--enable-threads=posix</parameter>: Configures
107<application><acronym>GCC</acronym></application> to build the
108<application>C</application> and <application>C++</application> compilers and
109enable the related <application>C++</application> options.</para>
[d496aea]110
[b94988f]111<para><command>mv /opt/gcc-&gcc3-version;/lib/libstdc++.so.5*
112/usr/lib</command>: Moves the <application>C++</application> libraries to the
113standard lib directory to avoid having to add
114<userinput>/opt/gcc-&gcc3-version;/lib</userinput> to
115<filename>/etc/ld.so.conf</filename>.</para>
[d496aea]116
117</sect2>
118
119<sect2>
120<title>Configuring <application><acronym>GCC</acronym></application></title>
121
[b94988f]122<sect3><title>Configuration information</title>
[d496aea]123
[b94988f]124<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
125href="../../lib-config.xml"/>
[d496aea]126
127<para>If you only need the GCC-&gcc3-version; libraries, you may delete
128<filename>/opt/gcc-&gcc3-version;</filename>.</para>
129
130<para>Whenever you need to use GCC-&gcc3-version; instead of your system
131installed compiler, add
132<filename class="directory">/opt/gcc-&gcc3-version;/bin</filename> to the
133front of your <envar>PATH</envar> or (preferably) set the <envar>CC</envar>
134environment variable before compiling the concerned package.</para>
135
136</sect3>
137
138</sect2>
139
140<sect2>
141<title>Contents</title>
142
[b94988f]143<segmentedlist>
144<segtitle>Installed Programs</segtitle>
145<segtitle>Installed Libraries</segtitle>
146<segtitle>Installed Directories</segtitle>
147<seglistitem>
148<seg>c++, cpp, g++, gcc, gccbug, gcov and architecture specific names of these
149programs.</seg>
[8f244f27]150<seg>libgcc_s.so, libiberty.a, libstdc++.[a,so], libsupc++.a and other
[b94988f]151support libraries and files.</seg>
152<seg>/opt/gcc-&gcc3-version;</seg>
153</seglistitem>
154</segmentedlist>
155
156<sect3><title>Short Descriptions</title>
[d496aea]157<para>The GCC-&gcc3-version; package contains the
158<command>gcc</command>-&gcc3-version; <application>C</application> and
159<application>C++</application> compilers and GCC-&gcc3-version;
160<filename>libstdc++.so</filename> that is required by some commercial and
161pre-compiled packages.</para>
[b94988f]162</sect3>
[d496aea]163
164</sect2>
165
166</sect1>
Note: See TracBrowser for help on using the repository browser.