-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No longer builds, V8::Handle deprecated #1
Comments
Same ↑ here. Is anyone interested in fixing this? My ERR log
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, this package is no longer building in current installs (node 12), due to the deprecation of V8::Handle in favour of V8::Local. I have successfully built using node 11, however this isn't a valid workaround for my situation.
Install log as follows
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
make: Entering directory '/usr/lib/node_modules/homebridge-midi/node_modules/midi/build'
CXX(target) Release/obj.target/midi/src/node-midi.o
In file included from ../src/node-midi.cpp:1:
../../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)
^
../src/node-midi.cpp: At global scope:
../src/node-midi.cpp:14:26: error: ‘v8::Handle’ has not been declared
static void Init(v8::Handlev8::Object target)
^~~~~~
../src/node-midi.cpp:14:32: error: expected ‘,’ or ‘...’ before ‘<’ token
static void Init(v8::Handlev8::Object target)
^
../src/node-midi.cpp: In static member function ‘static void NodeMidiOutput::Init(int)’:
../src/node-midi.cpp:33:9: error: ‘target’ was not declared in this scope
target->Set(Nan::Newv8::String("output").ToLocalChecked(), t->GetFunction());
^~~~~~
../src/node-midi.cpp:33:9: note: suggested alternative: ‘tzset’
target->Set(Nan::Newv8::String("output").ToLocalChecked(), t->GetFunction());
^~~~~~
tzset
../src/node-midi.cpp:33:85: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
target->Set(Nan::Newv8::String("output").ToLocalChecked(), t->GetFunction());
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:6126:46: note: candidate: ‘v8::MaybeLocalv8::Function v8::FunctionTemplate::GetFunction(v8::Localv8::Context)’
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided
../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiOutput::GetPortName(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/node-midi.cpp:76:56: error: no matching function for call to ‘v8::Value::Uint32Value()’
unsigned int portNumber = info[0]->Uint32Value();
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiOutput::OpenPort(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/node-midi.cpp:88:56: error: no matching function for call to ‘v8::Value::Uint32Value()’
unsigned int portNumber = info[0]->Uint32Value();
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiOutput::OpenVirtualPort(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/node-midi.cpp:105:73: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::String)’
std::string name(v8::String::Utf8Value(info[0].Asv8::String()));
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:3135:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate, v8::Localv8::Value)’
Utf8Value(Isolate* isolate, Localv8::Value obj);
^~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:3135:5: note: candidate expects 2 arguments, 1 provided
../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiOutput::SendMessage(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/node-midi.cpp:127:59: error: no matching function for call to ‘v8::Value::ToObject()’
v8::Localv8::Object message = info[0]->ToObject();
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:27,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate: ‘v8::Localv8::Object v8::Value::ToObject(v8::Isolate*) const’
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/node-midi.cpp:128:93: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
ength = message->Get(Nan::Newv8::String("length").ToLocalChecked())->Int32Value();
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:27,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:3553:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/node-midi.cpp:128:107: error: no matching function for call to ‘v8::Value::Int32Value()’
= message->Get(Nan::Newv8::String("length").ToLocalChecked())->Int32Value();
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/node-midi.cpp:131:74: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
messageOutput.push_back(message->Get(Nan::Newv8::Integer(i))->Int32Value());
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:27,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:3553:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/node-midi.cpp:131:88: error: no matching function for call to ‘v8::Value::Int32Value()’
messageOutput.push_back(message->Get(Nan::Newv8::Integer(i))->Int32Value());
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/node-midi.cpp: At global scope:
../src/node-midi.cpp:158:26: error: ‘v8::Handle’ has not been declared
static void Init(v8::Handlev8::Object target)
^~~~~~
../src/node-midi.cpp:158:32: error: expected ‘,’ or ‘...’ before ‘<’ token
static void Init(v8::Handlev8::Object target)
^
../src/node-midi.cpp: In static member function ‘static void NodeMidiInput::Init(int)’:
../src/node-midi.cpp:177:9: error: ‘target’ was not declared in this scope
target->Set(Nan::Newv8::String("input").ToLocalChecked(), t->GetFunction());
^~~~~~
../src/node-midi.cpp:177:9: note: suggested alternative: ‘tzset’
target->Set(Nan::Newv8::String("input").ToLocalChecked(), t->GetFunction());
^~~~~~
tzset
../src/node-midi.cpp:177:84: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
target->Set(Nan::Newv8::String("input").ToLocalChecked(), t->GetFunction());
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:6126:46: note: candidate: ‘v8::MaybeLocalv8::Function v8::FunctionTemplate::GetFunction(v8::Localv8::Context)’
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided
../src/node-midi.cpp: In static member function ‘static void NodeMidiInput::EmitMessage(uv_async_t*)’:
../src/node-midi.cpp:198:119: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
ut->handle()->Get(Nan::Newv8::String(symbol_emit).ToLocalChecked()).Asv8::Function();
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:27,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:3553:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/node-midi.cpp:208:94: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
data->Set(Nan::Newv8::Number(i), Nan::Newv8::Integer(message->message[i]));
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:27,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:3499:22: note: declared here
bool Set(Local key, Local value));
^~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/node-midi.cpp:211:69: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(input->handle(), emitFunction, 3, info);
^
In file included from ../src/node-midi.cpp:1:
../../nan/nan.h:1024:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
../src/node-midi.cpp:211:69: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(input->handle(), emitFunction, 3, info);
^
In file included from ../src/node-midi.cpp:1:
../../nan/nan.h:1024:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiInput::GetPortName(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/node-midi.cpp:262:56: error: no matching function for call to ‘v8::Value::Uint32Value()’
unsigned int portNumber = info[0]->Uint32Value();
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiInput::OpenPort(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/node-midi.cpp:274:56: error: no matching function for call to ‘v8::Value::Uint32Value()’
unsigned int portNumber = info[0]->Uint32Value();
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiInput::OpenVirtualPort(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/node-midi.cpp:293:73: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::String)’
std::string name(v8::String::Utf8Value(info[0].Asv8::String()));
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:3135:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate, v8::Localv8::Value)’
Utf8Value(Isolate* isolate, Localv8::Value obj);
^~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:3135:5: note: candidate expects 2 arguments, 1 provided
../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiInput::IgnoreTypes(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/node-midi.cpp:322:51: error: no matching function for call to ‘v8::Value::BooleanValue()’
bool filter_sysex = info[0]->BooleanValue();
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2699:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
bool BooleanValue(Isolate* isolate) const;
^~~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2699:8: note: candidate expects 1 argument, 0 provided
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:27,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2702:51: note: candidate: ‘v8::Maybe v8::Value::BooleanValue(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2702:51: note: candidate expects 1 argument, 0 provided
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/node-midi.cpp:323:52: error: no matching function for call to ‘v8::Value::BooleanValue()’
bool filter_timing = info[1]->BooleanValue();
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2699:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
bool BooleanValue(Isolate* isolate) const;
^~~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2699:8: note: candidate expects 1 argument, 0 provided
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:27,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2702:51: note: candidate: ‘v8::Maybe v8::Value::BooleanValue(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2702:51: note: candidate expects 1 argument, 0 provided
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/node-midi.cpp:324:53: error: no matching function for call to ‘v8::Value::BooleanValue()’
bool filter_sensing = info[2]->BooleanValue();
^
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2699:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
bool BooleanValue(Isolate* isolate) const;
^~~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2699:8: note: candidate expects 1 argument, 0 provided
In file included from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:27,
from /home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2702:51: note: candidate: ‘v8::Maybe v8::Value::BooleanValue(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8.h:2702:51: note: candidate expects 1 argument, 0 provided
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/node-midi.cpp: At global scope:
../src/node-midi.cpp:334:20: error: variable or field ‘init’ declared void
void init (v8::Handlev8::Object target)
^~~~~~
../src/node-midi.cpp:334:20: error: ‘Handle’ is not a member of ‘v8’
../src/node-midi.cpp:334:37: error: expected primary-expression before ‘>’ token
void init (v8::Handlev8::Object target)
^
../src/node-midi.cpp:334:39: error: ‘target’ was not declared in this scope
void init (v8::Handlev8::Object target)
^~~~~~
../src/node-midi.cpp:334:39: note: suggested alternative: ‘tzset’
void init (v8::Handlev8::Object target)
^~~~~~
tzset
In file included from ../../nan/nan.h:54,
from ../src/node-midi.cpp:1:
../src/node-midi.cpp:339:23: error: ‘init’ was not declared in this scope
NODE_MODULE(midi, init)
^~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc),
^~~~~~~
../src/node-midi.cpp:339:5: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(midi, init)
^~~~~~~~~~~
../src/node-midi.cpp:339:23: note: suggested alternative: ‘int’
NODE_MODULE(midi, init)
^~~~
/home/homebridge/.cache/node-gyp/12.16.2/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc),
^~~~~~~
../src/node-midi.cpp:339:5: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(midi, init)
^~~~~~~~~~~
In file included from ../src/node-midi.cpp:6:
../src/lib/RtMidi/RtMidi.cpp: In function ‘void* alsaMidiHandler(void*)’:
../src/lib/RtMidi/RtMidi.cpp:1228:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
if ( ev->data.ext.len > apiData->bufferSize ) {
^~
../src/lib/RtMidi/RtMidi.cpp:1239:5: note: here
default:
^~~~~~~
make: *** [midi.target.mk:111: Release/obj.target/midi/src/node-midi.o] Error 1
make: Leaving directory '/usr/lib/node_modules/homebridge-midi/node_modules/midi/build'
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:310:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.75-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/homebridge-midi/node_modules/midi
gyp ERR! node -v v12.16.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/homebridge/.npm/_logs/2020-04-18T15_35_42_234Z-debug.log
Command failed. Please review log for details.
The text was updated successfully, but these errors were encountered: