Re: [MacPorts] #49391: gtk3 3.18 +quartz variant does not build on Mac OS X 10.6.8, Snow Leopard, "error: expected ‘)’ before ‘instancetype’"

MacPorts noreply at macports.org
Wed Nov 18 12:27:59 PST 2015


#49391: gtk3 3.18 +quartz variant does not build on Mac OS X 10.6.8, Snow Leopard,
"error: expected ‘)’ before ‘instancetype’"
------------------------------+-------------------
  Reporter:  Peter_Dyballa@…  |      Owner:  cal@…
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.3.4
Resolution:                   |   Keywords:
      Port:  gtk3             |
------------------------------+-------------------

Comment (by devans@…):

 Thanks to all for their input on this issue to date.

 Since this is an Objective C compiler issue, I'm thinking that it would be
 best to categorize the issue by Xcode/compiler version rather than OS
 version.  I'm trying to track down just when instancetype was introduced
 to Objective C.  The earliest that I can find is Xcode 5 and/or clang 3.3.
 This is consistent with the reported failures on 10.7 and previous and
 implies that 10.8 using Xcode 4.6.3 and earlier might fail as well.

 Since there is benefit in using instancetype, I'm wondering if it might be
 better to blacklist compilers that do not support it rather than
 doing the instancetype parts of the patch.  The gtk3-demo issue is
 something different.

 I'd propose using
 {{{
 PortGroup           compiler_blacklist_versions 1.0
 compiler.blacklist  *gcc* {clang < 500}
 }}}

 I'm not in a position to test this but would appreciate it if those who
 are seeing this problem (both on 10.6 and 10.7) would try using
 this instead of all but the last hunk of the patch and report their
 findings.

 Thanks again for your help.

-- 
Ticket URL: <https://trac.macports.org/ticket/49391#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list