[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[4ae4324] | 7 |
|
---|
[673b0d8] | 8 | <sect1 id="ch-system-introduction">
|
---|
[4ae4324] | 9 | <?dbhtml filename="introduction.html"?>
|
---|
[673b0d8] | 10 |
|
---|
[4ae4324] | 11 | <title>Introduction</title>
|
---|
[81fd230] | 12 |
|
---|
[4ae4324] | 13 | <para>In this chapter, we enter the building site and start constructing the
|
---|
| 14 | LFS system in earnest. That is, we chroot into the temporary mini Linux system,
|
---|
| 15 | make a few final preparations, and then begin installing the packages.</para>
|
---|
[81fd230] | 16 |
|
---|
[4ae4324] | 17 | <para>The installation of this software is straightforward. Although in many
|
---|
| 18 | cases the installation instructions could be made shorter and more generic,
|
---|
| 19 | we have opted to provide the full instructions for every package to minimize
|
---|
| 20 | the possibilities for mistakes. The key to learning what makes a Linux system
|
---|
[8d72dd3e] | 21 | work is to know what each package is used for and why you (or the system)
|
---|
| 22 | may need it.</para>
|
---|
[81fd230] | 23 |
|
---|
[e86763a] | 24 | <para>We do not recommend using optimizations. They can make
|
---|
[6e88633] | 25 | a program run slightly faster, but they may also cause compilation
|
---|
| 26 | difficulties and problems when running the program. If a package refuses to
|
---|
| 27 | compile when using optimization, try to compile it without optimization and
|
---|
| 28 | see if that fixes the problem. Even if the package does compile when using
|
---|
| 29 | optimization, there is the risk it may have been compiled incorrectly because
|
---|
| 30 | of the complex interactions between the code and build tools. Also note that
|
---|
| 31 | the <option>-march</option> and <option>-mtune</option> options using values
|
---|
| 32 | not specified in the book have not been tested. This may cause problems with
|
---|
| 33 | the toolchain packages (Binutils, GCC and Glibc). The small potential gains
|
---|
| 34 | achieved in using compiler optimizations are often outweighed by the risks.
|
---|
| 35 | First-time builders of LFS are encouraged to build without custom
|
---|
| 36 | optimizations. The subsequent system will still run very fast and be stable
|
---|
| 37 | at the same time.</para>
|
---|
[81fd230] | 38 |
|
---|
[4ae4324] | 39 | <para>The order that packages are installed in this chapter needs to be
|
---|
| 40 | strictly followed to ensure that no program accidentally acquires a path
|
---|
| 41 | referring to <filename class="directory">/tools</filename> hard-wired into
|
---|
[cef11ea] | 42 | it. For the same reason, do not compile separate packages in parallel.
|
---|
| 43 | Compiling in parallel may save time (especially on dual-CPU machines), but it
|
---|
| 44 | could result in a program containing a hard-wired path to <filename
|
---|
[4ae4324] | 45 | class="directory">/tools</filename>, which will cause the program to stop
|
---|
| 46 | working when that directory is removed.</para>
|
---|
[81fd230] | 47 |
|
---|
[4ae4324] | 48 | <para>Before the installation instructions, each installation page provides
|
---|
| 49 | information about the package, including a concise description of what it
|
---|
[00e4c9a] | 50 | contains, approximately how long it will take to build, and how much disk
|
---|
| 51 | space is required during this building process. Following the installation
|
---|
| 52 | instructions, there is a list of programs and libraries (along with brief
|
---|
| 53 | descriptions of these) that the package installs.</para>
|
---|
[313ca76] | 54 |
|
---|
[95562ce] | 55 | <note><para>The SBU values and required disk space includes
|
---|
[0ebe029b] | 56 | test suite data for all applicable packages in Chapter 6.</para></note>
|
---|
[95562ce] | 57 |
|
---|
[4ae4324] | 58 | </sect1>
|
---|