LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-26-2009, 07:53 AM   #1
pdsmith
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Rep: Reputation: 0
5.10. GCC-4.3.3 - Pass 2 doesn't show up in /tools/lib/ld-linux.so.2


Everything seemed to be running correctly before I ran the script below. Unfortunately, I got no output from this command.

Caution

At this point, it is imperative to stop and ensure that the basic functions (compiling and linking) of the new toolchain are working as expected. To perform a sanity check, run the following commands:

echo 'main(){}' > dummy.c
cc dummy.c
readelf -l a.out | grep ': /tools'

If everything is working correctly, there should be no errors, and the output of the last command will be of the form:

[Requesting program interpreter:
/tools/lib/ld-linux.so.2]

what is the best way to proceed from here.
 
Old 03-26-2009, 08:00 AM   #2
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 42
Did you adjust the toolchain before?
Also, I found that it seems to be necessary to adjust the toolchain again after install GCC for the second time.
 
Old 03-26-2009, 08:37 AM   #3
pdsmith
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Original Poster
Rep: Reputation: 0
I have re-adjusted the chain everywhere it has been asked for so far. I did try to re-adjust again and have the same no output. I think I really screwed it up now though. Last night when I ran the $PATH command I was close with output of /tools/bin/usr/bin and this morning I have /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin. Can I just go back and delete gcc-build and start this sequence (5.10)over or am I too far into process for that?
 
Old 03-26-2009, 09:15 AM   #4
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 42
Well, it's important that all variables that have been set before you started the installation are maintained throughout the installation-process, unless instructed to unset of course.

Having built LFS a couple of times and having a LFS-based distro myself I'd suggest restarting from the beggining if now it's not possible to re-adjust the toolchain again in order to get the test linking to the proper place.

Also, if you end up with a directory /tools/usr/bin there's something wrong already, there should be no usr under /tools.

Anyway, you're not that far into the installation yet. Of course it took quite a while, but most work is still ahead of you.
 
Old 03-26-2009, 08:21 PM   #5
pdsmith
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Solved

Ok I solved the problem. First I deleted gcc-build and tried it again. That didn't solve the problem. So since I know I had the right result before the second pass of binutils-guild, I deleted binutils-build pass2 and gcc-build pass2 and redid them. I came up with the right result without having to reformating.

lfs@Refracta:/mnt/lfs/gcc-build$ echo 'main(){}' > dummy.c
lfs@Refracta:/mnt/lfs/gcc-build$ cc dummy.c
lfs@Refracta:/mnt/lfs/gcc-build$ readelf -l a.out | grep ': /tools'
[Requesting program interpreter: /tools/lib/ld-linux.so.2]
 
  


Reply



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
Porting lib, dll from windows to linux gcc.4.1.2 - how to ?? mihk Programming 2 07-08-2008 07:38 AM
"Locking in" Glibc (replace prob /lib/ld-linux.so.2 with /tools/lib/ld-linux.so.2 irfanali Linux From Scratch 11 06-29-2006 10:19 AM
LXer: Tools: GCC 3.4.6, Final GCC 3 Release LXer Syndicated Linux News 0 05-30-2006 02:21 AM
questions on GCC-3.4.3 - Pass 2 and Binutils-2.15.94.0.2.2 - Pass 2 satimis Linux From Scratch 7 12-26-2005 09:23 PM
New Linux From Scratch system still using GCC in /tools! black hole sun Linux From Scratch 1 09-26-2004 08:21 PM

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

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