Version 8.0-Systemd
Total Page:16
File Type:pdf, Size:1020Kb
Linux From Scratch Version 8.0-systemd Created by Gerard Beekmans Managing Editor: Bruce Dubbs Editor: Douglas R. Reno Editor: DJ Lucas Linux From Scratch: Version 8.0-systemd by Created by Gerard Beekmans, Managing Editor: Bruce Dubbs, Editor: Douglas R. Reno, and Editor: DJ Lucas Copyright © 1999-2017 Gerard Beekmans Copyright © 1999-2017, Gerard Beekmans All rights reserved. This book is licensed under a Creative Commons License. Computer instructions may be extracted from the book under the MIT License. Linux® is a registered trademark of Linus Torvalds. Linux From Scratch - Version 8.0-systemd Table of Contents Preface .......................................................................................................................................................................... vii i. Foreword ............................................................................................................................................................. vii ii. Audience ............................................................................................................................................................ vii iii. LFS Target Architectures ................................................................................................................................ viii iv. LFS and Standards ............................................................................................................................................ ix v. Rationale for Packages in the Book .................................................................................................................... x vi. Prerequisites ...................................................................................................................................................... xv vii. Typography ...................................................................................................................................................... xv viii. Structure ......................................................................................................................................................... xvi ix. Errata ............................................................................................................................................................... xvii I. Introduction ................................................................................................................................................................. 1 1. Introduction .......................................................................................................................................................... 2 1.1. How to Build an LFS System .................................................................................................................... 2 1.2. What's new since the last release ............................................................................................................... 2 1.3. Changelog ................................................................................................................................................... 4 1.4. Resources .................................................................................................................................................... 7 1.5. Help ............................................................................................................................................................. 8 II. Preparing for the Build ........................................................................................................................................... 10 2. Preparing the Host System ................................................................................................................................ 11 2.1. Introduction ............................................................................................................................................... 11 2.2. Host System Requirements ....................................................................................................................... 11 2.3. Building LFS in Stages ............................................................................................................................ 15 2.4. Creating a New Partition .......................................................................................................................... 16 2.5. Creating a File System on the Partition ................................................................................................... 18 2.6. Setting The $LFS Variable ....................................................................................................................... 18 2.7. Mounting the New Partition ..................................................................................................................... 19 3. Packages and Patches ........................................................................................................................................ 20 3.1. Introduction ............................................................................................................................................... 20 3.2. All Packages ............................................................................................................................................. 20 3.3. Needed Patches ......................................................................................................................................... 27 4. Final Preparations .............................................................................................................................................. 29 4.1. Introduction ............................................................................................................................................... 29 4.2. Creating the $LFS/tools Directory ........................................................................................................... 29 4.3. Adding the LFS User ............................................................................................................................... 29 4.4. Setting Up the Environment ..................................................................................................................... 30 4.5. About SBUs .............................................................................................................................................. 31 4.6. About the Test Suites ............................................................................................................................... 32 5. Constructing a Temporary System .................................................................................................................... 34 5.1. Introduction ............................................................................................................................................... 34 5.2. Toolchain Technical Notes ....................................................................................................................... 34 5.3. General Compilation Instructions ............................................................................................................. 36 5.4. Binutils-2.27 - Pass 1 ............................................................................................................................... 37 5.5. GCC-6.3.0 - Pass 1 ................................................................................................................................... 39 5.6. Linux-4.9.9 API Headers .......................................................................................................................... 42 5.7. Glibc-2.25 ................................................................................................................................................. 43 iii Linux From Scratch - Version 8.0-systemd 5.8. Libstdc++-6.3.0 ......................................................................................................................................... 46 5.9. Binutils-2.27 - Pass 2 ............................................................................................................................... 48 5.10. GCC-6.3.0 - Pass 2 ................................................................................................................................. 50 5.11. Tcl-core-8.6.6 .......................................................................................................................................... 53 5.12. Expect-5.45 ............................................................................................................................................. 55 5.13. DejaGNU-1.6 .......................................................................................................................................... 57 5.14. Check-0.11.0 ........................................................................................................................................... 58 5.15. Ncurses-6.0 .............................................................................................................................................. 59 5.16. Bash-4.4 .................................................................................................................................................. 60 5.17. Bison-3.0.4 .............................................................................................................................................. 61