Changeset c906b7e for chapter06/glibc.xml
- Timestamp:
- 12/28/2012 10:23:04 AM (11 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/glibc.xml
r7aea76f rc906b7e 62 62 of achieving a clean build.</para> 63 63 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 infinite68 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 to70 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#<rpc/types.h>#"rpc/types.h"#' sunrpc/rpc_clntout.c</userinput></screen>78 79 <!-- <para>When running <command>make install</command>, a script called80 <filename>test-installation.pl</filename> performs a small sanity test on81 our newly installed Glibc. However, because our toolchain still points to82 the <filename class="directory">/tools</filename> directory, the sanity83 test would be carried out against the wrong Glibc. We can force the script84 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 "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|" \88 scripts/test-installation.pl89 unset DL</userinput></screen>-->90 91 <para>When running <command>make install</command>, a script called92 <filename>test-installation.pl</filename> performs a small sanity test on93 our newly installed Glibc. Use a patch to fix the bug that causes it to94 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-specific99 syntax. Change its default program interpreter to <command>/bin/bash</command>100 in case another <command>/bin/sh</command> is installed as described in the101 <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 when107 utilizing problem nameservers:</para>108 109 <screen><userinput remap="pre">patch -Np1 -i ../&glibc-fix-resolv-patch;</userinput></screen>110 111 64 <para>The Glibc documentation recommends building Glibc outside of the source 112 65 directory in a dedicated build directory:</para> … … 114 67 <screen><userinput remap="pre">mkdir -v ../glibc-build 115 68 cd ../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" > configparms ;; 123 esac</userinput></screen> 124 --> 69 125 70 <para>Prepare Glibc for compilation:</para> 126 71 … … 158 103 any of the test failures listed below. Now test the build results:</para> 159 104 160 <!-- cp -v ../glibc-&glibc-version;/iconvdata/gconv-modules iconvdata -->161 162 105 <screen><userinput remap="test">make -k check 2>&1 | tee glibc-check-log 163 106 grep Error glibc-check-log</userinput></screen> … … 170 113 171 114 <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 when175 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 -->178 115 179 116 <listitem> … … 192 129 authentic AMD processor.</para> 193 130 </listitem> 194 195 <!--196 <listitem>197 <para>If you have mounted the LFS partition with the198 <parameter>noatime</parameter> option, the <emphasis>atime</emphasis>199 test will fail. As mentioned in <xref linkend="space-mounting"/>, do not200 use the <parameter>noatime</parameter> option while building LFS.</para>201 </listitem>202 -->203 131 204 132 <listitem> … … 288 216 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file 289 217 in the unlikely case you need them.</para> 290 <!-- The Live CD patches the localedata/SUPPORTED file instead of291 running localedef, the results are equivalent -->292 218 293 219 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.