[MacPorts] #64726: R @4.1.2_1: Build fails on Intel iMac, Monterey 12.2.1, Xcode 13.2.1, SDK 12

MacPorts noreply at macports.org
Thu Feb 24 07:26:29 UTC 2022


#64726: R @4.1.2_1: Build fails on Intel iMac, Monterey 12.2.1, Xcode 13.2.1, SDK
12
---------------------+--------------------
 Reporter:  ashimog  |      Owner:  (none)
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.7.1
 Keywords:           |       Port:  R
---------------------+--------------------
 Building R @4.1.2_1 on Intel iMac running Monterey 12.2.1 with Xcode
 13.2.1, SDK 12 gives the following error:

 {{{
 :info:build In file included from qdCocoa.m:25:
 :info:build In file included from ./qdCocoa.h:39:
 :info:build In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
 :info:build In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143:
 error: function does not return NSString
 :info:build - (NSAttributedString
 *)localizedAttributedStringForKey:(NSString *)key value:(nullable NSString
 *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1)
 NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0),
 tvos(15.0));
 :info:build
 ~~~~~~~~~~~~~~
 ^                  ~
 }}}

 This seems to be a bug associated with MacOSX12.1.sdk. I found if I
 symlink MacOSX12.sdk to MacOSX11.3.sdk, R can build successfully.

-- 
Ticket URL: <https://trac.macports.org/ticket/64726>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list