Compilation error in GCC pass one of LFS book
Hi, I hope you can help me with this issue:
I am running 4.7.2-1-ARCH 64bits and all the host requirements are met, except the three libraries .la (although I don't think this should be an issue, as these libraries are included and built with GCC when following the book's instructions). I get the following error when running the make command in pass 1 of GCC:
In file included from ./tm.h:27:0,
from ../../gcc/cp/friend.c:23:
../../gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
^
../../gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
^
In file included from ../../gcc/cp/except.c:1023:0:
cfns.gperf: In function 'const char* libc_name_p(const char*, unsigned int)':
cfns.gperf:101:1: error: 'const char* libc_name_p(const char*, unsigned int)' redeclared inline with 'gnu_inline' attribute
cfns.gperf:26:14: note: 'const char* libc_name_p(const char*, unsigned int)' previously declared here
In file included from ./tm.h:48:0,
from ../../gcc/cp/friend.c:23:
../../gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
^
cfns.gperf: At global scope:
cfns.gperf:26:14: warning: inline function 'const char* libc_name_p(const char*, unsigned int)' used but never defined
make[2]: *** [Makefile:1065: cp/except.o] Error 1
make[2]: *** Waiting for unfinished jobs....
rm gcc.pod
make[2]: Leaving directory '/mnt/lfs/sources/gcc-5.3.0/build/gcc'
make[1]: *** [Makefile:4105: all-gcc] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-5.3.0/build'
make: *** [Makefile:859: all] Error 2
Thanks in advance!
|