No, it's failed,
lfs@home:/mnt/lfs/build/tmp$ $LFS_TGT-gcc dummy.c
/mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/7.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld:
cannot find crt1.o: No such file or directory
/mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/7.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld:
cannot find crti.o: No such file or directory
Do you know which step is wrong? I think I did as the book told me.
在 2018年08月10日 15:40, Xi Ruoyao 写道:
On 2018-08-10 15:04 +0800, norman wrote:
Hi All,
I'm a newbie in the lfs, I want to build a new distro, and I did as LFS
v8.2 told me,
but I met a problem while build libstdc++(Chapter 5.8).
hecking whether the x86_64-lfs-linux-gnu-gcc linker
(/mnt/lfs/tools/x86_64-lfs-linux-gnu/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... configure: error: Link tests
are not allowed after GCC_NO_EXECUTABLES.
Can anyone tell what's wrong with this?
Did the check in 5.7:
echo 'int main(){}' > dummy.c
$LFS_TGT-gcc dummy.c
readelf -l a.out | grep ': /tools'
succeed? Can you run the generated "a.out" file (issue `./a.out`)?
--
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