LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 11-04-2006, 02:39 PM   #1
bourbonstreet
LQ Newbie
 
Registered: Oct 2006
Location: USA
Distribution: suse 10.0
Posts: 9

Rep: Reputation: 0
adjusting the toolchain


Ok... this is my sixth post so you can yell now..
I`ve gotten as far as adjusting the tool chain,with no problems( after applying some help from this board)now to the problem: this is what i entered:
mv -v /tools/bin/{ld,ld-old}
mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
mv -v /tools/bin/{ld-new,ld}
ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld

and this is the error i got: ln: target '/bin/ld' is not a directory


now being a bit paranoid i checked each entry 3 times before executing so i know it went in right, so i`m a bit confused why it didn`t. I checked and there is no /tools/bin/ld, but i did find ld in /tools/bin. Is this a typo in the book or have i been whacked with the noob stick again?


never mind, (guess i need to use the search function more often and read the BOOK all the way through)....i believe this is probably my problem :

:
You need the binutils from binutils-pass1 only for Adjusting the tool chain.

"Now that the adjusted linker is installed, you have to remove the Binutils build and source directories." On the same page.

So you need to remove the binutils installed during binutils-pass1 after Adjusting The Toolchain and then reinstall binutils for binutils-pass2...

If that makes sense?

Seriously, you have to read the chapter completely and understand it before doing anything or something may break a few pages (and more importantly hours or days) later.

Tedious and not alwasy the easiest thing to do, I know that, believe me! But once you have done it once... enter ALFS

Last edited by bourbonstreet; 11-04-2006 at 02:53 PM.
 
Old 11-04-2006, 03:02 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

This I don't get:
Quote:
I checked and there is no /tools/bin/ld, but i did find ld in /tools/bin
You are saying that /tools/bin/ld exists and /tools/bin/ld does not exist, which makes no sense. /tools/bin/ld is or is not present, not both


This does suggest a typo or copy/paste error on your part:
Quote:
ln: target '/bin/ld' is not a directory
All is still done in /tools/bin, and the /tools part seems to be missing according to the error message.

The commands shown in the book concerning this are correct and 'typo free'.
 
Old 11-04-2006, 03:12 PM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Your edit concerns me.

I thought you are installing LFS 6.2 (assumption based on mention of gcc-4.0.3 in a previous post). And now you write .....you have to remove the Binutils build and source directories...., which is not needed any more in LFS 6.2 (it is in 6.1.1 and below).

I've never tried it, but I do believe that using a 6.1.1 tutorial and 6.2 packages to install LFS will spell trouble.
 
Old 11-05-2006, 10:49 AM   #4
bourbonstreet
LQ Newbie
 
Registered: Oct 2006
Location: USA
Distribution: suse 10.0
Posts: 9

Original Poster
Rep: Reputation: 0
sorry about that was trying to talk on the phone and type my message....bad idea as i lost my train of thought and now i don`t even know what i was talking about.
As to your concerns, i guess i should have asked before but i`ll ask now. I found in the hints section a hint that had a few scripts to help with not having to re-type some things when restarting your session ( as i don`t leave the putor running when i`m not here) and seeing as work has way of keeping you from doing what you`d like to be doing .
The hint as i now see was for 6.1 written by joseph m. dupre, my question then is will they still work for 6.2?
The first is to set up the enviroment as per ch. 4.4 by scripting the 2 cat start up files for the bash shell.as i changed the few differences between the script as it was and the book,should it not work in 6.2?
As to your response to my previous post reguarding the source and build directories, it does say to remove the source and build dirs unless specifically instructed otherwise(chapter 5 section 5.1).In
section 5.3 binutils-2.16.1- pass 1, i see no mention of not removing them? So i`m a bit confused here.
I do want to say thank you for all your help, and I promise never to chat and type at the same time again

Last edited by bourbonstreet; 11-05-2006 at 11:07 AM.
 
Old 11-05-2006, 12:11 PM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Quote:
Originally Posted by bourbonstreet
sorry about that was trying to talk on the phone and type my message....bad idea as i lost my train of thought and now i don`t even know what i was talking about.
LOL Been there, done that. And I also won't do that again

Quote:
The hint as i now see was for 6.1 written by joseph m. dupre, my question then is will they still work for 6.2?
The first is to set up the enviroment as per ch. 4.4 by scripting the 2 cat start up files for the bash shell.as i changed the few differences between the script as it was and the book,should it not work in 6.2?
The hint will not work if you copy/paste it as-is. You do need to change some things before it will work.

The first part (From section 4.5 About SBUs to section 5.31 Stripping) is correct.
Things need to be edited when starting again in chapter 6. The book is, of course, leading if you find differences.

Quote:
As to your response to my previous post reguarding the source and build directories, it does say to remove the source and build dirs unless specifically instructed otherwise(chapter 5 section 5.1).In section 5.3 binutils-2.16.1- pass 1, i see no mention of not removing them? So i`m a bit confused here.
Sorry about that. You indeed need to remove the sources (and build) dir immediately after compiling and installing. In the previous versions you had to leave some source/build dirs (binutils being one) up to a certain point and then remove them. I misinterpreted your previous post.
 
Old 11-05-2006, 12:43 PM   #6
bourbonstreet
LQ Newbie
 
Registered: Oct 2006
Location: USA
Distribution: suse 10.0
Posts: 9

Original Poster
Rep: Reputation: 0
As i believe the problem i was having in the top post was due to a typo, i have decided to not be so macho and do the copy,paste route
I`ve started the whole process over and so far no worrys.
I`ll let you know how it goes.
 
  


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 - sanity issue... yanger Linux From Scratch 2 11-12-2008 05:52 AM
Possible Error in Book -- Adjusting Toolchain suma17 Linux From Scratch 9 10-13-2005 05:06 AM
Held on 5.9. Adjusting the Toolchain satimis Linux From Scratch 2 06-30-2005 07:36 AM
5.9. Adjusting the Toolchain - Error Spudds Linux From Scratch 6 02-23-2005 10:22 AM
6.12. Re-adjusting the Toolchain jobesd Linux From Scratch 2 01-16-2005 02:50 PM


All times are GMT -5. The time now is 06:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration