Author: bdubbs
Date: Mon Jul 22 14:26:43 2013
New Revision: 11471

Log:
Update to gcc-4.8.1 to bring in sync with LFS.

Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/general/prog/gcc.xml
   trunk/BOOK/general/prog/openjdk.xml
   trunk/BOOK/introduction/welcome/changelog.xml

Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent      Mon Jul 22 13:14:43 2013        (r11470)
+++ trunk/BOOK/general.ent      Mon Jul 22 14:26:43 2013        (r11471)
@@ -57,7 +57,7 @@
 <!ENTITY lfs-coreutils-version        "8.5">
 <!ENTITY lfs-e2fsprogs-version        "1.41.12">
 <!ENTITY lfs-flex-version             "2.5.35">
-<!ENTITY lfs-gcc-version              "4.7.2">
+<!ENTITY lfs-gcc-version              "4.8.1">
 <!ENTITY lfs-gdbm-version             "1.8.3">
 <!ENTITY lfs-m4-version               "1.4.14">
 <!-- this was originally the perl version used by the corresponding
@@ -372,7 +372,7 @@
 <!ENTITY dmd-version                  "2.062">
 <!ENTITY doxygen-version              "1.8.4">
 <!ENTITY expect-version               "5.45">
-<!ENTITY gcc-version                  "4.7.2">
+<!ENTITY gcc-version                  "4.8.1">
 <!ENTITY gc-version                   "7.2d">
 <!ENTITY gdb-version                  "7.6">
 <!ENTITY git-version                  "1.8.3.3">

Modified: trunk/BOOK/general/prog/gcc.xml
==============================================================================
--- trunk/BOOK/general/prog/gcc.xml     Mon Jul 22 13:14:43 2013        (r11470)
+++ trunk/BOOK/general/prog/gcc.xml     Mon Jul 22 14:26:43 2013        (r11471)
@@ -6,10 +6,10 @@
 
   <!ENTITY gcc-download-http  
"http://ftp.gnu.org/gnu/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2";>
   <!ENTITY gcc-download-ftp   
"ftp://ftp.gnu.org/gnu/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2";>
-  <!ENTITY gcc-md5sum         "cc308a0891e778cfda7a151ab8a6e762">
-  <!ENTITY gcc-size           "80 MB">
-  <!ENTITY gcc-buildsize      "~6.1 GB (build, test and install all 
compilers)">
-  <!ENTITY gcc-time           "150 SBU (build, test and install all 
compilers)">
+  <!ENTITY gcc-md5sum         "3b2386c114cd74185aa3754b58a79304">
+  <!ENTITY gcc-size           "83 MB">
+  <!ENTITY gcc-buildsize      "~6.2 GB (build, test and install all 
compilers)">
+  <!ENTITY gcc-time           "98 SBU (build, test and install all compilers)">
 
   <!ENTITY gnat-download-http "https://libre.adacore.com/download/";>
   <!-- We don't know what platform, so this is commented out
@@ -100,11 +100,12 @@
       <application>GNAT</application> temporarily to satisfy the circular
       dependency when you recompile <application>GCC</application>
       to include Ada. At the AdaCore download page, choose your platform and
-      2011, then select the file to download. You probably want the x86-linux
+      2013, then select the file to download. You probably want the x86-linux
       or x86_64-linux file.</para>
     </note>
-<!-- Using 2011, because 2012 does not compile GCC-4.7.2 -->
-    <bridgehead renderas="sect3">GNAT GPL 2011 Package Information</bridgehead>
+<!-- Using 2011, because 2012 does not compile GCC-4.7.2 
+     GCC-4.8.1 and gnat 2013 work OK -->
+    <bridgehead renderas="sect3">GNAT GPL 2013 Package Information</bridgehead>
     <itemizedlist spacing="compact">
       <listitem>
         <para>Download (HTTP): <ulink url="&gnat-download-http;"/></para>
@@ -120,30 +121,30 @@
     <title>Installation of GNAT</title>
 
     <para>Before unpacking and changing into the GCC source directory, first
-    unpack the <application>GNAT</application> tarball and change into the
-    newly created directory and install <application>GNAT</application> by
-    running the following command:</para>
-
-<screen><userinput>make ins-all prefix=<replaceable>&lt;Your build 
directory&gt;</replaceable>/gnat</userinput></screen>
-
-    <para>The <application>GNAT</application> compiler can be
-    invoked by executing the <command>gcc</command> binary installed
-    in <filename
-    class='directory'><replaceable>&lt;Your build 
directory&gt;</replaceable>/gnat/bin</filename>.</para>
+    unpack the <application>GNAT</application> tarball.  You may have to drill
+    down several levels and unpack a second tarball.  For example,
+    AdaCore-Download-2013-07-22_0530.tar expands to
+    
<filename>x86_64-linux/2013/gnatgpl/gnat-gpl-2013-x86_64-pc-linux-gnu-bin.tar.gz</filename>.
+    Expand this second tarball and change into the newly created directory.
+    Install <application>GNAT</application> by running the following
+    command:</para>
+
+<screen><userinput>make ins-all prefix=/opt/gnat</userinput></screen>
+
+    <para>The <application>GNAT</application> compiler can be invoked by
+    executing the <command>gcc</command> binary installed in <filename
+    class='directory'>/opt/gnat/bin</filename>.</para>
 
     <para>You may now remove the <application>GNAT</application>
-    source directory:</para>
-
-<screen><userinput>cd .. &amp;&amp;
-rm -rf gnat-2011-*</userinput></screen>
+    source directory if desired.</para>
 
     <para>Prepare to compile <application>GCC</application> by placing the
     <application>GNAT</application> version of <command>gcc</command> at the
     beginning of the <envar>PATH</envar> variable by using the following
-    commands:</para>
+    commands as the <systemitem class="username">root</systemitem> user:</para>
 
 <screen><userinput>PATH_HOLD=$PATH &amp;&amp;
-export PATH=<replaceable>&lt;Your build 
directory&gt;</replaceable>/gnat/bin:$PATH_HOLD</userinput></screen>
+export PATH=/opt/gnat/bin:$PATH_HOLD</userinput></screen>
 
     <para>Doing so has the drawback that the <application>GCC</application>
     and <application>Binutils</application> executables are taken
@@ -154,8 +155,8 @@
     hand, the outdated <command>ld</command> and <command>as</command> tools
     are used all along. In order to use the LFS tools, issue:</para>
 
-<screen><userinput>find <replaceable>&lt;Your build 
directory&gt;</replaceable>/gnat -name ld -exec mv -v \{\} \{\}.old \;
-find <replaceable>&lt;Your build directory&gt;</replaceable>/gnat -name as 
-exec mv -v \{\} \{\}.old \;</userinput></screen>
+<screen><userinput>find /opt/gnat -name ld -exec mv -v {} {}.old \;
+find /opt/gnat -name as -exec mv -v {} {}.old \;</userinput></screen>
 
   </sect2>
 
@@ -187,13 +188,13 @@
 
     <para>The instructions below let the build machinery perform a
     <quote>bootstrap</quote> intentionally. This is necessary if you
-    install the <application>ADA</application> compiler anyway. Even
+    install the <application>Ada</application> compiler anyway. Even
     if you don't, a bootstrap is recommended for robustness.</para>
 
-<screen><userinput>sed -i 's/\(install.*:\) install-.*recursive/\1/' 
libffi/Makefile.in &amp;&amp;
-sed -i 's/\(install-data-am:\).*/\1/' libffi/include/Makefile.in &amp;&amp;
-sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in &amp;&amp;
-sed -i 's@\./fixinc\.sh@-c true@'        gcc/Makefile.in       &amp;&amp;
+<screen><userinput>sed -i 's/\(install.*:\) install-.*recursive/\1/' 
libffi/Makefile.in         &amp;&amp;
+sed -i 's/\(install-data-am:\).*/\1/'             libffi/include/Makefile.in 
&amp;&amp;
+sed -i 's/install_to_$(INSTALL_DEST) //'          libiberty/Makefile.in      
&amp;&amp;
+sed -i 's@\./fixinc\.sh@-c true@'                 gcc/Makefile.in            
&amp;&amp;
 
 case `uname -m` in
       i?86) sed -i 's/^T_CFLAGS =$/&amp; -fomit-frame-pointer/' 
gcc/Makefile.in ;;
@@ -215,8 +216,9 @@
     --enable-lto               \
     --enable-languages=c,c++,fortran,ada,go,java,objc,obj-c++ &amp;&amp;
 
-make &amp;&amp;
-make -k check  &amp;&amp;
+make            &amp;&amp;
+ulimit -s 32768 &amp;&amp;
+make -k check   &amp;&amp;
 
 ../gcc-&gcc-version;/contrib/test_summary</userinput></screen>
 
@@ -225,7 +227,7 @@
 <screen role="root"><userinput>make install &amp;&amp;
 
 ln -v -sf ../usr/bin/cpp /lib &amp;&amp;
-ln -v -sf gcc /usr/bin/cc &amp;&amp;
+ln -v -sf gcc /usr/bin/cc     &amp;&amp;
 
 chown -v -R root:root \
     /usr/lib/gcc/*linux-gnu/&gcc-version;/include{,-fixed} \
@@ -239,11 +241,10 @@
 
 <screen role="root"><userinput>ln -v -sf `find /usr/lib/gcc -name ffitarget.h` 
/usr/include</userinput></screen>-->
 
-    <para>You should now become the unprivileged user and remove the
-    <application>GNAT</application> installation and perform other
-    cleanups:</para>
+    <para>You should now remove the <application>GNAT</application>
+    installation and perform other cleanups:</para>
 
-<screen><userinput>rm -rf <replaceable>&lt;Your build 
directory&gt;</replaceable>/gnat &amp;&amp;
+<screen><userinput>rm -rf /opt/gnat &amp;&amp;
 export PATH=$PATH_HOLD &amp;&amp;
 unset PATH_HOLD</userinput></screen>
 
@@ -286,6 +287,9 @@
     This command identifies which languages to build. You may modify
     this command to remove undesired languages.</para>
 
+    <para><command>ulimit -s 32768</command>: This command prevents several
+    tests from running out of stack space.</para>
+
     <para><command>make -k check</command>: This command runs the test suite
     without stopping if any errors are encountered.</para>
 

Modified: trunk/BOOK/general/prog/openjdk.xml
==============================================================================
--- trunk/BOOK/general/prog/openjdk.xml Mon Jul 22 13:14:43 2013        (r11470)
+++ trunk/BOOK/general/prog/openjdk.xml Mon Jul 22 14:26:43 2013        (r11471)
@@ -46,7 +46,7 @@
   <!ENTITY openjdk-time                  "47 SBU (an additional 156 SBU for 
testsuite)">
 ]>
 
-<sect1 id="openjdk" xreflabel="OpenJDK-&openjdk-version;">
+<sect1 id="openjdk" 
xreflabel="OpenJDK-&openjdk-version;/IcedTea-&icedtea-version;">
   <?dbhtml filename="openjdk.html" ?>
 
   <sect1info>

Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml       Mon Jul 22 13:14:43 
2013        (r11470)
+++ trunk/BOOK/introduction/welcome/changelog.xml       Mon Jul 22 14:26:43 
2013        (r11471)
@@ -47,6 +47,10 @@
       <para>July 22nd, 2013</para>
       <itemizedlist>
         <listitem>
+          <para>[bdubbs] - Update to gcc-4.8.1 to bring in sync with
+          LFS.</para>
+        </listitem>
+        <listitem>
           <para>[igor] - MesaLib-9.1.5</para>
         </listitem>
       </itemizedlist>
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to