LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-26-2009, 03:38 AM   #1
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Rep: Reputation: 30
LFS - Adjusting the toolchain problem (book 6.4)


Hello,

In this chapter i have to do this :
gcc -dumpspecs | sed 's@/lib/ld-linux.so.2@/tools&@g' \
> `dirname $(gcc -print-libgcc-file-name)`/specs

I don't see anything happen and no specs file is being found.

What went wrong ?

Roelof
 
Old 05-26-2009, 03:42 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Did you copy/paste the command or type it? If you typed it: the > is part of the command and not your PS2 prompt.

As an alternative you could use:

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

If that does not work, what does this command show:

gcc -print-libgcc-file-name

Hope this helps.
 
Old 05-26-2009, 05:04 AM   #3
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello,

I copy/paste the command.

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

Code:
lfs:~$ gcc -dumpspecs | sed 's@/lib/ld-linux.so.2@/tools&@g' > `dirname $(gcc -print-libgcc-file-name)`/specs
lfs:~$ less specs
specs: No such file or directory
Result of gcc -print-libgcc-file-name
Code:
lfs:~$ gcc -print-libgcc-file-name
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc.a
Roelof
 
Old 05-26-2009, 05:17 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I do believe you are looking in the wrong place for the specs file.......

this command: `dirname $(gcc -print-libgcc-file-name)`/specs comes back with:

gcc -print-libgcc-file-name -> /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc.a
dirname /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc.a -> /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2
`dirname $(gcc -print-libgcc-file-name)`/specs -> /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/specs

Issuing a less specs from your current position will not show anything, 'cause specs is located elsewhere (otherwise they could have told you to do this instead: gcc -dumpspecs | sed 's@/lib/ld-linux.so.2@/tools&@g' > specs. Which will put specs in the wrong place and is, thus, wrong).

If the commands given in the LFS book do not show any error(s): Continue.
 
Old 05-26-2009, 05:20 AM   #5
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke,

Thank you for your time and explanation.

Roelof
 
  


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
LFS- Adjusting the Toolchain problem LinuxNewman Linux From Scratch 27 06-09-2009 03:04 AM
5.7. Adjusting the Toolchain LFS.6.3 need help foi Linux From Scratch 3 07-05-2008 08:30 PM
Adjusting the Toolchain in lfs 6.3 saritha Linux From Scratch 3 02-15-2008 02:31 AM
Possible Error in Book -- Adjusting Toolchain suma17 Linux From Scratch 9 10-13-2005 05:06 AM
LFS 6 ch5.9 adjusting the toolchain failed sanity check totty79 Linux From Scratch 1 03-21-2005 03:58 PM

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

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