LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-03-2018, 10:46 AM   #1
Altioc
LQ Newbie
 
Registered: May 2018
Posts: 2

Rep: Reputation: Disabled
LFS 8.2: ch 6.7: make proper "No such file or directory"


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

Last edited by Altioc; 05-03-2018 at 10:49 AM.
 
Old 05-03-2018, 11:32 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi
did you make sure that everything was mounted?
I would reboot mount LFS partion. make sure LFS is set for root "echo LFS"
then do ch 6.2.2 and ch 6.2.3 then chroot in This is the most common fault
 
Old 05-03-2018, 11:45 AM   #3
Altioc
LQ Newbie
 
Registered: May 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Hi
did you make sure that everything was mounted?
I would reboot mount LFS partion. make sure LFS is set for root "echo LFS"
then do ch 6.2.2 and ch 6.2.3 then chroot in This is the most common fault
I rebooted, checked $LFS and repeated 6.2.2 up until 6.7.1 again and there appears to be no change. I copy and pasted the commands so as to make sure there was no misspellings.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel make error: "vmlinux.o no such file ..." and make -d "Reaping losing ..." micscherer Linux - Kernel 3 06-12-2012 07:29 AM
LFS 6.4 (Stable LFS) - error: "No such file or directory", linuxiso Linux - Newbie 1 08-03-2009 10:55 PM
LFS 6.2 Ch. 6.14 - 2nd Coreutils test returns "/bin.bash: No such file or directory" 0graham0 Linux From Scratch 2 08-23-2007 06:32 PM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM
i just finished typing "./configure" and "make" in mplayer directory... kublador Linux - General 4 02-22-2003 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration