-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Raspberry Pi 3B+
Raspian GNU/Linux version 11 (Bullseye)
node v 18.20.6
npm v 10.8.2
When I run npm i adafruit-i2c-pwm-driver, I get this error:
npm warn deprecated coffee-script@1.9.1: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm error code 1
npm error path /home/pi/node_modules/i2c
npm error command failed
npm error command sh -c node-gyp rebuild
npm error make: Entering directory '/home/pi/node_modules/i2c/build'
npm error CXX(target) Release/obj.target/i2c/src/i2c.o
npm error make: Leaving directory '/home/pi/node_modules/i2c/build'
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@18.20.6 | linux | arm
npm error gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm error gyp http GET https://nodejs.org/download/release/v18.20.6/node-v18.20.6-headers.tar.gz
npm error gyp http 200 https://nodejs.org/download/release/v18.20.6/node-v18.20.6-headers.tar.gz
npm error gyp http GET https://nodejs.org/download/release/v18.20.6/SHASUMS256.txt
npm error gyp http 200 https://nodejs.org/download/release/v18.20.6/SHASUMS256.txt
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/pi/node_modules/i2c/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/root/.cache/node-gyp/18.20.6/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/18.20.6',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/18.20.6/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/home/pi/node_modules/i2c',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../node_modules/nan/nan.h:190,
npm error from ../src/i2c.cc:3:
npm error ../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)’:
npm error ../node_modules/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
npm error 88 | return obj->ForceSet(GetCurrentContext(), key, value, attribs);
npm error | ^~~~~~~~
npm error In file included from ../node_modules/nan/nan_converters.h:59,
npm error from ../node_modules/nan/nan.h:195,
npm error from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBasev8::Boolean::return_t Nan::imp::ToFactoryv8::Boolean::convert(v8::Localv8::Value)’:
npm error ../node_modules/nan/nan_converters_43_inl.h:15:43: error: cannot convert ‘v8::Localv8::Context’ to ‘v8::Isolate*’
npm error 15 | return val->To ## TYPE(GetCurrentContext());
npm error | ~~~~~~~~~~~~~~~~~^~
npm error | |
npm error | v8::Localv8::Context
npm error ../node_modules/nan/nan_converters_43_inl.h:18:1: note: in expansion of macro ‘X’
npm error 18 | X(Boolean)
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:398:37: note: initializing argument 1 of ‘v8::Localv8::Boolean v8::Value::ToBoolean(v8::Isolate*) const’
npm error 398 | Local ToBoolean(Isolate* isolate) const;
npm error | ~~~~~~~~~^~~~~~~
npm error In file included from ../node_modules/nan/nan_converters.h:59,
npm error from ../node_modules/nan/nan.h:195,
npm error from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Localv8::Value)’:
npm error ../node_modules/nan/nan_converters_43_inl.h:31:46: error: cannot convert ‘v8::Localv8::Context’ to ‘v8::Isolate*’
npm error 31 | return val->NAME ## Value(GetCurrentContext());
npm error | ~~~~~~~~~~~~~~~~~^~
npm error | |
npm error | v8::Localv8::Context
npm error ../node_modules/nan/nan_converters_43_inl.h:34:1: note: in expansion of macro ‘X’
npm error 34 | X(bool, Boolean)
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:408:30: note: initializing argument 1 of ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
npm error 408 | bool BooleanValue(Isolate* isolate) const;
npm error | ~~~~~~~~~^~~~~~~
npm error In file included from ../node_modules/nan/nan_new.h:189,
npm error from ../node_modules/nan/nan.h:196,
npm error from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBasev8::Function::return_t Nan::imp::Factoryv8::Function::New(Nan::FunctionCallback, v8::Localv8::Value)’:
npm error ../node_modules/nan/nan_implementation_12_inl.h:107:42: error: cannot convert ‘v8::Isolate*’ to ‘v8::Localv8::Context’
npm error 107 | return scope.Escape(v8::Function::New( isolate
npm error | ^~~~~~~
npm error | |
npm error | v8::Isolate*
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8.h:33,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-function.h:33:22: note: initializing argument 1 of ‘static v8::MaybeLocalv8::Function v8::Function::New(v8::Localv8::Context, v8::FunctionCallback, v8::Localv8::Value, int, v8::ConstructorBehavior, v8::SideEffectType)’
npm error 33 | Local context, FunctionCallback callback,
npm error | ~~~~~~~~~~~~~~~^~~~~~~
npm error In file included from ../node_modules/nan/nan_new.h:189,
npm error from ../node_modules/nan/nan.h:196,
npm error from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBasev8::StringObject::return_t Nan::imp::Factoryv8::StringObject::New(v8::Localv8::String)’:
npm error ../node_modules/nan/nan_implementation_12_inl.h:345:37: error: no matching function for call to ‘v8::StringObject::New(v8::Localv8::String&)’
npm error 345 | return v8::StringObject::New(value).Asv8::StringObject();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8.h:47,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-primitive-object.h:81:23: note: candidate: ‘static v8::Localv8::Value v8::StringObject::New(v8::Isolate*, v8::Localv8::String)’
npm error 81 | static Local New(Isolate* isolate, Local value);
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-primitive-object.h:81:23: note: candidate expects 2 arguments, 1 provided
npm error In file included from ../node_modules/nan/nan_new.h:189,
npm error from ../node_modules/nan/nan.h:196,
npm error from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan_implementation_12_inl.h:345:58: error: expected primary-expression before ‘>’ token
npm error 345 | return v8::StringObject::New(value).Asv8::StringObject();
npm error | ^
npm error ../node_modules/nan/nan_implementation_12_inl.h:345:60: error: expected primary-expression before ‘)’ token
npm error 345 | return v8::StringObject::New(value).Asv8::StringObject();
npm error | ^
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’:
npm error ../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: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm error 817 | v8::Isolate::GetCurrent(), target, func, argc, argv);
npm error | ^
npm error In file included from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/node.h:196:50: note: declared here
npm error 196 | NODE_EXTERN v8::Localv8::Value MakeCallback(
npm error | ^~~~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/node.h:115:42: note: in definition of macro ‘NODE_DEPRECATED’
npm error 115 | attribute((deprecated(message))) declarator
npm error | ^~~~~~~~~~
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’:
npm error ../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: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm error 831 | v8::Isolate::GetCurrent(), target, symbol, argc, argv);
npm error | ^
npm error In file included from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/node.h:189:50: note: declared here
npm error 189 | NODE_EXTERN v8::Localv8::Value MakeCallback(
npm error | ^~~~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/node.h:115:42: note: in definition of macro ‘NODE_DEPRECATED’
npm error 115 | attribute((deprecated(message))) declarator
npm error | ^~~~~~~~~~
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char, int, v8::Localv8::Value)’:
npm error ../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: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm error 845 | v8::Isolate::GetCurrent(), target, method, argc, argv);
npm error | ^
npm error In file included from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/node.h:182:50: note: declared here
npm error 182 | NODE_EXTERN v8::Localv8::Value MakeCallback(
npm error | ^~~~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/node.h:115:42: note: in definition of macro ‘NODE_DEPRECATED’
npm error 115 | attribute((deprecated(message))) declarator
npm error | ^~~~~~~~~~
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Localv8::Value)’:
npm error ../node_modules/nan/nan.h:890:53: error: no matching function for call to ‘v8::Value::ToString()’
npm error 890 | v8::Localv8::String string = from->ToString();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:360:44: note: candidate: ‘v8::MaybeLocalv8::String v8::Value::ToString(v8::Localv8::Context) const’
npm error 360 | V8_WARN_UNUSED_RESULT MaybeLocal ToString(
npm error | ^~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:360:44: note: candidate expects 1 argument, 0 provided
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h:900:37: error: cannot convert ‘char’ to ‘v8::Isolate*’
npm error 900 | length_ = string->WriteUtf8(str_, static_cast(len), 0, flags);
npm error | ^~~~
npm error | |
npm error | char*
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:202:26: note: initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
npm error 202 | int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
npm error | ~~~~~~~~~^~~~~~~
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In member function ‘bool Nan::Callback::operator==(const Nan::Callback&) const’:
npm error ../node_modules/nan/nan.h:1371:61: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm error 1371 | v8::Localv8::Value a = New(handle)->Get(kCallbackIndex);
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’
npm error 292 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate expects 2 arguments, 1 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’
npm error 295 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate expects 2 arguments, 1 provided
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h:1372:67: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm error 1372 | v8::Localv8::Value b = New(other.handle)->Get(kCallbackIndex);
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’
npm error 292 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate expects 2 arguments, 1 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’
npm error 295 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate expects 2 arguments, 1 provided
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In member function ‘v8::Localv8::Function Nan::Callback::GetFunction() const’:
npm error ../node_modules/nan/nan.h:1403:56: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm error 1403 | return scope.Escape(New(handle)->Get(kCallbackIndex)
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’
npm error 292 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate expects 2 arguments, 1 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’
npm error 295 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate expects 2 arguments, 1 provided
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h:1404:25: error: expected primary-expression before ‘>’ token
npm error 1404 | .Asv8::Function());
npm error | ^
npm error ../node_modules/nan/nan.h:1404:27: error: expected primary-expression before ‘)’ token
npm error 1404 | .Asv8::Function());
npm error | ^
npm error ../node_modules/nan/nan.h: In member function ‘bool Nan::Callback::IsEmpty() const’:
npm error ../node_modules/nan/nan.h:1409:43: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm error 1409 | return New(handle)->Get(kCallbackIndex)->IsUndefined();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’
npm error 292 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate expects 2 arguments, 1 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’
npm error 295 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate expects 2 arguments, 1 provided
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In member function ‘v8::Localv8::Value Nan::Callback::Call_(v8::Isolate*, v8::Localv8::Object, int, v8::Localv8::Value) const’:
npm error ../node_modules/nan/nan.h:1447:27: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm error 1447 | Get(kCallbackIndex).Asv8::Function();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’
npm error 292 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate expects 2 arguments, 1 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’
npm error 295 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate expects 2 arguments, 1 provided
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h:1447:44: error: expected primary-expression before ‘>’ token
npm error 1447 | Get(kCallbackIndex).Asv8::Function();
npm error | ^
npm error ../node_modules/nan/nan.h:1447:46: error: expected primary-expression before ‘)’ token
npm error 1447 | Get(kCallbackIndex).Asv8::Function();
npm error | ^
npm error ../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: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm error 1463 | ));
npm error | ^
npm error In file included from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/node.h:196:50: note: declared here
npm error 196 | NODE_EXTERN v8::Localv8::Value MakeCallback(
npm error | ^~~~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/node.h:115:42: note: in definition of macro ‘NODE_DEPRECATED’
npm error 115 | attribute((deprecated(message))) declarator
npm error | ^~~~~~~~~~
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char, const v8::Localv8::Value&)’:
npm error ../node_modules/nan/nan.h:1518:64: error: no matching function for call to ‘v8::Object::Set(v8::Localv8::String, const v8::Localv8::Value&)’
npm error 1518 | New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:246:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, v8::Localv8::Value, v8::Localv8::Value)’
npm error 246 | V8_WARN_UNUSED_RESULT Maybe Set(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:246:37: note: candidate expects 3 arguments, 2 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:249:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, uint32_t, v8::Localv8::Value)’
npm error 249 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:249:37: note: candidate expects 3 arguments, 2 provided
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Localv8::String&, const v8::Localv8::Value&)’:
npm error ../node_modules/nan/nan.h:1524:42: error: no matching function for call to ‘v8::Object::Set(const v8::Localv8::String&, const v8::Localv8::Value&)’
npm error 1524 | New(persistentHandle)->Set(key, value);
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:246:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, v8::Localv8::Value, v8::Localv8::Value)’
npm error 246 | V8_WARN_UNUSED_RESULT Maybe Set(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:246:37: note: candidate expects 3 arguments, 2 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:249:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, uint32_t, v8::Localv8::Value)’
npm error 249 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:249:37: note: candidate expects 3 arguments, 2 provided
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Localv8::Value&)’:
npm error ../node_modules/nan/nan.h:1530:44: error: no matching function for call to ‘v8::Object::Set(uint32_t&, const v8::Localv8::Value&)’
npm error 1530 | New(persistentHandle)->Set(index, value);
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:246:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, v8::Localv8::Value, v8::Localv8::Value)’
npm error 246 | V8_WARN_UNUSED_RESULT Maybe Set(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:246:37: note: candidate expects 3 arguments, 2 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:249:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, uint32_t, v8::Localv8::Value)’
npm error 249 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:249:37: note: candidate expects 3 arguments, 2 provided
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const char*) const’:
npm error ../node_modules/nan/nan.h:1536:61: error: no matching function for call to ‘v8::Object::Get(v8::Localv8::String)’
npm error 1536 | New(persistentHandle)->Get(New(key).ToLocalChecked()));
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’
npm error 292 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate expects 2 arguments, 1 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’
npm error 295 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate expects 2 arguments, 1 provided
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const v8::Localv8::String&) const’:
npm error ../node_modules/nan/nan.h:1542:55: error: no matching function for call to ‘v8::Object::Get(const v8::Localv8::String&)’
npm error 1542 | return scope.Escape(New(persistentHandle)->Get(key));
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’
npm error 292 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate expects 2 arguments, 1 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’
npm error 295 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate expects 2 arguments, 1 provided
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
npm error ../node_modules/nan/nan.h:1547:57: error: no matching function for call to ‘v8::Object::Get(uint32_t&)’
npm error 1547 | return scope.Escape(New(persistentHandle)->Get(index));
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, v8::Localv8::Value)’
npm error 292 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:292:43: note: candidate expects 2 arguments, 1 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate: ‘v8::MaybeLocalv8::Value v8::Object::Get(v8::Localv8::Context, uint32_t)’
npm error 295 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:295:43: note: candidate expects 2 arguments, 1 provided
npm error In file included from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
npm error ../node_modules/nan/nan.h:1706:7: 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]
npm error 1706 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Localv8::ObjectTemplate, v8::Localv8::String, Nan::GetterCallback, Nan::SetterCallback, v8::Localv8::Value, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
npm error ../node_modules/nan/nan.h:1947:16: warning: ‘void v8::ObjectTemplate::SetAccessor(v8::Localv8::Name, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Localv8::Value, v8::AccessControl, v8::PropertyAttribute, v8::Localv8::AccessorSignature, v8::SideEffectType, v8::SideEffectType)’ is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm error 1947 | , signature);
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-function.h:15,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:33,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-template.h:838:8: note: declared here
npm error 838 | void SetAccessor(
npm error | ^~~~~~~~~~~
npm error In file included from /usr/include/c++/10/cassert:44,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node_object_wrap.h:26,
npm error from ../node_modules/nan/nan.h:49,
npm error from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
npm error ../node_modules/nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’
npm error 24 | assert(persistent().IsNearDeath());
npm error | ^~~~~~~~~~~
npm error In file included from ../node_modules/nan/nan.h:2192,
npm error from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
npm error ../node_modules/nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistentv8::Object’ has no member named ‘MarkIndependent’
npm error 67 | persistent().MarkIndependent();
npm error | ^~~~~~~~~~~~~~~
npm error In file included from /usr/include/c++/10/cassert:44,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node_object_wrap.h:26,
npm error from ../node_modules/nan/nan.h:49,
npm error from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfoNan::ObjectWrap&)’:
npm error ../node_modules/nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’
npm error 124 | assert(wrap->handle_.IsNearDeath());
npm error | ^~~~~~~~~~~
npm error In file included from ../node_modules/nan/nan.h:2272,
npm error from ../src/i2c.cc:3:
npm error ../node_modules/nan/nan_typedarray_contents.h: In constructor ‘Nan::TypedArrayContents::TypedArrayContents(v8::Localv8::Value)’:
npm error ../node_modules/nan/nan_typedarray_contents.h:33:43: error: ‘class v8::ArrayBuffer’ has no member named ‘GetContents’
npm error 33 | data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
npm error | ^~~~~~~~~~~
npm error ../src/i2c.cc: In function ‘void SetAddress(const Nan::FunctionCallbackInfov8::Value&)’:
npm error ../src/i2c.cc:38:30: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 38 | addr = info[0]->Int32Value();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
npm error 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
npm error | ^~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc: In function ‘void Scan(const Nan::FunctionCallbackInfov8::Value&)’:
npm error ../src/i2c.cc:60:43: error: no matching function for call to ‘v8::Array::Set(int&, Nan::imp::IntegerFactoryv8::Integer::return_t)’
npm error 60 | results->Set(i, Nan::New(res));
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:246:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, v8::Localv8::Value, v8::Localv8::Value)’
npm error 246 | V8_WARN_UNUSED_RESULT Maybe Set(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:246:37: note: candidate expects 3 arguments, 2 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:249:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, uint32_t, v8::Localv8::Value)’
npm error 249 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:249:37: note: candidate expects 3 arguments, 2 provided
npm error ../src/i2c.cc: In function ‘void Open(const Nan::FunctionCallbackInfov8::Value&)’:
npm error ../src/i2c.cc:84:35: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’
npm error 84 | String::Utf8Value device(info[0]);
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:510:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Localv8::Value)’
npm error 510 | Utf8Value(Isolate* isolate, Localv8::Value obj);
npm error | ^~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:510:5: note: candidate expects 2 arguments, 1 provided
npm error ../src/i2c.cc: In function ‘void Read(const Nan::FunctionCallbackInfov8::Value&)’:
npm error ../src/i2c.cc:103:33: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 103 | int len = info[0]->Int32Value();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
npm error 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
npm error | ^~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc:114:45: error: no matching function for call to ‘v8::Array::Set(int&, Nan::imp::IntegerFactoryv8::Integer::return_t)’
npm error 114 | data->Set(i, Nan::New(buf[i]));
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:246:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, v8::Localv8::Value, v8::Localv8::Value)’
npm error 246 | V8_WARN_UNUSED_RESULT Maybe Set(Local context,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:246:37: note: candidate expects 3 arguments, 2 provided
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:249:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Localv8::Context, uint32_t, v8::Localv8::Value)’
npm error 249 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
npm error | ^~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:249:37: note: candidate expects 3 arguments, 2 provided
npm error ../src/i2c.cc: In function ‘void ReadBlock(const Nan::FunctionCallbackInfov8::Value&)’:
npm error ../src/i2c.cc:154:36: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 154 | int8_t cmd = info[0]->Int32Value();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
npm error 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
npm error | ^~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc:155:37: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 155 | int32_t len = info[1]->Int32Value();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
npm error 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
npm error | ^~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc:178:43: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 178 | int32_t delay = info[2]->Int32Value();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
npm error 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
npm error | ^~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc: In function ‘void Write(const Nan::FunctionCallbackInfov8::Value&)’:
npm error ../src/i2c.cc:193:53: error: no matching function for call to ‘v8::Value::ToObject()’
npm error 193 | int len = node::Buffer::Length(buffer->ToObject());
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
npm error 372 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
npm error | ^~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc:194:52: error: no matching function for call to ‘v8::Value::ToObject()’
npm error 194 | char* data = node::Buffer::Data(buffer->ToObject());
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
npm error 372 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
npm error | ^~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc: In function ‘void WriteByte(const Nan::FunctionCallbackInfov8::Value&)’:
npm error ../src/i2c.cc:213:37: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 213 | int8_t byte = info[0]->Int32Value();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
npm error 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
npm error | ^~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc: In function ‘void WriteBlock(const Nan::FunctionCallbackInfov8::Value&)’:
npm error ../src/i2c.cc:232:36: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 232 | int8_t cmd = info[0]->Int32Value();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
npm error 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
npm error | ^~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc:233:53: error: no matching function for call to ‘v8::Value::ToObject()’
npm error 233 | int len = node::Buffer::Length(buffer->ToObject());
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
npm error 372 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
npm error | ^~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc:234:52: error: no matching function for call to ‘v8::Value::ToObject()’
npm error 234 | char* data = node::Buffer::Data(buffer->ToObject());
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:372:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
npm error 372 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
npm error | ^~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:372:44: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc: In function ‘void WriteWord(const Nan::FunctionCallbackInfov8::Value&)’:
npm error ../src/i2c.cc:253:36: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 253 | int8_t cmd = info[0]->Int32Value();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
npm error 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
npm error | ^~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc:254:38: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 254 | int16_t word = info[1]->Int32Value();
npm error | ^
npm error In file included from /root/.cache/node-gyp/18.20.6/include/node/v8-primitive.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8-array-buffer.h:13,
npm error from /root/.cache/node-gyp/18.20.6/include/node/v8.h:24,
npm error from /root/.cache/node-gyp/18.20.6/include/node/node.h:73,
npm error from ../src/i2c.cc:1:
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
npm error 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
npm error | ^~~~~~~~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided
npm error ../src/i2c.cc: At global scope:
npm error ../src/i2c.cc:270:6: error: variable or field ‘Init’ declared void
npm error 270 | void Init(Handle exports) {
npm error | ^~~~
npm error ../src/i2c.cc:270:11: error: ‘Handle’ was not declared in this scope
npm error 270 | void Init(Handle exports) {
npm error | ^~~~~~
npm error ../src/i2c.cc:270:24: error: expected primary-expression before ‘>’ token
npm error 270 | void Init(Handle exports) {
npm error | ^
npm error ../src/i2c.cc:270:26: error: ‘exports’ was not declared in this scope
npm error 270 | void Init(Handle exports) {
npm error | ^~~~~~~
npm error In file included from ../src/i2c.cc:1:
npm error ../src/i2c.cc:295:18: error: ‘Init’ was not declared in this scope
npm error 295 | NODE_MODULE(i2c, Init)
npm error | ^~~~
npm error /root/.cache/node-gyp/18.20.6/include/node/node.h:1014:36: note: in definition of macro ‘NODE_MODULE_X’
npm error 1014 | (node::addon_register_func) (regfunc),
npm error | ^~~~~~~
npm error ../src/i2c.cc:295:1: note: in expansion of macro ‘NODE_MODULE’
npm error 295 | NODE_MODULE(i2c, Init)
npm error | ^~~~~~~~~~~
npm error make: *** [i2c.target.mk:111: Release/obj.target/i2c/src/i2c.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: make
failed with exit code: 2
npm error gyp ERR! stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Linux 6.1.21-v7+
npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /home/pi/node_modules/i2c
npm error gyp ERR! node -v v18.20.6
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-03-15T12_53_14_304Z-debug-0.log