Skip to content

Instantly share code, notes, and snippets.

@barbalex
Created February 7, 2019 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barbalex/a40e40900279c0021541e8229d2a25fb to your computer and use it in GitHub Desktop.
Save barbalex/a40e40900279c0021541e8229d2a25fb to your computer and use it in GitHub Desktop.
Alexanders-MacBook-Pro:awel-personal alexandergabriel$ node_modules/.bin/electron-rebuild -f -w better-sqlite3
✖ Rebuild Failed
An unhandled error occurred inside electron-rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.1 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/alexandergabriel/awel-personal/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/alexandergabriel/awel-personal/node_modules/uws/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/alexandergabriel/awel-personal/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/alexandergabriel/.electron-gyp/4.0.4',
gyp info spawn args '-Dnode_gyp_dir=/Users/alexandergabriel/awel-personal/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/alexandergabriel/.electron-gyp/4.0.4/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/alexandergabriel/awel-personal/node_modules/uws',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/uws/src/Extensions.o
CXX(target) Release/obj.target/uws/src/Group.o
CXX(target) Release/obj.target/uws/src/Networking.o
CXX(target) Release/obj.target/uws/src/Hub.o
CXX(target) Release/obj.target/uws/src/Node.o
CXX(target) Release/obj.target/uws/src/WebSocket.o
CXX(target) Release/obj.target/uws/src/HTTPSocket.o
CXX(target) Release/obj.target/uws/src/Socket.o
CXX(target) Release/obj.target/uws/src/addon.o
In file included from ../src/addon.cpp:2:
../src/addon.h:21:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, noop), 0, nullptr);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:37:47: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]
utf8Value = new (utf8ValueMemory) String::Utf8Value(value);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:3006:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/addon.cpp:2:
../src/addon.h:163:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local<Function>::New(sc->isolate, sc->jsCallback), 0, nullptr);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:341:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *errorCallback), 1, argv);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:3:
../src/http.h:31:115: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) header.value, String::kNormalString, header.valueLength));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:45:104: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "GET", String::kNormalString, 3));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:48:104: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "PUT", String::kNormalString, 3));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:51:105: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "POST", String::kNormalString, 4));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:54:105: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "HEAD", String::kNormalString, 4));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:57:106: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "PATCH", String::kNormalString, 5));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:60:106: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "TRACE", String::kNormalString, 5));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:63:107: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "DELETE", String::kNormalString, 6));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:66:108: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "OPTIONS", String::kNormalString, 7));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:69:108: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "CONNECT", String::kNormalString, 7));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:99:77: error: no matching member function for call to 'NewInstance'
Local<Object> reqObjectLocal = reqTemplateLocal->GetFunction()->NewInstance();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4111:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4108:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
In file included from ../src/addon.cpp:3:
../src/http.h:102:30: warning: 'SetNamedPropertyHandler' is deprecated [-Wdeprecated-declarations]
headersTemplate->SetNamedPropertyHandler(Request::headers);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:6229:3: note: 'SetNamedPropertyHandler' has been explicitly marked deprecated here
V8_DEPRECATED(
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/addon.cpp:3:
../src/http.h:149:39: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
for (int i = 0; i < headers->Length(); i++) {
~ ^ ~~~~~~~~~~~~~~~~~
../src/http.h:196:53: error: no matching member function for call to 'NewInstance'
return resTemplateLocal->GetFunction()->NewInstance();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4111:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4108:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
In file included from ../src/addon.cpp:3:
../src/http.h:227:108: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
reqObject->SetInternalField(4, String::NewFromOneByte(isolate, (uint8_t *) req.getUrl().value, String::kNormalString, req.getUrl().valueLength));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:293:110: error: no matching member function for call to 'NewInstance'
args.GetReturnValue().Set(newInstance = Local<Function>::New(args.GetIsolate(), httpPersistent)->NewInstance());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4111:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4108:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
In file included from ../src/addon.cpp:3:
../src/http.h:320:159: error: too few arguments to function call, expected 2, have 1
express->Get(String::NewFromUtf8(isolate, "request"))->ToObject()->SetPrototype(Local<Object>::New(args.GetIsolate(), reqTemplate)->GetPrototype());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:3557:3: note: 'SetPrototype' declared here
V8_WARN_UNUSED_RESULT Maybe<bool> SetPrototype(Local<Context> context,
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8config.h:416:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../src/addon.cpp:3:
../src/http.h:321:160: error: too few arguments to function call, expected 2, have 1
express->Get(String::NewFromUtf8(isolate, "response"))->ToObject()->SetPrototype(Local<Object>::New(args.GetIsolate(), resTemplate)->GetPrototype());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:3557:3: note: 'SetPrototype' declared here
V8_WARN_UNUSED_RESULT Maybe<bool> SetPrototype(Local<Context> context,
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8config.h:416:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../src/addon.cpp:3:
../src/http.h:327:48: error: no matching member function for call to 'NewInstance'
args.GetReturnValue().Set(express->NewInstance());
~~~~~~~~~^~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4111:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4108:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
In file included from ../src/addon.cpp:2:
../src/addon.h:258:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *connectionCallback), 1, argv);
^
../src/addon.h:443:48: note: in instantiation of function template specialization 'onConnection<true>' requested here
NODE_SET_METHOD(group, "onConnection", onConnection<isServer>);
^
../src/addon.cpp:8:58: note: in instantiation of member function 'Namespace<true>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "server"), Namespace<uWS::SERVER>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:326:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *disconnectionCallback), 4, argv);
^
../src/addon.h:445:51: note: in instantiation of function template specialization 'onDisconnection<true>' requested here
NODE_SET_METHOD(group, "onDisconnection", onDisconnection<isServer>);
^
../src/addon.cpp:8:58: note: in instantiation of member function 'Namespace<true>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "server"), Namespace<uWS::SERVER>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:290:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *pingCallback), 2, argv);
^
../src/addon.h:456:42: note: in instantiation of function template specialization 'onPing<true>' requested here
NODE_SET_METHOD(group, "onPing", onPing<isServer>);
^
../src/addon.cpp:8:58: note: in instantiation of member function 'Namespace<true>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "server"), Namespace<uWS::SERVER>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:306:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *pongCallback), 2, argv);
^
../src/addon.h:457:42: note: in instantiation of function template specialization 'onPong<true>' requested here
NODE_SET_METHOD(group, "onPong", onPong<isServer>);
^
../src/addon.cpp:8:58: note: in instantiation of member function 'Namespace<true>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "server"), Namespace<uWS::SERVER>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:258:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *connectionCallback), 1, argv);
^
../src/addon.h:443:48: note: in instantiation of function template specialization 'onConnection<false>' requested here
NODE_SET_METHOD(group, "onConnection", onConnection<isServer>);
^
../src/addon.cpp:9:58: note: in instantiation of member function 'Namespace<false>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "client"), Namespace<uWS::CLIENT>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:326:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *disconnectionCallback), 4, argv);
^
../src/addon.h:445:51: note: in instantiation of function template specialization 'onDisconnection<false>' requested here
NODE_SET_METHOD(group, "onDisconnection", onDisconnection<isServer>);
^
../src/addon.cpp:9:58: note: in instantiation of member function 'Namespace<false>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "client"), Namespace<uWS::CLIENT>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:290:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *pingCallback), 2, argv);
^
../src/addon.h:456:42: note: in instantiation of function template specialization 'onPing<false>' requested here
NODE_SET_METHOD(group, "onPing", onPing<isServer>);
^
../src/addon.cpp:9:58: note: in instantiation of member function 'Namespace<false>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "client"), Namespace<uWS::CLIENT>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:306:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *pongCallback), 2, argv);
^
../src/addon.h:457:42: note: in instantiation of function template specialization 'onPong<false>' requested here
NODE_SET_METHOD(group, "onPong", onPong<isServer>);
^
../src/addon.cpp:9:58: note: in instantiation of member function 'Namespace<false>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "client"), Namespace<uWS::CLIENT>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
14 warnings and 17 errors generated.
make: *** [Release/obj.target/uws/src/addon.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/alexandergabriel/awel-personal/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/Users/alexandergabriel/.nvm/versions/node/v10.15.1/bin/node" "/Users/alexandergabriel/awel-personal/node_modules/electron-rebuild/node_modules/.bin/node-gyp" "rebuild" "--target=4.0.4" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source"
gyp ERR! cwd /Users/alexandergabriel/awel-personal/node_modules/uws
gyp ERR! node -v v10.15.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Failed with exit code: 1
Error: gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.1 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/alexandergabriel/awel-personal/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/alexandergabriel/awel-personal/node_modules/uws/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/alexandergabriel/awel-personal/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/alexandergabriel/.electron-gyp/4.0.4',
gyp info spawn args '-Dnode_gyp_dir=/Users/alexandergabriel/awel-personal/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/alexandergabriel/.electron-gyp/4.0.4/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/alexandergabriel/awel-personal/node_modules/uws',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/uws/src/Extensions.o
CXX(target) Release/obj.target/uws/src/Group.o
CXX(target) Release/obj.target/uws/src/Networking.o
CXX(target) Release/obj.target/uws/src/Hub.o
CXX(target) Release/obj.target/uws/src/Node.o
CXX(target) Release/obj.target/uws/src/WebSocket.o
CXX(target) Release/obj.target/uws/src/HTTPSocket.o
CXX(target) Release/obj.target/uws/src/Socket.o
CXX(target) Release/obj.target/uws/src/addon.o
In file included from ../src/addon.cpp:2:
../src/addon.h:21:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, noop), 0, nullptr);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:37:47: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]
utf8Value = new (utf8ValueMemory) String::Utf8Value(value);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:3006:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/addon.cpp:2:
../src/addon.h:163:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local<Function>::New(sc->isolate, sc->jsCallback), 0, nullptr);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:341:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *errorCallback), 1, argv);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:3:
../src/http.h:31:115: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) header.value, String::kNormalString, header.valueLength));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:45:104: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "GET", String::kNormalString, 3));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:48:104: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "PUT", String::kNormalString, 3));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:51:105: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "POST", String::kNormalString, 4));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:54:105: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "HEAD", String::kNormalString, 4));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:57:106: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "PATCH", String::kNormalString, 5));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:60:106: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "TRACE", String::kNormalString, 5));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:63:107: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "DELETE", String::kNormalString, 6));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:66:108: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "OPTIONS", String::kNormalString, 7));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:69:108: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "CONNECT", String::kNormalString, 7));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:99:77: error: no matching member function for call to 'NewInstance'
Local<Object> reqObjectLocal = reqTemplateLocal->GetFunction()->NewInstance();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4111:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4108:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
In file included from ../src/addon.cpp:3:
../src/http.h:102:30: warning: 'SetNamedPropertyHandler' is deprecated [-Wdeprecated-declarations]
headersTemplate->SetNamedPropertyHandler(Request::headers);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:6229:3: note: 'SetNamedPropertyHandler' has been explicitly marked deprecated here
V8_DEPRECATED(
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/addon.cpp:3:
../src/http.h:149:39: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
for (int i = 0; i < headers->Length(); i++) {
~ ^ ~~~~~~~~~~~~~~~~~
../src/http.h:196:53: error: no matching member function for call to 'NewInstance'
return resTemplateLocal->GetFunction()->NewInstance();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4111:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4108:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
In file included from ../src/addon.cpp:3:
../src/http.h:227:108: error: cannot initialize a parameter of type 'v8::NewStringType' with an rvalue of type 'v8::String::NewStringType'
reqObject->SetInternalField(4, String::NewFromOneByte(isolate, (uint8_t *) req.getUrl().value, String::kNormalString, req.getUrl().valueLength));
^~~~~~~~~~~~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:2918:64: note: passing argument to parameter 'type' here
Isolate* isolate, const uint8_t* data, v8::NewStringType type,
^
In file included from ../src/addon.cpp:3:
../src/http.h:293:110: error: no matching member function for call to 'NewInstance'
args.GetReturnValue().Set(newInstance = Local<Function>::New(args.GetIsolate(), httpPersistent)->NewInstance());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4111:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4108:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
In file included from ../src/addon.cpp:3:
../src/http.h:320:159: error: too few arguments to function call, expected 2, have 1
express->Get(String::NewFromUtf8(isolate, "request"))->ToObject()->SetPrototype(Local<Object>::New(args.GetIsolate(), reqTemplate)->GetPrototype());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:3557:3: note: 'SetPrototype' declared here
V8_WARN_UNUSED_RESULT Maybe<bool> SetPrototype(Local<Context> context,
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8config.h:416:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../src/addon.cpp:3:
../src/http.h:321:160: error: too few arguments to function call, expected 2, have 1
express->Get(String::NewFromUtf8(isolate, "response"))->ToObject()->SetPrototype(Local<Object>::New(args.GetIsolate(), resTemplate)->GetPrototype());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:3557:3: note: 'SetPrototype' declared here
V8_WARN_UNUSED_RESULT Maybe<bool> SetPrototype(Local<Context> context,
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8config.h:416:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../src/addon.cpp:3:
../src/http.h:327:48: error: no matching member function for call to 'NewInstance'
args.GetReturnValue().Set(express->NewInstance());
~~~~~~~~~^~~~~~~~~~~
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4111:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/v8.h:4108:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
^
In file included from ../src/addon.cpp:2:
../src/addon.h:258:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *connectionCallback), 1, argv);
^
../src/addon.h:443:48: note: in instantiation of function template specialization 'onConnection<true>' requested here
NODE_SET_METHOD(group, "onConnection", onConnection<isServer>);
^
../src/addon.cpp:8:58: note: in instantiation of member function 'Namespace<true>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "server"), Namespace<uWS::SERVER>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:326:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *disconnectionCallback), 4, argv);
^
../src/addon.h:445:51: note: in instantiation of function template specialization 'onDisconnection<true>' requested here
NODE_SET_METHOD(group, "onDisconnection", onDisconnection<isServer>);
^
../src/addon.cpp:8:58: note: in instantiation of member function 'Namespace<true>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "server"), Namespace<uWS::SERVER>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:290:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *pingCallback), 2, argv);
^
../src/addon.h:456:42: note: in instantiation of function template specialization 'onPing<true>' requested here
NODE_SET_METHOD(group, "onPing", onPing<isServer>);
^
../src/addon.cpp:8:58: note: in instantiation of member function 'Namespace<true>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "server"), Namespace<uWS::SERVER>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:306:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *pongCallback), 2, argv);
^
../src/addon.h:457:42: note: in instantiation of function template specialization 'onPong<true>' requested here
NODE_SET_METHOD(group, "onPong", onPong<isServer>);
^
../src/addon.cpp:8:58: note: in instantiation of member function 'Namespace<true>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "server"), Namespace<uWS::SERVER>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:258:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *connectionCallback), 1, argv);
^
../src/addon.h:443:48: note: in instantiation of function template specialization 'onConnection<false>' requested here
NODE_SET_METHOD(group, "onConnection", onConnection<isServer>);
^
../src/addon.cpp:9:58: note: in instantiation of member function 'Namespace<false>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "client"), Namespace<uWS::CLIENT>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:326:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *disconnectionCallback), 4, argv);
^
../src/addon.h:445:51: note: in instantiation of function template specialization 'onDisconnection<false>' requested here
NODE_SET_METHOD(group, "onDisconnection", onDisconnection<isServer>);
^
../src/addon.cpp:9:58: note: in instantiation of member function 'Namespace<false>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "client"), Namespace<uWS::CLIENT>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:290:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *pingCallback), 2, argv);
^
../src/addon.h:456:42: note: in instantiation of function template specialization 'onPing<false>' requested here
NODE_SET_METHOD(group, "onPing", onPing<isServer>);
^
../src/addon.cpp:9:58: note: in instantiation of member function 'Namespace<false>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "client"), Namespace<uWS::CLIENT>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../src/addon.cpp:2:
../src/addon.h:306:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, *pongCallback), 2, argv);
^
../src/addon.h:457:42: note: in instantiation of function template specialization 'onPong<false>' requested here
NODE_SET_METHOD(group, "onPong", onPong<isServer>);
^
../src/addon.cpp:9:58: note: in instantiation of member function 'Namespace<false>::Namespace' requested here
exports->Set(String::NewFromUtf8(isolate, "client"), Namespace<uWS::CLIENT>(isolate).object);
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:178:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/alexandergabriel/.electron-gyp/4.0.4/include/node/node.h:95:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
14 warnings and 17 errors generated.
make: *** [Release/obj.target/uws/src/addon.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/alexandergabriel/awel-personal/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/Users/alexandergabriel/.nvm/versions/node/v10.15.1/bin/node" "/Users/alexandergabriel/awel-personal/node_modules/electron-rebuild/node_modules/.bin/node-gyp" "rebuild" "--target=4.0.4" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source"
gyp ERR! cwd /Users/alexandergabriel/awel-personal/node_modules/uws
gyp ERR! node -v v10.15.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Failed with exit code: 1
at SafeSubscriber._error (/Users/alexandergabriel/awel-personal/node_modules/spawn-rx/lib/src/index.js:267:84)
at SafeSubscriber.__tryOrUnsub (/Users/alexandergabriel/awel-personal/node_modules/rxjs/internal/Subscriber.js:207:16)
at SafeSubscriber.error (/Users/alexandergabriel/awel-personal/node_modules/rxjs/internal/Subscriber.js:158:26)
at Subscriber._error (/Users/alexandergabriel/awel-personal/node_modules/rxjs/internal/Subscriber.js:92:26)
at Subscriber.error (/Users/alexandergabriel/awel-personal/node_modules/rxjs/internal/Subscriber.js:72:18)
at MapSubscriber.Subscriber._error (/Users/alexandergabriel/awel-personal/node_modules/rxjs/internal/Subscriber.js:92:26)
at MapSubscriber.Subscriber.error (/Users/alexandergabriel/awel-personal/node_modules/rxjs/internal/Subscriber.js:72:18)
at SafeSubscriber._next (/Users/alexandergabriel/awel-personal/node_modules/spawn-rx/lib/src/index.js:242:65)
at SafeSubscriber.__tryOrUnsub (/Users/alexandergabriel/awel-personal/node_modules/rxjs/internal/Subscriber.js:207:16)
at SafeSubscriber.next (/Users/alexandergabriel/awel-personal/node_modules/rxjs/internal/Subscriber.js:145:22)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment