Re: Glibc configure problems with LFS 6.1 after chroot

2006-03-23 Thread Dan Nicholson
On 3/23/06, Richard Melville <[EMAIL PROTECTED]> wrote: > > Perhaps the gcc problem I had is not common, maybe it was my error, but > would it be a good idea to include in future books a gcc link test in > chapter five, or at the beginning of chapter six. It certainly would > have helped me, and s

Re: Glibc configure problems with LFS 6.1 after chroot

2006-03-23 Thread Richard Melville
Dan I took your advice and re-built and installed gcc again and now everything appears to be fine. I still do not know what went wrong. I can't thank you enough for your help. Sorry about the email problem. Thunderbird appears to be playing up at the moment. Perhaps the gcc problem I had

Re: Glibc configure problems with LFS 6.1 after chroot

2006-03-22 Thread Dan Nicholson
On 3/22/06, Richard Melville <[EMAIL PROTECTED]> wrote: > > readelf -l /tools/bin/gcc | grep 'ld-linux' > > The output is /lib/ld-linux.so.2 rather than /tools/lib/ld-linux.so.2. > Is this the problem, and if so how could it have happened? Richard, Please try to reply to the previous email. Each

Glibc configure problems with LFS 6.1 after chroot

2006-03-22 Thread Richard Melville
OK, I pretty stumped. One last thing. Make sure that gcc itself is actually linked correctly. readelf -l /tools/bin/gcc | grep 'ld-linux' This should be /tools/lib/ld-linux.so.2 or obviously it won't reference the correct location in the chroot. -- Dan The output is /lib/ld-linux.so.2 rathe

Re: Glibc configure problems with LFS 6.1 after chroot

2006-03-22 Thread Dan Nicholson
On 3/22/06, Richard Melville <[EMAIL PROTECTED]> wrote: > OK. How about trying those commands outside the chroot. Then they'll > be able to run, and we should be able to see what's happened. > > This is the output from the souped-up sanity check outside the chroot:- OK, I pretty stumped. One l

Glibc configure problems with LFS 6.1 after chroot

2006-03-22 Thread Richard Melville
OK. How about trying those commands outside the chroot. Then they'll be able to run, and we should be able to see what's happened. -- Dan This is the output from the souped-up sanity check outside the chroot:- [requesting program interpreter: /tools/lib/ld-linux.so.2] attempt to open /tools/

Re: Glibc configure problems with LFS 6.1 after chroot

2006-03-22 Thread Dan Nicholson
On 3/22/06, Richard Melville <[EMAIL PROTECTED]> wrote: > > Third, let's try a souped up sanity check similar to the one in the SVN book. > http://www.linuxfromscratch.org/lfs/view/development/chapter06/readjusting.html > > echo 'main(){}' > dummy.c > cc dummy.c -Wl,--verbose &> dummy.log > > reade

Glibc configure problems with LFS 6.1 after chroot

2006-03-22 Thread Richard Melville
On 3/22/06, Richard Melville http://linuxfromscratch.org/mailman/listinfo/lfs-support>> wrote: / />/ The sanity check fails, as does gcc -dumpmachine. However, if I exit />/ the chroot environment and run the sanity check again, all is well. The />/ sanity check returns /tools/lib/ld-linux.so

Re: Glibc configure problems with LFS 6.1 after chroot

2006-03-22 Thread Ken Moffat
On Wed, 22 Mar 2006, Richard Melville wrote: Inside the chroot environment dummy.c will not compile and returns */tools/bin/cc: no such file or directory*, but it does, in reality, exist. From outside chroot, 'ldd /tools/bin/gcc' - this sounds as if gcc is linked against a library on the ho

Glibc configure problems with LFS 6.1 after chroot

2006-03-22 Thread Richard Melville
/ Chapter 5 seems to have built OK, but glibc, the first package to be />/ compiled in chapter 6, />/ fails to configure, complaining that there is no such file as />/ /tools/bin/gcc, when there clearly is. />/ />/ The sanity check fails, as does gcc -dumpmachine. However, if I exit />/ the c

Re: Glibc configure problems with LFS 6.1 after chroot

2006-03-22 Thread Dan Nicholson
On 3/22/06, Richard Melville <[EMAIL PROTECTED]> wrote: > > The sanity check fails, as does gcc -dumpmachine. However, if I exit > the chroot environment and run the sanity check again, all is well. The > sanity check returns /tools/lib/ld-linux.so.2 and gcc -dumpmachine > returns i686-pc-linux-

Re: Glibc configure problems with LFS 6.1 after chroot

2006-03-22 Thread Robert Daniels
>Chapter 5 seems to have built OK, but glibc, the first package to be >compiled in chapter 6, >fails to configure, complaining that there is no such file as >/tools/bin/gcc, when there clearly is. > >The sanity check fails, as does gcc -dumpmachine. However, if I exit >the chroot environment an

Re: Glibc configure problems with LFS 6.1 after chroot

2006-03-22 Thread Nikolai
Richard Melville escreveu: Hi I'd really appreciate some help from somebody. I'm trying to build LFS 6.1 with errata. Chapter 5 seems to have built OK, but glibc, the first package to be compiled in chapter 6, fails to configure, complaining that there is no such file as /tools/bin/gcc, when

Glibc configure problems with LFS 6.1 after chroot

2006-03-22 Thread Richard Melville
Hi I'd really appreciate some help from somebody. I'm trying to build LFS 6.1 with errata. Chapter 5 seems to have built OK, but glibc, the first package to be compiled in chapter 6, fails to configure, complaining that there is no such file as /tools/bin/gcc, when there clearly is. The san