make: Entering directory '/home/pi/Servers/radarhead_lst/node_modules/rpio/build'
CC(target) Release/obj.target/rpio/src/bcm2835.o
CXX(target) Release/obj.target/rpio/src/rpio.o
In file included from ../node_modules/nan/nan_converters.h:67,
from ../node_modules/nan/nan.h:221,
from ../src/rpio.cc:17:
../node_modules/nan/nan_converters_43_inl.h: In static member function 'static Nan::imp::ToFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Local)':
../node_modules/nan/nan_converters_43_inl.h:18:51: warning: 'v8::MaybeLocal v8::Value::ToBoolean(v8::Local) const' is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
val->To ## TYPE(isolate->GetCurrentContext()) \
^
../node_modules/nan/nan_converters_43_inl.h:22:1: note: in expansion of macro 'X'
X(Boolean)
^
In file included from /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2531:59: note: declared here
V8_WARN_UNUSED_RESULT MaybeLocal ToBoolean(
^~~~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^~~~~~
In file included from ../node_modules/nan/nan_converters.h:67,
from ../node_modules/nan/nan.h:221,
from ../src/rpio.cc:17:
../node_modules/nan/nan_converters_43_inl.h: In static member function 'static Nan::imp::ValueFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Local)':
../node_modules/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()); \
^
../node_modules/nan/nan_converters_43_inl.h:40:1: note: in expansion of macro 'X'
X(bool, Boolean)
^
In file included from /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2569:51: note: declared here
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^~~~~~
In file included from ../node_modules/nan/nan_new.h:189,
from ../node_modules/nan/nan.h:222,
from ../src/rpio.cc:17:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(Nan::FunctionCallback, v8::Local)':
../node_modules/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 /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:4132:31: note: candidate: 'static v8::MaybeLocal v8::Function::New(v8::Local, v8::FunctionCallback, v8::Local, int, v8::ConstructorBehavior, v8::SideEffectType)'
static MaybeLocal New(
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8.h:4132:31: note: no known conversion for argument 1 from 'v8::Isolate' to 'v8::Local'
In file included from ../src/rpio.cc:17:
../node_modules/nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local)':
../node_modules/nan/nan.h:1064:78: warning: 'v8::Local v8::Value::ToString(v8::Isolate) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::Local string = from->ToString(v8::Isolate::GetCurrent());
^
In file included from /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2551:31: note: declared here
Local ToString(Isolate isolate) const);
^~~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^~~~~~
In file included from ../src/rpio.cc:17:
../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const char, const v8::Local&)':
../node_modules/nan/nan.h:1855: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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:3366:26: note: declared here
bool Set(Local key, Local value));
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~
In file included from ../src/rpio.cc:17:
../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const v8::Local&, const v8::Local&)':
../node_modules/nan/nan.h:1861: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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:3366:26: note: declared here
bool Set(Local key, Local value));
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~
In file included from ../src/rpio.cc:17:
../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local&)':
../node_modules/nan/nan.h:1867: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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:3375:26: note: declared here
bool Set(uint32_t index, Local value));
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~
In file included from ../src/rpio.cc:17:
../node_modules/nan/nan.h: In member function 'v8::Local Nan::AsyncWorker::GetFromPersistent(const char) const':
../node_modules/nan/nan.h:1873: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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:3419:55: note: declared here
V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key));
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~
In file included from ../src/rpio.cc:17:
../node_modules/nan/nan.h: In member function 'v8::Local Nan::AsyncWorker::GetFromPersistent(const v8::Local&) const':
../node_modules/nan/nan.h:1879: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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:3419:55: note: declared here
V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key));
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~
In file included from ../src/rpio.cc:17:
../node_modules/nan/nan.h: In member function 'v8::Local Nan::AsyncWorker::GetFromPersistent(uint32_t) const':
../node_modules/nan/nan.h:1884: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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:3423:55: note: declared here
V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index));
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~
In file included from ../src/rpio.cc:17:
../node_modules/nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker)':
../node_modules/nan/nan.h:2208: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 /home/pi/.node-gyp/12.7.0/include/node/node_object_wrap.h:26,
from ../node_modules/nan/nan.h:54,
from ../src/rpio.cc:17:
../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::Persistent' has no member named 'IsNearDeath'
assert(persistent().IsNearDeath());
^~~
In file included from ../node_modules/nan/nan.h:2698,
from ../src/rpio.cc:17:
../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: 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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:567:22: note: declared here
V8_INLINE void MarkIndependent());
^~~~~~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
declarator attribute((deprecated(message)))
^~~~~~
In file included from /usr/include/c++/8/cassert:44,
from /home/pi/.node-gyp/12.7.0/include/node/node_object_wrap.h:26,
from ../node_modules/nan/nan.h:54,
from ../src/rpio.cc:17:
../node_modules/nan/nan_object_wrap.h: In static member function 'static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo&)':
../node_modules/nan/nan_objectwrap.h:124:26: error: 'class Nan::Persistent' has no member named 'IsNearDeath'
assert(wrap->handle.IsNearDeath());
^~~
../src/rpio.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE gpio_function(Nan::NAN_METHOD_ARGS_TYPE)':
../src/rpio.cc:34:28: error: no matching function for call to 'v8::Value::NumberValue()'
(info[1]->NumberValue() > 7))
^
In file included from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate: 'v8::Maybe v8::Value::NumberValue(v8::Local) const'
V8_WARN_UNUSED_RESULT Maybe NumberValue(Local context) const;
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate expects 1 argument, 0 provided
../src/rpio.cc:37:41: error: no matching function for call to 'v8::Value::NumberValue()'
bcm2835_gpio_fsel(info[0]->NumberValue(), info[1]->NumberValue());
^
In file included from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate: 'v8::Maybe v8::Value::NumberValue(v8::Local) const'
V8_WARN_UNUSED_RESULT Maybe NumberValue(Local context) const;
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate expects 1 argument, 0 provided
../src/rpio.cc:37:65: error: no matching function for call to 'v8::Value::NumberValue()'
bcm2835_gpio_fsel(info[0]->NumberValue(), info[1]->NumberValue());
^
In file included from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate: 'v8::Maybe v8::Value::NumberValue(v8::Local) const'
V8_WARN_UNUSED_RESULT Maybe NumberValue(Local context) const;
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate expects 1 argument, 0 provided
../src/rpio.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE gpio_read(Nan::NAN_METHOD_ARGS_TYPE)':
../src/rpio.cc:48:66: error: no matching function for call to 'v8::Value::NumberValue()'
info.GetReturnValue().Set(bcm2835_gpio_lev(info[0]->NumberValue()));
^
In file included from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate: 'v8::Maybe v8::Value::NumberValue(v8::Local) const'
V8_WARN_UNUSED_RESULT Maybe NumberValue(Local context) const;
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate expects 1 argument, 0 provided
../src/rpio.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE gpio_readbuf(Nan::NAN_METHOD_ARGS_TYPE)':
../src/rpio.cc:62:45: error: no matching function for call to 'v8::Value::ToObject()'
buf = node::Buffer::Data(info[1]->ToObject());
^
In file included from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2539:44: note: candidate: 'v8::MaybeLocal v8::Value::ToObject(v8::Local) const'
V8_WARN_UNUSED_RESULT MaybeLocal) const'
Local
Hi so upon installing package from npm rpio simply isn't compilling due deprecation errors.
Did somebody resolver this issue?
`> rpio@1.0.13 install /home/pi/Servers/radarhead_lst/node_modules/rpio
make: Entering directory '/home/pi/Servers/radarhead_lst/node_modules/rpio/build' CC(target) Release/obj.target/rpio/src/bcm2835.o CXX(target) Release/obj.target/rpio/src/rpio.o In file included from ../node_modules/nan/nan_converters.h:67, from ../node_modules/nan/nan.h:221, from ../src/rpio.cc:17: ../node_modules/nan/nan_converters_43_inl.h: In static member function 'static Nan::imp::ToFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Local)':
../node_modules/nan/nan_converters_43_inl.h:18:51: warning: 'v8::MaybeLocal v8::Value::ToBoolean(v8::Local) const' is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
val->To ## TYPE(isolate->GetCurrentContext()) \
^
../node_modules/nan/nan_converters_43_inl.h:22:1: note: in expansion of macro 'X'
X(Boolean)
^
In file included from /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2531:59: note: declared here
V8_WARN_UNUSED_RESULT MaybeLocal ToBoolean(
^::return_t Nan::imp::ToFactory::convert(v8::Local)':
../node_modules/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()); \
^
../node_modules/nan/nan_converters_43_inl.h:40:1: note: in expansion of macro 'X'
X(bool, Boolean)
^
In file included from /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2569:51: note: declared here
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^::return_t Nan::imp::Factory::New(Nan::FunctionCallback, v8::Local)':
../node_modules/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 /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:4132:31: note: candidate: 'static v8::MaybeLocal v8::Function::New(v8::Local, v8::FunctionCallback, v8::Local, int, v8::ConstructorBehavior, v8::SideEffectType)'
static MaybeLocal New(
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8.h:4132:31: note: no known conversion for argument 1 from 'v8::Isolate ' to 'v8::Local'
In file included from ../src/rpio.cc:17:
../node_modules/nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local)':
../node_modules/nan/nan.h:1064:78: warning: 'v8::Local v8::Value::ToString(v8::Isolate) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::Local string = from->ToString(v8::Isolate::GetCurrent());
^
In file included from /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:2551:31: note: declared here
Local ToString(Isolate isolate) const);
^&)':
../node_modules/nan/nan.h:1855: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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:3366:26: note: declared here
bool Set(Local key, Local value));
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^&, const v8::Local&)':
../node_modules/nan/nan.h:1861: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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:3366:26: note: declared here
bool Set(Local key, Local value));
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^&)':
../node_modules/nan/nan.h:1867: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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:3375:26: note: declared here
bool Set(uint32_t index, Local value));
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^ Nan::AsyncWorker::GetFromPersistent(const char ) const':
../node_modules/nan/nan.h:1873: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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:3419:55: note: declared here
V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key));
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^ Nan::AsyncWorker::GetFromPersistent(const v8::Local&) const':
../node_modules/nan/nan.h:1879: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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:3419:55: note: declared here
V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key));
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^ Nan::AsyncWorker::GetFromPersistent(uint32_t) const':
../node_modules/nan/nan.h:1884: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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:3423:55: note: declared here
V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index));
^~~
/home/pi/.node-gyp/12.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^(AsyncExecuteComplete)
^
In file included from /usr/include/c++/8/cassert:44,
from /home/pi/.node-gyp/12.7.0/include/node/node_object_wrap.h:26,
from ../node_modules/nan/nan.h:54,
from ../src/rpio.cc:17:
../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::Persistent' has no member named 'IsNearDeath'
assert(persistent().IsNearDeath());
^::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 /home/pi/.node-gyp/12.7.0/include/node/v8-internal.h:14,
from /home/pi/.node-gyp/12.7.0/include/node/v8.h:25,
from /home/pi/.node-gyp/12.7.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../src/rpio.cc:17:
/home/pi/.node-gyp/12.7.0/include/node/v8.h:567:22: note: declared here
V8_INLINE void MarkIndependent());
^&)':
../node_modules/nan/nan_objectwrap.h:124:26: error: 'class Nan::Persistent' has no member named 'IsNearDeath'
assert(wrap->handle .IsNearDeath());
^ v8::Value::NumberValue(v8::Local) const'
V8_WARN_UNUSED_RESULT Maybe NumberValue(Local context) const;
^ v8::Value::NumberValue(v8::Local) const'
V8_WARN_UNUSED_RESULT Maybe NumberValue(Local context) const;
^ v8::Value::NumberValue(v8::Local) const'
V8_WARN_UNUSED_RESULT Maybe NumberValue(Local context) const;
^ v8::Value::NumberValue(v8::Local) const'
V8_WARN_UNUSED_RESULT Maybe NumberValue(Local context) const;
^ v8::Value::ToObject(v8::Local) const'
V8_WARN_UNUSED_RESULT MaybeLocal ) const'
Local
~~~~ /home/pi/.node-gyp/12.7.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../node_modules/nan/nan_converters.h:67, from ../node_modules/nan/nan.h:221, from ../src/rpio.cc:17: ../node_modules/nan/nan_converters_43_inl.h: In static member function 'static Nan::imp::ValueFactoryBase~~~ /home/pi/.node-gyp/12.7.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../node_modules/nan/nan_new.h:189, from ../node_modules/nan/nan.h:222, from ../src/rpio.cc:17: ../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase~~~ /home/pi/.node-gyp/12.7.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/rpio.cc:17: ../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const char, const v8::Local~~~~~ In file included from ../src/rpio.cc:17: ../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const v8::Local~~~~~ In file included from ../src/rpio.cc:17: ../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local~~~~~ In file included from ../src/rpio.cc:17: ../node_modules/nan/nan.h: In member function 'v8::Local~~~~~ In file included from ../src/rpio.cc:17: ../node_modules/nan/nan.h: In member function 'v8::Local~~~~~ In file included from ../src/rpio.cc:17: ../node_modules/nan/nan.h: In member function 'v8::Local~~~~~ In file included from ../src/rpio.cc:17: ../node_modules/nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker)': ../node_modules/nan/nan.h:2208: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~~In file included from ../node_modules/nan/nan.h:2698, from ../src/rpio.cc:17: ../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~~~~~~ /home/pi/.node-gyp/12.7.0/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED' declarator attribute((deprecated(message))) ^~~~~~ In file included from /usr/include/c++/8/cassert:44, from /home/pi/.node-gyp/12.7.0/include/node/node_object_wrap.h:26, from ../node_modules/nan/nan.h:54, from ../src/rpio.cc:17: ../node_modules/nan/nan_object_wrap.h: In static member function 'static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo~~../src/rpio.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE gpio_function(Nan::NAN_METHOD_ARGS_TYPE)': ../src/rpio.cc:34:28: error: no matching function for call to 'v8::Value::NumberValue()' (info[1]->NumberValue() > 7)) ^ In file included from /home/pi/.node-gyp/12.7.0/include/node/node.h:63, from ../node_modules/nan/nan.h:52, from ../src/rpio.cc:17: /home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate: 'v8::Maybe~~/home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate expects 1 argument, 0 provided ../src/rpio.cc:37:41: error: no matching function for call to 'v8::Value::NumberValue()' bcm2835_gpio_fsel(info[0]->NumberValue(), info[1]->NumberValue()); ^ In file included from /home/pi/.node-gyp/12.7.0/include/node/node.h:63, from ../node_modules/nan/nan.h:52, from ../src/rpio.cc:17: /home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate: 'v8::Maybe~~/home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate expects 1 argument, 0 provided ../src/rpio.cc:37:65: error: no matching function for call to 'v8::Value::NumberValue()' bcm2835_gpio_fsel(info[0]->NumberValue(), info[1]->NumberValue()); ^ In file included from /home/pi/.node-gyp/12.7.0/include/node/node.h:63, from ../node_modules/nan/nan.h:52, from ../src/rpio.cc:17: /home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate: 'v8::Maybe~~/home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate expects 1 argument, 0 provided ../src/rpio.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE gpio_read(Nan::NAN_METHOD_ARGS_TYPE)': ../src/rpio.cc:48:66: error: no matching function for call to 'v8::Value::NumberValue()' info.GetReturnValue().Set(bcm2835_gpio_lev(info[0]->NumberValue())); ^ In file included from /home/pi/.node-gyp/12.7.0/include/node/node.h:63, from ../node_modules/nan/nan.h:52, from ../src/rpio.cc:17: /home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate: 'v8::Maybe~~/home/pi/.node-gyp/12.7.0/include/node/v8.h:2571:39: note: candidate expects 1 argument, 0 provided ../src/rpio.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE gpio_readbuf(Nan::NAN_METHOD_ARGS_TYPE)': ../src/rpio.cc:62:45: error: no matching function for call to 'v8::Value::ToObject()' buf = node::Buffer::Data(info[1]->ToObject()); ^ In file included from /home/pi/.node-gyp/12.7.0/include/node/node.h:63, from ../node_modules/nan/nan.h:52, from ../src/rpio.cc:17: /home/pi/.node-gyp/12.7.0/include/node/v8.h:2539:44: note: candidate: 'v8::MaybeLocal