source: chapter02/hostreqs.xml@ 7c92d6d

11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/update-glibc
Last change on this file since 7c92d6d was 7c92d6d, checked in by Bruce Dubbs <bdubbs@…>, 16 months ago

Update build times an sizes.

This update changes the default number of cores used to build
packages to 4. A section is also added to host requirements
to recommend a minumum number of cores and memory size.

  • Property mode set to 100644
File size: 7.6 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-4.8</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. It is also required by
98 udev.</para>
99
100 <para>If the host kernel is earlier than &min-kernel; you will need to replace
101 the kernel with a more up-to-date version. There are two ways
102 you can go about this. First, see if your Linux vendor provides a &min-kernel;
103 or later kernel package. If so, you may wish to install it. If your
104 vendor doesn't offer an acceptable kernel package, or you would prefer not to
105 install it, you can compile a kernel yourself. Instructions for
106 compiling the kernel and configuring the boot loader (assuming the host
107 uses GRUB) are located in <xref linkend="chapter-bootable"/>.</para>
108
109 </listitem>
110
111 <listitem>
112 <para><emphasis role="strong">M4-1.4.10</emphasis></para>
113 </listitem>
114
115 <listitem>
116 <para><emphasis role="strong">Make-4.0</emphasis></para>
117 </listitem>
118
119 <listitem>
120 <para><emphasis role="strong">Patch-2.5.4</emphasis></para>
121 </listitem>
122
123 <listitem>
124 <para><emphasis role="strong">Perl-5.8.8</emphasis></para>
125 </listitem>
126
127 <listitem>
128 <para><emphasis role="strong">Python-3.4</emphasis></para>
129 </listitem>
130
131 <listitem>
132 <para><emphasis role="strong">Sed-4.1.5</emphasis></para>
133 </listitem>
134
135 <listitem>
136 <para><emphasis role="strong">Tar-1.22</emphasis></para>
137 </listitem>
138
139 <listitem>
140 <para><emphasis role="strong">Texinfo-4.7</emphasis></para>
141 </listitem>
142
143 <listitem>
144 <para><emphasis role="strong">Xz-5.0.0</emphasis></para>
145 </listitem>
146
147 </itemizedlist>
148
149 <important>
150 <para>Note that the symlinks mentioned above are required to build an LFS
151 system using the instructions contained within this book. Symlinks that
152 point to other software (such as dash, mawk, etc.) may work, but are not
153 tested or supported by the LFS development team, and may require either
154 deviation from the instructions or additional patches to some
155 packages.</para>
156 </important>
157
158 <!-- Use an empty sect2 element to prevent a pdf warning. -->
159 <bridgehead renderas="sect2"
160 id="version-check"
161 xreflabel="Host System Requirements">
162 </bridgehead>
163 <!--<title> </title>-->
164
165 <para >To see whether your host system has all the appropriate versions, and
166 the ability to compile programs, run the following commands:</para>
167
168<screen role="nodump"><userinput>cat &gt; version-check.sh &lt;&lt; "EOF"
169<literal>#!/bin/bash
170# Simple script to list version numbers of critical development tools
171export LC_ALL=C
172bash --version | head -n1 | cut -d" " -f2-4
173MYSH=$(readlink -f /bin/sh)
174echo "/bin/sh -&gt; $MYSH"
175echo $MYSH | grep -q bash || echo "ERROR: /bin/sh does not point to bash"
176unset MYSH
177
178echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
179bison --version | head -n1
180
181if [ -h /usr/bin/yacc ]; then
182 echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
183elif [ -x /usr/bin/yacc ]; then
184 echo yacc is `/usr/bin/yacc --version | head -n1`
185else
186 echo "yacc not found"
187fi
188
189echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
190diff --version | head -n1
191find --version | head -n1
192gawk --version | head -n1
193
194if [ -h /usr/bin/awk ]; then
195 echo "/usr/bin/awk -&gt; `readlink -f /usr/bin/awk`";
196elif [ -x /usr/bin/awk ]; then
197 echo awk is `/usr/bin/awk --version | head -n1`
198else
199 echo "awk not found"
200fi
201
202gcc --version | head -n1
203g++ --version | head -n1
204grep --version | head -n1
205gzip --version | head -n1
206cat /proc/version
207m4 --version | head -n1
208make --version | head -n1
209patch --version | head -n1
210echo Perl `perl -V:version`
211python3 --version
212sed --version | head -n1
213tar --version | head -n1
214makeinfo --version | head -n1 # texinfo version
215xz --version | head -n1
216
217echo 'int main(){}' &gt; dummy.c &amp;&amp; g++ -o dummy dummy.c
218if [ -x dummy ]
219 then echo "g++ compilation OK";
220 else echo "g++ compilation failed"; fi
221rm -f dummy.c dummy</literal>
222EOF
223
224bash version-check.sh</userinput></screen>
225<!--
226 <para>Also check for some library consistency:</para>
227
228<screen role="nodump"><userinput>cat &gt; library-check.sh &lt;&lt; "EOF"
229<literal>#!/bin/bash
230for lib in lib{gmp,mpfr,mpc}.la; do
231 echo $lib: $(if find /usr/lib* -name $lib|
232 grep -q $lib;then :;else echo not;fi) found
233done
234unset lib</literal>
235EOF
236
237bash library-check.sh</userinput></screen>
238
239<para>The files identified by this script should be all present
240or all absent, but not only one or two present.</para>
241-->
242 </sect2>
243</sect1>
Note: See TracBrowser for help on using the repository browser.