[d496aea] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[d496aea] | 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">
|
---|
[4096f25] | 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)">
|
---|
[d496aea] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="gcc3" xreflabel="GCC-&gcc3-version;">
|
---|
[b1df977] | 16 | <?dbhtml filename="gcc3.html" ?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[256ee72c] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">gcc-&gcc3-version;.tar</keyword>
|
---|
| 23 | <keyword role="ftptdir">gcc</keyword>
|
---|
| 24 | </keywordset>
|
---|
[b1df977] | 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 |
|
---|
[7cd76d62] | 36 | <para>The reason for installing
|
---|
| 37 | <application>GCC</application>-&gcc3-version; is that
|
---|
[4096f25] | 38 | some packages have not been updated to be compiled by
|
---|
| 39 | <application>GCC</application>-&gcc-version;. Additionally,
|
---|
[7cd76d62] | 40 | some pre-compiled packages may require the
|
---|
[4096f25] | 41 | <application>GCC</application>-&gcc3-version; libraries at run-time.</para>
|
---|
[b1df977] | 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>
|
---|
[7cd76d62] | 68 | <para>Required patch: <ulink
|
---|
[b1df977] | 69 | url="&patch-root;/gcc-&gcc3-version;-no_fixincludes-1.patch"/></para>
|
---|
| 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[7cd76d62] | 72 | <para>Required patch: <ulink
|
---|
[b1df977] | 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>
|
---|
[256ee72c] | 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 80 | <para role="optional"><xref linkend="dejagnu"/> (required to run the full test suite)</para>
|
---|
[b1df977] | 81 |
|
---|
| 82 | </sect2>
|
---|
| 83 |
|
---|
| 84 | <sect2 role="installation">
|
---|
| 85 | <title>Installation of GCC-&gcc3-version;</title>
|
---|
| 86 |
|
---|
[7cd76d62] | 87 | <para>Install <application>GCC</application>-&gcc3-version; by running
|
---|
[b1df977] | 88 | the following commands:</para>
|
---|
| 89 |
|
---|
| 90 | <screen><userinput>patch -Np1 -i ../gcc-&gcc3-version;-no_fixincludes-1.patch &&
|
---|
[b94988f] | 91 | patch -Np1 -i ../gcc-&gcc3-version;-linkonce-1.patch &&
|
---|
| 92 | mkdir ../gcc-build &&
|
---|
| 93 | cd ../gcc-build &&
|
---|
[4096f25] | 94 | ../gcc-&gcc3-version;/configure --prefix=/opt/gcc-&gcc3-version; \
|
---|
| 95 | --enable-shared --enable-languages=c,c++ --enable-threads=posix &&
|
---|
[b1df977] | 96 | make bootstrap</userinput></screen>
|
---|
[d260aaf4] | 97 |
|
---|
[7cd76d62] | 98 | <para>If desired, run the test suite using the following commands. The
|
---|
| 99 | <command>test_summary</command> commands create log files which can be
|
---|
| 100 | compared to known good results located at <ulink
|
---|
[4096f25] | 101 | url="http://linuxfromscratch.org/~randy/gcc-336_LFS-6.1_test.txt"/>.</para>
|
---|
[fb9298b4] | 102 |
|
---|
[b1df977] | 103 | <screen><userinput>make -k check &&
|
---|
[4096f25] | 104 | ../gcc-&gcc3-version;/contrib/test_summary >test_summary.log 2>&1 &&
|
---|
| 105 | ../gcc-&gcc3-version;/contrib/test_summary | \
|
---|
[b1df977] | 106 | grep -A7 Summ >test_summary_short.log 2>&1</userinput></screen>
|
---|
[fb9298b4] | 107 |
|
---|
[b1df977] | 108 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[d260aaf4] | 109 |
|
---|
[b1df977] | 110 | <screen role="root"><userinput>make install &&
|
---|
[f079a990] | 111 | mv -v /opt/gcc-&gcc3-version;/lib/libstdc++.so.5* /usr/lib &&
|
---|
[4096f25] | 112 | ln -v -sf /usr/lib/libstdc++.so.5.0.7 /opt/gcc-&gcc3-version;/lib &&
|
---|
| 113 | ln -v -sf libstdc++.so.5.0.7 /opt/gcc-&gcc3-version;/lib/libstdc++.so.5 &&
|
---|
[f079a990] | 114 | chown -v -R root:root \
|
---|
[b1df977] | 115 | /opt/gcc-&gcc3-version;/lib/gcc-lib/i686-pc-linux-gnu/&gcc3-version;/include</userinput></screen>
|
---|
[b94988f] | 116 |
|
---|
[b1df977] | 117 | </sect2>
|
---|
[d496aea] | 118 |
|
---|
[b1df977] | 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
[d496aea] | 121 |
|
---|
[7cd76d62] | 122 | <para><command>mkdir ../gcc-build; cd ../gcc-build</command>: The
|
---|
| 123 | <application>GCC</application> development team recommends
|
---|
[b1df977] | 124 | building in a separate directory.</para>
|
---|
[d496aea] | 125 |
|
---|
[7cd76d62] | 126 | <para><parameter>--enable-shared --enable-languages=c,c++
|
---|
| 127 | --enable-threads=posix</parameter>: Configures
|
---|
| 128 | <application>GCC</application> to build the
|
---|
[4096f25] | 129 | <application>C</application> and <application>C++</application> compilers
|
---|
| 130 | and enable the related <application>C++</application> options.</para>
|
---|
[d496aea] | 131 |
|
---|
[7cd76d62] | 132 | <para><command>mv -v /opt/gcc-&gcc3-version;/lib/libstdc++.so.5*
|
---|
[4096f25] | 133 | /usr/lib</command>: Moves the <application>C++</application> library to the
|
---|
[7cd76d62] | 134 | standard lib directory to avoid having to add
|
---|
| 135 | <userinput>/opt/gcc-&gcc3-version;/lib</userinput> to
|
---|
[b1df977] | 136 | <filename>/etc/ld.so.conf</filename>.</para>
|
---|
[d496aea] | 137 |
|
---|
[b1df977] | 138 | </sect2>
|
---|
[d496aea] | 139 |
|
---|
[b1df977] | 140 | <sect2 role="configuration">
|
---|
| 141 | <title>Configuring GCC-&gcc3-version;</title>
|
---|
[d496aea] | 142 |
|
---|
[b1df977] | 143 | <sect3>
|
---|
| 144 | <title>Configuration information</title>
|
---|
[d496aea] | 145 |
|
---|
[b1df977] | 146 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
|
---|
[d496aea] | 147 |
|
---|
[4096f25] | 148 | <para>If you only need the GCC-&gcc3-version; C++ library, you may delete
|
---|
[b1df977] | 149 | <filename>/opt/gcc-&gcc3-version;</filename>.</para>
|
---|
[d496aea] | 150 |
|
---|
[b1df977] | 151 | <para>Whenever you need to use GCC-&gcc3-version; instead of your system
|
---|
| 152 | installed compiler, add
|
---|
[7cd76d62] | 153 | <filename class="directory">/opt/gcc-&gcc3-version;/bin</filename> to the
|
---|
[b1df977] | 154 | front of your <envar>PATH</envar> or (preferably) set the <envar>CC</envar>
|
---|
| 155 | environment variable before compiling the concerned package.</para>
|
---|
[d496aea] | 156 |
|
---|
[b1df977] | 157 | </sect3>
|
---|
[d496aea] | 158 |
|
---|
[b1df977] | 159 | </sect2>
|
---|
[d496aea] | 160 |
|
---|
[b1df977] | 161 | <sect2 role="content">
|
---|
| 162 | <title>Contents</title>
|
---|
[d496aea] | 163 |
|
---|
[b1df977] | 164 | <segmentedlist>
|
---|
| 165 | <segtitle>Installed Programs</segtitle>
|
---|
| 166 | <segtitle>Installed Libraries</segtitle>
|
---|
[40d6bab] | 167 | <segtitle>Installed Directory</segtitle>
|
---|
[b94988f] | 168 |
|
---|
[b1df977] | 169 | <seglistitem>
|
---|
[7cd76d62] | 170 | <seg>c++, cpp, g++, gcc, gccbug, gcov, and architecture specific
|
---|
[b1df977] | 171 | names of these programs.</seg>
|
---|
[7cd76d62] | 172 | <seg>libgcc_s.so, libiberty.a, libstdc++.[a,so], libsupc++.a, and other
|
---|
[b1df977] | 173 | support libraries and files.</seg>
|
---|
| 174 | <seg>/opt/gcc-&gcc3-version;</seg>
|
---|
| 175 | </seglistitem>
|
---|
| 176 | </segmentedlist>
|
---|
[d496aea] | 177 |
|
---|
[b1df977] | 178 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 179 |
|
---|
| 180 | <para>The GCC-&gcc3-version; package contains the
|
---|
| 181 | <command>gcc</command>-&gcc3-version; <application>C</application> and
|
---|
[40d6bab] | 182 | <application>C++</application> compilers and the GCC-&gcc3-version;
|
---|
| 183 | <filename>libstdc++.so</filename> library that is required by some
|
---|
| 184 | commercial and pre-compiled packages.</para>
|
---|
[b1df977] | 185 |
|
---|
| 186 | </sect2>
|
---|
[d496aea] | 187 |
|
---|
| 188 | </sect1>
|
---|