LinuxQuestions.org
Review your favorite Linux distribution.
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 12-03-2016, 07:53 PM   #1
/arun/ank
LQ Newbie
 
Registered: Nov 2016
Posts: 6

Rep: Reputation: Disabled
LFS v7.9 First sanity check failed


Hi,

This is my first time here at LQ. I have been using linux for quite some time and am a Computer science undergrad.

The following command from the first sanity test doesn't return any output.

Code:
readelf -l a.out | grep ': /tools'
However
Code:
readelf -l a.out | grep ': /'
returns the output that should come out of the command mentioned before:
Code:
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
i have read on LQ that this means something is wrong as does the book.

I am running red hat 7 and if possible would like to keep using it.

The output of version check on host :
Code:
bash, version 4.2.45(1)-release

/bin/sh -> /usr/bin/bash

Binutils: version 2.23.52.0.1-16.el7 20130226

bison (GNU Bison) 2.7

yacc is

bzip2,  Version 1.0.6, 6-Sept-2010.

Coreutils:  8.22
diff (GNU diffutils) 3.3

find (GNU findutils) 4.5.11

GNU Awk 4.0.2
/usr/bin/awk -> /usr/bin/gawk

gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-16)

g++ (GCC) 4.8.2 20140120 (Red Hat 4.8.2-16)
(GNU libc) 2.17

grep (GNU grep) 2.16

gzip 1.5

Linux version 3.10.0-123.el7.x86_64 (mockbuild@x86-017.build.eng.bos.redhat.com) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Mon May 5 11:16:57 EDT 2014

m4 (GNU M4) 1.4.16

GNU Make 3.82

GNU patch 2.7.1

Perl version='5.16.3';

sed (GNU sed) 4.2.2

tar (GNU tar) 1.26

texi2any (GNU texinfo) 6.3

xz (XZ Utils) 5.1.2alpha
g++ compilation OK
and the .bashrc :
Code:
set +h

umask 022

LFS=/lfs-mount

LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu

PATH=/tools/bin:/bin:/usr/bin

export LFS LC_ALL LFS_TGT PATH
The compilations of the binutils, gcc, api header extraction and glibc were without any error.
This is the Fourth time i am doing this from the start, and since i don't use html format book, it's a tedious task.Another LQ:LFS user had a similar problem where he was using centos and simply extracting by "tar -xf" was enough for him, i've been doing that from the start.

Any pointers will be hugely appreciated.
 
Old 12-04-2016, 02:27 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

Redhat and friends dont seem to play at building LFS very well, You could try a live cd, Debian, Slack, Arch all work well.
Quote:
set +h

umask 022

LFS=/lfs-mount <<<< LFS=/mnt/lfs as per book

LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu

PATH=/tools/bin:/bin:/usr/bin

export LFS LC_ALL LFS_TGT PATH
You say you dont use html format book, what do you use? PDF is not good, or are you typing everything that can cause problems. Copy and paste the commnds from the book.
Is there anything in $LFS/tools ?
This looks like it,s running on host system
Code:
readelf -l a.out | grep ': /'
Are you building as LFS user and not root or using sudo

Also FYI there is version 7.10 released now

Last edited by spiky0011; 12-04-2016 at 02:34 AM.
 
Old 12-04-2016, 12:04 PM   #3
/arun/ank
LQ Newbie
 
Registered: Nov 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
but it can be done on redhat?

Quote:
Originally Posted by spiky0011 View Post
Redhat and friends dont seem to play at building LFS very well


You say you dont use html format book, what do you use? PDF is not good, or are you typing everything that can cause problems. Copy and paste the commnds from the book.
Is there anything in $LFS/tools ?
This looks like it,s running on host system
Code:
readelf -l a.out | grep ': /'
Are you building as LFS user and not root or using sudo

Also FYI there is version 7.10 released now
1. I'm typing and would really like to keep doing that; don't want to downright copypasta, atleast now.( still i double-triple check)

2. all o/ps pasted are as the lfs user

3. I've been using linux for quite a while, was enrolled in RHCE and would really like if there is a workaround to this "lfs-rhel" situation.
 
  


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
Failed sanity check in chapter 6.10 of LFS ravichanderjha Linux From Scratch 5 01-17-2015 07:48 AM
[SOLVED] [LFS 7.4 r.c.] Chapter 6 : GCC Sanity Check Fails DeeGee Linux From Scratch 2 09-26-2013 01:09 AM
[SOLVED] LFS 7.1; 5.8 Error - dummy.c Sanity Check lfs_newbie Linux From Scratch 9 06-11-2012 06:27 AM
LFS 7.0 chapter 6.17 sanity check problem manzig Linux From Scratch 1 12-11-2011 04:19 AM
LFS 6 ch5.9 adjusting the toolchain failed sanity check totty79 Linux From Scratch 1 03-21-2005 02:58 PM

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

All times are GMT -5. The time now is 04:34 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