macOS 10.13.6 not supported?

107 views
Skip to first unread message

Alexander Kapshuk

unread,
Feb 22, 2022, 7:53:02 AM2/22/22
to plan9port-dev
Do I understand it correctly that plan9port is supported on macOS 10.14+, but not on macOS 10.13?

I had no trouble compiling the code on the machine using MacOS SDK 10.14, but I did have trouble running acme due to devdraw complaining about setAllowGPUOptimizedContents not being available on macOS 10.13:
acme[26010:742070] *** Terminating app due to uncaught exception 'NS
InvalidArgumentException', reason: '-[MTLTextureDescriptorInternal setAllowGPUOptimizedContents:]: unrecognized selector sent to instance 0x100410c60'

Indeed, this property is available on macOS 10.14+:
https://developer.apple.com/documentation/metal/mtltexturedescriptor/2966641-allowgpuoptimizedcontents
Availability: macOS 10.14+

I did try wrapping it in the @available macro, but this revealed more incompatibility issues with the following methods:

mac-screen.m:714:22: warning: 'convertPointToBacking:' is only available on macOS 10_14 or newer [-Wunguarded-availability-new]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:445:1: note: 'convertPointToBacking:' has been explicitly marked partial here
mac-screen.m:714:22: note: enclose 'convertPointToBacking:' in an @available check to silence this warning
mac-screen.m:740:23: warning: 'convertPointFromBacking:' is only available on macOS 10_14 or newer [-Wunguarded-availability-new]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:446:1: note: 'convertPointFromBacking:' has been explicitly marked partial here
mac-screen.m:740:23: note: enclose 'convertPointFromBacking:' in an @available check to silence this warning

The affected methods are invoked in the setmouse and sendmouse methods respectively.

I also had a look at the git commit history for src/cmd/devdraw and noticed that over the last 3-4 years there have been quite a few changes made with regards to macOS support.

I would appreciate some feedback on these findings.

Tweedy Flanigan

unread,
Feb 24, 2023, 9:32:22 AM2/24/23
to plan9port-dev
In case anyone (like me) finds this thread trying to build plan9port on macOS 10.13, see this GitHub issue:


The solution there is to just build from branch cc9ecfb [May 18, 2019; pre-Metal].

Reply all
Reply to author
Forward
0 new messages