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

MacPorts noreply at macports.org
Tue Apr 23 00:53:02 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 ryandesign):

 Or replacing stdio.h may not be the problem. I see from the error that gcc
 doesn't like the use of `__has_cpp_attribute` in cdefs.h, specifically the
 fact that the value being checked contains a `:`. This problem was also
 reported here: https://forums.developer.apple.com/forums/thread/747762

 This may be a bug in the system headers that makes them clang-specific. It
 may be a bug in gcc that it does not recognize attribute names containing
 a `:`. I don't know whether attribute names are defined as being allowed
 to contain a `:` or not. In any case, it's not uncommon to have problems
 compiling with gcc on modern clang-based macOS and the usual advice if you
 want to avoid such headaches is Don't Do That. Use clang.

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


More information about the macports-tickets mailing list