瀏覽代碼

Updated GCC to 4.3.2 which includes adding the GMP-4.2.4 and MPFR-2.3.2 packages - This new version of GCC requires the added packages - Thanks to DJ Lucas for the stimulus and initial work resulting in this and all of the other package updates coming up

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8562 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Randy McMurchy 17 年之前
父節點
當前提交
6cc051651b

+ 6 - 1
appendices/acknowledgments.xml

@@ -61,7 +61,7 @@
     <listitem>
       <para><ulink url="mailto:randy@linuxfromscratch.org">Randy
       McMurchy</ulink> &lt;randy@linuxfromscratch.org&gt; &ndash; BLFS
-      Project Leader</para>
+      Project Leader, LFS Editor</para>
     </listitem>
 
     <listitem>
@@ -70,6 +70,11 @@
       BLFS Editor</para>
     </listitem>
 
+    <listitem>
+      <para><ulink url="mailto:dj@linuxfromscratch.org">DJ Lucas</ulink>
+      &lt;dj@linuxfromscratch.org&gt; &ndash; LFS and BLFS Editor</para>
+    </listitem>
+
     <listitem>
       <para><ulink url="mailto:ken@linuxfromscratch.org">Ken Moffat</ulink>
       &lt;ken@linuxfromscratch.org&gt; &ndash; LFS and CLFS Editor</para>

+ 14 - 0
chapter01/changelog.xml

@@ -35,6 +35,20 @@
       </itemizedlist>
     </listitem>
 -->
+
+    <listitem>
+      <para>2008-10-03</para>
+      <itemizedlist>
+        <listitem>
+          <para>[randy] - Updated GCC to 4.3.2 which includes adding the
+          GMP-4.2.4 and MPFR-2.3.2 packages. This new version of GCC requires
+          the added packages. Thanks to DJ Lucas for the stimulus and initial
+          work resulting in this and all of the other package updates coming
+          up.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
     <listitem>
       <para>2008-07-11</para>
       <itemizedlist>

+ 14 - 0
chapter01/whatsnew.xml

@@ -86,6 +86,9 @@
     <listitem>
       <para>Glibc &glibc-version;</para>
     </listitem>
+    <!-- <listitem>
+      <para>GMP &gmp-version;</para>
+    </listitem> -->
     <listitem>
       <para>Grep &grep-version;</para>
     </listitem>
@@ -140,6 +143,9 @@
     <listitem>
       <para>Module-Init-Tools &module-init-tools-version;</para>
     </listitem>
+    <!-- <listitem>
+      <para>MPFR &mpfr-version;</para>
+    </listitem> -->
     <!--<listitem>
       <para>Ncurses &ncurses-version;</para>
     </listitem>-->
@@ -216,6 +222,10 @@
       <para>&db-fixes-patch;</para>
     </listitem>
 
+    <listitem>
+      <para>GMP-&gmp-version;</para>
+    </listitem>
+
     <listitem>
       <para>&grep-debian-patch;</para>
     </listitem>
@@ -232,6 +242,10 @@
       <para>&module-init-manpages-patch;</para>
     </listitem>
 
+    <listitem>
+      <para>MPFR-&mpfr-version;</para>
+    </listitem>
+
     <listitem>
       <para>&readline-fixes-patch;</para>
     </listitem>

+ 2 - 0
chapter05/chapter05.xml

@@ -21,6 +21,8 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="tcl.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="expect.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="dejagnu.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gmp.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mpfr.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc-pass2.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="binutils-pass2.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ncurses.xml"/>

+ 10 - 1
chapter05/gcc-pass1.xml

@@ -43,6 +43,15 @@
   <sect2 role="installation">
     <title>Installation of GCC</title>
 
+    <para>GCC now requires the GMP and MPFR packages. As these packages may
+    not be included in your host distribution, they will be built with
+    GCC.</para>
+
+<screen><userinput remap="pre">tar -jxf ../mpfr/&mpfr-version;.tar.bz2 &amp;&amp;
+mv mpfr-&mpfr-version; mpfr &amp;&amp;
+tar -jxf ../gmp-&gmp-version;.tar.bz2 &amp;&amp;
+mv gmp-&gmp-version; gmp</userinput></screen>
+
     <para>The GCC documentation recommends building GCC outside of the
     source directory in a dedicated build directory:</para>
 
@@ -53,7 +62,7 @@ cd ../gcc-build</userinput></screen>
 
 <screen><userinput remap="configure">CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure --prefix=/tools \
     --with-local-prefix=/tools --disable-nls --enable-shared \
-    --enable-languages=c</userinput></screen>
+    --enable-languages=c --disable-decimal-float</userinput></screen>
 
     <variablelist>
       <title>The meaning of the configure options:</title>

+ 72 - 0
chapter05/gmp.xml

@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-tools-gmp" role="wrap">
+  <?dbhtml filename="gmp.html"?>
+
+  <sect1info condition="script">
+    <productname>gmp</productname>
+    <productnumber>&gmp-version;</productnumber>
+    <address>&gmp-url;</address>
+  </sect1info>
+
+  <title>GMP-&gmp-version;</title>
+
+  <indexterm zone="ch-tools-gmp">
+    <primary sortas="a-GMP">GMP</primary>
+    <secondary>tools</secondary>
+  </indexterm>
+
+  <sect2 role="package">
+    <title/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../chapter06/gmp.xml"
+    xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
+
+    <segmentedlist>
+      <segtitle>&buildtime;</segtitle>
+      <segtitle>&diskspace;</segtitle>
+
+      <seglistitem>
+        <seg>&gmp-ch5-sbu;</seg>
+        <seg>&gmp-ch5-du;</seg>
+      </seglistitem>
+    </segmentedlist>
+
+  </sect2>
+
+  <sect2 role="installation">
+    <title>Installation of GMP</title>
+
+    <para>Prepare GMP for compilation:</para>
+
+<screen><userinput remap="configure">./configure --prefix=/tools --enable-mpbsd</userinput></screen>
+
+    <para>Compile the package:</para>
+
+<screen><userinput remap="make">make</userinput></screen>
+
+    <para>To test the results, issue:</para>
+
+<screen><userinput remap="test">make check</userinput></screen>
+
+    <para>Install the package:</para>
+
+<screen><userinput remap="install">make install</userinput></screen>
+
+  </sect2>
+
+  <sect2 role="content">
+    <title/>
+
+    <para>Details on this package are located in
+    <xref linkend="contents-gmp" role="."/></para>
+
+  </sect2>
+
+</sect1>

+ 72 - 0
chapter05/mpfr.xml

@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-tools-mpfr" role="wrap">
+  <?dbhtml filename="mpfr.html"?>
+
+  <sect1info condition="script">
+    <productname>mpfr</productname>
+    <productnumber>&mpfr-version;</productnumber>
+    <address>&mpfr-url;</address>
+  </sect1info>
+
+  <title>MPFR-&mpfr-version;</title>
+
+  <indexterm zone="ch-tools-mpfr">
+    <primary sortas="a-MPFR">MPFR</primary>
+    <secondary>tools</secondary>
+  </indexterm>
+
+  <sect2 role="package">
+    <title/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../chapter06/mpfr.xml"
+    xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
+
+    <segmentedlist>
+      <segtitle>&buildtime;</segtitle>
+      <segtitle>&diskspace;</segtitle>
+
+      <seglistitem>
+        <seg>&mpfr-ch5-sbu;</seg>
+        <seg>&mpfr-ch5-du;</seg>
+      </seglistitem>
+    </segmentedlist>
+
+  </sect2>
+
+  <sect2 role="installation">
+    <title>Installation of MPFR</title>
+
+    <para>Prepare MPFR for compilation:</para>
+
+<screen><userinput remap="configure">./configure --prefix=/tools --enable-thread-safe</userinput></screen>
+
+    <para>Compile the package:</para>
+
+<screen><userinput remap="make">make</userinput></screen>
+
+    <para>To test the results, issue:</para>
+
+<screen><userinput remap="test">make check</userinput></screen>
+
+    <para>Install the package:</para>
+
+<screen><userinput remap="install">make install</userinput></screen>
+
+  </sect2>
+
+  <sect2 role="content">
+    <title/>
+
+    <para>Details on this package are located in
+    <xref linkend="contents-mpfr" role="."/></para>
+
+  </sect2>
+
+</sect1>

+ 2 - 0
chapter06/chapter06.xml

@@ -22,6 +22,8 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="glibc.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="readjusting.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="binutils.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gmp.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mpfr.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="db.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sed.xml"/>

+ 101 - 0
chapter06/gmp.xml

@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-system-gmp" role="wrap">
+  <?dbhtml filename="gmp.html"?>
+
+  <sect1info condition="script">
+    <productname>gmp</productname>
+    <productnumber>&gmp-version;</productnumber>
+    <address>&gmp-url;</address>
+  </sect1info>
+
+  <title>GMP-&gmp-version;</title>
+
+  <indexterm zone="ch-system-gmp">
+    <primary sortas="a-GMP">GMP</primary>
+  </indexterm>
+
+  <sect2 role="package">
+    <title/>
+
+    <para>The GMP package contains math libraries. These have useful functions
+    for arbitrary precision arithmetic.</para>
+
+    <segmentedlist>
+      <segtitle>&buildtime;</segtitle>
+      <segtitle>&diskspace;</segtitle>
+
+      <seglistitem>
+        <seg>&gmp-ch6-sbu;</seg>
+        <seg>&gmp-ch6-du;</seg>
+      </seglistitem>
+    </segmentedlist>
+
+  </sect2>
+
+  <sect2 role="installation">
+    <title>Installation of GMP</title>
+
+    <para>Prepare GMP for compilation:</para>
+
+<screen><userinput remap="configure">./configure --prefix=/usr --enable-cxx --enable-mpbsd</userinput></screen>
+
+    <para>Compile the package:</para>
+
+<screen><userinput remap="make">make</userinput></screen>
+
+    <important>
+      <para>The test suite for GMP in this section is considered critical.
+      Do not skip it under any circumstances.</para>
+    </important>
+
+    <para>Test the results:</para>
+
+<screen><userinput remap="test">make check</userinput></screen>
+ 
+    <para>Install the package:</para>
+
+<screen><userinput remap="install">make install &amp;&amp;
+install -v -m755 -d /usr/share/doc/gmp-4.2.2 &amp;&amp;
+install -v -m644    doc/{isa_abi_headache,configuration} doc/*.html \
+                    /usr/share/doc/gmp-4.2.2</userinput></screen>
+
+  </sect2>
+
+
+  <sect2 id="contents-gmp" role="content">
+    <title>Contents of GMP</title>
+
+    <segmentedlist>
+      <segtitle>Installed Libraries</segtitle>
+
+      <seglistitem>
+        <seg>gmp.so</seg>
+      </seglistitem>
+    </segmentedlist>
+
+    <variablelist>
+      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+      <?dbfo list-presentation="list"?>
+      <?dbhtml list-presentation="table"?>
+
+      <varlistentry id="gmp">
+        <term><command>gmp</command></term>
+        <listitem>
+          <para>Contains precision math functions.</para>
+          <indexterm zone="ch-system-gmp gmp">
+            <primary sortas="c-gmp">gmp</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
+  </sect2>
+
+</sect1>

+ 98 - 0
chapter06/mpfr.xml

@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-system-mpfr" role="wrap">
+  <?dbhtml filename="mpfr.html"?>
+
+  <sect1info condition="script">
+    <productname>mpfr</productname>
+    <productnumber>&mpfr-version;</productnumber>
+    <address>&mpfr-url;</address>
+  </sect1info>
+
+  <title>MPFR-&mpfr-version;</title>
+
+  <indexterm zone="ch-system-mpfr">
+    <primary sortas="a-MPFR">MPFR</primary>
+  </indexterm>
+
+  <sect2 role="package">
+    <title/>
+
+    <para>The MPFR package contains functions for multiple precision
+    math.</para>
+
+    <segmentedlist>
+      <segtitle>&buildtime;</segtitle>
+      <segtitle>&diskspace;</segtitle>
+
+      <seglistitem>
+        <seg>&mpfr-ch6-sbu;</seg>
+        <seg>&mpfr-ch6-du;</seg>
+      </seglistitem>
+    </segmentedlist>
+
+  </sect2>
+
+  <sect2 role="installation">
+    <title>Installation of MPFR</title>
+
+    <para>Prepare MPFR for compilation:</para>
+
+<screen><userinput remap="configure">./configure --prefix=/usr --enable-thread-safe</userinput></screen>
+
+    <para>Compile the package:</para>
+
+<screen><userinput remap="make">make</userinput></screen>
+
+    <important>
+      <para>The test suite for MPFR in this section is considered critical.
+      Do not skip it under any circumstances.</para>
+    </important>
+
+    <para>Test the results:</para>
+
+<screen><userinput remap="test">make check</userinput></screen>
+
+    <para>Install the package:</para>
+
+<screen><userinput remap="install">make install</userinput></screen>
+
+  </sect2>
+
+
+  <sect2 id="contents-mpfr" role="content">
+    <title>Contents of MPFR</title>
+
+    <segmentedlist>
+      <segtitle>Installed Libraries</segtitle>
+
+      <seglistitem>
+        <seg>mpfr.so</seg>
+      </seglistitem>
+    </segmentedlist>
+
+    <variablelist>
+      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+      <?dbfo list-presentation="list"?>
+      <?dbhtml list-presentation="table"?>
+
+      <varlistentry id="mpfr">
+        <term><command>mpfr</command></term>
+        <listitem>
+          <para>Contains multiple-precision math functions.</para>
+          <indexterm zone="ch-system-mpfr mpfr">
+            <primary sortas="c-mpfr">mpfr</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
+  </sect2>
+
+</sect1>

+ 2 - 2
general.ent

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "SVN-20080711">
-<!ENTITY releasedate "July 11, 2008">
+<!ENTITY version "SVN-20081003">
+<!ENTITY releasedate "October 3, 2008">
 <!ENTITY copyrightdate "1999&ndash;2008">
 <!ENTITY milestone "7.0">
 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->

+ 29 - 9
packages.ent

@@ -170,17 +170,17 @@
 <!ENTITY gawk-ch6-du "18.2 MB">
 <!ENTITY gawk-ch6-sbu "0.2 SBU">
 
-<!ENTITY gcc-version "4.2.3">
-<!ENTITY gcc-size "43,413 KB">
+<!ENTITY gcc-version "4.3.2">
+<!ENTITY gcc-size "58,929 KB">
 <!ENTITY gcc-url "&gnu;gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2">
-<!ENTITY gcc-md5 "ef2a4d9991b3644115456ea05b2b8163">
+<!ENTITY gcc-md5 "5dfac5da961ecd5f227c3175859a486d">
 <!ENTITY gcc-home "http://gcc.gnu.org/">
-<!ENTITY gcc-ch5p1-du "655 MB">
-<!ENTITY gcc-ch5p1-sbu "9.2 SBU">
-<!ENTITY gcc-ch5p2-du "553 MB">
-<!ENTITY gcc-ch5p2-sbu "4.2 SBU">
-<!ENTITY gcc-ch6-du "681 MB testsuite included">
-<!ENTITY gcc-ch6-sbu "22 SBU testsuite included">
+<!ENTITY gcc-ch5p1-du "1.1 GB">
+<!ENTITY gcc-ch5p1-sbu "22 SBU">
+<!ENTITY gcc-ch5p2-du "865 MB">
+<!ENTITY gcc-ch5p2-sbu "6.5 SBU">
+<!ENTITY gcc-ch6-du "1.1 GB testsuite included">
+<!ENTITY gcc-ch6-sbu "25 SBU testsuite included">
 
 <!ENTITY gettext-version "0.17">
 <!ENTITY gettext-size "11,368 KB">
@@ -207,6 +207,16 @@
 <!ENTITY glibc-libidn-md5 "226809992fb1f3dc6ea23e0f26952ea4">
 <!ENTITY glibc-libidn-home " ">
 
+<!ENTITY gmp-version "4.2.4">
+<!ENTITY gmp-size "1,170 KB">
+<!ENTITY gmp-url "&gnu;gmp/gmp-&gmp-version;.tar.bz2">
+<!ENTITY gmp-md5 "fc1e3b3a2a5038d4d74138d0b9cf8dbe">
+<!ENTITY gmp-home "&gnu-software;gmp/">
+<!ENTITY gmp-ch5-du "22.9 MB">
+<!ENTITY gmp-ch5-sbu "0.8 SBU">
+<!ENTITY gmp-ch6-du "39.4 MB testsuite included">
+<!ENTITY gmp-ch6-sbu "1.5 SBU testsuite included">
+
 <!ENTITY grep-version "2.5.3">
 <!ENTITY grep-size "604 KB">
 <!ENTITY grep-url "&gnu;grep/grep-&grep-version;.tar.bz2">
@@ -368,6 +378,16 @@
 <!ENTITY module-init-tools-ch6-du "8 MB">
 <!ENTITY module-init-tools-ch6-sbu "less than 0.1 SBU">
 
+<!ENTITY mpfr-version "2.3.2">
+<!ENTITY mpfr-size "986 KB">
+<!ENTITY mpfr-url "http://www.mpfr.org/mpfr-current/mpfr-&mpfr-version;.tar.bz2">
+<!ENTITY mpfr-md5 "527147c097874340cb9cee0579dacf3b">
+<!ENTITY mpfr-home "http://www.mpfr.org/">
+<!ENTITY mpfr-ch5-du "19.3 MB">
+<!ENTITY mpfr-ch5-sbu "0.5 SBU">
+<!ENTITY mpfr-ch6-du "39.4 MB testsuite included">
+<!ENTITY mpfr-ch6-sbu "1.2 SBU testsuite included">
+
 <!ENTITY ncurses-version "5.6">
 <!-- <!ENTITY ncurses-date "20050319"> -->
 <!ENTITY ncurses-size "2,346 KB">