https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70702
--- Comment #1 from Olivier Gautherot <olivier at gautherot dot net> --- Additional note: by adding the static keyword, I got the following error: 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)' rdeclared inline with 'gnu_inline' attribute cfns.gperf:26:21: note: 'const char* libc_name_p(const char*, unsigned int)' prviously declared here cfns.gperf: At global scope: cfns.gperf:26:21: warning: inline function 'const char* libc_name_p(const char* unsigned int)' used but never defined Makefile:1065: recipe for target 'cp/except.o' failed make: *** [cp/except.o] Error 1 It was fixed by declaring consistently the prototype in the 3 occurences as: #ifdef __GNUC__ __inline #ifdef __GNUC_STDC_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif static const char * libc_name_p (const char *, unsigned int);