introduction.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. <sect1 id="ch-system-introduction">
  8. <?dbhtml filename="introduction.html"?>
  9. <title>Introduction</title>
  10. <para>In this chapter, we enter the building site and start constructing the
  11. LFS system in earnest. That is, we chroot into the temporary mini Linux system,
  12. make a few final preparations, and then begin installing the packages.</para>
  13. <para>The installation of this software is straightforward. Although in many
  14. cases the installation instructions could be made shorter and more generic,
  15. we have opted to provide the full instructions for every package to minimize
  16. the possibilities for mistakes. The key to learning what makes a Linux system
  17. work is to know what each package is used for and why the user (or the system)
  18. needs it. For every installed package, a summary of its contents is given,
  19. followed by concise descriptions of each program and library the package
  20. installed.</para>
  21. <para>If using compiler optimizations, please
  22. review the optimization hint at <ulink url="&hints-root;optimization.txt"/>.
  23. Compiler optimizations can make a program run slightly faster, but they may
  24. also cause compilation difficulties and problems when running the program.
  25. If a package refuses to compile when using optimization, try to compile it
  26. without optimization and see if that fixes the problem. Even if the package
  27. does compile when using optimization, there is the risk it may have been
  28. compiled incorrectly because of the complex interactions between the code
  29. and build tools. Also note that the <option>-march</option> and
  30. <option>-mtune</option> options may cause problems with the toolchain packages
  31. (Binutils, GCC and Glibc). The small potential gains achieved in using
  32. compiler optimizations are often outweighed by the risks. First-time builders
  33. of LFS are encouraged to build without custom optimizations. The subsequent
  34. system will still run very fast and be stable at the same time.</para>
  35. <para>The order that packages are installed in this chapter needs to be
  36. strictly followed to ensure that no program accidentally acquires a path
  37. referring to <filename class="directory">/tools</filename> hard-wired into
  38. it. For the same reason, do not compile packages in parallel. Compiling in
  39. parallel may save time (especially on dual-CPU machines), but it could result
  40. in a program containing a hard-wired path to <filename
  41. class="directory">/tools</filename>, which will cause the program to stop
  42. working when that directory is removed.</para>
  43. <para>Before the installation instructions, each installation page provides
  44. information about the package, including a concise description of what it
  45. contains, approximately how long it will take to build, and how much disk
  46. space is required during this building process. Following the installation
  47. instructions, there is a list of programs and libraries (along with brief
  48. descriptions of these) that the package installs.</para>
  49. </sect1>