bootstrap.sh failing

14 views
Skip to first unread message

Luke

unread,
Jan 16, 2023, 7:51:33 PM1/16/23
to Cappuccino & Objective-J
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.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Martin Carlberg

unread,
Jan 17, 2023, 9:44:02 AM1/17/23
to Cappuccino & Objective-J
Hi Luke,

We are currently in transition to Node. There is a beta version that you can try. Check the install instructions in the wiki: https://github.com/cappuccino/cappuccino/wiki/node

I'm currently rewriting the install instructions on the wiki as the current one is a little to complex and have to much information, but should work.

There are multiple ways to install as described in the install instructions. I think the easiest is the one under the title "Install locally from source without install with npm". But I guess that is a matter of taste.

Let me know if you get it to work.

- Martin

--
You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to objectivej+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/objectivej/41f87573-09ed-4b3d-8e6a-c60babe4583cn%40googlegroups.com.

Luke

unread,
Jan 17, 2023, 9:39:56 PM1/17/23
to Cappuccino & Objective-J
I tried the "Install locally from source without install with npm" and that worked great (once I had ensured that my newly installed Xcode had actually been run so that the additional components were actually downloaded/installed!).  

So looking forward to playing Cappuccino again and thank you again for your help.




Reply all
Reply to author
Forward
0 new messages