LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 7.3 / Chapter 6.10 / Page 96 / Error from the sanity check (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-7-3-chapter-6-10-page-96-error-from-the-sanity-check-4175473446/)

Drumachine 08-15-2013 03:20 AM

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.

Firerat 08-15-2013 03:40 AM

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

Drumachine 08-15-2013 03:51 AM

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.

Firerat 08-15-2013 04:21 AM

Your welcome

The important lesson here is recognising what &> does ;)

Keith Hedger 08-15-2013 09:01 AM

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


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