source: chapter05/glibc.xml@ b7368d5

Last change on this file since b7368d5 was 28b40e2, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Finished the PDF fixes.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.2/BOOK@7737 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 7.3 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 %general-entities;
6]>
7
8<sect1 id="ch-tools-glibc" role="wrap">
9 <?dbhtml filename="glibc.html"?>
10
11 <title>Glibc-&glibc-version;</title>
12
13 <indexterm zone="ch-tools-glibc">
14 <primary sortas="a-Glibc">Glibc</primary>
15 <secondary>tools</secondary>
16 </indexterm>
17
18 <sect2 role="package">
19 <title/>
20
21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
22 href="../chapter06/glibc.xml"
23 xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
24
25 <segmentedlist>
26 <segtitle>&buildtime;</segtitle>
27 <segtitle>&diskspace;</segtitle>
28
29 <seglistitem>
30 <seg>&glibc-ch5-sbu;</seg>
31 <seg>&glibc-ch5-du;</seg>
32 </seglistitem>
33 </segmentedlist>
34
35 </sect2>
36
37 <sect2 role="installation">
38 <title>Installation of Glibc</title>
39
40 <para>The Glibc documentation recommends building Glibc outside of the source
41 directory in a dedicated build directory:</para>
42
43<screen><userinput>mkdir -v ../glibc-build
44cd ../glibc-build</userinput></screen>
45
46 <para>Next, prepare Glibc for compilation:</para>
47
48<screen><userinput>../glibc-&glibc-version;/configure --prefix=/tools \
49 --disable-profile --enable-add-ons \
50 --enable-kernel=2.6.0 --with-binutils=/tools/bin \
51 --without-gd --with-headers=/tools/include \
52 --without-selinux</userinput></screen>
53
54 <variablelist>
55 <title>The meaning of the configure options:</title>
56
57 <varlistentry>
58 <term><parameter>--disable-profile</parameter></term>
59 <listitem>
60 <para>This builds the libraries without profiling information. Omit
61 this option if profiling on the temporary tools is necessary.</para>
62 </listitem>
63 </varlistentry>
64
65 <varlistentry>
66 <term><parameter>--enable-add-ons</parameter></term>
67 <listitem>
68 <para>This tells Glibc to use the NPTL add-on as its threading
69 library.</para>
70 </listitem>
71 </varlistentry>
72
73 <varlistentry>
74 <term><parameter>--enable-kernel=2.6.0</parameter></term>
75 <listitem>
76 <para>This tells Glibc to compile the library with support
77 for 2.6.x Linux kernels.</para>
78 </listitem>
79 </varlistentry>
80
81 <varlistentry>
82 <term><parameter>--with-binutils=/tools/bin</parameter></term>
83 <listitem>
84 <para>While not required, this switch ensures that there are
85 no errors pertaining to which Binutils programs get used during the
86 Glibc build.</para>
87 </listitem>
88 </varlistentry>
89
90 <varlistentry>
91 <term><parameter>--without-gd</parameter></term>
92 <listitem>
93 <para>This prevents the build of the <command>memusagestat</command>
94 program, which insists on linking against the host's libraries
95 (libgd, libpng, libz, etc.).</para>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry>
100 <term><parameter>--with-headers=/tools/include</parameter></term>
101 <listitem>
102 <para>This tells Glibc to compile itself against the headers recently
103 installed to the tools directory, so that it knows exactly what
104 features the kernel has and can optimize itself accordingly.</para>
105 <beginpage/>
106 </listitem>
107 </varlistentry>
108
109 <varlistentry>
110 <term><parameter>--without-selinux</parameter></term>
111 <listitem>
112 <para>When building from hosts that include SELinux functionality
113 (e.g., Fedora Core 3), Glibc will build with support for SELinux.
114 As the LFS tools environment does not contain support for SELinux, a
115 Glibc compiled with such support will fail to operate correctly.</para>
116 </listitem>
117 </varlistentry>
118
119 </variablelist>
120
121 <para>During this stage the following warning might appear:</para>
122
123 <blockquote>
124<screen><computeroutput>configure: WARNING:
125*** These auxiliary programs are missing or
126*** incompatible versions: msgfmt
127*** some features will be disabled.
128*** Check the INSTALL file for required versions.</computeroutput></screen>
129 </blockquote>
130
131 <para>The missing or incompatible <command>msgfmt</command> program is
132 generally harmless, but it can sometimes cause issues when running the
133 test suite. This <command>msgfmt</command> program is part of the
134 Gettext package which the host distribution should provide. If
135 <command>msgfmt</command> is present but deemed incompatible, upgrade
136 the host system's Gettext package or continue without it and see if
137 the test suite runs without problems regardless.</para>
138
139 <para>Compile the package:</para>
140
141<screen><userinput>make</userinput></screen>
142
143 <para>Compilation is now complete. As mentioned earlier, running the
144 test suites for the temporary tools installed in this chapter is not
145 mandatory. To run the Glibc test suite (if desired), the following
146 command will do so:</para>
147
148<screen><userinput>make check</userinput></screen>
149
150 <para>For a discussion of test failures that are of particular
151 importance, please see <xref linkend="ch-system-glibc" role="."/></para>
152
153 <para>In this chapter, some tests can be adversely affected by
154 existing tools or environmental issues on the host system. Glibc test
155 suite failures in this chapter are typically not worrisome. The Glibc
156 installed in <xref linkend="chapter-building-system"/> is the one that
157 will ultimately end up being used, so that is the one that needs to pass
158 most tests (even in <xref linkend="chapter-building-system"/>, some
159 failures could still occur, for example, with the math tests).</para>
160
161 <para>When experiencing a failure, make a note of it, then continue by
162 reissuing the <command>make check</command> command. The test suite
163 should pick up where it left off and continue. This stop-start sequence
164 can be circumvented by issuing a <command>make -k check</command> command.
165 If using this option, be sure to log the output so that the log file can
166 be examined for failures later.</para>
167
168 <para>The install stage of Glibc will issue a harmless warning at the
169 end about the absence of <filename>/tools/etc/ld.so.conf</filename>.
170 Prevent this warning with:</para>
171
172<screen><userinput>mkdir -v /tools/etc
173touch /tools/etc/ld.so.conf</userinput></screen>
174
175 <para>Install the package:</para>
176
177<screen><userinput>make install</userinput></screen>
178
179 <para>Different countries and cultures have varying conventions for
180 how to communicate. These conventions range from the format for
181 representing dates and times to more complex issues, such as the
182 language spoken. The <quote>internationalization</quote> of GNU
183 programs works by locale.</para>
184
185 <note>
186 <para>If the test suites are not being run in this chapter (as per
187 the recommendation), there is no need to install the locales now.
188 The appropriate locales will be installed in the next chapter.
189 To install the Glibc locales anyway, use instructions from
190 <xref linkend="ch-system-glibc" role="."/></para>
191 </note>
192
193 </sect2>
194
195 <sect2 role="content">
196 <title/>
197
198 <para>Details on this package are located in
199 <xref linkend="contents-glibc" role="."/></para>
200
201 </sect2>
202
203</sect1>
Note: See TracBrowser for help on using the repository browser.