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

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

r1167@server (orig r1165): chris | 2006-02-11 08:13:02 -0800
Added -v to commands in the rest of the book

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