LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-07-2007, 06:36 AM   #1
g3neration
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Rep: Reputation: 0
5.7 Adjusting the Toolchain Problem


I've gotten to 5.7 for adjusting the toolchain. After running the initial mv and ln commands, I issue:

Code:
gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' `dirname $(gcc -print-libgcc-file-name)`/specs
I get the error:

Code:
sed: can't read /mnt/lfs/tools/bin/../lib/gcc/i686-pc-lnux-gnu/4.2.1/specs: No such file or directory
At first I thought maybe I typed something wrong but after starting from the beginning 3 times already, I'm having some doubts. I've tried rechecking all the commands I've typed but everytime I get up to this point I get the same error. I'm pretty new to Linux so I'm not sure if I ran this command correctly:

Code:
readelf -l /tools/bin/cc | grep interpreter
The output states that the program intereter is: /lib/ld-linux.so.2

I dont believe that's normal since the LFS book states it should be in /tools/lib/ld-linux.so.2 or am I wrong? I'm not sure if this is part of the problem. Just throwing it out there. Thanks for any info.
 
Old 09-08-2007, 05:14 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

This: gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' `dirname $(gcc -print-libgcc-file-name)`/specs is not correct, it should be:

gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' > `dirname $(gcc -print-libgcc-file-name)`/specs

Hope this helps.
 
Old 09-08-2007, 10:41 AM   #3
g3neration
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks a bunch. Now I feel silly. I couldnt really copy and paste since I'm using VMWare. I thought the > was just from the prompt. Thanks again.
 
  


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
5.7 adjusting the toolchain echnat0n Linux From Scratch 1 03-19-2007 08:09 AM
Adjusting toolchain problem (in temport system) ChrisScott Linux From Scratch 6 01-21-2007 09:26 AM
adjusting the toolchain bourbonstreet Linux From Scratch 5 11-05-2006 11:43 AM
Held on 5.9. Adjusting the Toolchain satimis Linux From Scratch 2 06-30-2005 06:36 AM
6.12. Re-adjusting the Toolchain jobesd Linux From Scratch 2 01-16-2005 01:50 PM


All times are GMT -5. The time now is 01:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration