Skip to content

Instantly share code, notes, and snippets.

@zippy
Created December 26, 2019 20:47
Show Gist options
  • Save zippy/a40aba00b3a482e30f64d48d823d5598 to your computer and use it in GitHub Desktop.
Save zippy/a40aba00b3a482e30f64d48d823d5598 to your computer and use it in GitHub Desktop.
In file included from ../sleep.cc:2:
../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
../sleep.cc: At global scope:
../sleep.cc:6:11: error: 'v8::Handle' has not been declared
using v8::Handle;
^~~~~~
../sleep.cc: In function 'void init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)':
../sleep.cc:103:53: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()'
Nan::New<FunctionTemplate>(MSleep)->GetFunction());
^
In file included from /home/eric/.cache/node-gyp/12.13.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../sleep.cc:2:
/home/eric/.cache/node-gyp/12.13.0/include/node/v8.h:5995:46: note: candidate: 'v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)'
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^~~~~~~~~~~
/home/eric/.cache/node-gyp/12.13.0/include/node/v8.h:5995:46: note: candidate expects 1 argument, 0 provided
../sleep.cc:105:54: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()'
Nan::New<FunctionTemplate>(MUSleep)->GetFunction());
^
In file included from /home/eric/.cache/node-gyp/12.13.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../sleep.cc:2:
/home/eric/.cache/node-gyp/12.13.0/include/node/v8.h:5995:46: note: candidate: 'v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)'
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^~~~~~~~~~~
/home/eric/.cache/node-gyp/12.13.0/include/node/v8.h:5995:46: note: candidate expects 1 argument, 0 provided
In file included from ../../nan/nan.h:54,
from ../sleep.cc:2:
../sleep.cc: At global scope:
/home/eric/.cache/node-gyp/12.13.0/include/node/node.h:560:43: warning: cast between incompatible function types from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void (*)(v8::Local<v8::Object>)'} to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/eric/.cache/node-gyp/12.13.0/include/node/node.h:594:3: note: in expansion of macro 'NODE_MODULE_X'
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../sleep.cc:109:1: note: in expansion of macro 'NODE_MODULE'
NODE_MODULE(node_sleep, init)
^~~~~~~~~~~
In file included from /home/eric/.cache/node-gyp/12.13.0/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../sleep.cc:2:
/home/eric/.cache/node-gyp/12.13.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
/home/eric/.cache/node-gyp/12.13.0/include/node/node_object_wrap.h:84:78: required from here
/home/eric/.cache/node-gyp/12.13.0/include/node/v8.h:10004:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/eric/.cache/node-gyp/12.13.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
../../nan/nan_object_wrap.h:65:61: required from here
/home/eric/.cache/node-gyp/12.13.0/include/node/v8.h:10004:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
make: *** [node_sleep.target.mk:105: Release/obj.target/node_sleep/sleep.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/nix/store/kkyjkmxbzcfc844mrwpiwhdqkp9wnn02-nodejs-12.13.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 5.3.0-7625-generic
gyp ERR! command "/nix/store/kkyjkmxbzcfc844mrwpiwhdqkp9wnn02-nodejs-12.13.0/bin/node" "/nix/store/kkyjkmxbzcfc844mrwpiwhdqkp9wnn02-nodejs-12.13.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/eric/code/metacurrency/holochain/final-exam/apps/passthrough-dna/test/node_modules/sleep
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN test No description
npm WARN test No repository field.
npm WARN test No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sleep@5.2.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sleep@5.2.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/eric/.npm/_logs/2019-12-26T20_44_13_635Z-debug.log
got unhandledRejection: Error: Command failed: npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment