There are suggestions on the interweb that adding -DNS_FORMAT_ARGUMENT(A)= to compiler options will work around this problem.
-- Rob On Thu, Sep 15, 2022 at 12:55 PM john <jra...@ceridwen.us> wrote: > > > > On Sep 14, 2022, at 9:41 PM, Mike Alexander <m...@umich.edu> wrote: > > > > When I try to build either current maint or master using MacOSX12.1.sdk > or MacOSX12.3.sdk for SDKROOT I get compile errors in > gnc-filepath-utils.cpp. The first error is > > > > In file included from > /System/Volumes/Data/tools/gnucash-maint/gnucash/libgnucash/core-utils/gnc-filepath-utils.cpp:64: > > In file included from > /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12: > > > /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143: > error: function does not return NSString > > - (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)); > > > /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:103:48: > note: expanded from macro 'NS_FORMAT_ARGUMENT' > > #define NS_FORMAT_ARGUMENT(A) __attribute__ ((format_arg(A))) > > > > This is probably because there is something wrong with my build > environment, but I was wondering if anyone else had seen this? > > Mike, > > I haven't had any errors like that. > > I don't understand the error but it seems to be an SDK error rather than > anything we're doing. Might the compiler have gotten out of sync with the > SDK? > > Regards, > John Ralls > _______________________________________________ > gnucash-devel mailing list > gnucash-devel@gnucash.org > https://lists.gnucash.org/mailman/listinfo/gnucash-devel > _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel