source: BOOK/final-system/multilib/glibc-64bit.xml @ 82f7fed

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 82f7fed was 82f7fed, checked in by Jim Gifford <clfs@…>, 18 years ago

r649@server (orig r647): manuel | 2005-11-07 12:51:45 -0800
Remove the optimization related warnings from the toolchain packages.

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