[Bug c/82787] New: gnu gcc (4.8 - 7.1) cannot parse some system headers in macOS (10.13)
drikosev at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Oct 31 17:45:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82787
Bug ID: 82787
Summary: gnu gcc (4.8 - 7.1) cannot parse some system headers
in macOS (10.13)
Product: gcc
Version: 7.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: drikosev at gmail dot com
Target Milestone: ---
Hi,
gcc fails to parse various system headers in the latest macOS release (High
Sierra, 10.13).
One of the failures is this:
$ cat syslog.c
#include <syslog.h>
int main() {
return 0;
}
$ gcc7 syslog.c
In file included from /usr/include/sys/cdefs.h:587:0,
from /usr/include/sys/syslog.h:65,
from /usr/include/syslog.h:23,
from syslog.c:1:
/usr/include/sys/syslog.h:227:124: error: expected ',' or ';' before '__asm'
void syslog(int, const char *, ...) __printflike(2, 3) __not_tail_called
__DARWIN_ALIAS_STARTING(__MAC_10_13, __IPHONE_NA, __DARWIN_EXTSN(syslog));
^
$ gcc7 --version | head -n 1
gcc7 (GCC) 7.1.1 20170622
Regards,
Ev. Drikos
More information about the Gcc-bugs
mailing list