LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-08-2019, 02:08 PM   #1
GeekBoy
Member
 
Registered: Dec 2006
Distribution: Fedora v6
Posts: 43

Rep: Reputation: 0
Question v9.0 Seem to have issue with directory/path in chroot Chapter 6


So I completed version 8.4, and did not have this issue.

Comparing the two, I am not even seeing much difference between what I did.

Anyway the issue was spotted in Chapter 6.7. Linux-5.2.8 API Headers

Quote:
(lfs chroot) root:/sources# tar xf linux-5.2.8.tar.xz
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Doing "ls -l lin*" returns:
Quote:
-rw-r--r-- 1 root root 107064028 Aug 9 16:02 linux-5.2.8.tar.xz
So I try the next package

Quote:
(lfs chroot) root:/sources# tar xf man-pages-5.02.tar.xz
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Any ideas on this ?

Thanks!
 
Old 10-08-2019, 02:18 PM   #2
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Does /tools/bin/xz exist? Have you ran make install when you compiled xz at the end of chap. 5?
 
1 members found this post helpful.
Old 10-08-2019, 02:26 PM   #3
GeekBoy
Member
 
Registered: Dec 2006
Distribution: Fedora v6
Posts: 43

Original Poster
Rep: Reputation: 0
Yes, you are correct, I missed that.

Thanks a bunch for the help!
 
Old 10-08-2019, 02:55 PM   #4
GeekBoy
Member
 
Registered: Dec 2006
Distribution: Fedora v6
Posts: 43

Original Poster
Rep: Reputation: 0
It is there now, but I am getting the same result


Quote:
(lfs chroot) root:/sources# ls -l /tools/bin/xz*
-rwxr-xr-x 1 root root 263816 Oct 8 19:43 /tools/bin/xz
Quote:
(lfs chroot) root:/sources# tar xf linux-5.2.8.tar.xz
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
I think I will just start all over.

Last edited by GeekBoy; 10-08-2019 at 03:07 PM.
 
Old 10-08-2019, 03:04 PM   #5
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Check "ldd /tools/bin/xz" output from outside the chroot. If it doesn't show /tools/lib/ld-linux*, it's possible that you've already adjusted the toolchain, or you didn't build and install xz with LFS user environment.
 
Old 10-08-2019, 03:09 PM   #6
GeekBoy
Member
 
Registered: Dec 2006
Distribution: Fedora v6
Posts: 43

Original Poster
Rep: Reputation: 0
This is the response it gave:

Quote:
linux-vdso.so.1 (0x00007fff6669e000)
liblzma.so.5 => /tools/lib/liblzma.so.5 (0x00007fe10969f000)
libpthread.so.0 => /tools/lib/libpthread.so.0 (0x00007fe109cdc000)
libc.so.6 => /tools/lib/libc.so.6 (0x00007fe109b1e000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe109adc000)
 
Old 10-08-2019, 03:16 PM   #7
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
The problem is that it shows "/lib64/ld-linux-x86-64.so.2" instead of "/tools/lib64/ld-linux-x86-64.so.2" which means either

1) Temp. toolchain wasn't adjusted correctly (source dirs were kept between gcc pass1 and gcc pass2
2) You did not build it as LFS user or your LFS user didn't have the correct environment set up to use /tools/bin/gcc and friends.

I suspect 2), since "tar" seems fine.
 
1 members found this post helpful.
Old 10-08-2019, 03:21 PM   #8
GeekBoy
Member
 
Registered: Dec 2006
Distribution: Fedora v6
Posts: 43

Original Poster
Rep: Reputation: 0
Okay, thanks! I will just over on this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Chroot user setup prevents non-chroot users from sftp-ing files to sub directory swanicus Linux - Newbie 3 05-23-2019 07:04 AM
[SOLVED] chroot: failed to run command ‘/tools/bin/env’: No such file or directory: chapter 6.4 zoelee4 Linux From Scratch 28 09-10-2016 06:38 PM
LFS chapter-by-chapter complete commands with notes DrinkinHomeBrew Linux From Scratch 6 03-16-2012 01:57 AM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
export Path=/usr/java:$Path does not seem to work lumix Linux - Newbie 1 03-19-2007 03:11 PM

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

All times are GMT -5. The time now is 08:17 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration