aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/glibc.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/glibc.xml')
-rw-r--r--chapter06/glibc.xml31
1 files changed, 26 insertions, 5 deletions
diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml
index 653b4280c..a0f3b4277 100644
--- a/chapter06/glibc.xml
+++ b/chapter06/glibc.xml
@@ -20,7 +20,7 @@ arithmetic, and so on.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
-<seglistitem><seg>12.3 SBU</seg><seg>476</seg></seglistitem>
+<seglistitem><seg>16.7 SBU</seg><seg>500</seg></seglistitem>
</segmentedlist>
<segmentedlist>
@@ -68,6 +68,19 @@ C library or the kernel. This patch fixes the problem:</para>
<screen><userinput>patch -Np1 -i ../&glibc-testfix-patch;</userinput></screen>
+<para>Apply the following patches to enable Glibc to compile with
+GCC-&gcc-version;:</para>
+
+<screen><userinput>patch -Np1 -i ../&glibc-gcc4_symbols-patch;
+patch -Np1 -i ../&glibc-gcc4_string-patch;
+patch -Np1 -i ../&glibc-gcc4_elf-patch;
+patch -Np1 -i ../&glibc-gcc4_iconvdata-patch;</userinput></screen>
+
+<para>The following patch corrects the expected results for some of the math
+tests on x86 processors when compiled with GCC-&gcc-version;:</para>
+
+<screen><userinput>patch -Np1 -i ../&glibc-gcc4_mathtest-patch;</userinput></screen>
+
<para>The Glibc documentation recommends building Glibc outside of the source
directory in a dedicated build directory:</para>
@@ -102,16 +115,24 @@ circumstance.</para></important>
<para>Test the results:</para>
-<screen><userinput>make check</userinput></screen>
+<screen><userinput>
+make -k check &gt;glibc-check-log 2&gt;&amp;1 ; grep Error glibc-check-log
+</userinput></screen>
+
+<para>On at least i686 you can expect to see failures in the <emphasis>test-double
+</emphasis> and <emphasis>test-idouble</emphasis> math tests with
+gcc-&gcc-version;, as well as an expected (ignored) failure in <emphasis>
+posix/annexc</emphasis>. These two failures in the math tests appear to be
+harmless.</para>
<para>The Glibc test suite is highly dependent on certain functions of
-the host system, in particular the kernel. In general, the Glibc test
-suite is always expected to pass. However, in certain circumstances,
+the host system, in particular the kernel. In certain circumstances,
some failures are unavoidable. This is a list of the most common
issues:</para>
<itemizedlist>
-<listitem><para>The <emphasis>math</emphasis> tests sometimes fail when running
+<listitem><para>The <emphasis>math</emphasis> tests sometimes fail in other tests
+when running
on systems where the CPU is not a relatively new genuine Intel or authentic AMD.
Certain optimization settings are also known to be a factor here.</para></listitem>