LinuxQuestions.org
Review your favorite Linux distribution.
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 07-12-2004, 03:55 AM   #1
7.e.Q
LQ Newbie
 
Registered: Nov 2003
Posts: 25

Rep: Reputation: 15
LFS 5.1.1: another problem after binutils pass 2


Hello there again,

got another problem after binutils pass 2:

after those commands:

make -C ld clean
make -C ld LIB_PATH=/usr/lib:/lib

... I think every program following should be compiled and linked using /usr/lib and /lib as its library-paths. They doesn't...

I compiled every program from gawk till perl and then tried to chroot into the newly created mini-linux. But it's not possible, 'cos my just created bash tries to find its libraries inside /toolchain/lib instead of /usr/lib or /lib. /toolchain/lib just doesn't exist inside the newly created mini-linux becaus it IS the newly created mini-linux.

Code:
root:/home/lfs# ldd /toolchain/bin/bash
        linux-gate.so.1 =>  (0xffffe000)
        libreadline.so.4 => /toolchain/lib/libreadline.so.4 (0x40016000)
        libhistory.so.4 => /toolchain/lib/libhistory.so.4 (0x40040000)
        libncurses.so.5 => /toolchain/lib/libncurses.so.5 (0x40047000)
        libdl.so.2 => /toolchain/lib/libdl.so.2 (0x40084000)
        libc.so.6 => /toolchain/lib/libc.so.6 (0x40088000)
        /toolchain/lib/ld-linux.so.2 => /toolchain/lib/ld-linux.so.2 (0x40000000)
LFS is /mnt/lfs_i586/tools

/toolchain is just a symbolic link to /mnt/lfs_i586/tools

I tried

chroot $LFS /bin/bash

and got

/bin/bash: no such file or directory

but /bin/bash (or /toolchain/bin/bash which one chroot would use) exists and permissions are correct

I understand the errormessage as there are libraries which can't be found by the dynamic linker 'cos they don't exist in /toolchain/lib. They really don't exist there because in the chroot environment there is no /toolchain because /toolchain IS the chroot environment... understand?

It's kind of complicating and confusing, I know. But (except the /tools directory, which is called /toolchain for me and a readline lib installed in addition) I followed every step of the book... Ah well I cross-compiled everything for i586. But I don't think that has to do with the /toolchain/lib path where bash tries to find its libraries...

huh... well... I think, maybe, there is a make -C ld install missing after the last step in binutils pass 2. Is that right? Or will I kill my just created mini-linux by doing that?

Please help me!!!

Thanks in advance!

Greetings from Germany!

Last edited by 7.e.Q; 07-12-2004 at 03:56 AM.
 
Old 07-12-2004, 04:37 AM   #2
7.e.Q
LQ Newbie
 
Registered: Nov 2003
Posts: 25

Original Poster
Rep: Reputation: 15
Oh my... I forgot... ah problem is solved! 'twas my own stupid mistake again...
 
  


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
LFS-5.0 GCC problem with binutils-2.14 pass 1 NCappaZoo Linux From Scratch 6 06-14-2009 03:47 AM
building Binutils-2.14 pass 1 (LFS 5.1.1) alihamza Linux From Scratch 1 10-10-2005 07:37 AM
Binutils-pass 1 v. 6.1 microsoft/linux Linux From Scratch 10 09-04-2005 07:27 AM
Problem with binutils first pass / bison & flex installation peristaltic Linux From Scratch 3 03-20-2005 10:17 AM
binutils first pass make install failure in LFS-6.0 dibyadeep Linux From Scratch 3 01-05-2005 03:34 PM

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

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