[lfs-support] ***SPAM*** gcc build error

Pierre Labastie pierre.labastie at neuf.fr
Mon Jun 15 09:05:52 PDT 2015


Le 15/06/2015 14:05, Sandeep Singh a écrit :
> I am using Arch Linux as the host system which is dual booting with 
> windows 8.1.
> following the lfs version 7.7 of the book.
>
> In file included from ./tm.h:35:0,
>                  from 
> /mnt/lfs/sources/gcc-4.9.2/gcc/c-family/c-cppbuiltin.c:23:
> /mnt/lfs/sources/gcc-4.9.2/gcc/c-family/c-cppbuiltin.c: In function 
> 'void c_cpp_builtins(cpp_reader*)':
> /mnt/lfs/sources/gcc-4.9.2/gcc/config/i386/linux-common.h:25:39: 
> error: 'GNU_USER_TARGET_OS_CPP_BUILTINS' was not declared in this scope
>        GNU_USER_TARGET_OS_CPP_BUILTINS();       \
>                                        ^
> /mnt/lfs/sources/gcc-4.9.2/gcc/c-family/c-cppbuiltin.c:1062:3: note: 
> in expansion of macro 'TARGET_OS_CPP_BUILTINS'
>    TARGET_OS_CPP_BUILTINS ();
>    ^
> Makefile:1058: recipe for target 'c-family/c-cppbuiltin.o' failed
> make[2]: *** [c-family/c-cppbuiltin.o] Error 1
> make[2]: Leaving directory '/mnt/lfs/gcc-build/gcc'
> Makefile:3977: recipe for target 'all-gcc' failed
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory '/mnt/lfs/gcc-build'
> Makefile:862: recipe for target 'all' failed
> make: *** [all] Error 2
>
> These are the errors that I recieve.
> How to go about rectifying these errors.
>
>
Looks like gcc/config/linux.h is not right. I recommend removing 
gcc-build and gcc-4.9.2, and start again, being very careful when 
running the instructions starting with "for file in".

Also, I am amazed of this path: /mnt/lfs/gcc-build/gcc. Don't you build 
in /mnt/lfs/sources?
Maybe you forgot to change to gcc-4.9.2 before running the instructions?

Pierre


Pierre


More information about the lfs-support mailing list