Skip to content

Instantly share code, notes, and snippets.

@MateusRodCosta
Created September 11, 2019 15:13
Show Gist options
  • Save MateusRodCosta/75560e0c2113383aa0163a7b120e2a7d to your computer and use it in GitHub Desktop.
Save MateusRodCosta/75560e0c2113383aa0163a7b120e2a7d to your computer and use it in GitHub Desktop.
[mateusrc@delart mBlock-4.0.0-Linux]$ npm install
npm WARN deprecated electron-prebuilt@1.4.13: electron-prebuilt has been renamed to electron. For more details, see http://electron.atom.io/blog/2016/08/16/npm-install-electron
npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
> typechecker@2.0.8 preinstall /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/extract-opts/node_modules/typechecker
> node ./cyclic.js
> typechecker@2.0.8 preinstall /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/extendr/node_modules/typechecker
> node ./cyclic.js
> --serial-port@2.2.6 install /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/bluetooth-serial-port
> node-gyp configure build
make: Entering directory '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/bluetooth-serial-port/build'
CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../src/linux/BluetoothSerialPort.cc:12:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>, v8::Local<v8::String>)’} [-Wcast-function-type]
10304 | callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10349 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10356 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
In file included from ../src/DeviceINQ.h:17,
from ../src/linux/BluetoothSerialPort.cc:13:
../../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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
In file included from ../src/linux/BluetoothSerialPort.cc:12:
../src/linux/BluetoothSerialPort.cc: At global scope:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:505:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
505 | (node::addon_register_func) (regfunc), \
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:536:3: note: in expansion of macro ‘NODE_MODULE_X’
536 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/linux/BluetoothSerialPort.cc:23:1: note: in expansion of macro ‘NODE_MODULE’
23 | NODE_MODULE(BluetoothSerialPort, InitAll)
| ^~~~~~~~~~~
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../src/linux/BluetoothSerialPort.cc:12:
/home/mateusrc/.cache/node-gyp/8.16.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>&)]’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node_object_wrap.h:85:78: required from here
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
9313 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.cache/node-gyp/8.16.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
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/DeviceINQ.o
In file included from ../src/linux/DeviceINQ.cc:12:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>, v8::Local<v8::String>)’} [-Wcast-function-type]
10304 | callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10349 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10356 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
In file included from ../src/linux/DeviceINQ.cc:14:
../../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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/linux/DeviceINQ.cc: In static member function ‘static void DeviceINQ::EIO_AfterSdpSearch(uv_work_t*)’:
../src/linux/DeviceINQ.cc:139:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
139 | baton->cb->Call(1, argv);
| ^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/DeviceINQ.cc: In static member function ‘static void DeviceINQ::Init(v8::Local<v8::Object>)’:
../src/linux/DeviceINQ.cc:166:98: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result]
166 | target->Set(ctx, Nan::New("DeviceINQ").ToLocalChecked(), t->GetFunction(ctx).ToLocalChecked());
| ^
In file included from ../src/linux/DeviceINQ.cc:12:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:3108:37: note: declared here
3108 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
../src/linux/DeviceINQ.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DeviceINQ::InquireSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/DeviceINQ.cc:251:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
251 | found->Call(2, argv);
| ^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/DeviceINQ.cc:255:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
255 | callback->Call(0, argv);
| ^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/DeviceINQ.cc: In member function ‘virtual void InquireWorker::HandleOKCallback()’:
../src/linux/DeviceINQ.cc:284:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
284 | found->Call(2, argv);
| ^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/DeviceINQ.cc:288:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
288 | callback->Call(0, argv);
| ^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/DeviceINQ.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DeviceINQ::SdpSearch(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/DeviceINQ.cc:335:88: 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]
335 | uv_queue_work(uv_default_loop(), &baton->request, EIO_SdpSearch, (uv_after_work_cb)EIO_AfterSdpSearch);
| ^~~~~~~~~~~~~~~~~~
../src/linux/DeviceINQ.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DeviceINQ::ListPairedDevices(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/DeviceINQ.cc:366:83: warning: ignoring return value of ‘v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)’, declared with attribute warn_unused_result [-Wunused-result]
366 | cb->Call(Nan::GetCurrentContext(), Nan::GetCurrentContext()->Global(), 1, argv);
| ^
In file included from ../src/linux/DeviceINQ.cc:12:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:3910:43: note: declared here
3910 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
/home/mateusrc/.cache/node-gyp/8.16.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>&)]’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node_object_wrap.h:85:78: required from here
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
9313 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.cache/node-gyp/8.16.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
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BTSerialPortBinding.o
In file included from ../src/linux/BTSerialPortBinding.cc:12:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>, v8::Local<v8::String>)’} [-Wcast-function-type]
10304 | callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10349 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10356 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
In file included from ../src/linux/BTSerialPortBinding.cc:14:
../../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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/linux/BTSerialPortBinding.cc: In static member function ‘static void BTSerialPortBinding::EIO_AfterConnect(uv_work_t*)’:
../src/linux/BTSerialPortBinding.cc:83:32: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
83 | baton->cb->Call(0, NULL);
| ^
In file included from ../src/linux/BTSerialPortBinding.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/BTSerialPortBinding.cc:90:33: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
90 | baton->ecb->Call(1, argv);
| ^
In file included from ../src/linux/BTSerialPortBinding.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/BTSerialPortBinding.cc: In static member function ‘static void BTSerialPortBinding::EIO_Write(uv_work_t*)’:
../src/linux/BTSerialPortBinding.cc:114:62: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
114 | int bytesSent = write(rfcomm->s, data->bufferData+data->result, bytesToSend);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../src/linux/BTSerialPortBinding.cc: In static member function ‘static void BTSerialPortBinding::EIO_AfterWrite(uv_work_t*)’:
../src/linux/BTSerialPortBinding.cc:143:33: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
143 | data->callback->Call(2, argv);
| ^
In file included from ../src/linux/BTSerialPortBinding.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/BTSerialPortBinding.cc:152:94: 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]
152 | uv_queue_work(uv_default_loop(), &nextQueuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
| ^~~~~~~~~~~~~~
../src/linux/BTSerialPortBinding.cc: In static member function ‘static void BTSerialPortBinding::EIO_AfterRead(uv_work_t*)’:
../src/linux/BTSerialPortBinding.cc:215:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
215 | baton->cb->Call(2, argv);
| ^
In file included from ../src/linux/BTSerialPortBinding.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/BTSerialPortBinding.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BTSerialPortBinding::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/BTSerialPortBinding.cc:290:86: 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]
290 | uv_queue_work(uv_default_loop(), &baton->request, EIO_Connect, (uv_after_work_cb)EIO_AfterConnect);
| ^~~~~~~~~~~~~~~~
../src/linux/BTSerialPortBinding.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BTSerialPortBinding::Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/BTSerialPortBinding.cc:323:43: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct BTSerialPortBinding::write_baton_t’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
323 | memset(baton, 0, sizeof(write_baton_t));
| ^
In file included from ../src/linux/BTSerialPortBinding.cc:19:
../src/BTSerialPortBinding.h:68:16: note: ‘struct BTSerialPortBinding::write_baton_t’ declared here
68 | struct write_baton_t {
| ^~~~~~~~~~~~~
../src/linux/BTSerialPortBinding.cc:342:90: 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]
342 | uv_queue_work(uv_default_loop(), &queuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
| ^~~~~~~~~~~~~~
../src/linux/BTSerialPortBinding.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BTSerialPortBinding::Read(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/BTSerialPortBinding.cc:392:25: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
392 | nc->Call(2, argv);
| ^
In file included from ../src/linux/BTSerialPortBinding.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/BTSerialPortBinding.cc:400:87: 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]
400 | uv_queue_work(uv_default_loop(), &baton->request, EIO_Read, (uv_after_work_cb)EIO_AfterRead);
| ^~~~~~~~~~~~~
In file included from ../src/linux/BTSerialPortBinding.cc:12:
/home/mateusrc/.cache/node-gyp/8.16.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>&)]’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node_object_wrap.h:85:78: required from here
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
9313 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.cache/node-gyp/8.16.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
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
SOLINK_MODULE(target) Release/obj.target/BluetoothSerialPort.node
COPY Release/BluetoothSerialPort.node
CXX(target) Release/obj.target/BluetoothSerialPortServer/src/linux/BluetoothSerialPortServer.o
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../src/linux/BluetoothSerialPortServer.cc:12:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>, v8::Local<v8::String>)’} [-Wcast-function-type]
10304 | callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10349 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10356 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
In file included from ../src/DeviceINQ.h:17,
from ../src/linux/BluetoothSerialPortServer.cc:13:
../../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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
In file included from ../src/linux/BluetoothSerialPortServer.cc:12:
../src/linux/BluetoothSerialPortServer.cc: At global scope:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:505:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
505 | (node::addon_register_func) (regfunc), \
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:536:3: note: in expansion of macro ‘NODE_MODULE_X’
536 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/linux/BluetoothSerialPortServer.cc:22:1: note: in expansion of macro ‘NODE_MODULE’
22 | NODE_MODULE(BluetoothSerialPortServer, InitAllServer)
| ^~~~~~~~~~~
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../src/linux/BluetoothSerialPortServer.cc:12:
/home/mateusrc/.cache/node-gyp/8.16.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>&)]’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node_object_wrap.h:85:78: required from here
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
9313 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.cache/node-gyp/8.16.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
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
CXX(target) Release/obj.target/BluetoothSerialPortServer/src/linux/BTSerialPortBindingServer.o
In file included from ../src/linux/BTSerialPortBindingServer.cc:12:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>, v8::Local<v8::String>)’} [-Wcast-function-type]
10304 | callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10349 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10356 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
In file included from ../src/linux/BTSerialPortBindingServer.cc:14:
../../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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/linux/BTSerialPortBindingServer.cc: In static member function ‘static void BTSerialPortBindingServer::EIO_AfterListen(uv_work_t*)’:
../src/linux/BTSerialPortBindingServer.cc:165:33: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
165 | baton->ecb->Call(1, argv);
| ^
In file included from ../src/linux/BTSerialPortBindingServer.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/BTSerialPortBindingServer.cc: In static member function ‘static void BTSerialPortBindingServer::EIO_AfterWrite(uv_work_t*)’:
../src/linux/BTSerialPortBindingServer.cc:217:33: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
217 | data->callback->Call(2, argv);
| ^
In file included from ../src/linux/BTSerialPortBindingServer.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/BTSerialPortBindingServer.cc:225:94: 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]
225 | uv_queue_work(uv_default_loop(), &nextQueuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
| ^~~~~~~~~~~~~~
../src/linux/BTSerialPortBindingServer.cc: In static member function ‘static void BTSerialPortBindingServer::EIO_AfterRead(uv_work_t*)’:
../src/linux/BTSerialPortBindingServer.cc:297:36: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
297 | baton->cb->Call(2, argv);
| ^
In file included from ../src/linux/BTSerialPortBindingServer.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/BTSerialPortBindingServer.cc:311:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
311 | baton->cb->Call(2, argv);
| ^
In file included from ../src/linux/BTSerialPortBindingServer.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/BTSerialPortBindingServer.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BTSerialPortBindingServer::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/BTSerialPortBindingServer.cc:418:85: 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]
418 | uv_queue_work(uv_default_loop(), &baton->request, EIO_Listen, (uv_after_work_cb)EIO_AfterListen);
| ^~~~~~~~~~~~~~~
../src/linux/BTSerialPortBindingServer.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BTSerialPortBindingServer::Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/BTSerialPortBindingServer.cc:530:43: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct BTSerialPortBindingServer::write_baton_t’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
530 | memset(baton, 0, sizeof(write_baton_t));
| ^
In file included from ../src/linux/BTSerialPortBindingServer.cc:22:
../src/BTSerialPortBindingServer.h:57:16: note: ‘struct BTSerialPortBindingServer::write_baton_t’ declared here
57 | struct write_baton_t {
| ^~~~~~~~~~~~~
../src/linux/BTSerialPortBindingServer.cc:549:90: 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]
549 | uv_queue_work(uv_default_loop(), &queuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
| ^~~~~~~~~~~~~~
../src/linux/BTSerialPortBindingServer.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BTSerialPortBindingServer::Read(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/BTSerialPortBindingServer.cc:610:25: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
610 | nc->Call(2, argv);
| ^
In file included from ../src/linux/BTSerialPortBindingServer.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/BTSerialPortBindingServer.cc:618:83: 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]
618 | uv_queue_work(uv_default_loop(), &baton->request, EIO_Read, (uv_after_work_cb)EIO_AfterRead);
| ^~~~~~~~~~~~~
../src/linux/BTSerialPortBindingServer.cc: In member function ‘virtual void BTSerialPortBindingServer::ClientWorker::HandleOKCallback()’:
../src/linux/BTSerialPortBindingServer.cc:710:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
710 | callback->Call(1, argv);
| ^
In file included from ../src/linux/BTSerialPortBindingServer.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
In file included from ../src/linux/BTSerialPortBindingServer.cc:12:
/home/mateusrc/.cache/node-gyp/8.16.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>&)]’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node_object_wrap.h:85:78: required from here
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
9313 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.cache/node-gyp/8.16.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
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
SOLINK_MODULE(target) Release/obj.target/BluetoothSerialPortServer.node
COPY Release/BluetoothSerialPortServer.node
make: Leaving directory '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/bluetooth-serial-port/build'
> node-hid@0.5.7 install /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/node-hid
> prebuild-install || node-gyp rebuild
> serialport@4.0.7 install /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/serialport
> node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/bin/node',
node-pre-gyp verb cli '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/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 info using node-pre-gyp@0.6.32
node-pre-gyp info using node@8.16.1 | linux | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/home/mateusrc/Downloads/mBlock-4.0.0-Linux/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-v57-linux-x64.tar.gz
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v57-linux-x64.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-v57-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@8.16.1 (node-v57 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-v57-linux-x64.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
make: Entering directory '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>, v8::Local<v8::String>)’} [-Wcast-function-type]
10304 | callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10349 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10356 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
In file included from ../src/./serialport.h:7,
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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/serialport.cpp: In function ‘int getIntFromObject(v8::Local<v8::Object>, std::string)’:
../src/serialport.cpp:90:52: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
90 | return getValueFromObject(options, key)->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9864:14: note: declared here
9864 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Local<v8::Object>, std::string)’:
../src/serialport.cpp:102:53: warning: ‘v8::Local<v8::Number> v8::Value::ToNumber() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
102 | return getValueFromObject(options, key)->ToNumber()->NumberValue();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9828:15: note: declared here
9828 | Local<Number> Value::ToNumber() const {
| ^~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:127:37: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct OpenBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
127 | memset(baton, 0, sizeof(OpenBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:66:8: note: ‘struct OpenBaton’ declared here
66 | struct OpenBaton {
| ^~~~~~~~~
../src/serialport.cpp:152: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]
152 | uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
| ^~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
../src/serialport.cpp:174:31: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
174 | int fd = argv[1]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9864:14: note: declared here
9864 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:180:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
180 | data->callback.Call(2, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:193:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
193 | int fd = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9864:14: note: declared here
9864 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:214:50: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct ConnectionOptionsBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
214 | memset(baton, 0, sizeof(ConnectionOptionsBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:90:8: note: ‘struct ConnectionOptionsBaton’ declared here
90 | struct ConnectionOptionsBaton {
| ^~~~~~~~~~~~~~~~~~~~~~
../src/serialport.cpp:217:116: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
217 | baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9864:14: note: declared here
9864 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:223: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]
223 | uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
| ^~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
../src/serialport.cpp:240:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
240 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:252:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
252 | int fd = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9864:14: note: declared here
9864 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:270:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct WriteBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
270 | memset(baton, 0, sizeof(WriteBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:97:8: note: ‘struct WriteBaton’ declared here
97 | struct WriteBaton {
| ^~~~~~~~~~
../src/serialport.cpp:279:45: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct QueuedWrite’; use assignment or value-initialization instead [-Wclass-memaccess]
279 | memset(queuedWrite, 0, sizeof(QueuedWrite));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:108:8: note: ‘struct QueuedWrite’ declared here
108 | struct QueuedWrite {
| ^~~~~~~~~~~
../src/serialport.cpp:296:86: 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]
296 | uv_queue_work(uv_default_loop(), &queuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t*)’:
../src/serialport.cpp:321:72: 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]
321 | uv_queue_work(uv_default_loop(), req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
| ^~~~~~~~~~~~~~
../src/serialport.cpp:339:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
339 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp:345:90: 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]
345 | uv_queue_work(uv_default_loop(), &nextQueuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:368:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct CloseBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
368 | memset(baton, 0, sizeof(CloseBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:145:8: note: ‘struct CloseBaton’ declared here
145 | struct CloseBaton {
| ^~~~~~~~~~
../src/serialport.cpp:369:32: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
369 | baton->fd = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9864:14: note: declared here
9864 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:374: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]
374 | uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
../src/serialport.cpp:403:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
403 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE List(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:422: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]
422 | uv_queue_work(uv_default_loop(), req, EIO_List, (uv_after_work_cb)EIO_AfterList);
| ^~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t*)’:
../src/serialport.cpp:465:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
465 | data->callback.Call(2, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:480:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
480 | int fd = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9864:14: note: declared here
9864 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:490:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct FlushBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
490 | memset(baton, 0, sizeof(FlushBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:167:8: note: ‘struct FlushBaton’ declared here
167 | struct FlushBaton {
| ^~~~~~~~~~
../src/serialport.cpp:496: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]
496 | uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
../src/serialport.cpp:516:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
516 | data->callback.Call(2, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:528:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
528 | int fd = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9864:14: note: declared here
9864 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:545:36: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct SetBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
545 | memset(baton, 0, sizeof(SetBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:174:8: note: ‘struct SetBaton’ declared here
174 | struct SetBaton {
| ^~~~~~~~
../src/serialport.cpp:556: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]
556 | uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
| ^~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
../src/serialport.cpp:573:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
573 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:585:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
585 | int fd = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9864:14: note: declared here
9864 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:594:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct DrainBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
594 | memset(baton, 0, sizeof(DrainBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:186:8: note: ‘struct DrainBaton’ declared here
186 | struct DrainBaton {
| ^~~~~~~~~~
../src/serialport.cpp:600: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]
600 | uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
../src/serialport.cpp:617:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
617 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: At global scope:
../src/serialport.cpp:623:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
623 | SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
| ^
../src/serialport.cpp:642:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
642 | SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
| ^
In file included from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:505:43: warning: cast between incompatible function types from ‘void (*)(v8::Handle<v8::Object>)’ {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]
505 | (node::addon_register_func) (regfunc), \
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:536:3: note: in expansion of macro ‘NODE_MODULE_X’
536 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/serialport.cpp:670:1: note: in expansion of macro ‘NODE_MODULE’
670 | NODE_MODULE(serialport, init);
| ^~~~~~~~~~~
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.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>&)]’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node_object_wrap.h:85:78: required from here
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
9313 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.cache/node-gyp/8.16.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
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
CXX(target) Release/obj.target/serialport/src/serialport_unix.o
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport_unix.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>, v8::Local<v8::String>)’} [-Wcast-function-type]
10304 | callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10349 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10356 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport_unix.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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/serialport_unix.cpp: In function ‘OpenBatonPlatformOptions* ParsePlatformOptions(const v8::Local<v8::Object>&)’:
../src/serialport_unix.cpp:44:109: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
44 | result->vmin = Nan::Get(options, Nan::New<v8::String>("vmin").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport_unix.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9864:14: note: declared here
9864 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport_unix.cpp:45:111: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
45 | result->vtime = Nan::Get(options, Nan::New<v8::String>("vtime").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport_unix.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9864:14: note: declared here
9864 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’:
../src/serialport_unix.cpp:226:62: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct ConnectionOptionsBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
226 | memset(connectionOptions, 0, sizeof(ConnectionOptionsBaton));
| ^
In file included from ../src/serialport_unix.cpp:1:
../src/./serialport.h:90:8: note: ‘struct ConnectionOptionsBaton’ declared here
90 | struct ConnectionOptionsBaton {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport_unix.cpp:1:
/home/mateusrc/.cache/node-gyp/8.16.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>&)]’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node_object_wrap.h:85:78: required from here
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
9313 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.cache/node-gyp/8.16.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
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
../src/serialport_unix.cpp:220:82: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
220 | snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
| ^~
../src/serialport_unix.cpp:220:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024
220 | snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:
../src/serialport_unix.cpp:133:84: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
133 | snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
| ^~
../src/serialport_unix.cpp:133:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024
133 | snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CXX(target) Release/obj.target/serialport/src/serialport_poller.o
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/serialport_poller.cpp:5:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>, v8::Local<v8::String>)’} [-Wcast-function-type]
10304 | callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10349 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10356 | reinterpret_cast<Isolate::GCCallback>(callback));
| ^
In file included from ../src/serialport_poller.cpp:5:
../../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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/serialport_poller.cpp: In member function ‘void SerialportPoller::callCallback(int)’:
../src/serialport_poller.cpp:47:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
47 | callback_->Call(1, argv);
| ^
In file included from ../src/serialport_poller.cpp:5:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport_poller.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE SerialportPoller::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport_poller.cpp:86:31: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
86 | obj->fd_ = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.cache/node-gyp/8.16.1/include/node/node.h:63,
from ../../nan/nan.h:54,
from ../src/serialport_poller.cpp:5:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9864:14: note: declared here
9864 | Local<Int32> Value::ToInt32() const {
| ^~~~~
/home/mateusrc/.cache/node-gyp/8.16.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>&)]’:
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/node_object_wrap.h:85:78: required from here
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
9313 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.cache/node-gyp/8.16.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
/home/mateusrc/.cache/node-gyp/8.16.1/include/node/v8.h:9313: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]
SOLINK_MODULE(target) Release/obj.target/serialport.node
COPY Release/serialport.node
make: Leaving directory '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/serialport/build'
node-pre-gyp info ok
> electron-prebuilt@1.4.13 postinstall /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-prebuilt
> node install.js
> mBlock@4.0.0 postinstall /home/mateusrc/Downloads/mBlock-4.0.0-Linux
> install-app-deps
Rebuilding native production dependencies for linux:x64
Error: /usr/bin/node exited with code 1
Output:
> node-hid@0.5.7 install /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/node-hid
> prebuild-install || node-gyp rebuild
> serialport@4.0.7 install /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/serialport
> node-pre-gyp install --fallback-to-build
make: Entering directory '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
CXX(target) Release/obj.target/serialport/src/serialport_unix.o
CXX(target) Release/obj.target/serialport/src/serialport_poller.o
SOLINK_MODULE(target) Release/obj.target/serialport.node
COPY Release/serialport.node
make: Leaving directory '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/serialport/build'
> bluetooth-serial-port@2.2.6 install /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/bluetooth-serial-port
> node-gyp configure build
make: Entering directory '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/bluetooth-serial-port/build'
CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o
CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/DeviceINQ.o
make: Leaving directory '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/bluetooth-serial-port/build'
Error output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/bin/node',
node-pre-gyp verb cli '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/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 info using node-pre-gyp@0.6.32
node-pre-gyp info using node@8.16.1 | linux | x64
node-pre-gyp verb command install []
node-pre-gyp info build requesting source compile
node-pre-gyp verb command build [ 'rebuild' ]
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8835:57: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
8835 | reinterpret_cast<v8::Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8842:57: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
8842 | reinterpret_cast<v8::Isolate::GCCallback>(callback));
| ^
In file included from ../src/./serialport.h:7,
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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/serialport.cpp: In function ‘int getIntFromObject(v8::Local<v8::Object>, std::string)’:
../src/serialport.cpp:90:52: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
90 | return getValueFromObject(options, key)->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
8334 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Local<v8::Object>, std::string)’:
../src/serialport.cpp:102:53: warning: ‘v8::Local<v8::Number> v8::Value::ToNumber() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
102 | return getValueFromObject(options, key)->ToNumber()->NumberValue();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8298:15: note: declared here
8298 | Local<Number> Value::ToNumber() const {
| ^~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:127:37: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct OpenBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
127 | memset(baton, 0, sizeof(OpenBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:66:8: note: ‘struct OpenBaton’ declared here
66 | struct OpenBaton {
| ^~~~~~~~~
../src/serialport.cpp:152: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]
152 | uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
| ^~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
../src/serialport.cpp:174:31: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
174 | int fd = argv[1]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
8334 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:180:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
180 | data->callback.Call(2, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:193:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
193 | int fd = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
8334 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:214:50: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct ConnectionOptionsBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
214 | memset(baton, 0, sizeof(ConnectionOptionsBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:90:8: note: ‘struct ConnectionOptionsBaton’ declared here
90 | struct ConnectionOptionsBaton {
| ^~~~~~~~~~~~~~~~~~~~~~
../src/serialport.cpp:217:116: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
217 | baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
8334 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:223: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]
223 | uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
| ^~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
../src/serialport.cpp:240:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
240 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:252:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
252 | int fd = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
8334 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:270:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct WriteBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
270 | memset(baton, 0, sizeof(WriteBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:97:8: note: ‘struct WriteBaton’ declared here
97 | struct WriteBaton {
| ^~~~~~~~~~
../src/serialport.cpp:279:45: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct QueuedWrite’; use assignment or value-initialization instead [-Wclass-memaccess]
279 | memset(queuedWrite, 0, sizeof(QueuedWrite));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:108:8: note: ‘struct QueuedWrite’ declared here
108 | struct QueuedWrite {
| ^~~~~~~~~~~
../src/serialport.cpp:296:86: 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]
296 | uv_queue_work(uv_default_loop(), &queuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t*)’:
../src/serialport.cpp:321:72: 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]
321 | uv_queue_work(uv_default_loop(), req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
| ^~~~~~~~~~~~~~
../src/serialport.cpp:339:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
339 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp:345:90: 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]
345 | uv_queue_work(uv_default_loop(), &nextQueuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:368:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct CloseBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
368 | memset(baton, 0, sizeof(CloseBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:145:8: note: ‘struct CloseBaton’ declared here
145 | struct CloseBaton {
| ^~~~~~~~~~
../src/serialport.cpp:369:32: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
369 | baton->fd = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
8334 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:374: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]
374 | uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
../src/serialport.cpp:403:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
403 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE List(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:422: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]
422 | uv_queue_work(uv_default_loop(), req, EIO_List, (uv_after_work_cb)EIO_AfterList);
| ^~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t*)’:
../src/serialport.cpp:465:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
465 | data->callback.Call(2, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:480:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
480 | int fd = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
8334 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:490:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct FlushBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
490 | memset(baton, 0, sizeof(FlushBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:167:8: note: ‘struct FlushBaton’ declared here
167 | struct FlushBaton {
| ^~~~~~~~~~
../src/serialport.cpp:496: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]
496 | uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
../src/serialport.cpp:516:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
516 | data->callback.Call(2, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:528:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
528 | int fd = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
8334 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:545:36: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct SetBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
545 | memset(baton, 0, sizeof(SetBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:174:8: note: ‘struct SetBaton’ declared here
174 | struct SetBaton {
| ^~~~~~~~
../src/serialport.cpp:556: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]
556 | uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
| ^~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
../src/serialport.cpp:573:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
573 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:585:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
585 | int fd = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
8334 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport.cpp:594:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct DrainBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
594 | memset(baton, 0, sizeof(DrainBaton));
| ^
In file included from ../src/serialport.cpp:1:
../src/./serialport.h:186:8: note: ‘struct DrainBaton’ declared here
186 | struct DrainBaton {
| ^~~~~~~~~~
../src/serialport.cpp:600: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]
600 | uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
../src/serialport.cpp:617:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
617 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: At global scope:
../src/serialport.cpp:623:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
623 | SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
| ^
../src/serialport.cpp:642:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
642 | SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
| ^
In file included from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:451:43: warning: cast between incompatible function types from ‘void (*)(v8::Handle<v8::Object>)’ {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]
451 | (node::addon_register_func) (regfunc), \
| ^
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:482:3: note: in expansion of macro ‘NODE_MODULE_X’
482 | NODE_MODULE_X(modname, regfunc, NULL, 0)
| ^~~~~~~~~~~~~
../src/serialport.cpp:670:1: note: in expansion of macro ‘NODE_MODULE’
670 | NODE_MODULE(serialport, init);
| ^~~~~~~~~~~
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/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>&)]’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node_object_wrap.h:64:78: required from here
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:7798: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]
7798 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/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
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:7798: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]
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport_unix.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8835:57: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
8835 | reinterpret_cast<v8::Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8842:57: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
8842 | reinterpret_cast<v8::Isolate::GCCallback>(callback));
| ^
In file included from ../src/./serialport.h:7,
from ../src/serialport_unix.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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/serialport_unix.cpp: In function ‘OpenBatonPlatformOptions* ParsePlatformOptions(const v8::Local<v8::Object>&)’:
../src/serialport_unix.cpp:44:109: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
44 | result->vmin = Nan::Get(options, Nan::New<v8::String>("vmin").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport_unix.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
8334 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport_unix.cpp:45:111: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
45 | result->vtime = Nan::Get(options, Nan::New<v8::String>("vtime").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport_unix.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
8334 | Local<Int32> Value::ToInt32() const {
| ^~~~~
../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’:
../src/serialport_unix.cpp:226:62: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct ConnectionOptionsBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
226 | memset(connectionOptions, 0, sizeof(ConnectionOptionsBaton));
| ^
In file included from ../src/serialport_unix.cpp:1:
../src/./serialport.h:90:8: note: ‘struct ConnectionOptionsBaton’ declared here
90 | struct ConnectionOptionsBaton {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/./serialport.h:7,
from ../src/serialport_unix.cpp:1:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/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>&)]’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node_object_wrap.h:64:78: required from here
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:7798: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]
7798 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/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
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:7798: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]
../src/serialport_unix.cpp:220:82: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
220 | snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
| ^~
../src/serialport_unix.cpp:220:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024
220 | snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:
../src/serialport_unix.cpp:133:84: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
133 | snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
| ^~
../src/serialport_unix.cpp:133:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024
133 | snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/serialport_poller.cpp:5:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8835:57: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
8835 | reinterpret_cast<v8::Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8842:57: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
8842 | reinterpret_cast<v8::Isolate::GCCallback>(callback));
| ^
In file included from ../src/serialport_poller.cpp:5:
../../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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/serialport_poller.cpp: In member function ‘void SerialportPoller::callCallback(int)’:
../src/serialport_poller.cpp:47:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
47 | callback_->Call(1, argv);
| ^
In file included from ../src/serialport_poller.cpp:5:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport_poller.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE SerialportPoller::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport_poller.cpp:86:31: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
86 | obj->fd_ = info[0]->ToInt32()->Int32Value();
| ^
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../../nan/nan.h:54,
from ../src/serialport_poller.cpp:5:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
8334 | Local<Int32> Value::ToInt32() const {
| ^~~~~
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/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>&)]’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node_object_wrap.h:64:78: required from here
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:7798: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]
7798 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/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
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:7798: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]
node-pre-gyp info ok
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../src/linux/BluetoothSerialPort.cc:12:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8835:57: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
8835 | reinterpret_cast<v8::Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8842:57: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
8842 | reinterpret_cast<v8::Isolate::GCCallback>(callback));
| ^
In file included from ../src/DeviceINQ.h:17,
from ../src/linux/BluetoothSerialPort.cc:13:
../../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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
In file included from ../src/linux/BluetoothSerialPort.cc:12:
../src/linux/BluetoothSerialPort.cc: At global scope:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:451:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
451 | (node::addon_register_func) (regfunc), \
| ^
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:482:3: note: in expansion of macro ‘NODE_MODULE_X’
482 | NODE_MODULE_X(modname, regfunc, NULL, 0)
| ^~~~~~~~~~~~~
../src/linux/BluetoothSerialPort.cc:23:1: note: in expansion of macro ‘NODE_MODULE’
23 | NODE_MODULE(BluetoothSerialPort, InitAll)
| ^~~~~~~~~~~
In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
from ../src/linux/BluetoothSerialPort.cc:12:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/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>&)]’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node_object_wrap.h:64:78: required from here
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:7798: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]
7798 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/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
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:7798: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]
In file included from ../src/linux/DeviceINQ.cc:12:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8835:57: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
8835 | reinterpret_cast<v8::Isolate::GCCallback>(callback));
| ^
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8842:57: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
8842 | reinterpret_cast<v8::Isolate::GCCallback>(callback));
| ^
In file included from ../src/linux/DeviceINQ.cc:14:
../../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]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/linux/DeviceINQ.cc: In static member function ‘static void DeviceINQ::EIO_AfterSdpSearch(uv_work_t*)’:
../src/linux/DeviceINQ.cc:139:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
139 | baton->cb->Call(1, argv);
| ^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/DeviceINQ.cc: In static member function ‘static void DeviceINQ::Init(v8::Local<v8::Object>)’:
../src/linux/DeviceINQ.cc:166:98: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result]
166 | target->Set(ctx, Nan::New("DeviceINQ").ToLocalChecked(), t->GetFunction(ctx).ToLocalChecked());
| ^
In file included from ../src/linux/DeviceINQ.cc:12:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:2661:37: note: declared here
2661 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
../src/linux/DeviceINQ.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DeviceINQ::InquireSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/DeviceINQ.cc:251:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
251 | found->Call(2, argv);
| ^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/DeviceINQ.cc:255:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
255 | callback->Call(0, argv);
| ^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/DeviceINQ.cc: In member function ‘virtual void InquireWorker::HandleOKCallback()’:
../src/linux/DeviceINQ.cc:284:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
284 | found->Call(2, argv);
| ^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/DeviceINQ.cc:288:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
288 | callback->Call(0, argv);
| ^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1740:3: note: declared here
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/linux/DeviceINQ.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DeviceINQ::SdpSearch(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/DeviceINQ.cc:317:57: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)’
317 | String::Utf8Value address(info.GetIsolate(), info[0]);
| ^
In file included from ../src/linux/DeviceINQ.cc:12:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:2418:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(const v8::String::Utf8Value&)’
2418 | Utf8Value(const Utf8Value&);
| ^~~~~~~~~
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:2418:5: note: candidate expects 1 argument, 2 provided
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:2408:14: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
2408 | explicit Utf8Value(Local<v8::Value> obj);
| ^~~~~~~~~
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:2408:14: note: candidate expects 1 argument, 2 provided
../src/linux/DeviceINQ.cc:335:88: 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]
335 | uv_queue_work(uv_default_loop(), &baton->request, EIO_SdpSearch, (uv_after_work_cb)EIO_AfterSdpSearch);
| ^~~~~~~~~~~~~~~~~~
../src/linux/DeviceINQ.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DeviceINQ::ListPairedDevices(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/DeviceINQ.cc:366:83: warning: ignoring return value of ‘v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)’, declared with attribute warn_unused_result [-Wunused-result]
366 | cb->Call(Nan::GetCurrentContext(), Nan::GetCurrentContext()->Global(), 1, argv);
| ^
In file included from ../src/linux/DeviceINQ.cc:12:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:3296:43: note: declared here
3296 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
| ^~~~
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/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>&)]’:
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node_object_wrap.h:64:78: required from here
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:7798: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]
7798 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/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
/home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:7798: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: *** [BluetoothSerialPort.target.mk:106: Release/obj.target/BluetoothSerialPort/src/linux/DeviceINQ.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:190:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 5.2.13-arch1-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/bluetooth-serial-port
gyp ERR! node -v v8.16.1
gyp ERR! node-gyp -v v5.0.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bluetooth-serial-port@2.2.6 install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bluetooth-serial-port@2.2.6 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! /home/mateusrc/.npm/_logs/2019-09-11T15_10_22_767Z-debug.log
at ChildProcess.childProcess.once.code (/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/src/util/util.ts:136:14)
at Object.onceWrapper (events.js:317:30)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
From previous event:
at spawn (/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/src/util/util.ts:99:3)
at /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/src/yarn.ts:146:11
From previous event:
at rebuild (/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/out/yarn.js:81:22)
at /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/src/yarn.ts:15:11
at Generator.next (<anonymous>)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at installOrRebuild (/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/out/yarn.js:33:21)
at /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/src/cli/install-app-deps.ts:34:2
at Generator.next (<anonymous>)
From previous event:
at main (/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/out/cli/install-app-deps.js:36:21)
at Object.<anonymous> (/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/out/cli/install-app-deps.js:76:1)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! mBlock@4.0.0 postinstall: `install-app-deps`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the mBlock@4.0.0 postinstall 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! /home/mateusrc/.npm/_logs/2019-09-11T15_10_22_906Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment