[lfs-support] 6.17. GCC-4.8.1 - Linker search paths

Craig Magee psybertao at gmail.com
Mon Sep 30 20:41:28 PDT 2013


On 1 October 2013 16:09, Ken Moffat <zarniwhoop at ntlworld.com> wrote:

> On Tue, Oct 01, 2013 at 03:27:22PM +1300, Craig Magee wrote:
> > However, grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g' returns only:
> > SEARCH_DIR("/usr/lib")
> > SEARCH_DIR("/lib");
> >
> > while the book tells me to expect:
> > SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib64")
> > SEARCH_DIR("/usr/local/lib64")
> > SEARCH_DIR("/lib64")
> > SEARCH_DIR("/usr/lib64")
> > SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib")
> > SEARCH_DIR("/usr/local/lib")
> > SEARCH_DIR("/lib")
> > SEARCH_DIR("/usr/lib");
> >
> > Any advice on where I went wrong would be greatly appreciated.
> >
> > Thanks.
>
>  Does the book tell you to expect that ?  My local copy of 7.4 says
> that your results are correct.  I think you might have been looking
> at a different version of the book, or a different page, along the
> way.  In particular, that grep for '.*/usr/lib' cannot possibly match
> '/usr/x86_64-unknown-linux-gnu/lib'.
>

Ah, I didn't think to take the time decoding the regular expression as they
confuse the heck out of me.  I copypasta'd it.

http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gcc.html
It definitely states the block of text I quoted.

Would the expected output listed for i686 systems also be incorrect?
SEARCH_DIR("/usr/i686-pc-linux-gnu/lib")
SEARCH_DIR("/usr/local/lib")
SEARCH_DIR("/lib")
SEARCH_DIR("/usr/lib");
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20131001/86eb4794/attachment.html>


More information about the lfs-support mailing list