rxseger / homebridge-bme280

BME280 temperature/humidity/pressure sensor bridge for Homebridge: https://github.com/nfarina/homebridge
MIT License
15 stars 14 forks source link

problem with i2c-bus@1.2.5 (please change to last i2c version) #14

Open luizjunior opened 4 years ago

luizjunior commented 4 years ago

Node.js v12.16.1 npm v6.14.2

pi@domepi:~ $ sudo npm install -g --unsafe-perm homebridge-bme280 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

i2c-bus@1.2.5 install /usr/local/lib/node_modules/homebridge-bme280/node_modules/i2c-bus node-gyp rebuild

make: Entering directory '/usr/local/lib/node_modules/homebridge-bme280/node_modules/i2c-bus/build' CXX(target) Release/obj.target/i2c/src/i2c.o In file included from ../../nan/nan_converters.h:67, from ../../nan/nan.h:202, from ../src/i2c.cc:2: ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Local)’: ../../nan/nan_converters_43_inl.h:18:69: warning: ‘v8::MaybeLocal v8::Value::ToBoolean(v8::Local) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations] val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext()) \ ^ ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’ X(Boolean) ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14, from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2664:59: note: declared here V8_WARN_UNUSED_RESULT MaybeLocal ToBoolean( ^~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../../nan/nan_converters.h:67, from ../../nan/nan.h:202, from ../src/i2c.cc:2: ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Local’: ../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe v8::Value::BooleanValue(v8::Local) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations] return val->NAME ## Value(isolate->GetCurrentContext()); \ ^ ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’ X(bool, Boolean) ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14, from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2702:51: note: declared here V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../../nan/nan_new.h:189, from ../../nan/nan.h:203, from ../src/i2c.cc:2: ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(Nan::FunctionCallback, v8::Local)’: ../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate&, void (&)(const v8::FunctionCallbackInfo&), v8::Local&)’ , obj)); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:4275:31: note: candidate: ‘static v8::MaybeLocal v8::Function::New(v8::Local, v8::FunctionCallback, v8::Local, int, v8::ConstructorBehavior, v8::SideEffectType)’ static MaybeLocal New( ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:4275:31: note: no known conversion for argument 1 from ‘v8::Isolate’ to ‘v8::Local’ In file included from ../../nan/nan_new.h:189, from ../../nan/nan.h:203, from ../src/i2c.cc:2: ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(v8::Local)’: ../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local&)’ return v8::StringObject::New(value).As(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:5531:23: note: candidate: ‘static v8::Local v8::StringObject::New(v8::Isolate, v8::Local)’ static Local New(Isolate isolate, Local value); ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:5531:23: note: candidate expects 2 arguments, 1 provided In file included from ../../nan/nan_new.h:189, from ../../nan/nan.h:203, from ../src/i2c.cc:2: ../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token return v8::StringObject::New(value).As(); ^ ../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token return v8::StringObject::New(value).As(); ^ In file included from ../src/i2c.cc:2: ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)’: ../../nan/nan.h:840:60: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, func, argc, argv); ^ In file included from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/node.h:174:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h:840:60: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, func, argc, argv); ^ In file included from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/node.h:174:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)’: ../../nan/nan.h:855:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, symbol, argc, argv); ^ In file included from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/node.h:167:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h:855:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, symbol, argc, argv); ^ In file included from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/node.h:167:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, const char, int, v8::Local)’: ../../nan/nan.h:870:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, const char, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, method, argc, argv); ^ In file included from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/node.h:160:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h:870:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, const char, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, method, argc, argv); ^ In file included from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/node.h:160:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local)’: ../../nan/nan.h:916:53: error: no matching function for call to ‘v8::Value::ToString()’ v8::Local string = from->ToString(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2668:44: note: candidate: ‘v8::MaybeLocal v8::Value::ToString(v8::Local) const’ V8_WARN_UNUSED_RESULT MaybeLocal ToString( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14, from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2684:31: note: candidate: ‘v8::Local v8::Value::ToString(v8::Isolate) const’ Local ToString(Isolate isolate) const); ^~~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided Local ToString(Isolate isolate) const); ^~~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h:926:74: error: no matching function for call to ‘v8::String::WriteUtf8(char&, int, int, const int&)’ length = string->WriteUtf8(str, staticcast(len), 0, flags); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate, char, int, int, int) const’ int WriteUtf8(Isolate isolate, char buffer, int length = -1, ^~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char’ to ‘v8::Isolate*’ In file included from ../src/i2c.cc:2: ../../nan/nan.h: In member function ‘v8::Local Nan::Callback::Call(v8::Isolate, v8::Local, int, v8::Local) const’: ../../nan/nan.h:1484:5: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] )); ^ In file included from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/node.h:174:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h:1484:5: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] )); ^ In file included from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/node.h:174:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char, const v8::Local&)’: ../../nan/nan.h:1538:64: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] New(persistentHandle)->Set(New(key).ToLocalChecked(), value); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14, from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:3499:22: note: declared here bool Set(Local key, Local value)); ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local&, const v8::Local&)’: ../../nan/nan.h:1544:42: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] New(persistentHandle)->Set(key, value); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14, from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:3499:22: note: declared here bool Set(Local key, Local value)); ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local&)’: ../../nan/nan.h:1550:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] New(persistentHandle)->Set(index, value); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14, from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:3508:22: note: declared here bool Set(uint32_t index, Local value)); ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h: In member function ‘v8::Local Nan::AsyncWorker::GetFromPersistent(const char) const’: ../../nan/nan.h:1556:61: warning: ‘v8::Local v8::Object::Get(v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] New(persistentHandle)->Get(New(key).ToLocalChecked())); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14, from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(Local key)); ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h: In member function ‘v8::Local Nan::AsyncWorker::GetFromPersistent(const v8::Local&) const’: ../../nan/nan.h:1562:55: warning: ‘v8::Local v8::Object::Get(v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] return scope.Escape(New(persistentHandle)->Get(key)); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14, from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(Local key)); ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h: In member function ‘v8::Local Nan::AsyncWorker::GetFromPersistent(uint32_t) const’: ../../nan/nan.h:1567:57: warning: ‘v8::Local v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations] return scope.Escape(New(persistentHandle)->Get(index)); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14, from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:3557:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(uint32_t index)); ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/i2c.cc:2: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker)’: ../../nan/nan.h:1875: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(AsyncExecuteComplete) ^ In file included from /usr/include/c++/8/cassert:44, from /root/.cache/node-gyp/12.16.1/include/node/node_object_wrap.h:26, from ../../nan/nan.h:53, from ../src/i2c.cc:2: ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’: ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent’ has no member named ‘IsNearDeath’ assert(persistent().IsNearDeath()); ^~~ In file included from ../../nan/nan.h:2365, from ../src/i2c.cc:2: ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’: ../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations] persistent().MarkIndependent(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14, from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:570:22: note: declared here V8_INLINE void MarkIndependent()); ^~~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from /usr/include/c++/8/cassert:44, from /root/.cache/node-gyp/12.16.1/include/node/node_object_wrap.h:26, from ../../nan/nan.h:53, from ../src/i2c.cc:2: ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo&)’: ../../nan/nan_objectwrap.h:124:26: error: ‘class Nan::Persistent’ has no member named ‘IsNearDeath’ assert(wrap->handle.IsNearDeath()); ^~~ In file included from ../src/i2c.cc:1: ../src/i2c.cc: At global scope: /root/.cache/node-gyp/12.16.1/include/node/node.h:601:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Local, v8::Local, void*)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^ /root/.cache/node-gyp/12.16.1/include/node/node.h:635:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~ ../src/i2c.cc:88:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(i2c, InitAll) ^~~ In file included from ../src/i2c.cc:95: ../src/./i2cfuncs.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE I2cFuncsAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./i2cfuncs.cc:48:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:95: ../src/./i2cfuncs.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE I2cFuncsSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./i2cfuncs.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:96: ../src/./readbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./readbyte.cc:49:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:96: ../src/./readbyte.cc:50:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:96: ../src/./readbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadByteSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./readbyte.cc:62:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:96: ../src/./readbyte.cc:63:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:97: ../src/./readword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadWordAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./readword.cc:49:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:97: ../src/./readword.cc:50:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:97: ../src/./readword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadWordSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./readword.cc:62:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:97: ../src/./readword.cc:63:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:98: ../src/./readblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./readblock.cc:66:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:98: ../src/./readblock.cc:67:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:98: ../src/./readblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./readblock.cc:98:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:98: ../src/./readblock.cc:99:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:99: ../src/./readi2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadI2cBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./readi2cblock.cc:69:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:99: ../src/./readi2cblock.cc:70:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:99: ../src/./readi2cblock.cc:71:39: error: no matching function for call to ‘v8::Value::Uint32Value()’ u32 length = info[2]->Uint32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Uint32Value( ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:99: ../src/./readi2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadI2cBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./readi2cblock.cc:109:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:99: ../src/./readi2cblock.cc:110:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:99: ../src/./readi2cblock.cc:111:39: error: no matching function for call to ‘v8::Value::Uint32Value()’ u32 length = info[2]->Uint32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Uint32Value( ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:100: ../src/./receivebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReceiveByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./receivebyte.cc:48:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:100: ../src/./receivebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReceiveByteSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./receivebyte.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:101: ../src/./sendbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SendByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./sendbyte.cc:47:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:101: ../src/./sendbyte.cc:48:35: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 byte = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:101: ../src/./sendbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SendByteSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./sendbyte.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:101: ../src/./sendbyte.cc:61:35: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 byte = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:102: ../src/./setaddr.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SetAddrAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./setaddr.cc:47:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:102: ../src/./setaddr.cc:48:34: error: no matching function for call to ‘v8::Value::Int32Value()’ int addr = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:102: ../src/./setaddr.cc:49:44: error: no matching function for call to ‘v8::Value::BooleanValue()’ bool forceAccess = info[2]->BooleanValue(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2699:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate) const’ bool BooleanValue(Isolate isolate) const; ^~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2699:8: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14, from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2702:51: note: candidate: ‘v8::Maybe v8::Value::BooleanValue(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2702:51: note: candidate expects 1 argument, 0 provided V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/i2c.cc:102: ../src/./setaddr.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SetAddrSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./setaddr.cc:61:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:102: ../src/./setaddr.cc:62:34: error: no matching function for call to ‘v8::Value::Int32Value()’ int addr = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:102: ../src/./setaddr.cc:63:44: error: no matching function for call to ‘v8::Value::BooleanValue()’ bool forceAccess = info[2]->BooleanValue(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2699:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate) const’ bool BooleanValue(Isolate isolate) const; ^~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2699:8: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14, from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2702:51: note: candidate: ‘v8::Maybe v8::Value::BooleanValue(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2702:51: note: candidate expects 1 argument, 0 provided V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^~~~ /root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/i2c.cc:103: ../src/./writebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./writebyte.cc:49:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:103: ../src/./writebyte.cc:50:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:103: ../src/./writebyte.cc:51:35: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 byte = info[2]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:103: ../src/./writebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteByteSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./writebyte.cc:63:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:103: ../src/./writebyte.cc:64:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:103: ../src/./writebyte.cc:65:35: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 byte = info[2]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:104: ../src/./writeword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteWordAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./writeword.cc:49:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:104: ../src/./writeword.cc:50:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:104: ../src/./writeword.cc:51:36: error: no matching function for call to ‘v8::Value::Int32Value()’ u16 word = info[2]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:104: ../src/./writeword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteWordSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./writeword.cc:64:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:104: ../src/./writeword.cc:65:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:104: ../src/./writeword.cc:66:36: error: no matching function for call to ‘v8::Value::Int32Value()’ u16 word = info[2]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:105: ../src/./writeblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./writeblock.cc:70:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:105: ../src/./writeblock.cc:71:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:105: ../src/./writeblock.cc:72:39: error: no matching function for call to ‘v8::Value::Uint32Value()’ u32 length = info[2]->Uint32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Uint32Value( ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:105: ../src/./writeblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./writeblock.cc:110:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:105: ../src/./writeblock.cc:111:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:105: ../src/./writeblock.cc:112:39: error: no matching function for call to ‘v8::Value::Uint32Value()’ u32 length = info[2]->Uint32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Uint32Value( ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:106: ../src/./writei2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteI2cBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./writei2cblock.cc:68:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:106: ../src/./writei2cblock.cc:69:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:106: ../src/./writei2cblock.cc:70:39: error: no matching function for call to ‘v8::Value::Uint32Value()’ u32 length = info[2]->Uint32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Uint32Value( ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:106: ../src/./writei2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteI2cBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./writei2cblock.cc:108:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:106: ../src/./writei2cblock.cc:109:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 cmd = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:106: ../src/./writei2cblock.cc:110:39: error: no matching function for call to ‘v8::Value::Uint32Value()’ u32 length = info[2]->Uint32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Uint32Value( ^~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:107: ../src/./writequick.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteQuickAsync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./writequick.cc:47:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:107: ../src/./writequick.cc:48:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 bit = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:107: ../src/./writequick.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteQuickSync(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/./writequick.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’ int fd = info[0]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided In file included from ../src/i2c.cc:107: ../src/./writequick.cc:61:34: error: no matching function for call to ‘v8::Value::Int32Value()’ u8 bit = info[1]->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63, from ../src/i2c.cc:1: /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; ^~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided /root/.cache/node-gyp/12.16.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfo&)]’: /root/.cache/node-gyp/12.16.1/include/node/node_object_wrap.h:85:78: required from here /root/.cache/node-gyp/12.16.1/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] reinterpret_cast(callback), type); ^~~~~~~~ /root/.cache/node-gyp/12.16.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfo&)]’: ../../nan/nan_object_wrap.h:66:61: required from here /root/.cache/node-gyp/12.16.1/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] make: *** [i2c.target.mk:111: Release/obj.target/i2c/src/i2c.o] Error 1 make: Leaving directory '/usr/local/lib/node_modules/homebridge-bme280/node_modules/i2c-bus/build' 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 (events.js:311:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.19.97-v7+ 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 /usr/local/lib/node_modules/homebridge-bme280/node_modules/i2c-bus gyp ERR! node -v v12.16.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! i2c-bus@1.2.5 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the i2c-bus@1.2.5 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! /root/.npm/_logs/2020-03-14T02_58_34_364Z-debug.log

MegaGio94 commented 4 years ago

Hi, i have the exact same problem, probably related to some dependencies, while using the docker version of homebridge ( Node.js v12.16.3, npm v6.14.4, homebridge v1.1.0). The workaround for me was run a separate instance of an older version of homebridge with node v6.17.0 and npm v3.10.10.

MegaGio94 commented 4 years ago

It's strange because the Node.js I2C driver for the BME280 (called bme280) has dependency with i2c-bus v5.2.0 and here install the v1.2.5