Hi guys,
i recently updated my nodejs to 14.x and therefore also updated my pimatic installation. When trying to install homeduino I get following errors (see log below).
I am on a fresh install of Debian 11 in a VM. Only NodeJS 14 and ioBroker is running in parallel
Any ideas?
Thanks in advance for your help!!!
Daniel
09:13:00.770 [pimatic] Installing: "pimatic-homeduino@0.9.18" from npm-registry.
09:13:24.030 [pimatic, ppm] > serialport@6.2.2 install /home/daniel/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport
09:13:24.036 [pimatic, ppm] > prebuild-install || node-gyp rebuild
09:13:25.015 [pimatic, ppm] prebuild-install WARN install No prebuilt binaries found (target=14.17.5 runtime=node arch=x64 platform=linux)
09:13:27.146 [pimatic, ppm] make: Verzeichnis „/home/daniel/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/build“ wird betreten
09:13:27.159 [pimatic, ppm] CXX(target) Release/obj.target/serialport/src/serialport.o
09:13:30.499 [pimatic, ppm] ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
09:13:30.506 [pimatic, ppm] ../src/serialport.cpp:41:48: error: no matching function for call to ‘v8::Value::ToString()’
09:13:30.510 [pimatic, ppm] 41 | v8::String::Utf8Value path(info[0]->ToString());
09:13:30.513 [pimatic, ppm] | ^
09:13:30.516 [pimatic, ppm] In file included from /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/node.h:67,
09:13:30.520 [pimatic, ppm] from ../node_modules/nan/nan.h:58,
09:13:30.521 [pimatic, ppm] from ../src/./serialport.h:6,
09:13:30.533 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:30.534 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
09:13:30.536 [pimatic, ppm] 2810 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
09:13:30.538 [pimatic, ppm] | ^~~~~~~~
09:13:30.712 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate expects 1 argument, 0 provided
09:13:30.718 [pimatic, ppm] ../src/serialport.cpp:48:53: error: no matching function for call to ‘v8::Value::ToObject()’
09:13:30.720 [pimatic, ppm] 48 | v8::Local<v8::Object> options = info[1]->ToObject();
09:13:30.722 [pimatic, ppm] | ^
09:13:30.723 [pimatic, ppm] In file included from /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/node.h:67,
09:13:30.725 [pimatic, ppm] from ../node_modules/nan/nan.h:58,
09:13:30.727 [pimatic, ppm] from ../src/./serialport.h:6,
09:13:30.729 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:30.731 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
09:13:30.739 [pimatic, ppm] 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
09:13:30.741 [pimatic, ppm] | ^~~~~~~~
09:13:30.743 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
09:13:30.785 [pimatic, ppm] ../src/serialport.cpp:78:51: 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]
09:13:30.788 [pimatic, ppm] 78 | uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
09:13:30.790 [pimatic, ppm] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
09:13:30.793 [pimatic, ppm] ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
09:13:30.795 [pimatic, ppm] ../src/serialport.cpp:95:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
09:13:30.798 [pimatic, ppm] 95 | data->callback.Call(2, argv);
09:13:30.802 [pimatic, ppm] | ^
09:13:30.805 [pimatic, ppm] In file included from ../src/./serialport.h:6,
09:13:30.807 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:30.809 [pimatic, ppm] ../node_modules/nan/nan.h:1744:3: note: declared here
09:13:30.811 [pimatic, ppm] 1744 | Call(int argc, v8::Local<v8::Value> argv[]) const {
09:13:30.814 [pimatic, ppm] | ^~~~
09:13:30.816 [pimatic, ppm] ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
09:13:30.821 [pimatic, ppm] ../src/serialport.cpp:113:53: error: no matching function for call to ‘v8::Value::ToObject()’
09:13:30.824 [pimatic, ppm] 113 | v8::Local<v8::Object> options = info[1]->ToObject();
09:13:30.826 [pimatic, ppm] | ^
09:13:30.828 [pimatic, ppm] In file included from /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/node.h:67,
09:13:30.830 [pimatic, ppm] from ../node_modules/nan/nan.h:58,
09:13:30.832 [pimatic, ppm] from ../src/./serialport.h:6,
09:13:30.834 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:30.836 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
09:13:30.838 [pimatic, ppm] 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
09:13:30.840 [pimatic, ppm] | ^~~~~~~~
09:13:30.841 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
09:13:30.843 [pimatic, ppm] ../src/serialport.cpp:135:53: 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]
09:13:30.845 [pimatic, ppm] 135 | uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
09:13:30.847 [pimatic, ppm] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
09:13:30.850 [pimatic, ppm] ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
09:13:30.853 [pimatic, ppm] ../src/serialport.cpp:150:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
09:13:30.855 [pimatic, ppm] 150 | data->callback.Call(1, argv);
09:13:30.857 [pimatic, ppm] | ^
09:13:30.859 [pimatic, ppm] In file included from ../src/./serialport.h:6,
09:13:30.860 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:30.862 [pimatic, ppm] ../node_modules/nan/nan.h:1744:3: note: declared here
09:13:30.864 [pimatic, ppm] 1744 | Call(int argc, v8::Local<v8::Value> argv[]) const {
09:13:30.866 [pimatic, ppm] | ^~~~
09:13:30.868 [pimatic, ppm] ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
09:13:30.870 [pimatic, ppm] ../src/serialport.cpp:175:52: 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]
09:13:30.872 [pimatic, ppm] 175 | uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
09:13:30.873 [pimatic, ppm] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
09:13:30.875 [pimatic, ppm] ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
09:13:30.877 [pimatic, ppm] ../src/serialport.cpp:188:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
09:13:30.879 [pimatic, ppm] 188 | data->callback.Call(1, argv);
09:13:30.881 [pimatic, ppm] | ^
09:13:30.883 [pimatic, ppm] In file included from ../src/./serialport.h:6,
09:13:30.885 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:30.890 [pimatic, ppm] ../node_modules/nan/nan.h:1744:3: note: declared here
09:13:30.892 [pimatic, ppm] 1744 | Call(int argc, v8::Local<v8::Value> argv[]) const {
09:13:30.894 [pimatic, ppm] | ^~~~
09:13:30.896 [pimatic, ppm] ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
09:13:30.898 [pimatic, ppm] ../src/serialport.cpp:215:52: 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]
09:13:30.900 [pimatic, ppm] 215 | uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
09:13:30.902 [pimatic, ppm] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
09:13:30.904 [pimatic, ppm] ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
09:13:30.906 [pimatic, ppm] ../src/serialport.cpp:231:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
09:13:30.908 [pimatic, ppm] 231 | data->callback.Call(1, argv);
09:13:30.910 [pimatic, ppm] | ^
09:13:30.912 [pimatic, ppm] In file included from ../src/./serialport.h:6,
09:13:30.914 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:30.916 [pimatic, ppm] ../node_modules/nan/nan.h:1744:3: note: declared here
09:13:30.918 [pimatic, ppm] 1744 | Call(int argc, v8::Local<v8::Value> argv[]) const {
09:13:30.920 [pimatic, ppm] | ^~~~
09:13:30.921 [pimatic, ppm] ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
09:13:30.923 [pimatic, ppm] ../src/serialport.cpp:250:53: error: no matching function for call to ‘v8::Value::ToObject()’
09:13:30.925 [pimatic, ppm] 250 | v8::Local<v8::Object> options = info[1]->ToObject();
09:13:30.927 [pimatic, ppm] | ^
09:13:30.929 [pimatic, ppm] In file included from /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/node.h:67,
09:13:30.931 [pimatic, ppm] from ../node_modules/nan/nan.h:58,
09:13:30.933 [pimatic, ppm] from ../src/./serialport.h:6,
09:13:30.935 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:30.937 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
09:13:30.939 [pimatic, ppm] 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
09:13:30.941 [pimatic, ppm] | ^~~~~~~~
09:13:30.943 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
09:13:30.945 [pimatic, ppm] ../src/serialport.cpp:270:50: 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]
09:13:30.947 [pimatic, ppm] 270 | uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
09:13:30.948 [pimatic, ppm] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
09:13:30.950 [pimatic, ppm] ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
09:13:30.951 [pimatic, ppm] ../src/serialport.cpp:285:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
09:13:30.953 [pimatic, ppm] 285 | data->callback.Call(1, argv);
09:13:30.957 [pimatic, ppm] | ^
09:13:30.958 [pimatic, ppm] In file included from ../src/./serialport.h:6,
09:13:30.960 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:30.961 [pimatic, ppm] ../node_modules/nan/nan.h:1744:3: note: declared here
09:13:30.962 [pimatic, ppm] 1744 | Call(int argc, v8::Local<v8::Value> argv[]) const {
09:13:30.964 [pimatic, ppm] | ^~~~
09:13:30.965 [pimatic, ppm] ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’:
09:13:30.966 [pimatic, ppm] ../src/serialport.cpp:314:50: 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]
09:13:30.968 [pimatic, ppm] 314 | uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);
09:13:30.969 [pimatic, ppm] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
09:13:30.970 [pimatic, ppm] ../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t*)’:
09:13:30.972 [pimatic, ppm] ../src/serialport.cpp:329:96: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)’
09:13:30.973 [pimatic, ppm] 329 | results->Set(Nan::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
09:13:30.974 [pimatic, ppm] | ^
09:13:30.976 [pimatic, ppm] In file included from /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/node.h:67,
09:13:30.977 [pimatic, ppm] from ../node_modules/nan/nan.h:58,
09:13:30.979 [pimatic, ppm] from ../src/./serialport.h:6,
09:13:30.980 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:30.982 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
09:13:30.983 [pimatic, ppm] 3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
09:13:30.985 [pimatic, ppm] | ^~~
09:13:30.986 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
09:13:30.988 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
09:13:30.989 [pimatic, ppm] 3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
09:13:30.990 [pimatic, ppm] | ^~~
09:13:30.992 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
09:13:30.993 [pimatic, ppm] ../src/serialport.cpp:330:96: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)’
09:13:30.994 [pimatic, ppm] 330 | results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr));
09:13:30.996 [pimatic, ppm] | ^
09:13:30.997 [pimatic, ppm] In file included from /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/node.h:67,
09:13:30.999 [pimatic, ppm] from ../node_modules/nan/nan.h:58,
09:13:31.000 [pimatic, ppm] from ../src/./serialport.h:6,
09:13:31.002 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:31.005 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
09:13:31.007 [pimatic, ppm] 3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
09:13:31.008 [pimatic, ppm] | ^~~
09:13:31.010 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
09:13:31.011 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
09:13:31.013 [pimatic, ppm] 3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
09:13:31.014 [pimatic, ppm] | ^~~
09:13:31.016 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
09:13:31.017 [pimatic, ppm] ../src/serialport.cpp:331:96: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)’
09:13:31.018 [pimatic, ppm] 331 | results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
09:13:31.020 [pimatic, ppm] | ^
09:13:31.021 [pimatic, ppm] In file included from /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/node.h:67,
09:13:31.023 [pimatic, ppm] from ../node_modules/nan/nan.h:58,
09:13:31.024 [pimatic, ppm] from ../src/./serialport.h:6,
09:13:31.026 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:31.027 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
09:13:31.028 [pimatic, ppm] 3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
09:13:31.031 [pimatic, ppm] | ^~~
09:13:31.033 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
09:13:31.034 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
09:13:31.036 [pimatic, ppm] 3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
09:13:31.037 [pimatic, ppm] | ^~~
09:13:31.038 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
09:13:31.040 [pimatic, ppm] ../src/serialport.cpp:336:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
09:13:31.041 [pimatic, ppm] 336 | data->callback.Call(2, argv);
09:13:31.043 [pimatic, ppm] | ^
09:13:31.044 [pimatic, ppm] In file included from ../src/./serialport.h:6,
09:13:31.045 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:31.047 [pimatic, ppm] ../node_modules/nan/nan.h:1744:3: note: declared here
09:13:31.048 [pimatic, ppm] 1744 | Call(int argc, v8::Local<v8::Value> argv[]) const {
09:13:31.050 [pimatic, ppm] | ^~~~
09:13:31.052 [pimatic, ppm] ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’:
09:13:31.053 [pimatic, ppm] ../src/serialport.cpp:363:58: 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]
09:13:31.058 [pimatic, ppm] 363 | uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);
09:13:31.060 [pimatic, ppm] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
09:13:31.061 [pimatic, ppm] ../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t*)’:
09:13:31.063 [pimatic, ppm] ../src/serialport.cpp:378:106: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
09:13:31.065 [pimatic, ppm] 378 | results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
09:13:31.066 [pimatic, ppm] | ^
09:13:31.068 [pimatic, ppm] In file included from /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/node.h:67,
09:13:31.069 [pimatic, ppm] from ../node_modules/nan/nan.h:58,
09:13:31.071 [pimatic, ppm] from ../src/./serialport.h:6,
09:13:31.072 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:31.074 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
09:13:31.075 [pimatic, ppm] 3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
09:13:31.077 [pimatic, ppm] | ^~~
09:13:31.078 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
09:13:31.080 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
09:13:31.081 [pimatic, ppm] 3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
09:13:31.083 [pimatic, ppm] | ^~~
09:13:31.084 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
09:13:31.086 [pimatic, ppm] ../src/serialport.cpp:383:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
09:13:31.087 [pimatic, ppm] 383 | data->callback.Call(2, argv);
09:13:31.089 [pimatic, ppm] | ^
09:13:31.090 [pimatic, ppm] In file included from ../src/./serialport.h:6,
09:13:31.092 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:31.093 [pimatic, ppm] ../node_modules/nan/nan.h:1744:3: note: declared here
09:13:31.095 [pimatic, ppm] 1744 | Call(int argc, v8::Local<v8::Value> argv[]) const {
09:13:31.096 [pimatic, ppm] | ^~~~
09:13:31.097 [pimatic, ppm] ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
09:13:31.099 [pimatic, ppm] ../src/serialport.cpp:409:52: 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]
09:13:31.100 [pimatic, ppm] 409 | uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
09:13:31.102 [pimatic, ppm] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
09:13:31.103 [pimatic, ppm] ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
09:13:31.105 [pimatic, ppm] ../src/serialport.cpp:424:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
09:13:31.106 [pimatic, ppm] 424 | data->callback.Call(1, argv);
09:13:31.111 [pimatic, ppm] | ^
09:13:31.112 [pimatic, ppm] In file included from ../src/./serialport.h:6,
09:13:31.114 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:31.115 [pimatic, ppm] ../node_modules/nan/nan.h:1744:3: note: declared here
09:13:31.116 [pimatic, ppm] 1744 | Call(int argc, v8::Local<v8::Value> argv[]) const {
09:13:31.118 [pimatic, ppm] | ^~~~
09:13:31.119 [pimatic, ppm] ../src/serialport.cpp: At global scope:
09:13:31.121 [pimatic, ppm] ../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
09:13:31.122 [pimatic, ppm] 430 | SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
09:13:31.124 [pimatic, ppm] | ^
09:13:31.125 [pimatic, ppm] ../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
09:13:31.126 [pimatic, ppm] 449 | SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
09:13:31.128 [pimatic, ppm] | ^
09:13:31.129 [pimatic, ppm] ../src/serialport.cpp:460:8: error: variable or field ‘init’ declared void
09:13:31.131 [pimatic, ppm] 460 | void init(v8::Handle<v8::Object> target) {
09:13:31.132 [pimatic, ppm] | ^~~~
09:13:31.134 [pimatic, ppm] ../src/serialport.cpp:460:17: error: ‘Handle’ is not a member of ‘v8’; did you mean ‘JobHandle’?
09:13:31.135 [pimatic, ppm] 460 | void init(v8::Handle<v8::Object> target) {
09:13:31.136 [pimatic, ppm] | ^~~~~~
09:13:31.138 [pimatic, ppm] | JobHandle
09:13:31.139 [pimatic, ppm] ../src/serialport.cpp:460:34: error: expected primary-expression before ‘>’ token
09:13:31.141 [pimatic, ppm] 460 | void init(v8::Handle<v8::Object> target) {
09:13:31.142 [pimatic, ppm] | ^
09:13:31.626 [pimatic, ppm] ../src/serialport.cpp:460:36: error: ‘target’ was not declared in this scope
09:13:31.628 [pimatic, ppm] 460 | void init(v8::Handle<v8::Object> target) {
09:13:31.630 [pimatic, ppm] | ^~~~~~
09:13:31.632 [pimatic, ppm] In file included from ../node_modules/nan/nan.h:58,
09:13:31.633 [pimatic, ppm] from ../src/./serialport.h:6,
09:13:31.635 [pimatic, ppm] from ../src/serialport.cpp:1:
09:13:31.637 [pimatic, ppm] ../src/serialport.cpp:485:25: error: ‘init’ was not declared in this scope; did you mean ‘int’?
09:13:31.639 [pimatic, ppm] 485 | NODE_MODULE(serialport, init);
09:13:31.641 [pimatic, ppm] | ^~~~
09:13:31.643 [pimatic, ppm] /home/daniel/pimatic-app/.node-gyp/14.17.5/include/node/node.h:758:36: note: in definition of macro ‘NODE_MODULE_X’
09:13:31.645 [pimatic, ppm] 758 | (node::addon_register_func) (regfunc), \
09:13:31.648 [pimatic, ppm] | ^~~~~~~
09:13:31.650 [pimatic, ppm] ../src/serialport.cpp:485:1: note: in expansion of macro ‘NODE_MODULE’
09:13:31.652 [pimatic, ppm] 485 | NODE_MODULE(serialport, init);
09:13:31.654 [pimatic, ppm] | ^~~~~~~~~~~
09:13:31.657 [pimatic, ppm] make: *** [serialport.target.mk:108: Release/obj.target/serialport/src/serialport.o] Fehler 1
09:13:31.659 [pimatic, ppm] gyp ERR! build error
09:13:31.661 [pimatic, ppm] gyp ERR! stack Error: `make` failed with exit code: 2
09:13:31.663 [pimatic, ppm] gyp ERR! stack at ChildProcess.onExit (/home/daniel/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/node-gyp/lib/build.js:285:23)
09:13:31.666 [pimatic, ppm] gyp ERR! stack at ChildProcess.emit (events.js:400:28)
09:13:31.667 [pimatic, ppm] gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
09:13:31.669 [pimatic, ppm] gyp ERR! System Linux 5.10.0-8-amd64
09:13:31.671 [pimatic, ppm] gyp ERR! command "/usr/bin/node" "/home/daniel/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
09:13:31.673 [pimatic, ppm] gyp ERR! cwd /home/daniel/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport
09:13:31.675 [pimatic, ppm] gyp ERR! node -v v14.17.5
09:13:31.680 [pimatic, ppm] gyp ERR! node-gyp -v v3.6.0
09:13:31.682 [pimatic, ppm] gyp ERR! not ok
09:13:31.684 [pimatic, ppm] ERR! Linux 5.10.0-8-amd64
09:13:31.686 [pimatic, ppm] ERR! argv "/usr/bin/node" "/home/daniel/pimatic-app/node_modules/pimatic/ppm.js" "install" "pimatic-homeduino@0.9.18" "--unsafe-perm"
09:13:31.688 [pimatic, ppm] ERR! node v14.17.5
09:13:31.690 [pimatic, ppm] ERR! npm v2.15.12
09:13:31.692 [pimatic, ppm] ERR! code ELIFECYCLE
09:13:31.694 [pimatic, ppm] ERR! serialport@6.2.2 install: `prebuild-install || node-gyp rebuild`
09:13:31.696 [pimatic, ppm] ERR! Exit status 1
09:13:31.698 [pimatic, ppm] ERR!
09:13:31.700 [pimatic, ppm] ERR! Failed at the serialport@6.2.2 install script 'prebuild-install || node-gyp rebuild'.
09:13:31.702 [pimatic, ppm] ERR! This is most likely a problem with the serialport package,
09:13:31.703 [pimatic, ppm] ERR! not with npm itself.
09:13:31.705 [pimatic, ppm] ERR! Tell the author that this fails on your system:
09:13:31.707 [pimatic, ppm] ERR! prebuild-install || node-gyp rebuild
09:13:31.709 [pimatic, ppm] ERR! You can get information on how to open an issue for this project with:
09:13:31.711 [pimatic, ppm] ERR! npm bugs serialport
09:13:31.712 [pimatic, ppm] ERR! Or if that isn't available, you can get their info via:
09:13:31.714 [pimatic, ppm] ERR!
09:13:31.716 [pimatic, ppm] ERR! npm owner ls serialport
09:13:31.718 [pimatic, ppm] ERR! There is likely additional logging output above.
09:13:31.791 [pimatic, ppm] make: Verzeichnis „/home/daniel/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/build“ wird verlassen
09:13:32.772 [pimatic, ppm] ERR! Please include the following file with any support request:
09:13:32.774 [pimatic, ppm] ERR! /home/daniel/pimatic-app/npm-debug.log
09:13:32.803 [pimatic] Error installing plugin pimatic-homeduino: Error running "./node_modules/pimatic/ppm.js install pimatic-homeduino@0.9.18 --unsafe-perm"