luakit/luakit

Error building on macOS

オープン

#845 opened on 2020/05/14

 (2 件のコメント) (1 件のリアクション) (0 人の担当者)Lua (248 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (1,868 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

I'm submitting a Bug Report

Current Behavior

I'm trying to build luakit on macOS. I installed all the dependencies, but when I run make I get a lot of errors from webkitgtk. Here's the relevant output of make:

cc -c common/luajs.c -o common/luajs.o
In file included from common/luajs.c:19:
In file included from ./common/luajs.h:22:
In file included from /opt/local/include/webkitgtk-4.0/JavaScriptCore/JavaScript.h:31:
In file included from /opt/local/include/webkitgtk-4.0/JavaScriptCore/JSContextRef.h:29:
In file included from /opt/local/include/webkitgtk-4.0/JavaScriptCore/JSObjectRef.h:31:
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:54:18: error: missing ',' between enumerators
    kJSTypeSymbol JSC_API_AVAILABLE(macos(10.15), ios(13.0))
                 ^
                 ,
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:54:36: error: expected '= constant-expression' or end of
      enumerator definition
    kJSTypeSymbol JSC_API_AVAILABLE(macos(10.15), ios(13.0))
                                   ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:85:2: error: expected ';' after enum
} JSTypedArrayType JSC_API_AVAILABLE(macos(10.12), ios(10.0));
 ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:85:3: error: unknown type name 'JSTypedArrayType'
} JSTypedArrayType JSC_API_AVAILABLE(macos(10.12), ios(10.0));
  ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:85:44: error: expected parameter declarator
} JSTypedArrayType JSC_API_AVAILABLE(macos(10.12), ios(10.0));
                                           ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:85:44: error: expected ')'
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:85:43: note: to match this '('
} JSTypedArrayType JSC_API_AVAILABLE(macos(10.12), ios(10.0));
                                          ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:85:38: warning: type specifier missing, defaults to 'int'
      [-Wimplicit-int]
} JSTypedArrayType JSC_API_AVAILABLE(macos(10.12), ios(10.0));
                                     ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:85:56: error: expected parameter declarator
} JSTypedArrayType JSC_API_AVAILABLE(macos(10.12), ios(10.0));
                                                       ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:85:56: error: expected ')'
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:85:55: note: to match this '('
} JSTypedArrayType JSC_API_AVAILABLE(macos(10.12), ios(10.0));
                                                      ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:85:52: warning: type specifier missing, defaults to 'int'
      [-Wimplicit-int]
} JSTypedArrayType JSC_API_AVAILABLE(macos(10.12), ios(10.0));
                                                   ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:152:68: error: expected function body after function
      declarator
JS_EXPORT bool JSValueIsSymbol(JSContextRef ctx, JSValueRef value) JSC_API_AVAILABLE(macos(10.15), ios(13.0));
                                                                   ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:181:67: error: expected function body after function
      declarator
JS_EXPORT bool JSValueIsArray(JSContextRef ctx, JSValueRef value) JSC_API_AVAILABLE(macos(10.11), ios(9.0));
                                                                  ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:190:66: error: expected function body after function
      declarator
JS_EXPORT bool JSValueIsDate(JSContextRef ctx, JSValueRef value) JSC_API_AVAILABLE(macos(10.11), ios(9.0));
                                                                 ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:200:11: error: unknown type name 'JSTypedArrayType'
JS_EXPORT JSTypedArrayType JSValueGetTypedArrayType(JSContextRef ctx, JSValueRef value, JSValueRef* exception) JS...
          ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:200:112: error: expected function body after function
      declarator
  ...JSTypedArrayType JSValueGetTypedArrayType(JSContextRef ctx, JSValueRef value, JSValueRef* exception) JSC_API_AVAI...
                                                                                                          ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:289:83: error: expected function body after function
      declarator
JS_EXPORT JSValueRef JSValueMakeSymbol(JSContextRef ctx, JSStringRef description) JSC_API_AVAILABLE(macos(10.15)...
                                                                                  ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:300:86: error: expected function body after function
      declarator
JS_EXPORT JSValueRef JSValueMakeFromJSONString(JSContextRef ctx, JSStringRef string) JSC_API_AVAILABLE(macos(10.7...
                                                                                     ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:311:123: error: expected function body after function
      declarator
  ...JSValueCreateJSONString(JSContextRef ctx, JSValueRef value, unsigned indent, JSValueRef* exception) JSC_API_AVAIL...
                                                                                                         ^
In file included from common/luajs.c:19:
In file included from ./common/luajs.h:22:
In file included from /opt/local/include/webkitgtk-4.0/JavaScriptCore/JavaScript.h:31:
In file included from /opt/local/include/webkitgtk-4.0/JavaScriptCore/JSContextRef.h:29:
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSObjectRef.h:444:134: error: expected function body after function
      declarator
  ...ctx, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) JSC_API_AVAILABLE(macos(10.6), io...
                                                                                     ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSObjectRef.h:455:133: error: expected function body after function
      declarator
  ...ctx, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) JSC_API_AVAILABLE(macos(10.6), io...
                                                                                     ^
/opt/local/include/webkitgtk-4.0/JavaScriptCore/JSObjectRef.h:466:134: error: expected function body after function
      declarator
  ...ctx, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) JSC_API_AVAILABLE(macos(10.6), io...
                                                                                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.

has anyone managed to compile and run luakit on macos?

Expected Behavior

make runs without errors

Reproduction Instructions

Try to build on macOS.

Environment

macOS Catalina 10.15.4, webkit2-gtk 2.26

コントリビューターガイド