Created
November 5, 2019 18:50
-
-
Save aurels/0f1f8d422a8f3a9319bf0086a8297779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ptolemee# npm i | |
> @serialport/bindings@2.0.8 install /root/mpr-6zhmaut-api/node_modules/@serialport/bindings | |
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild | |
prebuild-install WARN install No prebuilt binaries found (target=13.0.1 runtime=node arch=x64 libc= platform=linux) | |
make: Entering directory '/root/mpr-6zhmaut-api/node_modules/@serialport/bindings/build' | |
CXX(target) Release/obj.target/bindings/src/serialport.o | |
In file included from ../src/./serialport.h:6, | |
from ../src/serialport.cpp:1: | |
../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: | |
../../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] | |
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | |
^ | |
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/serialport.cpp:78:69: 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] | |
uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen); | |
^~~~~~~~~~~~~ | |
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/serialport.cpp:135:71: 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] | |
uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate); | |
^~~~~~~~~~~~~~~ | |
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/serialport.cpp:175:70: 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] | |
uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose); | |
^~~~~~~~~~~~~~ | |
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/serialport.cpp:215:70: 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] | |
uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush); | |
^~~~~~~~~~~~~~ | |
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/serialport.cpp:270:68: 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] | |
uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet); | |
^~~~~~~~~~~~ | |
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/serialport.cpp:314:68: 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] | |
uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet); | |
^~~~~~~~~~~~ | |
../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t*)’: | |
../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)’ | |
results->Set(Nan::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts)); | |
^ | |
In file included from /root/.cache/node-gyp/13.0.1/include/node/node.h:63, | |
from ../../../nan/nan.h:54, | |
from ../src/./serialport.h:6, | |
from ../src/serialport.cpp:1: | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3416:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3416:37: note: candidate expects 3 arguments, 2 provided | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3419:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, | |
^~~ | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3419:37: note: candidate expects 3 arguments, 2 provided | |
../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)’ | |
results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr)); | |
^ | |
In file included from /root/.cache/node-gyp/13.0.1/include/node/node.h:63, | |
from ../../../nan/nan.h:54, | |
from ../src/./serialport.h:6, | |
from ../src/serialport.cpp:1: | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3416:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3416:37: note: candidate expects 3 arguments, 2 provided | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3419:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, | |
^~~ | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3419:37: note: candidate expects 3 arguments, 2 provided | |
../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)’ | |
results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd)); | |
^ | |
In file included from /root/.cache/node-gyp/13.0.1/include/node/node.h:63, | |
from ../../../nan/nan.h:54, | |
from ../src/./serialport.h:6, | |
from ../src/serialport.cpp:1: | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3416:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3416:37: note: candidate expects 3 arguments, 2 provided | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3419:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, | |
^~~ | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3419:37: note: candidate expects 3 arguments, 2 provided | |
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/serialport.cpp:363:76: 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] | |
uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate); | |
^~~~~~~~~~~~~~~~~~~~ | |
../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t*)’: | |
../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)’ | |
results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate)); | |
^ | |
In file included from /root/.cache/node-gyp/13.0.1/include/node/node.h:63, | |
from ../../../nan/nan.h:54, | |
from ../src/./serialport.h:6, | |
from ../src/serialport.cpp:1: | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3416:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3416:37: note: candidate expects 3 arguments, 2 provided | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3419:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, | |
^~~ | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:3419:37: note: candidate expects 3 arguments, 2 provided | |
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/serialport.cpp:409:70: 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] | |
uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain); | |
^~~~~~~~~~~~~~ | |
../src/serialport.cpp: At global scope: | |
../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses] | |
SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) { | |
^ | |
../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses] | |
SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) { | |
^ | |
In file included from ../../../nan/nan.h:54, | |
from ../src/./serialport.h:6, | |
from ../src/serialport.cpp:1: | |
/root/.cache/node-gyp/13.0.1/include/node/node.h:571:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] | |
(node::addon_register_func) (regfunc), \ | |
^ | |
/root/.cache/node-gyp/13.0.1/include/node/node.h:605:3: note: in expansion of macro ‘NODE_MODULE_X’ | |
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | |
^~~~~~~~~~~~~ | |
../src/serialport.cpp:483:1: note: in expansion of macro ‘NODE_MODULE’ | |
NODE_MODULE(serialport, init); | |
^~~~~~~~~~~ | |
In file included from /root/.cache/node-gyp/13.0.1/include/node/node.h:63, | |
from ../../../nan/nan.h:54, | |
from ../src/./serialport.h:6, | |
from ../src/serialport.cpp:1: | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’: | |
/root/.cache/node-gyp/13.0.1/include/node/node_object_wrap.h:84:78: required from here | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:10092:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
reinterpret_cast<Callback>(callback), type); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’: | |
../../../nan/nan_object_wrap.h:65:61: required from here | |
/root/.cache/node-gyp/13.0.1/include/node/v8.h:10092:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
make: *** [bindings.target.mk:112: Release/obj.target/bindings/src/serialport.o] Error 1 | |
make: Leaving directory '/root/mpr-6zhmaut-api/node_modules/@serialport/bindings/build' | |
gyp ERR! build error | |
gyp ERR! stack Error: `make` failed with exit code: 2 | |
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) | |
gyp ERR! stack at ChildProcess.emit (events.js:210:5) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) | |
gyp ERR! System Linux 4.19.0-5-amd64 | |
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" | |
gyp ERR! cwd /root/mpr-6zhmaut-api/node_modules/@serialport/bindings | |
gyp ERR! node -v v13.0.1 | |
gyp ERR! node-gyp -v v5.0.5 | |
gyp ERR! not ok | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 1 | |
npm ERR! @serialport/bindings@2.0.8 install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the @serialport/bindings@2.0.8 install script. | |
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. | |
npm ERR! A complete log of this run can be found in: | |
npm ERR! /root/.npm/_logs/2019-11-05T18_49_18_711Z-debug.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment