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

Last change on this file since d419ce0 was 6de5a22, checked in by Jim Gifford <clfs@…>, 18 years ago

r2949@server (orig r1406): chris | 2006-04-18 08:02:11 -0700
Text fixes for multilib glibc instructions.

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