r2705 - in trunk/BOOK: . general/prog introduction/welcome

larry at linuxfromscratch.org larry at linuxfromscratch.org
Thu Sep 2 19:43:20 PDT 2004


Author: larry
Date: 2004-09-02 20:43:18 -0600 (Thu, 02 Sep 2004)
New Revision: 2705

Added:
   trunk/BOOK/general/prog/gcc3.xml
Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/general/prog/j2sdk.xml
   trunk/BOOK/general/prog/prog.xml
   trunk/BOOK/introduction/welcome/changelog.xml
Log:
added stop gap for j2sdk compiled

Added: trunk/BOOK/general/prog/gcc3.xml
===================================================================
--- trunk/BOOK/general/prog/gcc3.xml	2004-09-02 20:34:14 UTC (rev 2704)
+++ trunk/BOOK/general/prog/gcc3.xml	2004-09-03 02:43:18 UTC (rev 2705)
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+   "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+
+  <!ENTITY gcc3-download-http "http://ftp.gnu.org/gnu/gcc/gcc-&gcc3-version;.tar.gz">
+  <!ENTITY gcc3-download-ftp  "ftp://ftp.gnu.org/gnu/gcc/gcc-&gcc3-version;.tar.gz">
+  <!ENTITY gcc3-size          "22.7 MB">
+  <!ENTITY gcc3-buildsize     "289 MB">
+  <!ENTITY gcc3-time          "2.60 SBU">
+]>
+
+<sect1 id="gcc3" xreflabel="GCC-&gcc3-version;">
+<sect1info>
+<othername>$LastChangedBy: archaic $</othername>
+<date>$Date: 2004-08-09 23:25:57 -0500 (Mon, 09 Aug 2004) $</date>
+</sect1info>
+<?dbhtml filename="gcc3.html" ?>
+<title>GCC-&gcc3-version;</title>
+
+<sect2>
+<title>Introduction to <application><acronym>GCC</acronym></application>-&gcc3-version;</title>
+
+<para>The reason for installing <acronym>GCC</acronym>-&gcc3-version; is that 
+some <acronym>BLFS</acronym> packages (such as compiled Java) have not
+been updated to be compilable by <acronym>GCC</acronym>-&gcc-version;.</para>
+
+<sect3><title>Package information</title>
+<itemizedlist spacing='compact'>
+<listitem><para>Download (HTTP): <ulink
+url="&gcc3-download-http;"/></para></listitem>
+<listitem><para>Download (FTP): <ulink
+url="&gcc3-download-ftp;"/></para></listitem>
+<listitem><para>Download size: &gcc3-size;</para></listitem>
+<listitem><para>Estimated Disk space required:
+&gcc3-buildsize;</para></listitem>
+<listitem><para>Estimated build time:
+&gcc3-time;</para></listitem></itemizedlist>
+</sect3>
+
+<sect3><title>Additional downloads</title>
+<itemizedlist spacing='compact'>
+<listitem><para>Required Patch: <ulink 
+url="&patch-root;/gcc-&gcc3-version;-no_fixincludes-1.patch"/></para></listitem>
+</itemizedlist>
+</sect3>
+
+</sect2>
+
+<sect2>
+<title>Installation of <application><acronym>GCC</acronym></application></title>
+
+<para>Apply the patches:</para>
+
+<screen><userinput><command>patch -Np1 -i ../gcc-&gcc3-version;-no_fixincludes-1.patch</command></userinput></screen>
+
+<para>The <acronym>GCC</acronym> development team recommends building in a 
+separate directory.</para>
+
+<screen><userinput><command>mkdir ../gcc-build &&
+cd ../gcc-build</command></userinput></screen>
+
+<para>Configure <acronym>GCC</acronym> to build the
+<application>C</application> and <application>C++</application> compilers and 
+enable the related <application>C++</application> options.</para>
+
+<screen><userinput><command>../gcc-&gcc3-version;/configure \
+    --prefix=/opt/gcc-&gcc3-version; \
+    --enable-shared --enable-languages=c,c++ \
+    --enable-threads=posix</command></userinput></screen>
+
+<para>Compile and install <acronym>GCC</acronym>:</para>
+
+<screen><userinput><command>make bootstrap &&
+make install</command></userinput></screen>
+
+
+<para>Move the <application>C++</application> libraries to the standard lib 
+directory to avoid having to add <userinput>/opt/gcc-&gcc3-version;/lib
+</userinput> to <filename>/etc/ld.so.conf</filename>.</para>
+
+<screen><userinput><command>mv /opt/gcc-&gcc3-version;/lib/libstdc++.so.5* /usr/lib</command></userinput></screen>
+
+
+</sect2>
+
+<sect2>
+<title>Configuring <application><acronym>GCC</acronym></application></title>
+
+<sect3><title>Configuration Information</title>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>  
+
+<para>The instructions given above make compatibility symlinks that pre-compiled
+packages in <acronym>BLFS</acronym> require. You may create additional
+compatibility links based on your requirements.</para>
+
+<para>If you only need the GCC-&gcc3-version; libraries, you may delete
+<filename>/opt/gcc-&gcc3-version;</filename>.</para>
+
+<para>Whenever you need to use GCC-&gcc3-version; instead of your system
+installed compiler, add
+<filename class="directory">/opt/gcc-&gcc3-version;/bin</filename> to the 
+front of your <envar>PATH</envar> or (preferably) set the <envar>CC</envar>
+environment variable before compiling the concerned package.</para>
+
+</sect3>
+
+</sect2>
+
+<sect2>
+<title>Contents</title>
+
+<para>The GCC-&gcc3-version; package contains the
+<command>gcc</command>-&gcc3-version; <application>C</application> and
+<application>C++</application> compilers and GCC-&gcc3-version;
+<filename>libstdc++.so</filename> that is required by some commercial and
+pre-compiled packages.</para>
+
+</sect2>
+
+</sect1>
+

Modified: trunk/BOOK/general/prog/j2sdk.xml
===================================================================
--- trunk/BOOK/general/prog/j2sdk.xml	2004-09-02 20:34:14 UTC (rev 2704)
+++ trunk/BOOK/general/prog/j2sdk.xml	2004-09-03 02:43:18 UTC (rev 2705)
@@ -91,7 +91,7 @@
 <sect4><title>Required</title>
 <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>), 
 <xref linkend="zip"/>, <xref linkend="unzip"/>, <xref linkend="cpio"/>, 
-<xref linkend="alsa"/>, and <xref linkend="tcsh"/>
+<xref linkend="alsa"/>, <xref linkend="tcsh"/> and <xref linkend="gcc3"/>
 </para></sect4>
 </sect3>
 
@@ -142,7 +142,7 @@
 
 <screen><userinput><command>for PATCH in fix_inline_asm-1 gcc33-1 \
              motif_mkmsgcat-1 remove_debug_image-1 remove_fixed_paths-1 \
-             static_cxx-1
+             static_cxx-1 nptl-1
 do
    patch -Np1 -i j2sdk-&j2sdk-src-version;-$PATCH.patch
 done</command></userinput></screen>
@@ -160,7 +160,9 @@
 export ALT_MOZILLA_PATH=$PWD &&
 export INSANE=true &&
 export MAKE_VERBOSE=true &&
-export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts</command></userinput></screen>
+export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts
+export PATH_HOLD=$PATH
+export PATH=/opt/gcc-&gcc3-version;/bin:$PATH</command></userinput></screen>
 
 <warning><para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build 
 fail. If you are interested in optimizing the build, set 
@@ -188,7 +190,8 @@
 make &&
 cd ../.. &&
 cd control/build/linux-i?86 &&
-cp -a j2sdk-image /opt/j2sdk/j2sdk-&j2sdk-src-version;</command></userinput></screen>
+cp -a j2sdk-image /opt/j2sdk/j2sdk-&j2sdk-src-version; &&
+export PATH=$PATH_HOLD</command></userinput></screen>
 
 </sect2>
 

Modified: trunk/BOOK/general/prog/prog.xml
===================================================================
--- trunk/BOOK/general/prog/prog.xml	2004-09-02 20:34:14 UTC (rev 2704)
+++ trunk/BOOK/general/prog/prog.xml	2004-09-03 02:43:18 UTC (rev 2705)
@@ -27,6 +27,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="dejagnu.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc2.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc3.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="nasm.xml"/>
 
 </chapter>

Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent	2004-09-02 20:34:14 UTC (rev 2704)
+++ trunk/BOOK/general.ent	2004-09-03 02:43:18 UTC (rev 2705)
@@ -134,7 +134,7 @@
 <!ENTITY tk-version                   "8.4.6">
 <!ENTITY gcc2-version                 "2.95.3">
 <!ENTITY NASM-version                 "0.98.38">
-                                     
+<!ENTITY gcc3-version                 "3.3.3">                                     
 <!-- Part IV -->                     
                                      
 <!-- Chapter 13 -->                  

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2004-09-02 20:34:14 UTC (rev 2704)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2004-09-03 02:43:18 UTC (rev 2705)
@@ -22,6 +22,10 @@
 
 <itemizedlist>
 
+<listitem><para>September 2nd, 2004 [larry]: Added a page for GCC-3.3 to
+allow j2sdk to be built. Stop Gap measure until patches
+appear.</para></listitem>
+
 <listitem><para>September 2nd, 2004 [randy]: Updated to
 Dillo-0.8.2.</para></listitem>
 




More information about the blfs-book mailing list