[PLUG] Failure at 5.8...

someone plug_1 at robinson-west.com
Sun Feb 7 10:27:35 UTC 2010


http://www.linuxfromscratch.org/lfs/view/stable/chapter05/adjusting.html

echo 'main(){}' > dummy.c
$LFS_TGT-gcc -B/tools/lib dummy.c
readelf -l a.out | grep ': /tools'

I get, "error while loading shared libraries: libmpfr.so.1: Cannot  
open shared object file: No such file or directory.

It does exist in /tools/lib.

I've tried setting LD_LIBRARY_PATH only to get segmentation faults.

bash-3.1$ ssh -l lfs goose.robinson-west.com
lfs at goose.robinson-west.com's password:
Last login: Sun Feb  7 02:09:04 2010 from eagle.robinson-west.com
lfs:02:16:49~$ env
TERM=xterm
LC_ALL=POSIX
LFS=/home/lfs/LFS
PATH=/tools/bin:/bin:/usr/bin
PWD=/home/lfs
LFS_TGT=i686-lfs-linux-gnu
PS1=\u:\t\w\$
SHLVL=1
HOME=/home/lfs
_=/bin/env

lfs:02:18:26~$ i686-lfs-linux-gnu-gcc -B /tools/lib dummy.c
/home/lfs/LFS/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.4.1/cc1:  
error while loading shared libraries: libmpfr.so.1: cannot open shared  
object file: No such file or directory

lfs:02:20:06~$ cat dummy.c
main(){}

lfs:02:20:10~$ ls /tools/lib/libmpfr.so.1
/tools/lib/libmpfr.so.1
lfs:02:21:47~$

Clearly, I have this shared library in the tools folder, which will  
eventually get thrown out.  Anyone know what the deal is with this  
linker error?  I think there aren't supposed to be any dynamic  
libraries at this point and that somehow the book has left a lot out  
in the initial compile gcc step.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the PLUG mailing list