introduction.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <sect1 id="ch06-introduction">
  2. <title>Introduction</title>
  3. <?dbhtml filename="introduction.html" dir="chapter06"?>
  4. <para>In this chapter we enter the building site, and start
  5. constructing our LFS system in earnest. That is, we chroot into
  6. our temporary mini Linux system, create some auxiliary things,
  7. and then start installing all the packages, one by one.</para>
  8. <para>The installation of all this software is pretty straightforward,
  9. and you will probably think it would be much shorter to give here
  10. the generic installation instructions and explain in full only the
  11. installation of those packages that require an alternate method.
  12. Although we agree with that, we nevertheless choose to give the
  13. full instructions for each and every package, simply to minimize
  14. the possibilities for mistakes.</para>
  15. <para>If you plan to use compiler optimizations in this chapter, take a look at
  16. the optimization hint at <ulink url="&hints-root;optimization.txt"/>. Compiler
  17. optimizations can make a program run slightly faster, but they may also cause
  18. compilation difficulties and even problems when running the program. If a
  19. package refuses to compile when using optimization, try to compile it without
  20. optimization and see if the problem goes away. Even if the package does compile
  21. when using optimization, there is the risk it may have been compiled incorrectly
  22. due to complex interactions between the code and build tools. In short, the
  23. small potential gains achieved in using compiler optimization are generally
  24. outweighed by the risk. First time builders of LFS are encouraged to build
  25. without custom optimizations. Your system will still be very fast and very
  26. stable at the same time.</para>
  27. <para>The order in which packages are installed in this chapter has
  28. to be strictly followed, to ensure that no program gets a path referring
  29. to <filename class="directory">/tools</filename> hard-wired into it.
  30. For the same reason, <emphasis>do not </emphasis> compile packages
  31. in parallel. Compiling in parallel may save you some time (especially on
  32. dual-CPU machines), but it could result in a program containing a
  33. hard-wired path to <filename class="directory">/tools</filename>,
  34. which will cause the program to stop working when that directory
  35. is removed.</para>
  36. </sect1>