Skip to content
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

Open
danielhelmstedt opened this issue Apr 18, 2020 · 1 comment
Open

No longer builds, V8::Handle deprecated #1

danielhelmstedt opened this issue Apr 18, 2020 · 1 comment

Comments

@danielhelmstedt
Copy link

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

[email protected] install /usr/lib/node_modules/homebridge-midi/node_modules/midi
node-gyp rebuild

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: 2
gyp 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.

@coolmanlume
Copy link

Same ↑ here. Is anyone interested in fixing this?
This package still shows up as a valid inside Homebridge

My ERR log
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/homebridge-midi/node_modules/midi
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! CXX(target) Release/obj.target/midi/src/node-midi.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | x64
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/local/opt/[email protected]/bin/python3.9"
npm ERR! gyp info spawn /usr/local/opt/[email protected]/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/homebridge-midi/node_modules/midi/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/manuel/Library/Caches/node-gyp/12.16.3',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/manuel/Library/Caches/node-gyp/12.16.3/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/usr/local/lib/node_modules/homebridge-midi/node_modules/midi',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../src/node-midi.cpp:14:26: error: no template named 'Handle' in namespace 'v8'
npm ERR!     static void Init(v8::Handle<v8::Object> target)
npm ERR!                      ~~~~^
npm ERR! ../src/node-midi.cpp:33:85: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!         target->Set(Nan::New<v8::String>("output").ToLocalChecked(), t->GetFunction());
npm ERR!                                                                      ~~~~~~~~~~~~~~ ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:6126:3: note: 'GetFunction' declared here
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!   ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8config.h:368:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
npm ERR! #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
npm ERR!                               ^
npm ERR! ../src/node-midi.cpp:76:56: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!         unsigned int portNumber = info[0]->Uint32Value();
npm ERR!                                   ~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2707:3: note: 'Uint32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!   ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8config.h:368:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
npm ERR! #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
npm ERR!                               ^
npm ERR! ../src/node-midi.cpp:88:56: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!         unsigned int portNumber = info[0]->Uint32Value();
npm ERR!                                   ~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2707:3: note: 'Uint32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!   ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8config.h:368:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
npm ERR! #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
npm ERR!                               ^
npm ERR! ../src/node-midi.cpp:105:27: error: no matching conversion for functional-style cast from 'Local<v8::String>' to 'v8::String::Utf8Value'
npm ERR!         std::string name(*v8::String::Utf8Value(info[0].As<v8::String>()));
npm ERR!                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:3142:5: note: candidate constructor not viable: no known conversion from 'Local<v8::String>' to 'const v8::String::Utf8Value' for 1st argument
npm ERR!     Utf8Value(const Utf8Value&) = delete;
npm ERR!     ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:3135:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
npm ERR!     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
npm ERR!     ^
npm ERR! ../src/node-midi.cpp:127:50: error: no matching member function for call to 'ToObject'
npm ERR!         v8::Local<v8::Object> message = info[0]->ToObject();
npm ERR!                                         ~~~~~~~~~^~~~~~~~
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2672:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!                                            ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2686:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
npm ERR!                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!                               ^
npm ERR! ../src/node-midi.cpp:128:107: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!         int32_t messageLength = message->Get(Nan::New<v8::String>("length").ToLocalChecked())->Int32Value();
npm ERR!                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2709:3: note: 'Int32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!   ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8config.h:368:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
npm ERR! #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
npm ERR!                               ^
npm ERR! ../src/node-midi.cpp:128:42: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!         int32_t messageLength = message->Get(Nan::New<v8::String>("length").ToLocalChecked())->Int32Value();
npm ERR!                                          ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
npm ERR!   ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
npm ERR!   declarator __attribute__((deprecated(message)))
npm ERR!                             ^
npm ERR! ../src/node-midi.cpp:131:46: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!             messageOutput.push_back(message->Get(Nan::New<v8::Integer>(i))->Int32Value());
npm ERR!                                              ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
npm ERR!   ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
npm ERR!   declarator __attribute__((deprecated(message)))
npm ERR!                             ^
npm ERR! ../src/node-midi.cpp:131:88: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!             messageOutput.push_back(message->Get(Nan::New<v8::Integer>(i))->Int32Value());
npm ERR!                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2709:3: note: 'Int32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!   ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8config.h:368:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
npm ERR! #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
npm ERR!                               ^
npm ERR! ../src/node-midi.cpp:158:26: error: no template named 'Handle' in namespace 'v8'
npm ERR!     static void Init(v8::Handle<v8::Object> target)
npm ERR!                      ~~~~^
npm ERR! ../src/node-midi.cpp:177:84: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!         target->Set(Nan::New<v8::String>("input").ToLocalChecked(), t->GetFunction());
npm ERR!                                                                     ~~~~~~~~~~~~~~ ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:6126:3: note: 'GetFunction' declared here
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!   ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8config.h:368:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
npm ERR! #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
npm ERR!                               ^
npm ERR! ../src/node-midi.cpp:198:65: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!         v8::Local<v8::Function> emitFunction = input->handle()->Get(Nan::New<v8::String>(symbol_emit).ToLocalChecked()).As<v8::Function>();
npm ERR!                                                                 ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
npm ERR!   ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
npm ERR!   declarator __attribute__((deprecated(message)))
npm ERR!                             ^
npm ERR! ../src/node-midi.cpp:208:23: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!                 data->Set(Nan::New<v8::Number>(i), Nan::New<v8::Integer>(message->message[i]));
npm ERR!                       ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATED("Use maybe version",
npm ERR!   ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
npm ERR!   declarator __attribute__((deprecated(message)))
npm ERR!                             ^
npm ERR! ../src/node-midi.cpp:211:18: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]
npm ERR!             Nan::MakeCallback(input->handle(), emitFunction, 3, info);
npm ERR!                  ^
npm ERR! ../../nan/nan.h:1026:3: note: 'MakeCallback' has been explicitly marked deprecated here
npm ERR!   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
npm ERR!   ^
npm ERR! ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED'
npm ERR! # define NAN_DEPRECATED __attribute__((deprecated))
npm ERR!                                        ^
npm ERR! ../src/node-midi.cpp:262:56: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!         unsigned int portNumber = info[0]->Uint32Value();
npm ERR!                                   ~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2707:3: note: 'Uint32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!   ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8config.h:368:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
npm ERR! #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
npm ERR!                               ^
npm ERR! ../src/node-midi.cpp:274:56: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!         unsigned int portNumber = info[0]->Uint32Value();
npm ERR!                                   ~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2707:3: note: 'Uint32Value' declared here
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
npm ERR!   ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8config.h:368:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
npm ERR! #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
npm ERR!                               ^
npm ERR! ../src/node-midi.cpp:293:27: error: no matching conversion for functional-style cast from 'Local<v8::String>' to 'v8::String::Utf8Value'
npm ERR!         std::string name(*v8::String::Utf8Value(info[0].As<v8::String>()));
npm ERR!                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:3142:5: note: candidate constructor not viable: no known conversion from 'Local<v8::String>' to 'const v8::String::Utf8Value' for 1st argument
npm ERR!     Utf8Value(const Utf8Value&) = delete;
npm ERR!     ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:3135:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
npm ERR!     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
npm ERR!     ^
npm ERR! ../src/node-midi.cpp:322:38: error: no matching member function for call to 'BooleanValue'
npm ERR!         bool filter_sysex = info[0]->BooleanValue();
npm ERR!                             ~~~~~~~~~^~~~~~~~~~~~
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2699:8: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
npm ERR!   bool BooleanValue(Isolate* isolate) const;
npm ERR!        ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2702:51: note: candidate function not viable: requires single argument 'context', but no arguments were provided
npm ERR!                 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
npm ERR!                                                   ^
npm ERR! ../src/node-midi.cpp:323:39: error: no matching member function for call to 'BooleanValue'
npm ERR!         bool filter_timing = info[1]->BooleanValue();
npm ERR!                              ~~~~~~~~~^~~~~~~~~~~~
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2699:8: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
npm ERR!   bool BooleanValue(Isolate* isolate) const;
npm ERR!        ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2702:51: note: candidate function not viable: requires single argument 'context', but no arguments were provided
npm ERR!                 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
npm ERR!                                                   ^
npm ERR! ../src/node-midi.cpp:324:40: error: no matching member function for call to 'BooleanValue'
npm ERR!         bool filter_sensing = info[2]->BooleanValue();
npm ERR!                               ~~~~~~~~~^~~~~~~~~~~~
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2699:8: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
npm ERR!   bool BooleanValue(Isolate* isolate) const;
npm ERR!        ^
npm ERR! /Users/manuel/Library/Caches/node-gyp/12.16.3/include/node/v8.h:2702:51: note: candidate function not viable: requires single argument 'context', but no arguments were provided
npm ERR!                 V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
npm ERR!                                                   ^
npm ERR! ../src/node-midi.cpp:334:10: error: variable has incomplete type 'void'
npm ERR!     void init (v8::Handle<v8::Object> target)
npm ERR!          ^
npm ERR! ../src/node-midi.cpp:334:37: error: expected '(' for function-style cast or type construction
npm ERR!     void init (v8::Handle<v8::Object> target)
npm ERR!                           ~~~~~~~~~~^
npm ERR! ../src/node-midi.cpp:334:20: error: no member named 'Handle' in namespace 'v8'
npm ERR!     void init (v8::Handle<v8::Object> target)
npm ERR!                ~~~~^
npm ERR! fatal error: too many errors emitted, stopping now [-ferror-limit=]
npm ERR! 5 warnings and 20 errors generated.
npm ERR! make: *** [Release/obj.target/midi/src/node-midi.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:310:20)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
npm ERR! gyp ERR! System Darwin 19.6.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/homebridge-midi/node_modules/midi
npm ERR! gyp ERR! node -v v12.16.3
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/manuel/.npm/_logs/2021-03-02T18_05_23_813Z-debug.log

Command failed. Please review log for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants