LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-15-2013, 03:20 AM   #1
Drumachine
Member
 
Registered: Aug 2013
Distribution: Debian/LFS
Posts: 32
Blog Entries: 3

Rep: Reputation: 5
LFS 7.3 / Chapter 6.10 / Page 96 / Error from the sanity check


Hi guys,

This may or may not have something to do with my previous post:

http://www.linuxquestions.org/questi...rs-4175473330/

When executing the command:
Code:
readelf -l a.out | grep ': /lib'
I get the error:
Code:
readelf: Error: 'a.out': No such file
Again, any help would be appreciated.
 
Old 08-15-2013, 03:40 AM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
This part?
Code:
echo 'main(){}' > dummy.c
cc dummy.c -v -Wl,--verbose &> dummy.log
readelf -l a.out | grep ': /lib'
anything 'useful' in dummy.log?
Code:
cat dummy.log
 
Old 08-15-2013, 03:51 AM   #3
Drumachine
Member
 
Registered: Aug 2013
Distribution: Debian/LFS
Posts: 32

Original Poster
Blog Entries: 3

Rep: Reputation: 5
Yes! Thank you very much.

Code:
cat dummy.log
gave an output where the first line was:

Code:
cc: error: unrecognized command line option '-W1,--verbose'
That's right, I typed "1" instead of "l". I must be getting tired.

I re-entered these commands:

Code:
echo 'main(){}' > 
dummy.c cc dummy.c -v -Wl,--verbose &> dummy.log 
readelf -l a.out | grep ': /lib'
and that solved it.

Thanks very much for your help, rep given.
 
Old 08-15-2013, 04:21 AM   #4
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Your welcome

The important lesson here is recognising what &> does
 
Old 08-15-2013, 09:01 AM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Please mark your thread as 'SOLVED' so other people with a similar problem can quickly get find a solution.
 
  


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
[SOLVED] LFS 7.3 / Chapter 6.9.1 / Page 89 / glibc make check errors Drumachine Linux From Scratch 4 08-14-2013 03:17 PM
[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
[SOLVED] "C preprocessor... ...fails sanity check" in LFS 7.0 chapter 6.17 nerdy117 Linux From Scratch 9 11-24-2011 11:38 PM
[SOLVED] LFS 6.8 - check error 2 when installing glibc for chapter 6.9 robofighter Linux From Scratch 4 07-30-2011 03:25 PM

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

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