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 | |
---|
17 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
18 | href="glibc.xml" |
---|
19 | xpointer="xpointer(//*[@role='package'])"/> |
---|
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 | |
---|
44 | <para>Now we make sure the Glibc goes into |
---|
45 | <filename class="directory">/lib64</filename>:</para> |
---|
46 | |
---|
47 | <screen><userinput>echo "slibdir=/lib64" >> configparms</userinput></screen> |
---|
48 | |
---|
49 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
50 | href="glibc.xml" |
---|
51 | xpointer="xpointer(//*[@os='g'])"/> |
---|
52 | |
---|
53 | <screen><userinput>CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \ |
---|
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 | |
---|
58 | <variablelist> |
---|
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"> |
---|
141 | <title>Configuring Dynamic Loader</title> |
---|
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 |
---|
152 | directories other than <filename class="directory">/lib</filename> and |
---|
153 | <filename class="directory">/usr/lib</filename>, these need to be |
---|
154 | added to the <filename>/etc/ld.so.conf</filename> file in order |
---|
155 | for the dynamic loader to find them. Two directories that are commonly |
---|
156 | known to contain additional libraries are |
---|
157 | <filename class="directory">/usr/local/lib</filename>, |
---|
158 | <filename class="directory">/usr/local/lib64</filename>, |
---|
159 | <filename class="directory">/opt/lib</filename>, |
---|
160 | and <filename class="directory">/opt/lib64</filename>, |
---|
161 | so add those directories to the dynamic loader's search path.</para> |
---|
162 | |
---|
163 | <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the |
---|
164 | following:</para> |
---|
165 | |
---|
166 | <screen><userinput>cat > /etc/ld.so.conf << "EOF" |
---|
167 | <literal># Begin /etc/ld.so.conf |
---|
168 | |
---|
169 | /usr/local/lib |
---|
170 | /usr/local/lib64 |
---|
171 | /opt/lib |
---|
172 | /opt/lib64 |
---|
173 | |
---|
174 | # End /etc/ld.so.conf</literal> |
---|
175 | EOF</userinput></screen> |
---|
176 | |
---|
177 | </sect2> |
---|
178 | |
---|
179 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
180 | href="../common/glibc.xml" |
---|
181 | xpointer="xpointer(id('contents-glibc'))"/> |
---|
182 | |
---|
183 | </sect1> |
---|