[MacPorts] #56082: libsdl2 @2.0.8: error: unrecognized platform name macOS (was: libsdl2 2.0.8 build failure)

MacPorts noreply at macports.org
Sat Mar 17 06:19:19 UTC 2018

#56082: libsdl2 @2.0.8: error: unrecognized platform name macOS
  Reporter:  adamb2903  |      Owner:  jmroot
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:  highsierra
      Port:  libsdl2    |
Changes (by ryandesign):

 * status:  new => assigned
 * keywords:   => highsierra
 * port:   => libsdl2
 * owner:   => jmroot


 I see you're on High Sierra. The error in the log is:

 src/render/metal/SDL_render_metal.m:643:20: error: unrecognized platform
 name macOS
     if (@available(macOS 10.13, *)) {
 1 error generated.

 It looks like the `@available` syntax was added to Objective-C in Xcode 9.
 What version of Xcode do you have?

 It built successfully on our High Sierra buildbot, which uses Xcode 9.2.

 The code in question is already in an `#if` preprocessor block that only
 takes effect on High Sierra, so it would not affect earlier.

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

More information about the macports-tickets mailing list