Closed vr6syncro closed 4 years ago
fixed mit: npm install serialport
also root in /opt/iobroker ausgeführt
hat jetzt aber anstatt der 4.x die 8.x version installiert
Ich habe das gleiche Problem: Serial port > undefined Obige Lösung hat bei mir zu serialport 9 geführt, aber nichts geändert. Das ganze trat bei mir auch auf, als ich node-js und js auf die neuesten Versionen geupdatet hatte.
Dann habt Ihr alle die Anleitung zu nodejs updates nicht befolgt. Da müssen bestimmte Themen "rebuilded" werden wenn es native komponenten enthältz. Auf serialport 9 zu gehen ist sehr experimentel weil der Adapter damit nicht getestet wurde bisher.
Ein Update auf die aktuellste rflink Version bringt serialport 8 mit und hätte funktioniert ... https://github.com/ioBroker/ioBroker.rflink#200-2019-05-15
` root@raspberrypi:/opt/iobroker# sudo npm install https://github.com/ioBroker/ioBroker.rflink/tarball/master --production - unsafe-perm
make: Verzeichnis „/opt/iobroker/node_modules/bluetooth-hci-socket/build“ wird betreten CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’: ../src/BluetoothHciSocket.cpp:128:82: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction()); ^ In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0, from /root/.cache/node-gyp/12.16.2/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /root/.cache/node-gyp/12.16.2/include/node/v8.h:6126:46: note: candidate: v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^ Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)’ is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New) const
V8_WARN_UNUSED_RESULT MaybeLocal
~~/root/.cache/node-gyp/12.16.2/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’: ../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Localnode-pre-gyp info it worked if it ends with ok node-pre-gyp verb cli [ node-pre-gyp verb cli '/usr/local/bin/node', node-pre-gyp verb cli '/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/node_modules/.bin/node-pre-gyp', node-pre-gyp verb cli 'install', node-pre-gyp verb cli '--fallback-to-build' node-pre-gyp verb cli ] node-pre-gyp info using node-pre-gyp@0.6.32 node-pre-gyp info using node@12.16.2 | linux | arm node-pre-gyp verb command install [] node-pre-gyp info check checked for "/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node" (not found) node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v72-linux-arm.tar.gz node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v72-linux-arm.tar.gz node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v72-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@12.16.2 (node-v72 ABI) (falling back to source compile with node-gyp) node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v72-linux-arm.tar.gz node-pre-gyp verb command build [ 'rebuild' ] node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v72-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@12.16.2 (node-v72 ABI) (falling back to source compile with node-gyp) node-pre-gyp http Connection closed while downloading tarball file node-pre-gyp verb command build [ 'rebuild' ] make: Verzeichnis „/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build“ wird betreten CXX(target) Release/obj.target/serialport/src/serialport.o make: Verzeichnis „/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build“ wird betreten CXX(target) Release/obj.target/serialport/src/serialport.o In file included from ../src/serialport.cpp:6:0: ../src/./serialport_poller.h:13:24: error: ‘v8::Handle’ has not been declared static void Init(v8::Handle target);
^ target);
^
../src/serialport.cpp: In function ‘int getIntFromObject(v8::Local, std::cxx11::string)’:
../src/serialport.cpp:90:52: error: no matching function for call to ‘v8::Value::ToInt32()’
return getValueFromObject(options, key)->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^, std::cxx11::string)’:
../src/serialport.cpp:94:54: error: no matching function for call to ‘v8::Value::ToBoolean()’
return getValueFromObject(options, key)->ToBoolean()->BooleanValue();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0,
from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2664:59: note: candidate: v8::MaybeLocal v8::Value::ToBoolean(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToBoolean(
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToBoolean(
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute__((deprecated(message)))
^ v8::Value::ToBoolean(v8::Isolate ) const
Local ToBoolean(Isolate isolate) const;
^ getStringFromObj(v8::Local, std::__cxx11::string)’:
../src/serialport.cpp:98:53: error: no matching function for call to ‘v8::Value::ToString()’
return getValueFromObject(options, key)->ToString();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2668:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^ v8::Value::ToString(v8::Isolate ) const
Local ToString(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToString(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^, std:: cxx11::string)’:
../src/serialport.cpp:102:53: error: no matching function for call to ‘v8::Value::ToNumber()’
return getValueFromObject(options, key)->ToNumber()->NumberValue();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2666:44: note: candidate: v8::MaybeLocal v8::Value::ToNumber(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToNumber(
^ v8::Value::ToNumber(v8::Isolate) const
Local ToNumber(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToNumber(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ v8::Value::ToString(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^ v8::Value::ToString(v8::Isolate ) const
Local ToString(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToString(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ options = info[1]->ToObject();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^ v8::Value::ToObject(v8::Isolate) const
Local ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ platformOptions = getValueFromObject(options, "platformOptions")->ToObject();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^ v8::Value::ToObject(v8::Isolate ) const
Local ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ target);
^ target);
^
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t)’:
../src/serialport.cpp:174:31: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = argv[1]->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate ) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:193:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate ) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ options = info[1]->ToObject();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^ v8::Value::ToObject(v8::Isolate) const
Local ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^, std::__cxx11::string)’:
../src/serialport.cpp:90:52: error: no matching function for call to ‘v8::Value::ToInt32()’
return getValueFromObject(options, key)->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate ) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
^
../src/serialport.cpp: In function ‘bool getBoolFromObject(v8::Local, std::cxx11::string)’:
../src/serialport.cpp:94:54: error: no matching function for call to ‘v8::Value::ToBoolean()’
return getValueFromObject(options, key)->ToBoolean()->BooleanValue();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToBoolean(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToBoolean(
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToBoolean(
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ v8::Value::ToBoolean(v8::Isolate ) const
Local ToBoolean(Isolate isolate) const;
^ getStringFromObj(v8::Local, std::__cxx11::string)’:
../src/serialport.cpp:98:53: error: no matching function for call to ‘v8::Value::ToString()’
return getValueFromObject(options, key)->ToString();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2668:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^ v8::Value::ToString(v8::Isolate ) const
Local ToString(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToString(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^, std:: cxx11::string)’:
../src/serialport.cpp:102:53: error: no matching function for call to ‘v8::Value::ToNumber()’
return getValueFromObject(options, key)->ToNumber()->NumberValue();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2666:44: note: candidate: v8::MaybeLocal v8::Value::ToNumber(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToNumber(
^ v8::Value::ToNumber(v8::Isolate) const
Local ToNumber(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToNumber(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:111:48: error: no matching function for call to ‘v8::Value::ToString()’
v8::String::Utf8Value path(info[0]->ToString());
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2668:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^ v8::Value::ToString(v8::Isolate ) const
Local ToString(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToString(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ options = info[1]->ToObject();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^ v8::Value::ToObject(v8::Isolate) const
Local ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ v8::Value::ToInt32(v8::Isolate ) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ buffer = info[1]->ToObject();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^ v8::Value::ToObject(v8::Isolate) const
Local ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ platformOptions = getValueFromObject(options, "platformOptions")->ToObject();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^ v8::Value::ToObject(v8::Isolate ) const
Local ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local ) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:369:32: error: no matching function for call to ‘v8::Value::ToInt32()’
baton->fd = info[0]->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t )’:
../src/serialport.cpp:174:31: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = argv[1]->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local ) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:193:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ options = info[1]->ToObject();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^ v8::Value::ToObject(v8::Isolate ) const
Local ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:252:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate ) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ buffer = info[1]->ToObject();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^ v8::Value::ToObject(v8::Isolate) const
Local ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:480:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate ) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local ) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:369:32: error: no matching function for call to ‘v8::Value::ToInt32()’
baton->fd = info[0]->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:528:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate ) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ options = info[1]->ToObject();
^
../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t)’:
../src/serialport.cpp:403:30: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local ) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^ argv[]) const {
^~~~
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided
In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0,
from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.2/include/node/node.h:67,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const
Local ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:585:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate ) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local ) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: At global scope:
../src/serialport.cpp:653:17: error: variable or field ‘init’ declared void
void init(v8::Handle target) {
^ target) {
^~
../src/serialport.cpp:653:34: error: expected primary-expression before ‘>’ token
void init(v8::Handle target) {
^
../src/serialport.cpp:653:36: error: ‘target’ was not declared in this scope
void init(v8::Handle target) {
^ Nan::Callback::Call(int, v8::Local ) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
In file included from ../../../../nan/nan.h:54:0,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../src/serialport.cpp:670:25: error: ‘init’ was not declared in this scope
NODE_MODULE(serialport, init);
^
/root/.cache/node-gyp/12.16.2/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc), \
^ v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:528:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate ) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ options = info[1]->ToObject();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^ v8::Value::ToObject(v8::Isolate) const
Local ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToObject(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:585:29: error: no matching function for call to ‘v8::Value::ToInt32()’
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
from ../../../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const
V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
^ v8::Value::ToInt32(v8::Isolate ) const
Local ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ ToInt32(Isolate isolate) const);
^
/root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::Callback::Call(int, v8::Local ) const’ is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../src/serialport.cpp: At global scope:
../src/serialport.cpp:653:17: error: variable or field ‘init’ declared void
void init(v8::Handle target) {
^ target) {
^~
../src/serialport.cpp:653:34: error: expected primary-expression before ‘>’ token
void init(v8::Handle target) {
^
../src/serialport.cpp:653:36: error: ‘target’ was not declared in this scope
void init(v8::Handle target) {
^ (/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:310:20)
gypnode-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System Linux 4.19.66-v7+
node-pre-gyp ERR! ERR! build error
command "/usr/local/bin/node" "/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport
node-pre-gyp ERR! node -v v12.16.2
gypnode-pre-gyp ERR! node-pre-gyp -v v0.6.32
ERR! stacknode-pre-gyp Error:
~../src/./serialport_poller.h:13:30: error: expected ‘,’ or ‘...’ before ‘<’ token static void Init(v8::Handle~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘bool getBoolFromObject(v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2664:59: note: candidate expects 1 argument, 0 provided V8_WARN_UNUSED_RESULT MaybeLocal~~~~~ In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2680:18: note: candidate: v8::Local~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2680:18: note: candidate expects 1 argument, 0 provided ../src/serialport.cpp: In function ‘v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2684:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2666:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2682:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2682:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:111:48: error: no matching function for call to ‘v8::Value::ToString()’ v8::String::Utf8Value path(info[0]->ToString()); ^ In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2668:44: note: candidate: v8::MaybeLocal~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2684:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:118:53: error: no matching function for call to ‘v8::Value::ToObject()’ v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:141:100: error: no matching function for call to ‘v8::Value::ToObject()’ v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local~~~~~ In file included from ../src/serialport.cpp:6:0: ../src/./serialport_poller.h:13:24: error: ‘v8::Handle’ has not been declared static void Init(v8::Handle~../src/./serialport_poller.h:13:30: error: expected ‘,’ or ‘...’ before ‘<’ token static void Init(v8::Handle~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:180:30: warning: ‘v8::Local~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:200:53: error: no matching function for call to ‘v8::Value::ToObject()’ v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘int getIntFromObject(v8::Local~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:217:116: error: no matching function for call to ‘v8::Value::ToInt32()’ baton->baudRate = Nan::Get(options, Nan::New~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2664:59: note: candidate: v8::MaybeLocal~~~~~ In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2664:59: note: candidate expects 1 argument, 0 provided V8_WARN_UNUSED_RESULT MaybeLocal~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2680:18: note: candidate: v8::Local~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2680:18: note: candidate expects 1 argument, 0 provided ../src/serialport.cpp: In function ‘v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2684:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2666:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2682:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2682:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t)’: ../src/serialport.cpp:240:30: warning: ‘v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2684:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:118:53: error: no matching function for call to ‘v8::Value::ToObject()’ v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:252:29: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate: v8::Local~~~~~ In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:259:52: error: no matching function for call to ‘v8::Value::ToObject()’ v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:141:100: error: no matching function for call to ‘v8::Value::ToObject()’ v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t)’: ../src/serialport.cpp:339:30: warning: ‘v8::Local~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t)’: ../src/serialport.cpp:403:30: warning: ‘v8::Local~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:180:30: warning: ‘v8::Local~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:200:53: error: no matching function for call to ‘v8::Value::ToObject()’ v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:217:116: error: no matching function for call to ‘v8::Value::ToInt32()’ baton->baudRate = Nan::Get(options, Nan::New~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t)’: ../src/serialport.cpp:240:30: warning: ‘v8::Local~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:259:52: error: no matching function for call to ‘v8::Value::ToObject()’ v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t)’: ../src/serialport.cpp:465:30: warning: ‘v8::Local~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t)’: ../src/serialport.cpp:339:30: warning: ‘v8::Local~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t)’: ../src/serialport.cpp:516:30: warning: ‘v8::Local~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:535:53: error: no matching function for call to ‘v8::Value::ToObject()’ v8::Local~~~ In file included from ../src/./serialport.h:7:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1740:3: note: declared here Call(int argc, v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t)’: ../src/serialport.cpp:573:30: warning: ‘v8::Local~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t)’: ../src/serialport.cpp:617:30: warning: ‘v8::Local~../src/serialport.cpp:653:13: error: ‘Handle’ is not a member of ‘v8’ void init(v8::Handle~../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t)’: ../src/serialport.cpp:465:30: warning: ‘v8::Local~~ ../src/serialport.cpp:670:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(serialport, init); ^~~../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:480:29: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate: v8::MaybeLocal~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t)’: ../src/serialport.cpp:516:30: warning: ‘v8::Local~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp:535:53: error: no matching function for call to ‘v8::Value::ToObject()’ v8::Local~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t)’: ../src/serialport.cpp:573:30: warning: ‘v8::Local~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2678:43: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27, from /root/.cache/node-gyp/12.16.2/include/node/node.h:67, from ../../../../nan/nan.h:54, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate: v8::Local~~~~~ /root/.cache/node-gyp/12.16.2/include/node/v8.h:2690:30: note: candidate expects 1 argument, 0 provided Local~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t)’: ../src/serialport.cpp:617:30: warning: ‘v8::Local~../src/serialport.cpp:653:13: error: ‘Handle’ is not a member of ‘v8’ void init(v8::Handle~In file included from ../../../../nan/nan.h:54:0, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: ../src/serialport.cpp:670:25: error: ‘init’ was not declared in this scope NODE_MODULE(serialport, init); ^ /root/.cache/node-gyp/12.16.2/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~ ../src/serialport.cpp:670:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(serialport, init); ^~~serialport.target.mk:111: die Regel für Ziel „Release/obj.target/serialport/src/serialport.o“ scheiterte make: [Release/obj.target/serialport/src/serialport.o] Fehler 1 make: Verzeichnis „/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build“ wird verlassen gyp ERR! build error gyp ERR! stack Error:make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:310: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/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build/Release" gyp ERR! cwd /opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport gyp ERR! node -v v12.16.2 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok serialport.target.mk:111: die Regel für Ziel „Release/obj.target/serialport/src/serialport.o“ scheiterte make: [Release/obj.target/serialport/src/serialport.o] Fehler 1 make: Verzeichnis „/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build“ wird verlassen node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build/Release' (1) node-pre-gyp ERR! stack at ChildProcess.make
failed with exit code: 2 gypERR! not okERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:310: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/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build/Release" gyp ERR! cwd /opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport gyp ERR! node -v v12.16.2 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/opt/iobroker/node_modules/avrgirl-arduino/node_modules/serialport/build/Release' (1) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/noble/node_modules/xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/bluetooth-hci-socket): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 install:node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: serialport@4.0.7 (node_modules/avrgirl-arduino/node_modules/serialport): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: serialport@4.0.7 install:node-pre-gyp install --fallback-to-build
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 17 packages are looking for funding run
npm fund
for details`