Skip to content

Instantly share code, notes, and snippets.

@MateusRodCosta
Created September 11, 2019 17:32
Show Gist options
  • Save MateusRodCosta/f61c148c517dcf20b6bb415606cee609 to your computer and use it in GitHub Desktop.
Save MateusRodCosta/f61c148c517dcf20b6bb415606cee609 to your computer and use it in GitHub Desktop.
[mateusrc@delart mBlock-4.0.0-Linux]$ npm install
> [email protected] 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::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/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 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 | lt_loop(), &baton->request, EIO_SdpSearch, (uv_after_work_cb)EIO_AfterSdpSearch);
| ^~~~~~~~~~~~~~~~~~
In file included from ../src/linux/DeviceINQ.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/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 | lt_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:289: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]
289 | ault_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:322: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]
322 | 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:341: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]
341 | efault_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:391:25: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
391 | 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:399: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]
399 | 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::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/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 | lt_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:412: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]
412 | efault_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:524: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]
524 | 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:543: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]
543 | efault_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:604:25: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
604 | 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:612: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]
612 | 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:704:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
704 | 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'
> [email protected] postinstall /home/mateusrc/Downloads/mBlock-4.0.0-Linux
> install-app-deps
Rebuilding native production dependencies for linux:x64
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] license should be a valid SPDX license expression
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/7zip-bin-win):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/7zip-bin-mac):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
updated 1 package and audited 1799 packages in 22.219s
found 27 vulnerabilities (4 low, 15 moderate, 8 high)
run `npm audit fix` to fix them, or `npm audit` for details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment