On Wed, Jun 21, 2017 at 06:49:11PM -0400, 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.

I don't think it matters where the lfs user runs the sanity check.

> So I went to /tools/bin and tried
> compiling the test file (dummy.c) and it failed with the following
> error:
> 
> 
> /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 
> crt1.o: No such file or directory
> /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 
> crti.o: No such file or directory
> /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
> /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_nonshared.a inside /media/isaac/LFS
> /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/ld-linux-x86-64.so.2 inside /media/isaac/LFS
> collect2: error: ld returned 1 exit status
> 
> 
> 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?
> 

That seems an odd place to build LFS, unless you intend to tar it up
and install it elsewhere.  I don't think that oddity is related to
the problem, but when you get to the end of the book and try to boot
the new LFS it needs to be the top level directory in its
filesystem.  To try to be clear, /mnt/lfs/ should be a separate
filesystem, with at this stage some directories including bin and
tools, so that when it boots that bin directory will be /bin.

According to my logs, glibc installed all those libraries in
/tools/lib.  Perhaps something is wrong with the /tools symlink ?

You should be able to run

ls -l /tools/lib/libc.so.6

and

find /media/isaac/LFS/ -name libc.so.6

Normally I would run that 'find' for /mnt/lfs, but we know your
build is looking somewhere under that LFS directory.

ĸen
-- 
I live in a city. I know sparrows from starlings.  After that
everything is a duck as far as I'm concerned.  -- Monstrous Regiment
-- 
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