Document Home | Document Index
LFS
Friday, May 26, 2017
Download and unpack LFS 8.0 book to ~lfs/LFS/8.0 .
Saturday, May 27, 2017
Run version-check.sh, all versions OK. Note that ldd --version gives
"broken pipe" errors, but this is not a problem since it has already
reported the version.
Run library-check.sh, all three libraries are present.
The above are from LFS Book 2.2.
See Check Disk Partitions.
Sunday, May 28, 2017
The original host system (Ubuntu) from the first LFS build on the server still
exists (and is bootable) - create /mnt/ub to mount it on if
anything needs to be checked.
LFS Book 2.5 and
LFS Book 2.7
are in
effect already done (see Check Disk Partitions).
Set up for the LFS environment variable
(LFS Book 2.6).
Start download of packages and patches (per
LFS Book 3.1)
- completed, checksums OK.
Monday, May 29, 2017
Move the previous host /tools aside (to /oldtools)
prior to
LFS Book 4.2.
Create $LFS/tools and symlink.
For LFS Book 4.3, archive
(tar) and delete all dotfiles and anything else that shouldn't
be there:
tar cvf - .[a-zA-Z] * pamd smb.conf.ub | gzip > oldlfshome.tar.gz
rm -rf .[a-zA-Z]* pamd smb.conf.ub
Finish LFS Book 4.3.
Do LFS Book 4.4.
LFS Book 5.4 Binutils-2.27 - Pass 1:
Get times for each part to find SBU:
configure real 0m13.561s user 0m2.632s sys 0m0.814s
make real 5m4.302s user 4m12.496s sys 0m34.012s
male install real 0m3.399s user 0m2.458s sys 0m0.760s
So SBU = 5m 21.262s .
LFS Book 5.5 GCC-6.3.0 - Pass 1:
Completed in 51m 8.23s vs 8.4 SBU.
Some mpc files were read-only when cleaning up.
LFS Book 5.6 Linux-4.9.9 API Headers
Easy and quick, BUT ...... pio recorded the local temporary directory as well, should have given it only the last (cp) step - edited the temp directory out of the generated file.
LFS Book 5.7 Glibc-2.25
Completed in 28m 5.731s vs 4.1 SBU.
Test passed.
Some files were read-only when cleaning up.
pio recorded local stuff - edited out of file - probably
should exclude $LFS/sources.
LFS Book 5.8 Libstdc++-6.3.0
Completed in 2m 27.363s vs 0.4 SBU
LFS Book 5.9 Binutils-2.27 - Pass 2
Completed in 6m 16.61s vs 1.1 SBU
LFS Book 5.10 GCC-6.3.0 - Pass 2
Completed in 70m 16.746s vs 11 SBU
Tuesday, May 30, 2017
LFS Book 5.11 Tcl-core-8.6.6
Completed in 2m 38.54s vs 0.4 SBU (ran tests, took 4m 10.404s).
LFS Book 5.12 Expect-5.45
Completed in 24.164s vs 0.1 SBU.
LFS Book 5.13 DejaGNU-1.6
Completed in 1.466s vs 0.1 SBU.
Wednesday, May 31, 2017
LFS Book 5.14 Check-0.11.0
Completed in 42.095s vs 0.1 SBU (ran tests, took 5m 53.034s).
LFS Book 5.15 Ncurses-6.0
Completed in 3m 10.539s vs 0.5 SBU.
LFS Book 5.16 Bash-4.4
Completed in 2m 13.706s vs 0.4 SBU (ran tests, took 2m 47.673s).
LFS Book 5.17 Bison-3.0.4
Completed in 1m 37.139s vs 0.3 SBU (ran tests, took 12m 22.128s).
LFS Book 5.18 Bzip2-1.0.6
Completed in 9.436s vs <0.1 SBU
LFS Book 5.19 Coreutils-8.26
Completed in 3m 44.963s vs 0.6 SBU (ran tests, took 5m 59.114s).
LFS Book 5.20 Diffutils-3.5
Completed in 1m 14.005s vs 0.2 SBU (ran tests, took 0m 52.099s).
LFS Book 5.21 File-5.30
Completed in 25.756s vs 0.1 SBU (ran tests, took 0m 0.563s).
LFS Book 5.22 Findutils-4.6.0
Completed in 1m 49.014s vs 0.3 SBU (ran tests, took 1m 48.955s).
Thursday, June 01, 2017
LFS Book 5.23 Gawk-4.1.4
Completed in 1m 14.779s vs 0.2 SBU (ran tests, took 15.114s).
LFS Book 5.24 Gettext-0.19.8.1
Completed in 5m 1.349s vs 0.9 SBU.
LFS Book 5.25 Grep-3.0
Completed in 1m 3.344s vs 0.2 SBU (ran tests, took 57.608s).
LFS Book 5.26 Gzip-1.8
Completed in 38.917s vs 0.1 SBU (ran tests, took 5.644s).
LFS Book 5.27 M4-1.4.18
Completed in 1m 0.880s vs 0.2 SBU (ran tests, took 1m 9.784s).
LFS Book 5.28 Make-4.2.1
Completed in 27.773s vs 0.1 SBU (ran tests, took 55.873s).
LFS Book 5.29 Patch-2.7.5
Completed in 58.871s vs 0.2 SBU (ran tests, took 3.696s).
LFS Book 5.30 Perl-5.24.1
Completed in 8m 30.187s vs 1.3 SBU.
LFS Book 5.31 Sed-4.4
Completed in 52.653s vs 0.1 SBU (ran tests, took 47.913s).
LFS Book 5.32 Tar-1.29
Completed in 1m 47.336s vs 0.3 SBU (ran tests, took 7m 13.920s).
LFS Book 5.33 Texinfo-6.3
Noted in case it turns out to be a problem:
configure: WARNING: Could not find a terminal library among tinfo ncurses curses termlib termcap terminfo
configure: WARNING: The programs from `info' directory will not be built.
Completed in 1m 18.544s vs 0.2 SBU (ran tests, took 41.612s).
LFS Book 5.34 Util-linux-2.29.1
Completed in 5m 30.524s vs 0.9 SBU.
LFS Book 5.35 Xz-5.2.3
Completed in 1m 30.169s vs 0.2 SBU (ran tests, took 15.664s).
LFS Book 5.36 Stripping
Leave this, don't need the space.
LFS Book 5.37 Changing Ownership
sudo su - root (as lfs)chown -R root:root $LFS/toolscd $LFStar cvf - tools piod | xz - > tools_at_end_of_chap5.tar.xz
Friday, June 02, 2017
Time for Chapter 6!
LFS Book 6.2 Preparing Virtual Kernel File Systems
Done - note that all but the first two have to be redone after a host
reboot.
LFS Book 6.3 Package Management
LFS Book 6.4 Entering the Chroot Environment
Done - note that this has to be repeated to get back after logging out!
LFS Book 6.5 Creating Directories
LFS Book 6.6 Creating Essential Files and Symlinks
Done
Note:
Group users is 999 as specified in the book, on the existing
system it is 100!!!
LFS Book 6.7 Linux-4.9.9 API Headers
Completed in 18.032s vs <0.1 SBU.
LFS Book 6.8 Man-pages-4.09
Completed in 0.234s vs <0.1 SBU.
LFS Book 6.9 Glibc-2.25
Completed in 113m 23.966s vs 20 SBU. Tests OK.
Required locales were in list, no need to define.
LFS Book 6.10. Adjusting the Toolchain
Saturday, June 03, 2017
LFS Book 6.11 Zlib-1.2.11
Completed in 18.276s vs <0.1 SBU.
LFS Book 6.12 File-5.30
Completed in 25.816s vs 0.1 SBU.
LFS Book 6.13 Binutils-2.27
Errors in test, emailed lfs-support list.
Monday, June 05, 2017
LFS Book 6.13 Binutils-2.27
Only lfs-support response was a list of files (*libstdc++*)
that should exist - no obvious issue there - till trying to redo the
first error test standalone with verbose output (as per the dummy test
from 6.10) revealed that it was looking for libstdc++.a -
LFS isn't supposed to care about that, but the test does. It should
have got a symlink with the others in 6.6 - Development 8.0 actually
has this, perhaps it should have been in the (currently non-existent)
errata for 8.0 Stable).
Original error is gone, now have:
FAIL: relro_test.sh (exit: 1)
=============================
../../../gold/testsuite/relro_test.sh: line 63: dc: command not found
../../../gold/testsuite/relro_test.sh: line 64: dc: command not found
../../../gold/testsuite/relro_test.sh: line 66: test: : integer expression expected
PT_GNU_RELRO segment does not end at page boundary.
Development 8.0 has a re-ordering that would fix this, but then there
are other ordering issues, so ignore it for now (and re-test after
dc is available).
Completed in 33m 9.590s vs 5.7 SBU.
LFS Book 6.14 GMP-6.1.2
Completed in 8m 15.068 vs 1.3 SBU.
LFS Book 6.15 MPFR-3.1.5
Completed in 5m 6.392s vs 0.8 SBU.
LFS Book 6.16 MPC-1.0.3
Completed in 2m 13.610s vs 0.3 SBU.
LFS Book 6.17 GCC-6.3.0
Completed in ? vs 82 SBU.
Tuesday, June 06, 2017
LFS Book 6.17 GCC-6.3.0
(Continued)
Completed in 500m 47.634s vs 82 SBU.
And there it will have to wait while some other things happen.
Wednesday, June 21, 2017
LFS Book 6.18 Bzip2-1.0.6
Completed in 20.104s vs 0.1 SBU.
LFS Book 6.19 Pkg-config-0.29.1
Completed in 1m 52.607s vs 0.4 SBU.
LFS Book 6.20 Ncurses-6.0
Completed in 2m 7.570s vs 0.4 SBU.
LFS Book 6.21 Attr-2.4.47
Completed in 13.668s vs <0.1 SBU.
LFS Book 6.22 Acl-2.2.52
Completed in 17.812s vs <0.1 SBU. (tests after coreutils)
LFS Book 6.23 Libcap-2.25
Completed in 2.810s vs <0.1 SBU.
LFS Book 6.24 Sed-4.4
Completed in 1m 47.670s vs 0.3 SBU.
Needed to replace
sed -i 's/panic-tests.sh//' Makefile.in
by
sed -i 's/testsuite\/panic-tests.sh//' Makefile.in
LFS Book 6.25 Shadow-4.4
Completed in 1m 4.709s vs 0.2 SBU.
LFS Book 6.26 Psmisc-22.21
Completed in 13.000s vs <0.1 SBU.
LFS Book 6.27 Iana-Etc-2.30
Completed in 0.531s vs <0.1 SBU.
LFS Book 6.28 M4-1.4.18
Completed in 2m 11.649s vs 0.4 SBU.
LFS Book 6.29 Bison-3.0.4
Completed in 13m 44.351s vs 0.3 SBU (including tests after flex - needed
to run configure and make again after the flex install).
LFS Book 6.30 Flex-2.6.3
Completed in 2m 24.488s vs 0.9 SBU (including tests).
Thursday, June 22, 2017
LFS Book 6.31 Grep-3.0
Completed in 2m 10 968s vs 0.4 SBU.
LFS Book 6.32 Readline-7.0
Completed in 23.490s vs 0.1 SBU.
LFS Book 6.33 Bash-4.4
Completed in 4m 43.649s vs 1.7 SBU.
LFS Book 6.34 Bc-1.06.95
Completed in 39.042s vs 0.1 SBU.
LFS Book 6.13 Binutils-2.27
Re-testing with dc available:
Tested in 8m 13.569s - OK.
LFS Book 6.35 Libtool-2.4.6
Completed in 11m 59.375s vs 2.0 SBU - 5 test failures as predicted -
rerun tests after automake.
LFS Book 6.36 GDBM-1.12
Completed in 37.322s vs 0.1 SBU.
LFS Book 6.37 Gperf-3.0.4
Completed in 12.891s vs <0.1 SBU.
LFS Book 6.38 Expat-2.2.0
Completed in 22.107s vs <0.1 SBU.
LFS Book 6.39 Inetutils-1.9.4
Completed in 1m 58.498s vs 0.4 SBU.
LFS Book 6.40 Perl-5.24.1
Completed in 28m 37.850s vs 5.9 SBU.
Friday, June 23, 2017
Transfer /mnt/lfs/sources to /usr/src/sources-lfs on
the host (copy and delete), then
mount -v --bind /usr/src /mnt/lfs/usr/src
and then in the chroot
cd /
ln -s /usr/src/sources-lfs/ sources
This means that the /usr/src separate file system is shared
between the two environments. The original directories in the filesystem
have been renamed to start with lfs7-.
LFS Book 6.41 XML::Parser-2.44
Completed in 8.116s vs <0.1 SBU.
LFS Book 6.42 Intltool-0.51.0
Completed in 6.298s vs <0.1 SBU.
LFS Book 6.43 Autoconf-2.69
Completed in 18m 33.418s vs 3.5 SBU (with tests).
LFS Book 6.44 Automake-1.15
Completed in 39m 16.434s vs 7.5 SBU (with tests - expected errors).
LFS Book 6.35 Libtool-2.4.6
Rerun tests after automake - OK in 33m 36.093s.
Saturday, June 24, 2017
LFS Book 6.45 Xz-5.2.3
Completed in 1m 21.225s vs 0.2 SBU.
LFS Book 6.46 Kmod-23
Completed in 24.264s vs 0.1 SBU.
LFS Book 6.47 Gettext-0.19.8.1
Completed in 14m 30.964s vs 2.9 SBU.
LFS Book 6.48 Procps-ng-3.3.12
Completed in 49.171s vs 0.1 SBU.
LFS Book 6.49 E2fsprogs-1.43.4
Completed in 19m 52.257s vs 4.1 SBU.
LFS Book 6.50 Coreutils-8.26
Completed in 12m 31.374s vs 3.1 SBU.
LFS Book 6.51 Diffutils-3.5
Completed in 2m 10.727s vs 0.4 SBU.
LFS Book 6.52 Gawk-4.1.4
Completed in 1m 35.179s vs ?0.3 SBU.
LFS Book 6.53 Findutils-4.6.0
Completed in 3m 32.382s vs 0.9 SBU.
LFS Book 6.54 Groff-1.22.3
Completed in 2m 40.014s vs 0.5 SBU.
Rebuild groff after ghostscript
and X
LFS Book 6.55 GRUB-2.02~beta3
Completed in 4m 35.929s vs 0.8 SBU.
Warning: Installed because it is in the book, but it will not be
used, the existing boot partition will be used with only manual changes to
the existing grub.cfg.
Sunday, June 25, 2017
LFS Book 6.56 Less-481
Completed in 19.093s vs <0.1 SBU.
LFS Book 6.57 Gzip-1.8
Completed in 44.766s vs 0.1 SBU.
LFS Book 6.58. IPRoute2-4.9.0
Completed in 1m 2.865s vs 0.2 SBU.
LFS Book 6.59 Kbd-2.0.4
Completed in
46.208s
vs 0.1 SBU.
LFS Book 6.60 Libpipeline-1.4.1
Completed in
44.449s vs 0.1 SBU.
LFS Book 6.61 Make-4.2.1
Completed in 1m 25.256s vs 0.5 SBU.
LFS Book 6.62 Patch-2.7.5
Completed in 1m 5.281s vs 0.2 SBU.
Monday, June 26, 2017
LFS Book 6.63 Sysklogd-1.5.1
Completed in 3.346s vs <0.1 SBU.
LFS Book 6.64 Sysvinit-2.88dsf
Completed in 4.657s vs <0.1 SBU.
LFS Book 6.65 Eudev-3.2.1
Completed in 1m 16.794s vs 0.2 SBU.
LFS Book 6.66 Util-linux-2.29.1
Completed in 5m 47.595s vs 1.0 SBU.
LFS Book 6.67 Man-DB-2.7.6.1
Completed in 2m 27.216s vs 0.4 SBU.
Reminder: Consider installing vgrind and grap sometime.
LFS Book 6.68 Tar-1.29
Completed in 9m 23.945s vs 3.2 SBU.
LFS Book 6.69 Texinfo-6.3
Completed in 2m 36.871s vs 0.5 SBU.
LFS Book 6.70 Vim-8.0.069
Completed in 7m 17.319s vs 1.3 SBU.
Rebuild vim after X (and with spelling).
LFS Book 6.72 Stripping Again
Not done, space is not critical.
LFS Book 6.73. Cleaning Up
chroot script modified.
Static libraries deleted.
Wednesday, June 28, 2017
Copy pio script to /usr/local/bin (in chroot)
and add that to the chroot PATH.
LFS Book 7.2 LFS-Bootscripts-20150222
Completed in 0.123s vs <0.1 SBU.
LFS Book 7.4 Managing Devices
bash /lib/udev/init-net-rules.sh - OK, network card will be
eth0.
CDROM is sr0, looks like symlinks will be OK.
Looks like no duplicate devices, but
Check all udev symlinks and rules after first
boot.
LFS Book 7.5 General Network Configuration
Copy ifconfig.eth0 from host system - matches book except for
correct IP address.
Copy resolv.conf from host system (specifies router and Google DNS).
echo "bruno" > /etc/hostname
(host does not have the file ?).
Copy /etc/hosts from host (deleting a coupe of old local systems).
LFS Book 7.6 System V Bootscript Usage and Configuration
Copy inittab from host (is same as book).
Copy /etc/sysconfig/clock from host (is same as
book).
Copy /etc/sysconfig/console from host (is not UTF-8, but can
try for that later.
Reminder: Work out how to get a UTF-8 console.
Leave rc.site missing for now - host has the file, but with
nothing uncommented!
LFS Book 7.7 The Bash Shell Startup Files
Create a temporary /etc/profile:
export LANG=en_GB.UTF-8
This will be replaced in BLFS.
LFS Book 7.8 Creating the /etc/inputrc File
LFS Book 7.9 Creating the /etc/shells File
Saturday, July 01, 2017
LFS Book 8.2 Creating the /etc/fstab File
Copy and adjust host fstab (swap old and new root partitions).
LFS Book 8.3 Linux-4.9.9
make mrproper - OK.
make defconfig - OK.
First look at make menuconfig. Decide to use fossil to
track versions of .config, so install fossil in the
chroot, check in result of make defconfig as first
checkin.
Sunday, July 02, 2017
LFS Book 8.3 Linux-4.9.9
#
# Generic Driver Options
#
-CONFIG_UEVENT_HELPER=y
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+# CONFIG_UEVENT_HELPER is not set
#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not set
-# CONFIG_USB_XHCI_HCD is not set
+CONFIG_USB_XHCI_HCD=m
+CONFIG_USB_XHCI_PCI=m
+# CONFIG_USB_XHCI_PLATFORM is not set
and try a build - completed (with module_install) in
44m 16.814s.
Copy files to /boot, edit into grub.cfg (not as
default!) (after checking that previous grub rescue CD still
works).
Monday, July 03, 2017
LFS Book 8.3 Linux-4.9.9
Try booting new kernel -
Rebuild - completed (with module_install) in
44m 22.535s.
Copy files to /boot, reboot - above seem to be fixed.
Install extras from chapter 9.3.
Try to use make for getting build order in BLFS.
Friday, July 14, 2017
LFS Book 8.3 Linux-4.9.9
create /etc/modprobe.d/usb.conf
LFS Book 9.3 Rebooting the System
See BLFS
for adding suggested software to help with the BLFS stage.
Saturday, July 15, 2017
LFS Book 8.3 Linux-4.9.9
Check current config into fossil, since it seems to be usable.
Wednesday, July 19, 2017
LFS Book 9.1 The End
Sunday, August 20, 2017
LFS Book 6.54
Groff-1.22.3
Rebuilding because all output formats should now be available, but
- HTML output needs netpbm
- netpbm can be downloaded only with subversion
- subversion must be built with serf
- serf needs scons to build it
i.e. too much trouble for a very limited need, so leave it unless it is needed!
Document Home | Document Index