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