Hello,
I am on chapter 6.7 to install Linux API headers. When I run make mrproper I get this:
Code:
(lfs chroot) root:/sources# tar -xf linux-4.15.3.tar.xz
(lfs chroot) root:/sources# cd linux-4.15.3
(lfs chroot) root:/sources/linux-4.15.3# make mrproper
/bin/sh: /tools/bin/grep: No such file or directory
/bin/sh: /tools/bin/grep: No such file or directory
/bin/sh: /tools/bin/find: No such file or directory
/bin/sh: line 11: /tools/bin/xargs: No such file or directory
make: *** [Makefile:1555: clean] Error 127
I do not understand what I did wrong as it appears that both find and grep are files that exist in the $PATH
Code:
(lfs chroot) root:/sources/linux-4.15.3# echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
(lfs chroot) root:/sources/linux-4.15.3# ls -l /tools/bin/grep
-rwxr-xr-x 1 root root 154880 May 3 13:30 /tools/bin/grep
(lfs chroot) root:/sources/linux-4.15.3# ls -l /tools/bin/find
-rwxr-xr-x 1 root root 209664 May 3 13:30 /tools/bin/find
This is my last ditch effort to see if anyone can help me before I just restart from the beginning.
As it seems to be a common request here is the output of ldd for both find and grep
Code:
(lfs chroot) root:/sources/linux-4.15.3# ldd /tools/bin/find
linux-vdso.so.1 (0x00007ffdc39fc000)
libm.so.6 => /tools/lib/libm.so.6 (0x00007f373853c000)
libc.so.6 => /tools/lib/libc.so.6 (0x00007f3738188000)
/lib64/ld-linux-x86-64.so.2 => /tools/lib64/ld-linux-x86-64.so.2 (0x00007f3738b01000)
(lfs chroot) root:/sources/linux-4.15.3# ldd /tools/bin/grep
linux-vdso.so.1 (0x00007ffe521ea000)
libc.so.6 => /tools/lib/libc.so.6 (0x00007f7615033000)
/lib64/ld-linux-x86-64.so.2 => /tools/lib64/ld-linux-x86-64.so.2 (0x00007f761560e000)
as well as the output from version-check.sh
Code:
root@debian:/mnt/lfs/sources# sh version-check.sh
bash, version 4.4.12(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Debian) 2.28
bison (GNU Bison) 3.0.4
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.26
diff (GNU diffutils) 3.5
find (GNU findutils) 4.7.0-git
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 3.1.5, GNU MP 6.1.2)
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
(Debian GLIBC 2.24-11+deb9u3) 2.24
grep (GNU grep) 2.27
gzip 1.6
Linux version 4.9.0-6-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02)
m4 (GNU M4) 1.4.18
GNU Make 4.1
GNU patch 2.7.5
Perl version='5.24.1';
sed (GNU sed) 4.4
tar (GNU tar) 1.29
texi2any (GNU texinfo) 6.3
xz (XZ Utils) 5.2.2
g++ compilation OK