gyp info it worked if it ends with ok gyp info using node-gyp@8.3.0 gyp info using node@16.13.1 | darwin | arm64 gyp info find Python using Python version 3.9.6 found at "/Applications/Xcode.app/Contents/Developer/usr/bin/python3" gyp info spawn /Applications/Xcode.app/Contents/Developer/usr/bin/python3 gyp info spawn args [ gyp info spawn args '/usr/local/lib/node_modules/npm/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/fabiengagnon/sites/vu_old_wrapper/node_modules/uws/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/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/fabiengagnon/Library/Caches/node-gyp/16.13.1', gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Users/fabiengagnon/sites/vu_old_wrapper/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 args ] 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 In file included from ../src/Group.cpp:1: In file included from ../src/Group.h:5: ../src/HTTPSocket.h:207:63: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] int offset = transformData.hasHead ? 0 : std::sprintf(dst, "HTTP/1.1 200 OK\r\nContent-Length: %u\r\n\r\n", (unsigned int) length); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ 1 warning generated. CXX(target) Release/obj.target/uws/src/Networking.o CXX(target) Release/obj.target/uws/src/Hub.o In file included from ../src/Hub.cpp:1: In file included from ../src/Hub.h:4: In file included from ../src/Group.h:5: ../src/HTTPSocket.h:207:63: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] int offset = transformData.hasHead ? 0 : std::sprintf(dst, "HTTP/1.1 200 OK\r\nContent-Length: %u\r\n\r\n", (unsigned int) length); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ 1 warning generated. CXX(target) Release/obj.target/uws/src/Node.o CXX(target) Release/obj.target/uws/src/WebSocket.o In file included from ../src/WebSocket.cpp:2: In file included from ../src/Group.h:5: ../src/HTTPSocket.h:207:63: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] int offset = transformData.hasHead ? 0 : std::sprintf(dst, "HTTP/1.1 200 OK\r\nContent-Length: %u\r\n\r\n", (unsigned int) length); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ 1 warning generated. CXX(target) Release/obj.target/uws/src/HTTPSocket.o In file included from ../src/HTTPSocket.cpp:1: ../src/HTTPSocket.h:207:63: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] int offset = transformData.hasHead ? 0 : std::sprintf(dst, "HTTP/1.1 200 OK\r\nContent-Length: %u\r\n\r\n", (unsigned int) length); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ 1 warning generated. 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:1: In file included from ../src/../src/uWS.h:4: In file included from ../src/Hub.h:4: In file included from ../src/Group.h:5: ../src/HTTPSocket.h:207:63: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] int offset = transformData.hasHead ? 0 : std::sprintf(dst, "HTTP/1.1 200 OK\r\nContent-Length: %u\r\n\r\n", (unsigned int) length); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ In file included from ../src/addon.cpp:2: In file included from ../src/addon.h:1: In file included from /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/node.h:63: In file included from /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:30: /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8-internal.h:492:50: error: 'T' does not refer to a value !std::is_same>::value>::Perform(data); ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8-internal.h:489:17: note: declared here template ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8-internal.h:492:38: error: no member named 'remove_cv_t' in namespace 'std'; did you mean 'remove_if'? !std::is_same>::value>::Perform(data); ~~~~~^~~~~~~~~~~ remove_if /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove_if.h:24:1: note: 'remove_if' declared here remove_if(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) ^ In file included from ../src/addon.cpp:2: In file included from ../src/addon.h:1: In file included from /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/node.h:63: In file included from /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:30: /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8-internal.h:492:52: error: expected '(' for function-style cast or type construction !std::is_same>::value>::Perform(data); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8-internal.h:492:63: error: no member named 'Perform' in the global namespace !std::is_same>::value>::Perform(data); ~~^ 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::New(isolate, noop), 0, nullptr); ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/node.h:183:1: note: 'MakeCallback' has been explicitly marked deprecated here NODE_DEPRECATED("Use MakeCallback(..., async_context)", ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/node.h:101:20: note: expanded from macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^ In file included from ../src/addon.cpp:2: ../src/addon.h:37:47: error: no matching constructor for initialization of 'String::Utf8Value' utf8Value = new (utf8ValueMemory) String::Utf8Value(value); ^ ~~~~~ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:3588:5: note: candidate constructor not viable: no known conversion from 'const Local' to 'const Utf8Value' for 1st argument Utf8Value(const Utf8Value&) = delete; ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:3581:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Utf8Value(Isolate* isolate, Local obj); ^ In file included from ../src/addon.cpp:2: ../src/addon.h:45:73: warning: 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] ArrayBuffer::Contents contents = arrayBufferView->Buffer()->GetContents(); ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:5614:3: note: 'GetContents' has been explicitly marked deprecated here V8_DEPRECATED("Use GetBackingStore. See http://crbug.com/v8/9908.") ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8config.h:454:35: note: expanded from macro 'V8_DEPRECATED' # define V8_DEPRECATED(message) [[deprecated(message)]] ^ In file included from ../src/addon.cpp:2: ../src/addon.h:50:59: warning: 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] ArrayBuffer::Contents contents = arrayBuffer->GetContents(); ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:5614:3: note: 'GetContents' has been explicitly marked deprecated here V8_DEPRECATED("Use GetBackingStore. See http://crbug.com/v8/9908.") ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8config.h:454:35: note: expanded from macro 'V8_DEPRECATED' # define V8_DEPRECATED(message) [[deprecated(message)]] ^ In file included from ../src/addon.cpp:2: ../src/addon.h:79:83: error: too few arguments to function call, single argument 'context' was not specified uWS::Group *group = hub.createGroup(args[0]->IntegerValue(), args[1]->IntegerValue()); ~~~~~~~~~~~~~~~~~~~~~ ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:3101:40: note: 'IntegerValue' declared here V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^ In file included from ../src/addon.cpp:2: ../src/addon.h:79:108: error: too few arguments to function call, single argument 'context' was not specified uWS::Group *group = hub.createGroup(args[0]->IntegerValue(), args[1]->IntegerValue()); ~~~~~~~~~~~~~~~~~~~~~ ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:3101:40: note: 'IntegerValue' declared here V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^ In file included from ../src/addon.cpp:2: ../src/addon.h:102:72: warning: 'New' is deprecated: Use the version that takes a BackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] return opCode == uWS::OpCode::BINARY ? (Local) ArrayBuffer::New(isolate, (char *) message, length) : (Local) String::NewFromUtf8(isolate, message, String::kNormalString, length); ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:5516:3: note: 'New' has been explicitly marked deprecated here V8_DEPRECATED( ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8config.h:454:35: note: expanded from macro 'V8_DEPRECATED' # define V8_DEPRECATED(message) [[deprecated(message)]] ^ In file included from ../src/addon.cpp:2: ../src/addon.h:102:174: error: no member named 'kNormalString' in 'v8::String' return opCode == uWS::OpCode::BINARY ? (Local) ArrayBuffer::New(isolate, (char *) message, length) : (Local) String::NewFromUtf8(isolate, message, String::kNormalString, length); ~~~~~~~~^ ../src/addon.h:163:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local::New(sc->isolate, sc->jsCallback), 0, nullptr); ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/node.h:183:1: note: 'MakeCallback' has been explicitly marked deprecated here NODE_DEPRECATED("Use MakeCallback(..., async_context)", ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/node.h:101:20: note: expanded from macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^ In file included from ../src/addon.cpp:2: ../src/addon.h:172:62: error: too few arguments to function call, single argument 'context' was not specified uWS::OpCode opCode = (uWS::OpCode) args[2]->IntegerValue(); ~~~~~~~~~~~~~~~~~~~~~ ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:3101:40: note: 'IntegerValue' declared here V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^ In file included from ../src/addon.cpp:2: ../src/addon.h:223:60: error: too few arguments to function call, single argument 'context' was not specified uv_fileno((handle = getTcpHandle(args[0]->ToObject()->GetAlignedPointerFromInternalField(0))), (uv_os_fd_t *) &ticket->fd); ~~~~~~~~~~~~~~~~~ ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:3060:44: note: 'ToObject' declared here V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^ In file included from ../src/addon.cpp:2: ../src/addon.h:223:61: error: member reference type 'MaybeLocal' is not a pointer; did you mean to use '.'? uv_fileno((handle = getTcpHandle(args[0]->ToObject()->GetAlignedPointerFromInternalField(0))), (uv_os_fd_t *) &ticket->fd); ~~~~~~~~~~~~~~~~~~~^~ . ../src/addon.h:223:63: error: no member named 'GetAlignedPointerFromInternalField' in 'v8::MaybeLocal' uv_fileno((handle = getTcpHandle(args[0]->ToObject()->GetAlignedPointerFromInternalField(0))), (uv_os_fd_t *) &ticket->fd); ~~~~~~~~~~~~~~~~~~~ ^ ../src/addon.h:225:44: error: too few arguments to function call, single argument 'context' was not specified ticket->fd = args[0]->IntegerValue(); ~~~~~~~~~~~~~~~~~~~~~ ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:3101:40: note: 'IntegerValue' declared here V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^ In file included from ../src/addon.cpp:2: ../src/addon.h:225:22: error: assigning to 'uv_os_sock_t' (aka 'int') from incompatible type 'Maybe' (aka 'Maybe') ticket->fd = args[0]->IntegerValue(); ^~~~~~~~~~~~~~~~~~~~~~~ ../src/addon.h:339:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *errorCallback), 1, argv); ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/node.h:183:1: note: 'MakeCallback' has been explicitly marked deprecated here NODE_DEPRECATED("Use MakeCallback(..., async_context)", ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/node.h:101:20: note: expanded from macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^ In file included from ../src/addon.cpp:2: ../src/addon.h:349:81: error: too few arguments to function call, single argument 'context' was not specified unwrapSocket(args[0].As())->close(args[1]->IntegerValue(), nativeString.getData(), nativeString.getLength()); ~~~~~~~~~~~~~~~~~~~~~ ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:3101:40: note: 'IntegerValue' declared here V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^ In file included from ../src/addon.cpp:2: ../src/addon.h:361:40: error: too few arguments to function call, single argument 'context' was not specified group->close(args[1]->IntegerValue(), nativeString.getData(), nativeString.getLength()); ~~~~~~~~~~~~~~~~~~~~~ ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:3101:40: note: 'IntegerValue' declared here V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^ In file included from ../src/addon.cpp:2: ../src/addon.h:372:48: error: too few arguments to function call, single argument 'isolate' was not specified uWS::OpCode opCode = args[2]->BooleanValue() ? uWS::OpCode::BINARY : uWS::OpCode::TEXT; ~~~~~~~~~~~~~~~~~~~~~ ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:3096:8: note: 'BooleanValue' declared here bool BooleanValue(Isolate* isolate) const; ^ In file included from ../src/addon.cpp:2: ../src/addon.h:379:62: error: too few arguments to function call, single argument 'context' was not specified uWS::OpCode opCode = (uWS::OpCode) args[1]->IntegerValue(); ~~~~~~~~~~~~~~~~~~~~~ ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:3101:40: note: 'IntegerValue' declared here V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^ In file included from ../src/addon.cpp:2: ../src/addon.h:403:40: error: too few arguments to function call, expected 4, have 3 cb->Call(Null(isolate), 1, argv); ~~~~~~~~ ^ /Users/fabiengagnon/Library/Caches/node-gyp/16.13.1/include/node/v8.h:4776:43: note: 'Call' declared here V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 7 warnings and 20 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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (node:events:390:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) gyp ERR! System Darwin 23.2.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/fabiengagnon/sites/vu_old_wrapper/node_modules/uws gyp ERR! node -v v16.13.1 gyp ERR! node-gyp -v v8.3.0 gyp ERR! not ok