source: chapter02/hostreqs.xml@ 23c21ef

multilib ml-11.3
Last change on this file since 23c21ef was 23c21ef, checked in by Thomas Trepl <thomas@…>, 14 months ago

Automatic merge of trunk into multilib

  • Property mode set to 100644
File size: 8.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-partitioning-hostreqs" xreflabel="Host System Requirements">
9 <?dbhtml filename="hostreqs.html"?>
10
11 <title>Host System Requirements</title>
12
13 <sect2>
14 <title>Hardware</title>
15
16 <para>The LFS editors recommend that the system CPU have at least
17 four cores and that the system have at least 8 GB of memory.
18 Older systems that do not meet these requirements will still work,
19 but the time to build packages will be significantly longer
20 than documented.
21 </para>
22
23 </sect2>
24
25 <sect2>
26 <title>Software</title>
27
28 <para>Your host system should have the following software with the
29 minimum versions indicated. This should not be an issue for most
30 modern Linux distributions. Also note that many distributions will
31 place software headers into separate packages, often in the form of
32 <quote>&lt;package-name&gt;-devel</quote> or
33 <quote>&lt;package-name&gt;-dev</quote>. Be sure to install those if
34 your distribution provides them.</para>
35
36 <para>Earlier versions of the listed software packages may work, but have
37 not been tested.</para>
38
39 <itemizedlist spacing="compact">
40
41 <listitem>
42 <para><emphasis role="strong">Bash-3.2</emphasis> (/bin/sh
43 should be a symbolic or hard link to bash)</para>
44 </listitem>
45
46 <listitem>
47 <para><emphasis role="strong">Binutils-2.13.1</emphasis> (Versions
48 greater than &binutils-version; are not recommended as they have
49 not been tested)</para>
50 </listitem>
51
52 <listitem>
53 <para><emphasis role="strong">Bison-2.7</emphasis> (/usr/bin/yacc
54 should be a link to bison or a small script that executes bison)</para>
55 </listitem>
56
57 <listitem>
58 <para><emphasis role="strong">Coreutils-6.9</emphasis></para>
59 </listitem>
60
61 <listitem>
62 <para><emphasis role="strong">Diffutils-2.8.1</emphasis></para>
63 </listitem>
64
65 <listitem>
66 <para><emphasis role="strong">Findutils-4.2.31</emphasis></para>
67 </listitem>
68
69 <listitem>
70 <para><emphasis role="strong">Gawk-4.0.1</emphasis> (/usr/bin/awk
71 should be a link to gawk)</para>
72 </listitem>
73
74 <listitem>
75 <para><emphasis role="strong">GCC-5.1</emphasis> including the C++
76 compiler, <command>g++</command> (Versions greater than &gcc-version; are
77 not recommended as they have not been tested). C and C++ standard
78 libraries (with headers) must also be present so the C++ compiler can
79 build hosted programs</para>
80 </listitem>
81
82 <listitem>
83 <para><emphasis role="strong">Grep-2.5.1a</emphasis></para>
84 </listitem>
85
86 <listitem>
87 <para><emphasis role="strong">Gzip-1.3.12</emphasis></para>
88 </listitem>
89
90 <listitem>
91 <para><emphasis role="strong">Linux Kernel-&min-kernel;</emphasis></para>
92
93 <para>The reason for the kernel version requirement is that we specify
94 that version when building <application>glibc</application> in
95 <xref linkend="chapter-cross-tools"/> and
96 <xref linkend="chapter-building-system"/>,
97 at the recommendation of the developers.</para>
98
99 <para>If the host kernel is earlier than &min-kernel; you will need to replace
100 the kernel with a more up-to-date version. There are two ways
101 you can go about this. First, see if your Linux vendor provides a &min-kernel;
102 or later kernel package. If so, you may wish to install it. If your
103 vendor doesn't offer an acceptable kernel package, or you would prefer not to
104 install it, you can compile a kernel yourself. Instructions for
105 compiling the kernel and configuring the boot loader (assuming the host
106 uses GRUB) are located in <xref linkend="chapter-bootable"/>.</para>
107
108 </listitem>
109
110 <listitem>
111 <para><emphasis role="strong">M4-1.4.10</emphasis></para>
112 </listitem>
113
114 <listitem>
115 <para><emphasis role="strong">Make-4.0</emphasis></para>
116 </listitem>
117
118 <listitem>
119 <para><emphasis role="strong">Patch-2.5.4</emphasis></para>
120 </listitem>
121
122 <listitem>
123 <para><emphasis role="strong">Perl-5.8.8</emphasis></para>
124 </listitem>
125
126 <listitem>
127 <para><emphasis role="strong">Python-3.4</emphasis></para>
128 </listitem>
129
130 <listitem>
131 <para><emphasis role="strong">Sed-4.1.5</emphasis></para>
132 </listitem>
133
134 <listitem>
135 <para><emphasis role="strong">Tar-1.22</emphasis></para>
136 </listitem>
137
138 <listitem>
139 <para><emphasis role="strong">Texinfo-4.7</emphasis></para>
140 </listitem>
141
142 <listitem>
143 <para><emphasis role="strong">Xz-5.0.0</emphasis></para>
144 </listitem>
145
146 </itemizedlist>
147
148 <important>
149 <para>Note that the symlinks mentioned above are required to build an LFS
150 system using the instructions contained within this book. Symlinks that
151 point to other software (such as dash, mawk, etc.) may work, but are not
152 tested or supported by the LFS development team, and may require either
153 deviation from the instructions or additional patches to some
154 packages.</para>
155 </important>
156
157 <!-- Use an empty sect2 element to prevent a pdf warning. -->
158 <bridgehead renderas="sect2"
159 id="version-check"
160 xreflabel="Host System Requirements">
161 </bridgehead>
162 <!--<title> </title>-->
163
164 <para >To see whether your host system has all the appropriate versions, and
165 the ability to compile programs, run the following commands:</para>
166
167<screen role="nodump"><userinput>cat &gt; version-check.sh &lt;&lt; "EOF"
168<literal>#!/bin/bash
169# Simple script to list version numbers of critical development tools
170export LC_ALL=C
171bash --version | head -n1 | cut -d" " -f2-4
172MYSH=$(readlink -f /bin/sh)
173echo "/bin/sh -&gt; $MYSH"
174echo $MYSH | grep -q bash || echo "ERROR: /bin/sh does not point to bash"
175unset MYSH
176
177echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
178bison --version | head -n1
179
180if [ -h /usr/bin/yacc ]; then
181 echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
182elif [ -x /usr/bin/yacc ]; then
183 echo yacc is `/usr/bin/yacc --version | head -n1`
184else
185 echo "yacc not found"
186fi
187
188echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
189diff --version | head -n1
190find --version | head -n1
191gawk --version | head -n1
192
193if [ -h /usr/bin/awk ]; then
194 echo "/usr/bin/awk -&gt; `readlink -f /usr/bin/awk`";
195elif [ -x /usr/bin/awk ]; then
196 echo awk is `/usr/bin/awk --version | head -n1`
197else
198 echo "awk not found"
199fi
200
201gcc --version | head -n1
202g++ --version | head -n1
203grep --version | head -n1
204gzip --version | head -n1
205cat /proc/version
206m4 --version | head -n1
207make --version | head -n1
208patch --version | head -n1
209echo Perl `perl -V:version`
210python3 --version
211sed --version | head -n1
212tar --version | head -n1
213makeinfo --version | head -n1 # texinfo version
214xz --version | head -n1
215
216echo 'int main(){}' &gt; dummy.c &amp;&amp; g++ -o dummy dummy.c
217if [ -x dummy ]
218 then echo "g++ compilation OK";
219 else echo "g++ compilation failed"; fi
220rm -f dummy.c dummy</literal>
221EOF
222
223bash version-check.sh</userinput></screen>
224<!--
225 <para>Also check for some library consistency:</para>
226
227<screen role="nodump"><userinput>cat &gt; library-check.sh &lt;&lt; "EOF"
228<literal>#!/bin/bash
229for lib in lib{gmp,mpfr,mpc}.la; do
230 echo $lib: $(if find /usr/lib* -name $lib|
231 grep -q $lib;then :;else echo not;fi) found
232done
233unset lib</literal>
234EOF
235
236bash library-check.sh</userinput></screen>
237
238<para>The files identified by this script should be all present
239or all absent, but not only one or two present.</para>
240-->
241
242 <para arch="ml_32,ml_x32,ml_all">
243 Building multilib support requires the kernel of the host system
244 to have 32-bit emulation support included.
245 </para>
246<screen arch="ml_32,ml_x32,ml_all">Binary Emulations ---&gt;
247 [*] IA32 Emulation
248 &lt;M&gt; IA32 a.out support
249 [*] x32 ABI for 64-bit mode
250</screen>
251
252 <para arch="ml_32,ml_x32,ml_all">The option 'IA32 a.out support' is
253 optional. In case your kernel does not have 'x32 ABI for 64-bit mode'
254 enabled but only 'IA32 Emulation', you can continue to build your
255 system but you have to leave out any sections showing instructions
256 for building x32 objects. If neither 'IA32 Emulation' nor
257 'x32 ABI for 64-bit mode' is enabled, you will run in errors
258 latest when building <application>glibc</application> in Chapter 6,
259 so an upgrade of your host system kernel is required.
260 </para>
261
262 </sect2>
263</sect1>
Note: See TracBrowser for help on using the repository browser.