Calling Testers

Archaic archaic at indy.rr.com
Mon May 12 11:04:49 PDT 2003


On Mon, May 12, 2003 at 09:32:27AM -0600, Gerard Beekmans wrote:
> On May 12, 2003 03:37 am, Archaic wrote:
> > From outside chroot, ldd gives:
> >
> > [tty3 root 04:34am /lfs/stage1/bin] ldd /usr/bin/gcc
> >         libc.so.6 => /lib/libc.so.6 (0x4001b000)
> >         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> There's your problem. It should say /stage1/lib/libc.so.6 and 
> /stage1/lib/ld-linux.so
> 
> This means you didn't "lock in Glibc" properly prior to going chapter 5 
> GCC-Pass2

Well I ldd'd the incorrect gcc above (/usr/bin/gcc), but upon redoing it
with ldd /stage1/bin/gcc I get the same results. But what's puzzling me
is I went through my .bash_history and find this:

<..>
make install
make -C ld clean
make -C ld LIB_PATH=/stage1/lib
cd ..
tar jxvf /fileserver/packages/plfs/gcc-3.2.3.tar.bz2

<..>
make localedata/install-locales
cd ..
rm -rf glibc-*
cd binutils-build/
make -C ld install-data-local
SPECFILE=/stage1/lib/gcc-lib/*/*/specs
sed -e 's@/lib/ld.so.1@/stage1/lib/ld.so.1 at g' \
-e 's@/lib/ld-linux.so.2@/stage1/lib/ld-linux.so.2 at g' \
$SPECFILE > XX
mv XX $SPECFILE
cd ..
rm -rf binutils-*

<..>
make install
make -C ld clean
make -C ld LIB_PATH=/usr/lib:/lib

That's verbatim with one exception, I re-added the escape for proper
wrapping. Now, seeing as how I forgot to unset $SPECFILE (which is
irrelevant by itself) I'm wondering if I forgot anything else. A proper
study of the history is in order. Ugh. :(

-- 
Archaic

-- 
Non-cooperation with evil is as much a duty as cooperation with good.

- Mohandas Gandhi

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list