source: final-system/multilib/glibc-64bit.xml@ a67c762

Last change on this file since a67c762 was a67c762, checked in by Jim Gifford <clfs@…>, 19 years ago

r666@server (orig r664): manuel | 2005-11-08 14:48:14 -0800
Removing SBUs and DUs. Chapter final-system, round 4.

  • Property mode set to 100644
File size: 6.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-system-glibc" role="wrap">
11 <?dbhtml filename="glibc-64bit.html"?>
12
13 <title>Glibc-&glibc-version; 64-Bit</title>
14
15 <indexterm zone="ch-system-glibc">
16 <primary sortas="a-Glibc">Glibc</primary>
17 </indexterm>
18
19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
20 href="glibc.xml"
21 xpointer="xpointer(//*[@role='package'])"/>
22
23 <sect2 role="installation">
24 <title>Installation of Glibc</title>
25
26 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
27 href="glibc.xml"
28 xpointer="xpointer(//*[@os='b'])"/>
29
30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
31 href="../common/glibc.xml"
32 xpointer="xpointer(//*[@os='c'])"/>
33
34 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
35 href="../common/glibc.xml"
36 xpointer="xpointer(//*[@os='d'])"/>
37
38 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
39 href="glibc.xml"
40 xpointer="xpointer(//*[@os='e'])"/>
41
42 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
43 href="glibc.xml"
44 xpointer="xpointer(//*[@os='f'])"/>
45
46 <para>Now we make sure the Glibc goes into
47 <filename class="directory">/lib64</filename>:</para>
48
49<screen><userinput>echo "slibdir=/lib64" &gt;&gt; configparms</userinput></screen>
50
51 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
52 href="glibc.xml"
53 xpointer="xpointer(//*[@os='g'])"/>
54
55<screen><userinput>CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
56 ../glibc-&glibc-version;/configure --prefix=/usr \
57 --disable-profile --enable-add-ons --enable-kernel=2.6.0 \
58 --libexecdir=/usr/lib64/glibc --libdir=/usr/lib64</userinput></screen>
59
60 <variablelist>
61 <title>The meaning of the new configure option:</title>
62
63 <varlistentry>
64 <term><parameter>--libexecdir=/usr/lib64/glibc</parameter></term>
65 <listitem>
66 <para>This changes the location of the <command>pt_chown</command>
67 program from its default of <filename
68 class="directory">/usr/libexec</filename> to <filename
69 class="directory">/usr/lib64/glibc</filename>.</para>
70 </listitem>
71 </varlistentry>
72 </variablelist>
73
74 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
75 href="glibc.xml"
76 xpointer="xpointer(//*[@os='j'])"/>
77
78 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
79 href="glibc.xml"
80 xpointer="xpointer(//*[@os='k'])"/>
81
82 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
83 href="glibc.xml"
84 xpointer="xpointer(//*[@os='l'])"/>
85
86 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
87 href="glibc.xml"
88 xpointer="xpointer(//*[@os='m'])"/>
89
90<!-- items n,o,p here are now the master, not multilib, because
91 the tests are known to all pass on multilib_64 -->
92
93<screen os="n"><userinput>make check</userinput></screen>
94
95 <para os="o">The Glibc test suite is highly dependent on certain functions of
96 the host system, in particular the kernel. In general, the Glibc test
97 suite is always expected to pass. However, in certain circumstances,
98 some failures are unavoidable. This is a list of the most common
99 issues:</para>
100
101 <itemizedlist os="p">
102 <listitem>
103 <para>The <emphasis>math</emphasis> tests sometimes fail.
104 Certain optimization settings are known to be a
105 factor here.</para>
106 </listitem>
107 <listitem>
108 <para>The <emphasis>gettext</emphasis> test sometimes fails due to
109 host system issues. The exact reasons are not yet clear.</para>
110 </listitem>
111 <listitem>
112 <para>If you have mounted the LFS partition with the
113 <parameter>noatime</parameter> option, the <emphasis>atime</emphasis> test
114 will fail. As mentioned in <xref linkend="ch-partitioning-mounting"/>,
115 do not use the <parameter>noatime</parameter> option while building
116 LFS.</para>
117 </listitem>
118 <listitem>
119 <para>When running on older and slower hardware, some tests
120 can fail because of test timeouts being exceeded.</para>
121 </listitem>
122 </itemizedlist>
123
124 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
125 href="glibc.xml"
126 xpointer="xpointer(//*[@os='s'])"/>
127
128 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
129 href="glibc.xml"
130 xpointer="xpointer(//*[@os='t'])"/>
131
132 </sect2>
133
134 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
135 href="../common/glibc.xml"
136 xpointer="xpointer(id('i18n-glibc'))"/>
137
138 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
139 href="../common/glibc.xml"
140 xpointer="xpointer(id('conf-glibc'))"/>
141
142 <sect2 id="conf-ld" role="configuration">
143 <title>Configuring Dynamic Loader</title>
144
145 <indexterm zone="conf-ld">
146 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
147 </indexterm>
148
149 <para>By default, the dynamic loader (<filename
150 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
151 <filename class="directory">/lib</filename> and <filename
152 class="directory">/usr/lib</filename> for dynamic libraries that are
153 needed by programs as they are run. However, if there are libraries in
154 directories other than <filename class="directory">/lib</filename> and
155 <filename class="directory">/usr/lib</filename>, these need to be
156 added to the <filename>/etc/ld.so.conf</filename> file in order
157 for the dynamic loader to find them. Two directories that are commonly
158 known to contain additional libraries are
159 <filename class="directory">/usr/local/lib</filename>,
160 <filename class="directory">/usr/local/lib64</filename>,
161 <filename class="directory">/opt/lib</filename>,
162 and <filename class="directory">/opt/lib64</filename>,
163 so add those directories to the dynamic loader's search path.</para>
164
165 <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
166 following:</para>
167
168<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
169<literal># Begin /etc/ld.so.conf
170
171/usr/local/lib
172/usr/local/lib64
173/opt/lib
174/opt/lib64
175
176# End /etc/ld.so.conf</literal>
177EOF</userinput></screen>
178
179 </sect2>
180
181 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
182 href="../common/glibc.xml"
183 xpointer="xpointer(id('contents-glibc'))"/>
184
185</sect1>
Note: See TracBrowser for help on using the repository browser.