Bug 80734 - GCC 6.3.1 errors compiling GCC 4.8.5 - error: ‘const char* libc_name_p(const char*, unsigned int)’ redeclared inline with ‘gnu_inline’ attribute
Summary: GCC 6.3.1 errors compiling GCC 4.8.5 - error: ‘const char* libc_name_p(const ...
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 6.3.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-13 04:06 UTC by Eric Parker
Modified: 2017-05-13 07:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Parker 2017-05-13 04:06:21 UTC
In file included from ../.././gcc/cp/except.c:1008: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
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


GCC version: 6.3.1
System: Fedora 25
GCC configuration: ./configure --prefix=`pwd`../build
GCC build command: make -j `nproc`
Comment 1 Jakub Jelinek 2017-05-13 06:52:08 UTC
The bug is on the GCC 4.8 side, so either you need to patch it, or build with -std=gnu++98 - then __GNUC_STDC_INLINE__ will not be defined and it ought to compile fine.
Comment 2 Eric Parker 2017-05-13 07:26:06 UTC
Okay, that works for me. Thanks Jakub.