This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/82787] New: gnu gcc (4.8 - 7.1) cannot parse some system headers in macOS (10.13)
- From: "drikosev at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Oct 2017 17:45:37 +0000
- Subject: [Bug c/82787] New: gnu gcc (4.8 - 7.1) cannot parse some system headers in macOS (10.13)
- Auto-submitted: auto-generated
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