Hello Isaac,

On Wed, June 21, 2017 22:49, Isaac D. Cohen wrote:
>
> Hi,
>
>
> I'm up to the end of section 5.7.1 and everything compiled
> successfully. The book now says to do a "sanity check" to see if all
> is working out. It doesn't say in what directory to do it, but I
> figured it must mean /tools/bin. So I went to /tools/bin and tried
> compiling the test file (dummy.c) and it failed with the following
> error:

Not a good idea until you get familiar with how LFS builds the toolchain.

>
> /media/isaac/LFS/Programs/Compiler/bin/../lib/gcc/x86_64-lfs-linux-
> gnu/6.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find
> /tools/lib/libc.so.6 inside /media/isaac/LFS

The book uses sysroot as $LFS
Default is /mnt/lfs. Yours is /media/isaac/LFS.

>
> Btw /tools is a symbolic link to /media/isaac/LFS/Programs/Compiler.
> I'm not sure if this is really a problem or did I just do the test
> in the wrong directory. If it is a real problem what does it mean?

/tools will not work because /media/isaac/LFS/Programs/Compiler is not
/media/isaac/LFS/tools. You'd want sysroot to be
/media/isaac/LFS/Programs/Compiler but I'm not going there. There is a big
headache hovering over you if you are trying to separate your build based
on what the package is: Programs/Compiler Programs/Library
Programs/Headers Programs/System Programs/Utilities Programs/Source
Programs/Games Programs/Graphics...

>
> Thank you very much,
> Isaac D. Cohen

Sincerely,

William Harrington
-- 
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