[MacPorts] #72239: emacs-app: error: expected a type
MacPorts
noreply at macports.org
Thu Mar 27 08:33:17 UTC 2025
#72239: emacs-app: error: expected a type
------------------------+-----------------------
Reporter: rmottola | Owner: drkp
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: mavericks
Port: emacs-app |
------------------------+-----------------------
Comment (by ryandesign):
Perhaps all of the above. Nullability is a Swift language feature that was
brought back to Objective-C in Xcode 6.3. It likely includes both changes
in Clang to support this feature and changes in the SDK to make use of it.
See [https://developer.apple.com/swift/blog/?id=25 Nullability and
Objective-C].
You didn't attach a main.log or indicate your Xcode version but according
to XcodeVersionInfo, Xcode 6.3 requires OS X 10.10 or later and you said
you're on 10.9 so you must have an earlier Xcode version than that.
You didn't show enough of the log to see whether the Clang that was used
came from Xcode or MacPorts. Using a newer Clang from MacPorts likely
gives you nullability support, but I'm not sure if the code will compile
against an older pre-nullability SDK.
Your patch is likely wrong for newer compilers and SDKs that support
nullability so I do not recommend applying it to newer compilers or SDKs.
I also don't know whether it is correct for older compilers or SDKs. I
recommend reporting the problem to the developers of emacs-app so they can
decide how or if to fix it.
--
Ticket URL: <https://trac.macports.org/ticket/72239#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list