Author: randy Date: 2007-03-16 16:08:10 -0600 (Fri, 16 Mar 2007) New Revision: 6668
Modified: trunk/BOOK/general.ent trunk/BOOK/general/prog/gcc.xml trunk/BOOK/introduction/welcome/changelog.xml Log: Updated to GCC-4.1.2, which matches the version used in LFS Modified: trunk/BOOK/general/prog/gcc.xml =================================================================== --- trunk/BOOK/general/prog/gcc.xml 2007-03-15 18:36:40 UTC (rev 6667) +++ trunk/BOOK/general/prog/gcc.xml 2007-03-16 22:08:10 UTC (rev 6668) @@ -6,17 +6,14 @@ <!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 "6ff1af12c53cbb3f79b27f2d6a9a3d50"> - <!ENTITY gcc-size "32.9 MB"> - <!ENTITY gcc-buildsize "1.7 GB"> - <!ENTITY gcc-time "60 SBU (build, test and install all compilers)"> + <!ENTITY gcc-md5sum "a4a3eb15c96030906d8494959eeda23c"> + <!ENTITY gcc-size "39.7 MB"> + <!ENTITY gcc-buildsize "1.9 GB"> + <!ENTITY gcc-time "77 SBU (build, test and install all compilers)"> - <!ENTITY gnat-download-http "&sources-anduin-http;/g/gnat-3.15p-i686-pc-redhat71-gnu-bin.tar.bz2"> - <!ENTITY gnat-download-ftp "&sources-anduin-ftp;/g/gnat-3.15p-i686-pc-redhat71-gnu-bin.tar.bz2"> - <!ENTITY gnat-md5sum "c9aad2da908a40e876c24fc85f248b51"> - <!ENTITY gnat-size "11.6 MB"> - <!ENTITY gnat-buildsize "97.7 MB"> - <!ENTITY gnat-time "less than 0.1 SBU"> + <!ENTITY gnat-download-http "https://libre.adacore.com/dynamic/download_page"> + <!ENTITY gnat-md5sum "659b7f57e00b73ecaa4863dabea5e0e2"> + <!ENTITY gnat-size "44.6 MB"> ]> <sect1 id="gcc" xreflabel="GCC-&gcc-version;"> @@ -104,38 +101,29 @@ <para>If you plan to compile Ada, you will need to install <application>GNAT</application> temporarily to satisfy the circular dependency when you recompile <application>GCC</application> - to include Ada.</para> + to include Ada. The download location shown below requires that you + create an account on the AdaCore site before you can download the + package. Nothing is required other than a valid email address.</para> + + <para><emphasis role='strong'>Ensure you download the 2005 version of the + GNAT compiler. The 2006 version will not work. The file name you need is: + <filename>gnat-gpl-2005-i686-gnu-linux-gnu-libc2.3-bin.tar.gz</filename>.</emphasis> + </para> </note> - <bridgehead renderas="sect3">GNAT-3.15 Package Information</bridgehead> + <bridgehead renderas="sect3">GNAT GPL 2005 Package Information</bridgehead> <itemizedlist spacing="compact"> <listitem> <para>Download (HTTP): <ulink url="&gnat-download-http;"/></para> </listitem> <listitem> - <para>Download (FTP): <ulink url="&gnat-download-ftp;"/></para> - </listitem> - <listitem> <para>Download MD5 sum: &gnat-md5sum;</para> </listitem> <listitem> <para>Download size: &gnat-size;</para> </listitem> - <listitem> - <para>Estimated disk space required: &gnat-buildsize;</para> - </listitem> - <listitem> - <para>Estimated build time: &gnat-time;</para> - </listitem> </itemizedlist> - <!-- - <bridgehead renderas="sect3">GNAT Dependencies</bridgehead> - - <bridgehead renderas="sect4">Required</bridgehead> - <para role="required"><xref linkend="tcsh"/></para> - --> - <para condition="html" role="usernotes">User Notes: <ulink url="&blfs-wiki;/gcc"/></para> @@ -149,24 +137,6 @@ <screen role="root"><userinput>make ins-all prefix=/opt/gnat</userinput></screen> -<!-- -<screen><userinput>./doconfig</userinput></screen> - - <para>The above script will ask you how and where you would like to install - <application>GNAT</application>. To avoid conflicts with the system - <command>gcc</command>, the package will be installed in a separate - directory that can later be removed from the system.</para> - - <para>In response to the questions asked by the <command>doconfig</command> - script, enter <userinput>3</userinput> in response to the first question - and <userinput>/opt/gnat</userinput> in response to the second - question.</para> - - <para>To finish the installation, run the following command as the - <systemitem class="username">root</systemitem> user:</para> - -<screen role="root"><userinput>./doinstall</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> @@ -175,7 +145,7 @@ source directory:</para> <screen><userinput>cd .. && -rm -rf gnat-3.15p-i686-pc-linux-gnu-bin</userinput></screen> +rm -rf gnat-gpl-2005-i686-gnu-linux-gnu-libc2.3-bin</userinput></screen> <para>Prepare to compile <application>GCC</application> by placing the <application>GNAT</application> version of <command>gcc</command> at the @@ -206,23 +176,27 @@ until you are confident the build was successful. You can compare your test results with those found at <ulink url="http://gcc.gnu.org/ml/gcc-testresults/"/>. There's also an - i686 platform test result produced by an LFS-SVN-20051127 system at - <ulink url="&files-anduin;/gcc403_test.txt"/>. You + i686 platform test result produced by an LFS-SVN-20070304 system at + <ulink url="&files-anduin;/gcc412_test.txt"/>. You may also want to refer to the information found in the - <application>GCC</application>-Pass 2 section of Chapter 5 in the LFS - book (<ulink url="&lfs-root;/chapter05/gcc-pass2.html"/>).</para> + <application>GCC</application> section of Chapter 6 in the LFS + book (<ulink url="&lfs-root;/chapter06/gcc.html"/>).</para> </important> - <!-- The instructions below perform a 'make bootstrap' instead of just - a plain 'make' intentionally. Even though we assume that the current - version of GCC is installed in LFS, because this installation includes - the Ada compiler as an installed language, a bootstrap is required. - The GNAT compiler must be used for stage1 of the bootstrap in order to - build Ada, therefore we must bootstrap, else we would have a GCC - installed on the system that was produced by a foriegn compiler. --> + <para>The instructions below perform a <quote><command>make + bootstrap</command></quote> instead of just a plain + <quote><command>make</command></quote> intentionally. Even though it is + assumed that the current version of <application>GCC</application> is + installed in LFS, because this installation includes the Ada compiler as an + installed language, a bootstrap is required. The GNAT compiler must be used + for stage1 of the bootstrap in order to build Ada. If the process didn't + use a <quote>bootstrap</quote> you could end up having a + <command>gcc</command> installed on the system that was produced by a + foriegn compiler.</para> <screen><userinput>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in && sed -i '[EMAIL PROTECTED]/[EMAIL PROTECTED] true@' gcc/Makefile.in && +sed -i 's/@have_mktemp_command@/yes/' gcc/gccbug.in && mkdir ../gcc-build && cd ../gcc-build && ../gcc-&gcc-version;/configure \ @@ -232,7 +206,7 @@ --enable-threads=posix \ --enable-__cxa_atexit \ --enable-clocale=gnu \ - --enable-languages=c,c++,objc,f95,ada,java,treelang && + --enable-languages=c,c++,ada,fortran,java,objc,treelang && make bootstrap && make -k check && ../gcc-&gcc-version;/contrib/test_summary</userinput></screen> @@ -271,10 +245,9 @@ <sect2 role="commands"> <title>Command Explanations</title> - <para><command>sed -i 's/install_to_$(INSTALL_DEST) //' - libiberty/Makefile.in</command>: This command suppresses the installation - of <filename class='libraryfile'>libiberty.a</filename> as the version - provided by <application>Binutils</application> is used instead.</para> + <para>The three <command>sed</command> commands are the same ones used + during the build of LFS. A fourth one in LFS is ommitted intentionally, + due to the bootstrap build.</para> <para><command>mkdir ../gcc-build; cd ../gcc-build</command>: The <application>GCC</application> documentation recommends @@ -288,7 +261,7 @@ failsafe for incomplete locale data.</para> <para> - <parameter>--enable-languages=c,c++,objc,f95,ada,java,treelang</parameter>: + <parameter>--enable-languages=c,c++,ada,fortran,java,objc,treelang</parameter>: This command identifies which languages to build. You may modify this command to remove undesired languages.</para> Modified: trunk/BOOK/general.ent =================================================================== --- trunk/BOOK/general.ent 2007-03-15 18:36:40 UTC (rev 6667) +++ trunk/BOOK/general.ent 2007-03-16 22:08:10 UTC (rev 6668) @@ -3,7 +3,7 @@ $Date$ --> -<!ENTITY day "15"> <!-- Always 2 digits --> +<!ENTITY day "16"> <!-- Always 2 digits --> <!ENTITY month "03"> <!-- Always 2 digits --> <!ENTITY year "2007"> <!ENTITY version "svn-&year;&month;&day;"> @@ -42,6 +42,7 @@ <!ENTITY lfs-perl-version "5.8.8"> <!ENTITY lfs-shadow-version "4.0.17"> <!ENTITY lfs-vim-version "7.0"> +<!ENTITY lfs-gcc-version "4.1.2"> <!-- End LFS versions --> <!ENTITY blfs-bootscripts-version "20060910"> @@ -182,7 +183,7 @@ <!ENTITY doxygen-version "1.4.6"> <!ENTITY expect-version "5.43.0"> <!ENTITY gc-version "6.8"> -<!ENTITY gcc-version "4.0.3"> +<!ENTITY gcc-version "4.1.2"> <!ENTITY gcc3-version "3.3.6"> <!ENTITY guile-version "1.6.7"> <!ENTITY jdk-bin-version "1.5.0_10"> Modified: trunk/BOOK/introduction/welcome/changelog.xml =================================================================== --- trunk/BOOK/introduction/welcome/changelog.xml 2007-03-15 18:36:40 UTC (rev 6667) +++ trunk/BOOK/introduction/welcome/changelog.xml 2007-03-16 22:08:10 UTC (rev 6668) @@ -42,6 +42,16 @@ --> <listitem> + <para>March 16th, 2007</para> + <itemizedlist> + <listitem> + <para>[randy] - Updated to GCC-4.1.2, which matches the version + used in LFS.</para> + </listitem> + </itemizedlist> + </listitem> + + <listitem> <para>March 15th, 2007</para> <itemizedlist> <listitem> -- http://linuxfromscratch.org/mailman/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
