Just got the latest from GitHub and tried to run bootstrap.sh.
This fails with a number of errors (see below).
Perhaps this won't work with the MacOSX12 sdk?
Has anyone built with Ventura?
----------
mkdir -p `dirname bin/narwhal-webkit`
clang -o bin/narwhal-webkit -DWEBKIT -x objective-c narwhal-jsc.c -Os -force_cpusubtype_ALL -mmacosx-version-min=10.9 -arch x86_64 -Iinclude -framework JavaScriptCore -L/usr/lib -liconv -Llib -lnarwhal \
-framework Foundation -framework WebKit
In file included from narwhal-jsc.c:1:
In file included from include/narwhal.h:7:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScript.h:30:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSBase.h:34:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.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)...
~~~~~~~~~~~~~~ ^ ~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.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)))
^ ~
In file included from narwhal-jsc.c:1:
In file included from include/narwhal.h:7:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScript.h:30:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSBase.h:34:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:130:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:500:168: error: expected ')'
- (void)readDataOfMinLength:(NSUInteger)minBytes maxLength:(NSUInteger)maxBytes timeout:(NSTimeInterval)timeout completionHandler:(void (^) (NSData * _Nullable_result data, BOOL atEOF, NSError * _Nullable error...
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:500:141: note: to match this '('
- (void)readDataOfMinLength:(NSUInteger)minBytes maxLength:(NSUInteger)maxBytes timeout:(NSTimeInterval)timeout completionHandler:(void (^) (NSData * _Nullable_result data, BOOL atEOF, NSError * _Nullable error...
^
In file included from narwhal-jsc.c:1:
include/narwhal.h:148:9: warning: data argument not used by format string [-Wformat-extra-args]
THROW("NULL toString!");
^ ~~~~~~~~~~~~~~~~
include/narwhal.h:62:78: note: expanded from macro 'THROW'
{ char msg[1024]; snprintf(msg, 1024, format THROW_DEBUG, ##__VA_ARGS__, __FILE__, __LINE__); \
~~~~~~ ^
<scratch space>:20:1: note: expanded from here
"include/narwhal.h"
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
^~~~~~~~~~~
In file included from narwhal-jsc.c:9:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h:39:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKFrameInfo.h:30:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:344:237: error: unknown type name '_Nullable_result'
...arguments:(nullable NSDictionary<NSString *, id> *)arguments inFrame:(nullable WKFrameInfo *)frame inContentWorld:(WKContentWorld *)contentWorld completionHandler:(void (^ _Nullable)(_Nullable_result id, NSErro...
^
1 warning and 3 errors generated.
make: *** [bin/narwhal-webkit] Error 1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: building narwhal-jsc failed. Hit enter to continue.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!