LinuxQuestions.org
Visit Jeremy's Blog.
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 02-14-2008, 12:40 AM   #1
saritha
Member
 
Registered: May 2007
Posts: 117

Rep: Reputation: 15
Adjusting the Toolchain in lfs 6.3


i am building LFS 6.3,my distribution is suse linux

i am using this document
http://www.linuxfromscratch.org/lfs/...ble/index.html

now i am in chapter 5.7 Adjusting tool chain

when i runned this
lfs@mallika:/mnt/lfs/sources/glibc-build> mv -v /tools/bin/{ld,ld-old}
and output is
`/tools/bin/ld' -> `/tools/bin/ld-old'
when i run this
lfs@mallika:/mnt/lfs/sources/glibc-build> mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
mv: cannot stat `/tools/i586-suse-linux/bin/ld': No such file or directory

so where is the problem can any one help me

but in my
lfs@mallika:/mnt/lfs> cd tools/
lfs@mallika:/mnt/lfs/tools> ls
bin etc i686-pc-linux-gnu include info lib libexec man sbin share
 
Old 02-14-2008, 01:17 PM   #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 surprises me:

mv: cannot stat `/tools/i586-suse-linux/bin/ld': No such file or directory

/mnt/lfs/tools> ls
bin etc i686-pc-linux-gnu include info lib libexec man sbin share

What did chapter 5.2 tell you?

Another thing: Is Suse suitable as base for LFS (iv. Host System Requirements)?
 
Old 02-14-2008, 10:38 PM   #3
saritha
Member
 
Registered: May 2007
Posts: 117

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
Hi,

This surprises me:

mv: cannot stat `/tools/i586-suse-linux/bin/ld': No such file or directory

/mnt/lfs/tools> ls
bin etc i686-pc-linux-gnu include info lib libexec man sbin share

What did chapter 5.2 tell you?

Another thing: Is Suse suitable as base for LFS (iv. Host System Requirements)?
thanks for ur reply ,in chapter 1.1
http://www.linuxfromscratch.org/lfs/...ter01/how.html
it has given that suse can be used as host system

according to that i can use suse linux

i had checked in host system as specified in chapter 5.2
http://www.linuxfromscratch.org/lfs/...technotes.html

i had given this command in cd /lib in host system
readelf -l <name of binary> | grep interpreter


mallika:/lib # readelf -l libc.so.6 | grep interpreter
[Requesting program interpreter: /lib/ld-linux.so.2]
so where is the problem can u tell me how to solve this ,can u help me out
 
Old 02-15-2008, 01:31 AM   #4
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,

Quote:
Originally Posted by saritha View Post
thanks for ur reply ,in chapter 1.1
http://www.linuxfromscratch.org/lfs/...ter01/how.html
it has given that suse can be used as host system

according to that i can use suse linux
The documentation does mention some distro's that could (potentially) be used as a base. But it doesn't mention any versions (could you use Suse 7?) and other important stuff.

The chapter I revered to (iv. Host System Requirements) mentions the packages and versions of those packages that are actually needed. It also shows a small script which can be used to check your host.

Quote:
i had checked in host system as specified in chapter 5.2
http://www.linuxfromscratch.org/lfs/...technotes.html

i had given this command in cd /lib in host system
readelf -l <name of binary> | grep interpreter

mallika:/lib # readelf -l libc.so.6 | grep interpreter
[Requesting program interpreter: /lib/ld-linux.so.2]
so where is the problem can u tell me how to solve this ,can u help me out
Even though it is good to know which interpreter is used, this is not the information that is important: You need to know which target triplet is used (the ./config.guess mentioned in 5.2).

What is actually in /tools (not /mnt/lfs/tools)?

Maybe your PATH setting and/or environment aren't correct (for the lfs user that is doing all the tasks, recheck chapter 4.4 Setting Up the Environment. Another thing that could have gone wrong and is related to this: 5.4. GCC-4.1.2 - Pass 1.

Hope this gets you going 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 the toolchain bourbonstreet Linux From Scratch 5 11-05-2006 11:43 AM
LFS 6 ch5.9 adjusting the toolchain failed sanity check totty79 Linux From Scratch 1 03-21-2005 02:58 PM
5.9. Adjusting the Toolchain - Error Spudds Linux From Scratch 6 02-23-2005 09:22 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:43 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