source: BOOK/final-system/sparc64/glibc-64bit.xml@ 3373dd11

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3373dd11 was 0babf98, checked in by Jim Gifford <clfs@…>, 19 years ago

r664@server (orig r662): manuel | 2005-11-08 14:13:28 -0800
Removing SBUs and DUs. Chapter final-system, round 2.

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