pi@raspberrypi:~/.node-red $ npm rebuild
i2c@0.2.3 install /home/pi/.node-red/node_modules/i2c
node-gyp rebuild
make: Entering directory '/home/pi/.node-red/node_modules/i2c/build'
CXX(target) Release/obj.target/i2c/src/i2c.o
In file included from ../node_modules/nan/nan.h:190:0,
from ../src/i2c.cc:3:
../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’:
../node_modules/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
^
In file included from ../node_modules/nan/nan_converters.h:59:0,
from ../node_modules/nan/nan.h:195,
from ../src/i2c.cc:3:
../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::ToFactoryBasev8::Boolean::return_t Nan::ToFactoryv8::Boolean::convert(v8::Localv8::Value)’:
../node_modules/nan/nan_converters_43_inl.h:15:45: warning: ‘v8::MaybeLocalv8::Boolean v8::Value::ToBoolean(v8::Localv8::Context) const’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2663): ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
return val->To ## TYPE(GetCurrentContext());
^
../node_modules/nan/nan_converters_43_inl.h:18:1: note: in expansion of macro ‘X’
X(Boolean)
^
../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::ValueFactoryBase::return_t Nan::ToFactory::convert(v8::Localv8::Value)’:
../node_modules/nan/nan_converters_43_inl.h:31:48: warning: ‘v8::Maybe v8::Value::BooleanValue(v8::Localv8::Context) const’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2701): BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
return val->NAME ## Value(GetCurrentContext());
^
../node_modules/nan/nan_converters_43_inl.h:34:1: note: in expansion of macro ‘X’
X(bool, Boolean)
^
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:196,
from ../src/i2c.cc:3:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::FactoryBasev8::Function::return_t Nan::Factoryv8::Function::New(Nan::FunctionCallback, v8::Localv8::Value)’:
../node_modules/nan/nan_implementation_12_inl.h:109:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfov8::Value&), v8::Localv8::Object&)’
, obj));
^
../node_modules/nan/nan_implementation_12_inl.h:109:32: note: candidate is:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:4275:31: note: static v8::MaybeLocalv8::Function v8::Function::New(v8::Localv8::Context, v8::FunctionCallback, v8::Localv8::Value, int, v8::ConstructorBehavior, v8::SideEffectType)
static MaybeLocal New(
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:4275:31: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Localv8::Context’
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:196,
from ../src/i2c.cc:3:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::FactoryBasev8::StringObject::return_t Nan::Factoryv8::StringObject::New(v8::Localv8::String)’:
../node_modules/nan/nan_implementation_12_inl.h:345:37: error: no matching function for call to ‘v8::StringObject::New(v8::Localv8::String&)’
return v8::StringObject::New(value).Asv8::StringObject();
^
../node_modules/nan/nan_implementation_12_inl.h:345:37: note: candidate is:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:5531:23: note: static v8::Localv8::Value v8::StringObject::New(v8::Isolate*, v8::Localv8::String)
static Local New(Isolate* isolate, Local value);
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:5531:23: note: candidate expects 2 arguments, 1 provided
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:196,
from ../src/i2c.cc:3:
../node_modules/nan/nan_implementation_12_inl.h:345:58: error: expected primary-expression before ‘>’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
../node_modules/nan/nan_implementation_12_inl.h:345:60: error: expected primary-expression before ‘)’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
In file included from ../src/i2c.cc:3:0:
../node_modules/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’:
../node_modules/nan/nan.h:817:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:173): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
../node_modules/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’:
../node_modules/nan/nan.h:831:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:166): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
../node_modules/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char, int, v8::Localv8::Value)’:
../node_modules/nan/nan.h:845:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:159): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
../node_modules/nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Localv8::Value)’:
../node_modules/nan/nan.h:890:53: error: no matching function for call to ‘v8::Value::ToString()’
v8::Localv8::String string = from->ToString();
^
../node_modules/nan/nan.h:890:53: note: candidates are:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2668:44: note: v8::MaybeLocalv8::String v8::Value::ToString(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14:0,
from /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2684:31: note: v8::Localv8::String v8::Value::ToString(v8::Isolate) const
Local ToString(Isolate* isolate) const);
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided
Local ToString(Isolate* isolate) const);
^
/home/pi/.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:3:0:
../node_modules/nan/nan.h:900:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
length_ = string->WriteUtf8(str_, static_cast(len), 0, flags);
^
../node_modules/nan/nan.h:900:74: note: candidate is:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2878:7: note: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^
/home/pi/.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:3:0:
../node_modules/nan/nan.h: In member function ‘bool Nan::Callback::operator==(const Nan::Callback&) const’:
../node_modules/nan/nan.h:1371:61: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3557): Use maybe version [-Wdeprecated-declarations]
v8::Localv8::Value a = New(handle)->Get(kCallbackIndex);
^
../node_modules/nan/nan.h:1372:67: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3557): Use maybe version [-Wdeprecated-declarations]
v8::Localv8::Value b = New(other.handle)->Get(kCallbackIndex);
^
../node_modules/nan/nan.h: In member function ‘v8::Localv8::Function Nan::Callback::GetFunction() const’:
../node_modules/nan/nan.h:1403:56: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3557): Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(handle)->Get(kCallbackIndex)
^
../node_modules/nan/nan.h: In member function ‘bool Nan::Callback::IsEmpty() const’:
../node_modules/nan/nan.h:1409:43: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3557): Use maybe version [-Wdeprecated-declarations]
return New(handle)->Get(kCallbackIndex)->IsUndefined();
^
../node_modules/nan/nan.h: In member function ‘v8::Localv8::Value Nan::Callback::Call_(v8::Isolate*, v8::Localv8::Object, int, v8::Localv8::Value) const’:
../node_modules/nan/nan.h:1447:27: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3557): Use maybe version [-Wdeprecated-declarations]
Get(kCallbackIndex).Asv8::Function();
^
../node_modules/nan/nan.h:1463:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:173): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char, const v8::Localv8::Value&)’:
../node_modules/nan/nan.h:1518:64: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3498): Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
^
../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Localv8::String&, const v8::Localv8::Value&)’:
../node_modules/nan/nan.h:1524:42: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3498): Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(key, value);
^
../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Localv8::Value&)’:
../node_modules/nan/nan.h:1530:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Localv8::Value)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3507): Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(index, value);
^
../node_modules/nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const char*) const’:
../node_modules/nan/nan.h:1536:61: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3553): Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Get(New(key).ToLocalChecked()));
^
../node_modules/nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const v8::Localv8::String&) const’:
../node_modules/nan/nan.h:1542:55: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3553): Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(key));
^
../node_modules/nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
../node_modules/nan/nan.h:1547:57: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3557): Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(index));
^
In file included from /usr/include/c++/4.8/cassert:43:0,
from /home/pi/.cache/node-gyp/12.16.1/include/node/node_object_wrap.h:26,
from ../node_modules/nan/nan.h:49,
from ../src/i2c.cc:3:
../node_modules/nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
../node_modules/nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’
assert(persistent().IsNearDeath());
^
In file included from ../node_modules/nan/nan.h:2192:0,
from ../src/i2c.cc:3:
../node_modules/nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
../node_modules/nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase::MarkIndependent() [with T = v8::Object]’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:10256): 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 /usr/include/c++/4.8/cassert:43:0,
from /home/pi/.cache/node-gyp/12.16.1/include/node/node_object_wrap.h:26,
from ../node_modules/nan/nan.h:49,
from ../src/i2c.cc:3:
../node_modules/nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfoNan::ObjectWrap&)’:
../node_modules/nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’
assert(wrap->handle_.IsNearDeath());
^
../src/i2c.cc: In function ‘void SetAddress(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:38:30: error: no matching function for call to ‘v8::Value::Int32Value()’
addr = info[0]->Int32Value();
^
../src/i2c.cc:38:30: note: candidate is:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc: In function ‘void Scan(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:60:43: warning: ‘bool v8::Object::Set(uint32_t, v8::Localv8::Value)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3507): Use maybe version [-Wdeprecated-declarations]
results->Set(i, Nan::New(res));
^
../src/i2c.cc: In function ‘void Open(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:84:35: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’
String::Utf8Value device(info[0]);
^
../src/i2c.cc:84:35: note: candidate is:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3135:5: note: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Localv8::Value)
Utf8Value(Isolate* isolate, Localv8::Value obj);
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3135:5: note: candidate expects 2 arguments, 1 provided
../src/i2c.cc: In function ‘void Read(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:103:33: error: no matching function for call to ‘v8::Value::Int32Value()’
int len = info[0]->Int32Value();
^
../src/i2c.cc:103:33: note: candidate is:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc:114:45: warning: ‘bool v8::Object::Set(uint32_t, v8::Localv8::Value)’ is deprecated (declared at /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:3507): Use maybe version [-Wdeprecated-declarations]
data->Set(i, Nan::New(buf[i]));
^
../src/i2c.cc: In function ‘void ReadBlock(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:154:36: error: no matching function for call to ‘v8::Value::Int32Value()’
int8_t cmd = info[0]->Int32Value();
^
../src/i2c.cc:154:36: note: candidate is:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^
th(buffer->ToObject());
^
../src/i2c.cc:193:53: note: candidates are:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2672:44: note: v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14:0,
from /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2686:31: note: v8::Localv8::Object v8::Value::ToObject(v8::Isolate*) const
Local ToObject(Isolate* isolate) const);
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided
Local ToObject(Isolate* isolate) const);
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^
../src/i2c.cc:194:52: error: no matching function for call to ‘v8::Value::ToObject()’
char* data = node::Buffer::Data(buffer->ToObject());
^
../src/i2c.cc:194:52: note: candidates are:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2672:44: note: v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14:0,
from /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2686:31: note: v8::Localv8::Object v8::Value::ToObject(v8::Isolate*) const
Local ToObject(Isolate* isolate) const);
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided
Local ToObject(Isolate* isolate) const);
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^
../src/i2c.cc: In function ‘void WriteByte(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:213:37: error: no matching function for call to ‘v8::Value::Int32Value()’
int8_t byte = info[0]->Int32Value();
^
../src/i2c.cc:213:37: note: candidate is:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc: In function ‘void WriteBlock(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:232:36: error: no matching function for call to ‘v8::Value::Int32Value()’
int8_t cmd = info[0]->Int32Value();
^
../src/i2c.cc:232:36: note: candidate is:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc:233:53: error: no matching function for call to ‘v8::Value::ToObject()’
int len = node::Buffer::Length(buffer->ToObject());
^
../src/i2c.cc:233:53: note: candidates are:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2672:44: note: v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14:0,
from /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2686:31: note: v8::Localv8::Object v8::Value::ToObject(v8::Isolate*) const
Local ToObject(Isolate* isolate) const);
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided
Local ToObject(Isolate* isolate) const);
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^
../src/i2c.cc:234:52: error: no matching function for call to ‘v8::Value::ToObject()’
char* data = node::Buffer::Data(buffer->ToObject());
^
../src/i2c.cc:234:52: note: candidates are:
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2672:44: note: v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided
In file included from /home/pi/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14:0,
from /home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2686:31: note: v8::Localv8::Object v8::Value::ToObject(v8::Isolate*) const
Local ToObject(Isolate* isolate) const);
^
^
/home/pi/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc: At global scope:
../src/i2c.cc:270:11: error: variable or field ‘Init’ declared void
void Init(Handle exports) {
^
../src/i2c.cc:270:11: error: ‘Handle’ was not declared in this scope
../src/i2c.cc:270:24: error: expected primary-expression before ‘>’ token
void Init(Handle exports) {
^
../src/i2c.cc:270:26: error: ‘exports’ was not declared in this scope
void Init(Handle exports) {
^
In file included from ../src/i2c.cc:1:0:
../src/i2c.cc:295:18: error: ‘Init’ was not declared in this scope
NODE_MODULE(i2c, Init)
^
/home/pi/.cache/node-gyp/12.16.1/include/node/node.h:601:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc),
^
../src/i2c.cc:295:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(i2c, Init)
^
../src/i2c.cc:295:18: note: suggested alternative:
NODE_MODULE(i2c, Init)
^
/home/pi/.cache/node-gyp/12.16.1/include/node/node.h:601:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc),
^
../src/i2c.cc:295:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(i2c, Init)
^
/home/pi/.cache/node-gyp/12.16.1/include/node/node.h:217:18: note: ‘node::Init’
NODE_EXTERN void Init(int* argc,
^
i2c.target.mk:109: recipe for target 'Release/obj.target/i2c/src/i2c.o' failed
make: *** [Release/obj.target/i2c/src/i2c.o] Error 1
make: Leaving directory '/home/pi/.node-red/node_modules/i2c/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:311:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.66-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/.node-red/node_modules/i2c
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@0.2.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the i2c@0.2.3 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/pi/.npm/_logs/2020-03-30T10_25_52_722Z-debug.log