development,

gcc compile error

agowa338 agowa338 Feb 04, 2020 · 1 min read
Share this

when compiling gcc 4.8 for cross linux from scratch it throws this error:

 gcc-4.8.2/gcc/doc/gcc.texi:88: warning: @tex should only
  appear at the beginning of a line gcc-4.8.2/gcc/doc/gcc.texi:208: no matching
  `@end tex' gcc-4.8.2/gcc/doc/gcc.texi:208: no matching `@end multitable'
  gcc-4.8.2/gcc/doc/gcc.texi:208: no matching `@end titlepage' 
and can be fixed using this patch.

Later when compiling gcc for the 2nd time it throws another error:

 In file included from ../../gcc-4.8.3/gcc/cp/except.c:1008:
  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
  cfns.gperf:26:14: warning: inline function 'const char* libc_name_p(const
  char*, unsigned int)' used but never defined make[2]: *** [Makefile:1059:
  cp/except.o] Error 1 make[2]: Leaving directory
  '/media/clfs/sources/gcc-build/gcc' make[1]: *** [Makefile:3909: all-gcc]
  Error 2 make[1]: Leaving directory '/media/clfs/sources/gcc-build' make: ***
  [Makefile:858: all] Error 2 
and that one can be fixed by applying this patch.

agowa338
Written by agowa338