LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-20-2010, 03:03 PM   #16
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757

Yeah, this looks definetly like a corrupted toolchain. I'd say you did not adjust the toolchain properly in this chapter:
http://www.linuxfromscratch.org/lfs/...adjusting.html

I think you will have to start over with chapter 5.

P.S.: Earlier you said that everything was working fine in chapter 5. How did you verify that? Did you compile the test program as described in chapter 5.8 and checked for the interpreter?
 
Old 04-20-2010, 03:30 PM   #17
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello,

Yes, I did this:

echo 'main(){}' > dummy.c
$LFS_TGT-gcc -B/tools/lib dummy.c
readelf -l a.out | grep ': /tools'

and get the output as described.

Roelof
 
Old 04-20-2010, 07:26 PM   #18
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by charlie_lab View Post
Hello,

Yes, I did this:

echo 'main(){}' > dummy.c
$LFS_TGT-gcc -B/tools/lib dummy.c
readelf -l a.out | grep ': /tools'

and get the output as described.

Roelof
Ok, but something did go wrong for some packages. Maybe sometimes you forgot to specify $LFS_TGT-gcc and used just gcc instead?
BTW, I counted your programs which link to the false linker. It is appr. 20 corrupted binaries. In my toolchain I have a lot more binaries in the directories /tools/bin and /tools/sbin. That means that most of your binaries compiled correctly. To get a complete overview you can modify the loop a little:
Code:
for f in /tools/{sbin,bin}/*; do
    echo "$f"
    readelf -l "$f" 2>/dev/null | grep "interpreter:"
done
If the requested interpreter-path starts with /tools it is OK. Otherwise you need to check what went wrong during compilation in chapter 5 for those programs.

Last edited by crts; 04-20-2010 at 07:34 PM.
 
Old 04-21-2010, 08:29 AM   #19
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hoi,

Problems was not big. Only gzip was wrong.

Now working on binutils and the pty problem. I think one of the mounts was not right.

Roelof

Edit 1 : That problem solved. When I do this step as root it's allright.
When I do this step as user binutils it fails. So I went on.

Edit 2 :
On make check I see this message :

=== binutils Summary ===

# of unexpected failures 4
# of unresolved testcases 31
# of untested testcases 7
# of unsupported tests 1
make[5]: *** [check-DEJAGNU] Error 1
make[5]: Leaving directory `/sources/binutils-build/binutils'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/sources/binutils-build/binutils'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/sources/binutils-build/binutils'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/sources/binutils-build/binutils'
make[1]: *** [check-binutils] Error 2
make[1]: Leaving directory `/sources/binutils-build'
make: *** [do-check] Error 2

How can I solve this ?

Roelof

Last edited by charlie_lab; 04-21-2010 at 10:18 AM.
 
  


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
looking for EXAMPLE-BASED man pages learnfast Linux - Newbie 1 04-11-2005 12:37 PM
new 9.1 install problem with man pages slackgood Slackware 2 11-02-2003 02:47 PM
font problem in man pages -=MaGo=- Linux - General 2 11-01-2003 01:02 PM
problem with man pages mutt Slackware 1 06-29-2003 06:03 AM
Problem with man pages d1ll1gaf Slackware 1 06-12-2003 10:24 PM

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

All times are GMT -5. The time now is 01:15 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
Open Source Consulting | Domain Registration