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