Ignore:
Timestamp:
12/28/2012 10:23:04 AM (11 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
bb543c2
Parents:
7aea76f
Message:

Upgrade to Glibc-2.17. Fixes #3261.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10075 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/glibc.xml

    r7aea76f rc906b7e  
    6262    of achieving a clean build.</para>
    6363
    64 <!--
    65     This should have been fixed a long time ago.
    66 
    67     <para>In the vi_VN.TCVN locale, <command>bash</command> enters an infinite
    68     loop at startup. It is unknown whether this is a <command>bash</command>
    69     bug or a Glibc problem. Disable installation of this locale in order to
    70     avoid the problem:</para>
    71 
    72 <screen><userinput remap="pre">sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED</userinput></screen>
    73 -->
    74 
    75     <para>Fix a problem that causes the build to fail in the LFS environment:</para>
    76 
    77 <screen><userinput remap="pre">sed -i 's#&lt;rpc/types.h&gt;#"rpc/types.h"#' sunrpc/rpc_clntout.c</userinput></screen>
    78 
    79 <!--    <para>When running <command>make install</command>, a script called
    80     <filename>test-installation.pl</filename> performs a small sanity test on
    81     our newly installed Glibc. However, because our toolchain still points to
    82     the <filename class="directory">/tools</filename> directory, the sanity
    83     test would be carried out against the wrong Glibc. We can force the script
    84     to check the Glibc we have just installed with the following:</para>
    85 
    86 <screen><userinput remap="pre">DL=$(readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')
    87 sed -i &quot;s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|&quot; \
    88         scripts/test-installation.pl
    89 unset DL</userinput></screen>-->
    90 
    91     <para>When running <command>make install</command>, a script called
    92     <filename>test-installation.pl</filename> performs a small sanity test on
    93     our newly installed Glibc. Use a patch to fix the bug that causes it to
    94     fail:</para>
    95 
    96 <screen><userinput remap="pre">patch -Np1 -i ../&glibc-installation-patch;</userinput></screen>
    97 
    98     <para>The <command>ldd</command> shell script contains Bash-specific
    99     syntax. Change its default program interpreter to <command>/bin/bash</command>
    100     in case another <command>/bin/sh</command> is installed as described in the
    101     <ulink url="&blfs-root;view/svn/postlfs/shells.html">Shells</ulink>
    102     chapter of the BLFS book:</para>
    103 
    104 <screen><userinput remap="pre">sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in</userinput></screen>
    105 
    106     <para>Now fix a problem that causes some applications to crash when
    107     utilizing problem nameservers:</para>
    108 
    109 <screen><userinput remap="pre">patch -Np1 -i ../&glibc-fix-resolv-patch;</userinput></screen>
    110 
    11164    <para>The Glibc documentation recommends building Glibc outside of the source
    11265    directory in a dedicated build directory:</para>
     
    11467<screen><userinput remap="pre">mkdir -v ../glibc-build
    11568cd ../glibc-build</userinput></screen>
    116 <!--
    117     <para>As in Chapter 5, add the needed compiler flags to CFLAGS for x86 machines.
    118     Here, the optimization of the library is also set for the gcc compiler to
    119     enhance compilation speed (-pipe) and package performance (-O3).</para>
    120 
    121 <screen><userinput remap="configure">case `uname -m` in
    122   i?86) echo "CFLAGS += -march=i486 -mtune=native -O3 -pipe" &gt; configparms ;;
    123 esac</userinput></screen>
    124 -->
     69
    12570    <para>Prepare Glibc for compilation:</para>
    12671
     
    158103    any of the test failures listed below. Now test the build results:</para>
    159104
    160 <!-- cp -v ../glibc-&glibc-version;/iconvdata/gconv-modules iconvdata -->
    161 
    162105<screen><userinput remap="test">make -k check 2&gt;&amp;1 | tee glibc-check-log
    163106grep Error glibc-check-log</userinput></screen>
     
    170113
    171114    <itemizedlist>
    172       <!-- Check again after updating from gcc-4.1.x -->
    173       <!-- Haven;t seen this in quite a while <listitem>
    174         <para>The <emphasis>nptl/tst-cancel1</emphasis> test will fail when
    175         using the 4.1 series of GCC.</para>
    176       </listitem> -->
    177       <!-- Was true in glibc-2.3.6, rt/tst-cpuclock2 in glibc-2.11.1 -->
    178115
    179116      <listitem>
     
    192129        authentic AMD processor.</para>
    193130      </listitem>
    194      
    195       <!--
    196       <listitem>
    197         <para>If you have mounted the LFS partition with the
    198         <parameter>noatime</parameter> option, the <emphasis>atime</emphasis>
    199         test will fail. As mentioned in <xref linkend="space-mounting"/>, do not
    200         use the <parameter>noatime</parameter> option while building LFS.</para>
    201       </listitem>
    202       -->
    203131     
    204132      <listitem>
     
    288216    <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
    289217    in the unlikely case you need them.</para>
    290     <!-- The Live CD patches the localedata/SUPPORTED file instead of
    291     running localedef, the results are equivalent -->
    292218
    293219  </sect2>
Note: See TracChangeset for help on using the changeset viewer.