Thank you Xi Ruoyao.
You are correct.

"echo "int main(){}" > dummy.c &&
    cc dummy.c -Wl,--verbose | grep SEARCH | sed 's/; /\n/g' "
still points to /tools/lib.

I saved a copy of /tools and /sources before starting chapter 6.

Can I exit chroot and delete certain folders, stay in chroot and delete
certain folders, stay in chroot and delete all the contents or is there
another option?
I should be able to restart Chapter 6, right?

On Mon, 6 Aug 2018 at 14:13, Xi Ruoyao <xry...@mengyan1223.wang> wrote:

> On 2018-08-06 12:44 +0200, John Le Brasseur wrote:
> > Hi Mike.
> > Thanks for your reply.
> > The output is:
> >
> > ls -lad /tools/lib/libquad*
> > -rw-r--r-- 1 root root 1203304 Aug  4 13:55 /tools/lib/libquadmath.a
> > -rwxr-xr-x 1 root root     971 Aug  4 13:55 /tools/lib/libquadmath.la
> > lrwxrwxrwx 1 root root      20 Aug  4 13:55 /tools/lib/libquadmath.so ->
> libquadmath.so.0.0.0
> > lrwxrwxrwx 1 root root      20 Aug  4 13:55 /tools/lib/libquadmath.so.0
> -> libquadmath.so.0.0.0
> > -rwxr-xr-x 1 root root  955232 Aug  4 13:55
> /tools/lib/libquadmath.so.0.0.0
>
> No.  /tools/lib/libquadmath.so.* is useless now.  After "6.10
> Adjusting the Toolchain" the default dynamic linker should have
> been changed to /lib64/ld-linux-x86-64.so.2 instead of
> /tools/lib64/ld-linux-x86-64.so.2.  Then it should search /usr/lib,
> not /tools/lib.
>
> MPFR configure script add "-lquadmath" if
>
>     echo "int main(){return 0;}" > conftest.c &&
>     cc conftest.c -lquadmath &&
>     ./a.out
>
> returns 0 (successful).  But after 6.10 this should NOT succeed
> because GCC spec has been changed to search /usr/lib instead
> of /tools/lib and there is NO libquadmath.so in /usr/lib.
>
> It's very likely you've made a mistake in 6.10.  Please run:
>
>     echo "int main(){}" > dummy.c &&
>     cc dummy.c -Wl,--verbose | grep SEARCH | sed 's/; /\n/g'
>
> It should contain "/usr/lib", and should NOT contain
> "/tools/lib".
> --
> Xi Ruoyao <xry...@mengyan1223.wang>
> School of Aerospace Science and Technology, Xidian University
>
> --
> http://lists.linuxfromscratch.org/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
>
> Do not top post on this list.
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> http://en.wikipedia.org/wiki/Posting_style
>


-- 
Kind regards,

John Le Brasseur
+27  73 157 5605
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to