Update to gcc-13.1.

This commit is contained in:
Bruce Dubbs 2023-05-01 22:38:44 -05:00
parent 64e4b6f193
commit 64e462a702
3 changed files with 42 additions and 31 deletions

View File

@ -7,10 +7,10 @@
<!ENTITY gcc-download-http "&gnu-http;/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.xz">
<!ENTITY gcc-download-ftp "&gnu-ftp;/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.xz">
<!-- Update this also on the grub-uefi page -->
<!ENTITY gcc-md5sum "73bafd0af874439dcdb9fc063b6fb069">
<!ENTITY gcc-size "81 MB">
<!ENTITY gcc-buildsize "10.5 GB (2.4 GB installed with all listed languages; add 1.3 GB for tests)">
<!ENTITY gcc-time "32 SBU (add 66 SBU for tests; both with parallelism=4)">
<!ENTITY gcc-md5sum "43e4de77f2218c83ca675257ea1af9ef">
<!ENTITY gcc-size "83 MB">
<!ENTITY gcc-buildsize "9.6 GB (2.4 GB installed with all listed languages; add 1.4 GB for tests)">
<!ENTITY gcc-time "32 SBU (add 55 SBU for tests; both with parallelism=4)">
]>
<sect1 id="gcc" xreflabel="GCC-&gcc-version;">
@ -29,15 +29,15 @@
<para>
The <application>GCC</application> package contains the GNU Compiler
Collection. This page describes the installation of compilers for the
following languages: C, C++, Fortran, Objective C, Objective C++, and Go.
following languages: C, C++, Fortran, Objective C, Objective C++, Go, and Modula2.
Since C and C++ are installed in LFS, this page is either for upgrading
C and C++, or for installing additional compilers.
</para>
<note>
<para>
Additional languages, among which D and ADA, are available in the
collection. D and ADA have a binary bootstrap requirement for the first
Additional languages, among which D and Ada, are available in the
collection. D and Ada have a binary bootstrap requirement for the first
installation, so their installation is not described here. To install
them, you can proceed along the same lines as below after installing
the corresponding compiler from a binary package, adding
@ -63,7 +63,7 @@
headers from the ones used when <application>Glibc</application> was
compiled during LFS.
</para>
<!--
<para>
Some system headers need to be fixed to be used with GCC. This is done
during the installation of GCC, and the <quote>fixed</quote> headers
@ -80,6 +80,7 @@
/usr/libexec/gcc/x86_64-pc-linux-gnu/&gcc-version;/install-tools/mkheaders
</command>. The machine triplet may be different on a 32-bit system.
</para>
-->
</caution>
<bridgehead renderas="sect3">Package Information</bridgehead>
@ -115,7 +116,7 @@
</para>
</listitem>
</itemizedlist>
<!--
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
@ -125,7 +126,7 @@
</para>
</listitem>
</itemizedlist>
-->
<bridgehead renderas="sect3">GCC Dependencies</bridgehead>
<bridgehead renderas="sect4">Optional</bridgehead>
@ -171,7 +172,7 @@
bootstrap anyway, add <parameter>--disable-bootstrap</parameter> to the
<command>./configure</command> options below.
</para>
<!--
<para>
Some packages checks on the phrase <literal>gccgo</literal> in the output
of <command>go version</command> to see which kind of Go compiler is
@ -184,7 +185,7 @@
</para>
<screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-fix_go_version-1.patch</userinput></screen>
-->
<para>
Install <application>GCC</application> by running the following commands:
</para>
@ -195,29 +196,29 @@
;;
esac
mkdir build &amp;&amp;
cd build &amp;&amp;
mkdir build &amp;&amp;
cd build &amp;&amp;
../configure \
--prefix=/usr \
--disable-multilib \
--with-system-zlib \
--enable-default-pie \
--enable-default-ssp \
--enable-languages=c,c++,fortran,go,objc,obj-c++ &amp;&amp;
../configure \
--prefix=/usr \
--disable-multilib \
--with-system-zlib \
--enable-default-pie \
--enable-default-ssp \
--disable-fixincludes \
--enable-languages=c,c++,fortran,go,objc,obj-c++,m2 &amp;&amp;
make</userinput></screen>
<para>
If you have installed additional packages such as
<application>Valgrind</application> and <application>GDB</application>,
the <application>GCC</application> part of the test suite will run more
<application>valgrind</application> and <application>gdb</application>,
the <application>gcc</application> part of the test suite will run more
tests than in LFS. Some of those will report FAIL and others XPASS
(pass when expected to FAIL). As of gcc-12.2.0, about 60 FAIL occur
(pass when expected to FAIL). As of gcc-13.1.0, about 60 FAIL occur
in the <quote>guality</quote> suite, as well as miscellaneous failures
throughout the rest of the test suite, fifteen of which are already
present in the GCC tests of LFS. If all the compilers above are
built, there will be around 80 unexpected failures out of over
482,000 tests. To run the tests, issue:
throughout the rest of the test suite.
If all the compilers above are built, there will be a little over 80
unexpected failures out of over 478,000 tests. To run the tests, issue:
</para>
<screen><userinput>ulimit -s 32768 &amp;&amp;
@ -298,10 +299,10 @@ ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so /us
</para>
<para>
<parameter>--enable-languages=c,c++,fortran,go,objc,obj-c++</parameter>:
<parameter>--enable-languages=c,c++,fortran,go,objc,obj-c++,m2</parameter>:
This command identifies which languages to build. You may modify
this command to remove undesired languages. Other languages can be
added, including ADA, D, BRIG (add
added, including Ada, D, BRIG (add
<parameter>brig</parameter> to the list of enabled languages), a binary
format for HSAIL (Heterogeneous System Architecture Intermediate
Language), and JIT (add <parameter>jit</parameter> to the list of enabled

View File

@ -38,6 +38,16 @@
</itemizedlist>
</listitem>
-->
<listitem>
<para>May 1st, 2023</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Update to gcc-13.1. Fixes
<ulink url="&blfs-ticket-root;17983">#17983</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>April 30th, 2023</para>
<itemizedlist>

View File

@ -314,7 +314,7 @@ to avoid building libxml2 twice, which is slow with all deps -->
<!ENTITY cmake-minor-version "3">
<!ENTITY cmake-version "&cmake-major-version;.&cmake-minor-version;">
<!ENTITY doxygen-version "1.9.6">
<!ENTITY gcc-version "12.2.0">
<!ENTITY gcc-version "13.1.0">
<!ENTITY gc-version "8.2.2">
<!ENTITY gdb-version "13.1">
<!ENTITY git-version "2.40.1">