LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-07-2005, 06:53 AM   #1
sharmashikha
Member
 
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34

Rep: Reputation: 15
prob in ajdusting the toolchain section 5.9


hi all
currently i'm at section 5.9(adjusting the toolchain) of lfs v6.0.i'm not able to understand where to run the script
SPECFILE=`gcc --print-file specs` &&
sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
$SPECFILE > tempspecfile &&
mv -f tempspecfile $SPECFILE &&
unset SPECFILE
in section 5.8 i was in the directory glibc-build.at the start of sec 5.9 it asks to b in binutils-build n run some command n then to delete the source directory of same.so in which directory this script should run.after running this script it asks u to run the dummy prog
echo 'main(){}' > dummy.c
cc dummy.c
readelf -l a.out | grep ': /tools'
afterrunning the script in lfs directory i tried the above commands but didnt get any output.but the desired output was
"[Requesting program interpreter:
/tools/lib/ld-linux.so.2]
"
the books says
First, perform the sanity check again, using gcc instead of cc. If this works, then the /tools/bin/cc symlink is missing.Next, ensure that the PATH is correct. This can be checked by running echo $PATH and verifying that /tools/bin is at the head of the list. If the PATH is wrong it could mean that you are not logged in as user lfs or that something went wrong back in Section 4.4, “Setting Up the Environment.” Another option is that something may have gone wrong with the specs file amendment above. In this case, redo the specs file amendment, being careful to copy-and-paste the commands.
"
i've tried everything.gcc doesnt work n path is also correct.so please help me!
 
Old 06-14-2005, 09:17 PM   #2
daly1
Member
 
Registered: May 2005
Distribution: gentoo ROCKS
Posts: 32

Rep: Reputation: 15
Try it with:
readelf -l a.out | grep '/tools'
 
  


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
Broken toolchain Camino Slackware 9 11-22-2005 09:38 AM
ARM Toolchain Problem richardji Linux - General 2 08-08-2005 10:24 PM
Held on 5.9. Adjusting the Toolchain satimis Linux From Scratch 2 06-30-2005 06:36 AM
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

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

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