Re: [GNC-dev] Building Mac version using SDK 12

Rob Gowin <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnucash.devel
Message-ID <CAHQ9huajBXva_guiJwjYcKwtbDghepJWb4T=N0T4TzL5c7+83g@mail.gmail.com>
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 <[email protected]> wrote:

>
>
> > On Sep 14, 2022, at 9:41 PM, Mike Alexander <[email protected]> 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
> [email protected]
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.