Jun Hu wrote:
On Sun, Oct 11, 2015 at 9:05 PM, Jun Hu <[email protected]
<mailto:[email protected]>> wrote:

    On Sun, Oct 11, 2015 at 8:19 PM, Bruce Dubbs <[email protected]
    <mailto:[email protected]>> wrote:

        Did you ensure all the host requirements were met?  See Section
        vii, Host System Requirements in the Preface.

    sorry for using top post for previous email, re-post:

    Yes, the Host System Requirements are all met, following are the output:
    """

Looks fine.

    another thing to note is the configure command contains
    "--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/5.2.0", however
    on my
    system there is no such directory:
    """
    lfs at vm-svr:~$ echo $LFS_TGT
    x86_64-lfs-linux-gnu

    lfs at vm-svr:~$ ls -l /tools/$LFS_TGT/
    total 8
    drwxr-xr-x 2 lfs lfs 4096 Oct 11 15:44 bin
    drwxr-xr-x 3 lfs lfs 4096 Oct 11 15:44 lib
    """

The /tools/$LFS_TGT/include/c++/5.2.0 should have been installed by gcc.

Following error in config.log (in $LFS/sources/gcc-build) seems also
suggest the specified include-dir is not right.
"conftest.c:10:19: fatal error: stdio.h: No such file or directory

That's your problem. /usr/include/stdio.h should be installed by glibc. You could try to reinstall that. Remember to ensure the glibc-build and glibc-2.22 directories are removed before re-extracting the tarball.

Since you are so close to the beginning, I really suggest removing /mnt/lfs/tools and recreating it:

echo $LFS
rm -rf       $LFS/tools
mkdir -v     $LFS/tools
chown -v lfs $LFS/tools
ls -l        /tools

And then start Chapter 5 over.

  -- Bruce

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