On 05/03/2019 18:45, Martin Holčík wrote:
> Hi scratchers,
> I've got some problems with glibc-2.29:
> configuration + make + make install has been without errors, but sanity check
> (with dummy.c) reports errors:
> 
> $LFS_TGT-gcc dummy.c -> error - cannot find crt1.o : No such file or 
> directory.

Since a file is not found, a.out cannot be created, so this is expected:

> 
> readelf -l a.out | grep ': /tools'
> readelf: Error: 'a.out' : No such file>

We do not have enough information for understanding what went wrong. Could you
please issue:

$LFS_TGT-gcc -v -Wl,-verbose dummy.c |& tee sanity-check.log

(you'll get the same error, after a lot more output)

Look for lines containing "attempt to open" and "crt1.o" in sanity-check.log.
That should give you an idea of where that file is looked for.

Then issue:

Find /tools -name crt1.o

If there is not output, this means glibc install went badly, try recompile
glibc (don't forget to ensure that the environment is set for user LFS).

If there is some output, but it does not match where crt1.o is looked for
according to "sanity-check.log", it may mean that something went wrong either
in binutils pass1 or GCC pass1. Specially, the lines starting with "for file
in gcc/config/{linux,i386/linux{,64}}.h" are a little complicated and must be
checked carefully.

Please come back to us with the results.

Pierre
-- 
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