[MacPorts] #69632: gcc10-bootstrap does not work on 14.4.1: error: missing ')' after "__has_attribute"

MacPorts noreply at macports.org
Tue May 14 11:30:20 UTC 2024


#69632: gcc10-bootstrap does not work on 14.4.1: error: missing ')' after
"__has_attribute"
------------------------------+----------------------
  Reporter:  barracuda156     |      Owner:  catap
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.9.1
Resolution:                   |   Keywords:  sonoma
      Port:  gcc10-bootstrap  |
------------------------------+----------------------

Comment (by cquike):

 I have a (maybe) related problem. This is with gcc-13 actually but the
 error message is the same:

 {{{
 $ cat test.c
 #include <stdio.h>
 $ /opt/local/bin/gcc-mp-13
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  -std=c99
 -c test.c
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_stdio.h:68,
                  from
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdio.h:64,
                  from j.c:1:
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:554:30:
 error: missing ')' after "__has_attribute"
   554 | #if __has_cpp_attribute(clang::unsafe_buffer_usage)
       |                              ^
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:554:31:
 error:  ':' without preceding '?'
   554 | #if __has_cpp_attribute(clang::unsafe_buffer_usage)
 }}}

 It seems that the -std=c99 flag is crucial to get the error. Omitting it
 does not cause the error. Has anyone any workaround for this problem?

-- 
Ticket URL: <https://trac.macports.org/ticket/69632#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list