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

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

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

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