Stefano Ricci wrote:
Hello
I apologize for my English, I keep getting the following error in chapter 5
of 2 pass gcc compile LFS in Development:

You don't say what your host distro is. You also don't tell us the output from the host system requirements script in Section vii.

From the output below, it looks like you are doing the svn version of the book. If you haven't already done a stable version of LFS, we recommend 7.5 right now for first time builders.

  -- Bruce

make [2]: Leaving directory `/
mnt/lfs-BusyBox-2014-07-16/sources/gcc-build/libdecnumber '
make [2]: Entering directory `/
mnt/lfs-BusyBox-2014-07-16/sources/gcc-build/gcc '
TARGET_CPU_DEFAULT = "" \
HEADERS = "auto-host.h ansidecl.h" DEFINES = "" \
/ bin / sh .. / config.h ../gcc-4.9.0/gcc/mkconfig.sh
TARGET_CPU_DEFAULT = "" \
HEADERS = "options.h insn-constants.h config / vxworks-dummy.h
config/i386/biarch64.h config/i386/i386.h config/i386/unix.h
config/i386/att.h config / dbxelf. h config / elfos.h config / gnu-user.h
config / glibc-stdint.h config/i386/x86-64.h config/i386/gnu-user-common.h
config/i386/gnu-user64.h config / linux.h config / linux-android.h
config/i386/linux-common.h config/i386/linux64.h config / initfini-array.h
defaults.h "DEFINES =" LIBC_GLIBC LIBC_UCLIBC = 1 = 2 = 3 LIBC_BIONIC
DEFAULT_LIBC = LIBC_GLIBC ANDROID_DEFAULT = 0 "\
/ bin / sh .. / ../gcc-4.9.0/gcc/mkconfig.sh tm.h
TARGET_CPU_DEFAULT = "" \
HEADERS = "config/i386/i386-protos.h config / linux-tm-protos.h preds.h"
DEFINES = "" \
/ bin / sh .. / ../gcc-4.9.0/gcc/mkconfig.sh tm_p.h
TARGET_CPU_DEFAULT = "" \
HEADERS = "auto-host.h ansidecl.h" DEFINES = "" \
/ bin / sh .. / ../gcc-4.9.0/gcc/mkconfig.sh bconfig.h
x86_64-lfs-linux-gnu-g +
+-c-g-O2-DIN_GCC-fno-exceptions-fno-rtti-fasynchronous-unwind-tables-W-Wall-Wno-narrowing-Wwrite-strings-Wcast-qual-Wmissing-format-attribute-pedantic-Wno-long-long-Wno-variadic-macros-Wno-overlength-strings-DHAVE_CONFIG_H-I-DGENERATOR_FILE.
Ibuild--I../../gcc-4.9.0/gcc -I../../gcc-4.9.0/gcc/build
-I../../gcc-4.9.0/gcc / .. / include
-I../../gcc-4.9.0/gcc/../libcpp/include \
-o build / genmddeps.o .. / ../gcc-4.9.0/gcc/genmddeps.c
In file included from .. / ../gcc-4.9.0/gcc/genmddeps.c: 19:0:
../../gcc-4.9.0/gcc/system.h: 205:20: fatal error: cstring: No such file or
directory
   # Include <cstring>
                      ^
compilation terminated.
make [2]: *** [build / genmddeps.o] Error 1
make [2]: Leaving directory `/
mnt/lfs-BusyBox-2014-07-16/sources/gcc-build/gcc '
make [1]: *** [all-gcc] Error 2
make [1]: Leaving directory `/ mnt/lfs-BusyBox-2014-07-16/sources/gcc-build
'
make: *** [all] Error 2


I checked and the compilation of libstdc + + -4.9.0 seems to be fair, at
every stage of compilation gate source and build folders.
The same error occurs on the last stable version of LFS with gcc 4.8.2
Is there anyone who can give me a hand to solve the problem?

Thank you
Stefano





--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to