On Sun, Feb 7, 2010 at 2:27 AM, someone <[email protected]> wrote: > 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 > [email protected]'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. > > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug >
Are you chroot'd into your build environment Michael? _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
