在 2018年08月10日 16:41, Thomas Trepl 写道:
Am Freitag, den 10.08.2018, 15:57 +0800 schrieb norman:
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`)?
When the gcc-test failes, something seriously went wrong.  But its not
that dramatic as this is one of the first steps, so if you need to
redo, not that much time is wasted.

Check that your system setup (expecially $LFS and friends) is correct.
Review chapter 2 and 4.  Make sure that all is setup proper whenever
you start building a package.
Did you logout/login between building one of the first packages so some
environment vars got lost?

(Btw, when posting to LFS mailing lists, its appreciated if you do not
"top-post" - just add answers *below* the mail history, not on top. If
a thread gets longer, its easier to follow by reading from top to
bottom.)

--
Thomas

Thanks for you help,
I rebuild all, and I find I make a mistake on building gcc(5.10. GCC-7.3.0 - Pass 2), and  now it's fine. But I find a another problem in the chapter  6.9. Glibc-2.27, and resolve it following the solution:
http://lists.linuxfromscratch.org/pipermail/lfs-dev/2011-August/064956.html
I wonder why the instruction book update?



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