Installation of Fileutils Before we install fileutils statically, if you are using glibc-2.2.3 you need to apply two seds in order to prevent them giving segmentation faults once we enter chroot in Chapter 6. The sed commands for those using glibc-2.2.3 are: sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ lib/Makefile.in > tmp && sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ tmp > lib/Makefile.in Install fileutils by running the following commands: ./configure --disable-nls \    --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin && make LDFLAGS=-static && make install && cd $LFS/usr/bin && ln -s ../../bin/install Once you have installed fileutils, you can test whether the segmentation fault problem has been avoided by running $LFS/bin/ls. If this works then you are OK, if not, then you need to re-do the installation using the seds if you didn't the first time or vice-versa.