Loading

Paste #ppjmuqphy

  1.  
  2. > mBlock@4.0.0 postinstall /home/mateusrc/Downloads/mBlock-4.0.0-Linux
  3. > install-app-deps
  4.  
  5. Rebuilding native production dependencies for linux:x64
  6. Error: /usr/bin/node exited with code 1
  7. Output:
  8.  
  9. > node-hid@0.5.7 install /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/node-hid
  10. > prebuild-install || node-gyp rebuild
  11.  
  12.  
  13. > serialport@4.0.7 install /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/serialport
  14. > node-pre-gyp install --fallback-to-build
  15.  
  16. make: Entering directory '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/serialport/build'
  17.   CXX(target) Release/obj.target/serialport/src/serialport.o
  18.   CXX(target) Release/obj.target/serialport/src/serialport_unix.o
  19.   CXX(target) Release/obj.target/serialport/src/serialport_poller.o
  20.   SOLINK_MODULE(target) Release/obj.target/serialport.node
  21.   COPY Release/serialport.node
  22. make: Leaving directory '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/serialport/build'
  23.  
  24. > bluetooth-serial-port@2.2.6 install /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/bluetooth-serial-port
  25. > node-gyp configure build
  26.  
  27. make: Entering directory '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/bluetooth-serial-port/build'
  28.   CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/DeviceINQ.o
  29. make: Leaving directory '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/bluetooth-serial-port/build'
  30.  
  31. Error output:
  32. node-pre-gyp info it worked if it ends with ok
  33. node-pre-gyp verb cli [ '/usr/bin/node',
  34. node-pre-gyp verb cli   '/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/serialport/node_modules/.bin/node-pre-gyp',
  35. node-pre-gyp verb cli   'install',
  36. node-pre-gyp verb cli   '--fallback-to-build' ]
  37. node-pre-gyp info using node-pre-gyp@0.6.32
  38. node-pre-gyp info using node@8.16.1 | linux | x64
  39. node-pre-gyp verb command install []
  40. node-pre-gyp info build requesting source compile
  41. node-pre-gyp verb command build [ 'rebuild' ]
  42. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  43.                  from ../../nan/nan.h:54,
  44.                  from ../src/./serialport.h:7,
  45.                  from ../src/serialport.cpp:1:
  46. /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)’:
  47. /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]
  48.  8835 |       reinterpret_cast<v8::Isolate::GCCallback>(callback));
  49.       |                                                         ^
  50. /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)’:
  51. /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]
  52.  8842 |       reinterpret_cast<v8::Isolate::GCCallback>(callback));
  53.       |                                                         ^
  54. In file included from ../src/./serialport.h:7,
  55.                  from ../src/serialport.cpp:1:
  56. ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
  57. ../../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]
  58.  2298 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
  59.       |                                                              ^
  60. ../src/serialport.cpp: In function ‘int getIntFromObject(v8::Local<v8::Object>, std::string)’:
  61. ../src/serialport.cpp:90:52: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  62.    90 |   return getValueFromObject(options, key)->ToInt32()->Int32Value();
  63.       |                                                    ^
  64. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  65.                  from ../../nan/nan.h:54,
  66.                  from ../src/./serialport.h:7,
  67.                  from ../src/serialport.cpp:1:
  68. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
  69.  8334 | Local<Int32> Value::ToInt32() const {
  70.       |              ^~~~~
  71. ../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Local<v8::Object>, std::string)’:
  72. ../src/serialport.cpp:102:53: warning: ‘v8::Local<v8::Number> v8::Value::ToNumber() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  73.   102 |   return getValueFromObject(options, key)->ToNumber()->NumberValue();
  74.       |                                                     ^
  75. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  76.                  from ../../nan/nan.h:54,
  77.                  from ../src/./serialport.h:7,
  78.                  from ../src/serialport.cpp:1:
  79. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8298:15: note: declared here
  80.  8298 | Local<Number> Value::ToNumber() const {
  81.       |               ^~~~~
  82. ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
  83. ../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]
  84.   127 |   memset(baton, 0, sizeof(OpenBaton));
  85.       |                                     ^
  86. In file included from ../src/serialport.cpp:1:
  87. ../src/./serialport.h:66:8: note: ‘struct OpenBaton’ declared here
  88.    66 | struct OpenBaton {
  89.       |        ^~~~~~~~~
  90. ../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]
  91.   152 |   uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
  92.       |                                                                     ^~~~~~~~~~~~~
  93. ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
  94. ../src/serialport.cpp:174:31: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  95.   174 |     int fd = argv[1]->ToInt32()->Int32Value();
  96.       |                               ^
  97. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  98.                  from ../../nan/nan.h:54,
  99.                  from ../src/./serialport.h:7,
  100.                  from ../src/serialport.cpp:1:
  101. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
  102.  8334 | Local<Int32> Value::ToInt32() const {
  103.       |              ^~~~~
  104. ../src/serialport.cpp:180:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  105.   180 |   data->callback.Call(2, argv);
  106.       |                              ^
  107. In file included from ../src/./serialport.h:7,
  108.                  from ../src/serialport.cpp:1:
  109. ../../nan/nan.h:1740:3: note: declared here
  110.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  111.       |   ^~~~
  112. ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
  113. ../src/serialport.cpp:193:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  114.   193 |   int fd = info[0]->ToInt32()->Int32Value();
  115.       |                             ^
  116. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  117.                  from ../../nan/nan.h:54,
  118.                  from ../src/./serialport.h:7,
  119.                  from ../src/serialport.cpp:1:
  120. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
  121.  8334 | Local<Int32> Value::ToInt32() const {
  122.       |              ^~~~~
  123. ../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]
  124.   214 |   memset(baton, 0, sizeof(ConnectionOptionsBaton));
  125.       |                                                  ^
  126. In file included from ../src/serialport.cpp:1:
  127. ../src/./serialport.h:90:8: note: ‘struct ConnectionOptionsBaton’ declared here
  128.    90 | struct ConnectionOptionsBaton {
  129.       |        ^~~~~~~~~~~~~~~~~~~~~~
  130. ../src/serialport.cpp:217:116: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  131.   217 |   baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
  132.       |                                                                                                                    ^
  133. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  134.                  from ../../nan/nan.h:54,
  135.                  from ../src/./serialport.h:7,
  136.                  from ../src/serialport.cpp:1:
  137. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
  138.  8334 | Local<Int32> Value::ToInt32() const {
  139.       |              ^~~~~
  140. ../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]
  141.   223 |   uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
  142.       |                                                                       ^~~~~~~~~~~~~~~
  143. ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
  144. ../src/serialport.cpp:240:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  145.   240 |   data->callback.Call(1, argv);
  146.       |                              ^
  147. In file included from ../src/./serialport.h:7,
  148.                  from ../src/serialport.cpp:1:
  149. ../../nan/nan.h:1740:3: note: declared here
  150.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  151.       |   ^~~~
  152. ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’:
  153. ../src/serialport.cpp:252:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  154.   252 |   int fd = info[0]->ToInt32()->Int32Value();
  155.       |                             ^
  156. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  157.                  from ../../nan/nan.h:54,
  158.                  from ../src/./serialport.h:7,
  159.                  from ../src/serialport.cpp:1:
  160. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
  161.  8334 | Local<Int32> Value::ToInt32() const {
  162.       |              ^~~~~
  163. ../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]
  164.   270 |   memset(baton, 0, sizeof(WriteBaton));
  165.       |                                      ^
  166. In file included from ../src/serialport.cpp:1:
  167. ../src/./serialport.h:97:8: note: ‘struct WriteBaton’ declared here
  168.    97 | struct WriteBaton {
  169.       |        ^~~~~~~~~~
  170. ../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]
  171.   279 |   memset(queuedWrite, 0, sizeof(QueuedWrite));
  172.       |                                             ^
  173. In file included from ../src/serialport.cpp:1:
  174. ../src/./serialport.h:108:8: note: ‘struct QueuedWrite’ declared here
  175.   108 | struct QueuedWrite {
  176.       |        ^~~~~~~~~~~
  177. ../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]
  178.   296 |     uv_queue_work(uv_default_loop(), &queuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
  179.       |                                                                                      ^~~~~~~~~~~~~~
  180. ../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t*)’:
  181. ../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]
  182.   321 |     uv_queue_work(uv_default_loop(), req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
  183.       |                                                                        ^~~~~~~~~~~~~~
  184. ../src/serialport.cpp:339:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  185.   339 |   data->callback.Call(1, argv);
  186.       |                              ^
  187. In file included from ../src/./serialport.h:7,
  188.                  from ../src/serialport.cpp:1:
  189. ../../nan/nan.h:1740:3: note: declared here
  190.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  191.       |   ^~~~
  192. ../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]
  193.   345 |     uv_queue_work(uv_default_loop(), &nextQueuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
  194.       |                                                                                          ^~~~~~~~~~~~~~
  195. ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
  196. ../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]
  197.   368 |   memset(baton, 0, sizeof(CloseBaton));
  198.       |                                      ^
  199. In file included from ../src/serialport.cpp:1:
  200. ../src/./serialport.h:145:8: note: ‘struct CloseBaton’ declared here
  201.   145 | struct CloseBaton {
  202.       |        ^~~~~~~~~~
  203. ../src/serialport.cpp:369:32: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  204.   369 |   baton->fd = info[0]->ToInt32()->Int32Value();
  205.       |                                ^
  206. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  207.                  from ../../nan/nan.h:54,
  208.                  from ../src/./serialport.h:7,
  209.                  from ../src/serialport.cpp:1:
  210. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
  211.  8334 | Local<Int32> Value::ToInt32() const {
  212.       |              ^~~~~
  213. ../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]
  214.   374 |   uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
  215.       |                                                                      ^~~~~~~~~~~~~~
  216. ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
  217. ../src/serialport.cpp:403:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  218.   403 |   data->callback.Call(1, argv);
  219.       |                              ^
  220. In file included from ../src/./serialport.h:7,
  221.                  from ../src/serialport.cpp:1:
  222. ../../nan/nan.h:1740:3: note: declared here
  223.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  224.       |   ^~~~
  225. ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE List(Nan::NAN_METHOD_ARGS_TYPE)’:
  226. ../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]
  227.   422 |   uv_queue_work(uv_default_loop(), req, EIO_List, (uv_after_work_cb)EIO_AfterList);
  228.       |                                                                     ^~~~~~~~~~~~~
  229. ../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t*)’:
  230. ../src/serialport.cpp:465:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  231.   465 |   data->callback.Call(2, argv);
  232.       |                              ^
  233. In file included from ../src/./serialport.h:7,
  234.                  from ../src/serialport.cpp:1:
  235. ../../nan/nan.h:1740:3: note: declared here
  236.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  237.       |   ^~~~
  238. ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
  239. ../src/serialport.cpp:480:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  240.   480 |   int fd = info[0]->ToInt32()->Int32Value();
  241.       |                             ^
  242. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  243.                  from ../../nan/nan.h:54,
  244.                  from ../src/./serialport.h:7,
  245.                  from ../src/serialport.cpp:1:
  246. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
  247.  8334 | Local<Int32> Value::ToInt32() const {
  248.       |              ^~~~~
  249. ../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]
  250.   490 |   memset(baton, 0, sizeof(FlushBaton));
  251.       |                                      ^
  252. In file included from ../src/serialport.cpp:1:
  253. ../src/./serialport.h:167:8: note: ‘struct FlushBaton’ declared here
  254.   167 | struct FlushBaton {
  255.       |        ^~~~~~~~~~
  256. ../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]
  257.   496 |   uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
  258.       |                                                                      ^~~~~~~~~~~~~~
  259. ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
  260. ../src/serialport.cpp:516:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  261.   516 |   data->callback.Call(2, argv);
  262.       |                              ^
  263. In file included from ../src/./serialport.h:7,
  264.                  from ../src/serialport.cpp:1:
  265. ../../nan/nan.h:1740:3: note: declared here
  266.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  267.       |   ^~~~
  268. ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
  269. ../src/serialport.cpp:528:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  270.   528 |   int fd = info[0]->ToInt32()->Int32Value();
  271.       |                             ^
  272. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  273.                  from ../../nan/nan.h:54,
  274.                  from ../src/./serialport.h:7,
  275.                  from ../src/serialport.cpp:1:
  276. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
  277.  8334 | Local<Int32> Value::ToInt32() const {
  278.       |              ^~~~~
  279. ../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]
  280.   545 |   memset(baton, 0, sizeof(SetBaton));
  281.       |                                    ^
  282. In file included from ../src/serialport.cpp:1:
  283. ../src/./serialport.h:174:8: note: ‘struct SetBaton’ declared here
  284.   174 | struct SetBaton {
  285.       |        ^~~~~~~~
  286. ../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]
  287.   556 |   uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
  288.       |                                                                    ^~~~~~~~~~~~
  289. ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
  290. ../src/serialport.cpp:573:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  291.   573 |   data->callback.Call(1, argv);
  292.       |                              ^
  293. In file included from ../src/./serialport.h:7,
  294.                  from ../src/serialport.cpp:1:
  295. ../../nan/nan.h:1740:3: note: declared here
  296.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  297.       |   ^~~~
  298. ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
  299. ../src/serialport.cpp:585:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  300.   585 |   int fd = info[0]->ToInt32()->Int32Value();
  301.       |                             ^
  302. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  303.                  from ../../nan/nan.h:54,
  304.                  from ../src/./serialport.h:7,
  305.                  from ../src/serialport.cpp:1:
  306. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
  307.  8334 | Local<Int32> Value::ToInt32() const {
  308.       |              ^~~~~
  309. ../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]
  310.   594 |   memset(baton, 0, sizeof(DrainBaton));
  311.       |                                      ^
  312. In file included from ../src/serialport.cpp:1:
  313. ../src/./serialport.h:186:8: note: ‘struct DrainBaton’ declared here
  314.   186 | struct DrainBaton {
  315.       |        ^~~~~~~~~~
  316. ../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]
  317.   600 |   uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
  318.       |                                                                      ^~~~~~~~~~~~~~
  319. ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
  320. ../src/serialport.cpp:617:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  321.   617 |   data->callback.Call(1, argv);
  322.       |                              ^
  323. In file included from ../src/./serialport.h:7,
  324.                  from ../src/serialport.cpp:1:
  325. ../../nan/nan.h:1740:3: note: declared here
  326.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  327.       |   ^~~~
  328. ../src/serialport.cpp: At global scope:
  329. ../src/serialport.cpp:623:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
  330.   623 | SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
  331.       |                            ^
  332. ../src/serialport.cpp:642:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
  333.   642 | SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
  334.       |                              ^
  335. In file included from ../../nan/nan.h:54,
  336.                  from ../src/./serialport.h:7,
  337.                  from ../src/serialport.cpp:1:
  338. /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]
  339.   451 |       (node::addon_register_func) (regfunc),                          \
  340.       |                                           ^
  341. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:482:3: note: in expansion of macro ‘NODE_MODULE_X’
  342.   482 |   NODE_MODULE_X(modname, regfunc, NULL, 0)
  343.       |   ^~~~~~~~~~~~~
  344. ../src/serialport.cpp:670:1: note: in expansion of macro ‘NODE_MODULE’
  345.   670 | NODE_MODULE(serialport, init);
  346.       | ^~~~~~~~~~~
  347. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  348.                  from ../../nan/nan.h:54,
  349.                  from ../src/./serialport.h:7,
  350.                  from ../src/serialport.cpp:1:
  351. /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>&)]’:
  352. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node_object_wrap.h:64:78:   required from here
  353. /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]
  354.  7798 |                reinterpret_cast<Callback>(callback), type);
  355.       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  356. /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>&)]’:
  357. ../../nan/nan_object_wrap.h:65:61:   required from here
  358. /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]
  359. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  360.                  from ../../nan/nan.h:54,
  361.                  from ../src/./serialport.h:7,
  362.                  from ../src/serialport_unix.cpp:1:
  363. /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)’:
  364. /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]
  365.  8835 |       reinterpret_cast<v8::Isolate::GCCallback>(callback));
  366.       |                                                         ^
  367. /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)’:
  368. /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]
  369.  8842 |       reinterpret_cast<v8::Isolate::GCCallback>(callback));
  370.       |                                                         ^
  371. In file included from ../src/./serialport.h:7,
  372.                  from ../src/serialport_unix.cpp:1:
  373. ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
  374. ../../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]
  375.  2298 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
  376.       |                                                              ^
  377. ../src/serialport_unix.cpp: In function ‘OpenBatonPlatformOptions* ParsePlatformOptions(const v8::Local<v8::Object>&)’:
  378. ../src/serialport_unix.cpp:44:109: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  379.    44 |   result->vmin = Nan::Get(options, Nan::New<v8::String>("vmin").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
  380.       |                                                                                                             ^
  381. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  382.                  from ../../nan/nan.h:54,
  383.                  from ../src/./serialport.h:7,
  384.                  from ../src/serialport_unix.cpp:1:
  385. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
  386.  8334 | Local<Int32> Value::ToInt32() const {
  387.       |              ^~~~~
  388. ../src/serialport_unix.cpp:45:111: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  389.    45 |   result->vtime = Nan::Get(options, Nan::New<v8::String>("vtime").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
  390.       |                                                                                                               ^
  391. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  392.                  from ../../nan/nan.h:54,
  393.                  from ../src/./serialport.h:7,
  394.                  from ../src/serialport_unix.cpp:1:
  395. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
  396.  8334 | Local<Int32> Value::ToInt32() const {
  397.       |              ^~~~~
  398. ../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’:
  399. ../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]
  400.   226 |   memset(connectionOptions, 0, sizeof(ConnectionOptionsBaton));
  401.       |                                                              ^
  402. In file included from ../src/serialport_unix.cpp:1:
  403. ../src/./serialport.h:90:8: note: ‘struct ConnectionOptionsBaton’ declared here
  404.    90 | struct ConnectionOptionsBaton {
  405.       |        ^~~~~~~~~~~~~~~~~~~~~~
  406. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  407.                  from ../../nan/nan.h:54,
  408.                  from ../src/./serialport.h:7,
  409.                  from ../src/serialport_unix.cpp:1:
  410. /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>&)]’:
  411. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node_object_wrap.h:64:78:   required from here
  412. /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]
  413.  7798 |                reinterpret_cast<Callback>(callback), type);
  414.       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  415. /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>&)]’:
  416. ../../nan/nan_object_wrap.h:65:61:   required from here
  417. /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]
  418. ../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=]
  419.   220 |     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
  420.       |                                                                                  ^~
  421. ../src/serialport_unix.cpp:220:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024
  422.   220 |     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
  423.       |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  424. ../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:
  425. ../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=]
  426.   133 |     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
  427.       |                                                                                    ^~
  428. ../src/serialport_unix.cpp:133:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024
  429.   133 |     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
  430.       |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  431. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  432.                  from ../../nan/nan.h:54,
  433.                  from ../src/serialport_poller.cpp:5:
  434. /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)’:
  435. /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]
  436.  8835 |       reinterpret_cast<v8::Isolate::GCCallback>(callback));
  437.       |                                                         ^
  438. /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)’:
  439. /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]
  440.  8842 |       reinterpret_cast<v8::Isolate::GCCallback>(callback));
  441.       |                                                         ^
  442. In file included from ../src/serialport_poller.cpp:5:
  443. ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
  444. ../../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]
  445.  2298 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
  446.       |                                                              ^
  447. ../src/serialport_poller.cpp: In member function ‘void SerialportPoller::callCallback(int)’:
  448. ../src/serialport_poller.cpp:47:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  449.    47 |   callback_->Call(1, argv);
  450.       |                          ^
  451. In file included from ../src/serialport_poller.cpp:5:
  452. ../../nan/nan.h:1740:3: note: declared here
  453.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  454.       |   ^~~~
  455. ../src/serialport_poller.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE SerialportPoller::New(Nan::NAN_METHOD_ARGS_TYPE)’:
  456. ../src/serialport_poller.cpp:86:31: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  457.    86 |   obj->fd_ = info[0]->ToInt32()->Int32Value();
  458.       |                               ^
  459. In file included from /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node.h:42,
  460.                  from ../../nan/nan.h:54,
  461.                  from ../src/serialport_poller.cpp:5:
  462. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:8334:14: note: declared here
  463.  8334 | Local<Int32> Value::ToInt32() const {
  464.       |              ^~~~~
  465. /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>&)]’:
  466. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node_object_wrap.h:64:78:   required from here
  467. /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]
  468.  7798 |                reinterpret_cast<Callback>(callback), type);
  469.       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470. /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>&)]’:
  471. ../../nan/nan_object_wrap.h:65:61:   required from here
  472. /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]
  473. node-pre-gyp info ok
  474. In file included from ../src/linux/DeviceINQ.cc:12:
  475. /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)’:
  476. /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]
  477.  8835 |       reinterpret_cast<v8::Isolate::GCCallback>(callback));
  478.       |                                                         ^
  479. /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)’:
  480. /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]
  481.  8842 |       reinterpret_cast<v8::Isolate::GCCallback>(callback));
  482.       |                                                         ^
  483. In file included from ../src/linux/DeviceINQ.cc:14:
  484. ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
  485. ../../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]
  486.  2298 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
  487.       |                                                              ^
  488. ../src/linux/DeviceINQ.cc: In static member function ‘static void DeviceINQ::EIO_AfterSdpSearch(uv_work_t*)’:
  489. ../src/linux/DeviceINQ.cc:139:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  490.   139 |     baton->cb->Call(1, argv);
  491.       |                            ^
  492. In file included from ../src/linux/DeviceINQ.cc:14:
  493. ../../nan/nan.h:1740:3: note: declared here
  494.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  495.       |   ^~~~
  496. ../src/linux/DeviceINQ.cc: In static member function ‘static void DeviceINQ::Init(v8::Local<v8::Object>)’:
  497. ../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]
  498.   166 |     target->Set(ctx, Nan::New("DeviceINQ").ToLocalChecked(), t->GetFunction(ctx).ToLocalChecked());
  499.       |                                                                                                  ^
  500. In file included from ../src/linux/DeviceINQ.cc:12:
  501. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:2661:37: note: declared here
  502.  2661 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
  503.       |                                     ^~~
  504. ../src/linux/DeviceINQ.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DeviceINQ::InquireSync(Nan::NAN_METHOD_ARGS_TYPE)’:
  505. ../src/linux/DeviceINQ.cc:251:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  506.   251 |       found->Call(2, argv);
  507.       |                          ^
  508. In file included from ../src/linux/DeviceINQ.cc:14:
  509. ../../nan/nan.h:1740:3: note: declared here
  510.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  511.       |   ^~~~
  512. ../src/linux/DeviceINQ.cc:255:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  513.   255 |     callback->Call(0, argv);
  514.       |                           ^
  515. In file included from ../src/linux/DeviceINQ.cc:14:
  516. ../../nan/nan.h:1740:3: note: declared here
  517.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  518.       |   ^~~~
  519. ../src/linux/DeviceINQ.cc: In member function ‘virtual void InquireWorker::HandleOKCallback()’:
  520. ../src/linux/DeviceINQ.cc:284:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  521.   284 |       found->Call(2, argv);
  522.       |                          ^
  523. In file included from ../src/linux/DeviceINQ.cc:14:
  524. ../../nan/nan.h:1740:3: note: declared here
  525.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  526.       |   ^~~~
  527. ../src/linux/DeviceINQ.cc:288:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
  528.   288 |     callback->Call(0, argv);
  529.       |                           ^
  530. In file included from ../src/linux/DeviceINQ.cc:14:
  531. ../../nan/nan.h:1740:3: note: declared here
  532.  1740 |   Call(int argc, v8::Local<v8::Value> argv[]) const {
  533.       |   ^~~~
  534. ../src/linux/DeviceINQ.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DeviceINQ::SdpSearch(Nan::NAN_METHOD_ARGS_TYPE)’:
  535. ../src/linux/DeviceINQ.cc:317:57: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)’
  536.   317 |     String::Utf8Value address(info.GetIsolate(), info[0]);
  537.       |                                                         ^
  538. In file included from ../src/linux/DeviceINQ.cc:12:
  539. /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&)’
  540.  2418 |     Utf8Value(const Utf8Value&);
  541.       |     ^~~~~~~~~
  542. /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
  543. /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>)’
  544.  2408 |     explicit Utf8Value(Local<v8::Value> obj);
  545.       |              ^~~~~~~~~
  546. /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
  547. ../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]
  548.   335 |     uv_queue_work(uv_default_loop(), &baton->request, EIO_SdpSearch, (uv_after_work_cb)EIO_AfterSdpSearch);
  549.       |                                                                                        ^~~~~~~~~~~~~~~~~~
  550. ../src/linux/DeviceINQ.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DeviceINQ::ListPairedDevices(Nan::NAN_METHOD_ARGS_TYPE)’:
  551. ../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]
  552.   366 |     cb->Call(Nan::GetCurrentContext(), Nan::GetCurrentContext()->Global(), 1, argv);
  553.       |                                                                                   ^
  554. In file included from ../src/linux/DeviceINQ.cc:12:
  555. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/deps/v8/include/v8.h:3296:43: note: declared here
  556.  3296 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
  557.       |                                           ^~~~
  558. /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>&)]’:
  559. /home/mateusrc/.electron-gyp/.cache/node-gyp/iojs-1.4.13/src/node_object_wrap.h:64:78:   required from here
  560. /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]
  561.  7798 |                reinterpret_cast<Callback>(callback), type);
  562.       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  563. /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>&)]’:
  564. ../../nan/nan_object_wrap.h:65:61:   required from here
  565. /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]
  566. make: *** [BluetoothSerialPort.target.mk:106: Release/obj.target/BluetoothSerialPort/src/linux/DeviceINQ.o] Error 1
  567. gyp ERR! build error
  568. gyp ERR! stack Error: `make` failed with exit code: 2
  569. gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:190:23)
  570. gyp ERR! stack     at emitTwo (events.js:126:13)
  571. gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
  572. gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
  573. gyp ERR! System Linux 5.2.13-arch1-1-ARCH
  574. gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
  575. gyp ERR! cwd /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/bluetooth-serial-port
  576. gyp ERR! node -v v8.16.1
  577. gyp ERR! node-gyp -v v5.0.2
  578. gyp ERR! not ok
  579. npm ERR! code ELIFECYCLE
  580. npm ERR! errno 1
  581. npm ERR! bluetooth-serial-port@2.2.6 install: `node-gyp configure build`
  582. npm ERR! Exit status 1
  583. npm ERR!
  584. npm ERR! Failed at the bluetooth-serial-port@2.2.6 install script.
  585. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  586.  
  587. npm ERR! A complete log of this run can be found in:
  588. npm ERR!     /home/mateusrc/.npm/_logs/2019-09-11T14_00_32_935Z-debug.log
  589.  
  590.     at ChildProcess.childProcess.once.code (/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/src/util/util.ts:136:14)
  591.     at Object.onceWrapper (events.js:317:30)
  592.     at emitTwo (events.js:126:13)
  593.     at ChildProcess.emit (events.js:214:7)
  594.     at maybeClose (internal/child_process.js:915:16)
  595.     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
  596. From previous event:
  597.     at spawn (/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/src/util/util.ts:99:3)
  598.     at /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/src/yarn.ts:146:11
  599. From previous event:
  600.     at rebuild (/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/out/yarn.js:81:22)
  601.     at /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/src/yarn.ts:15:11
  602.     at Generator.next (<anonymous>)
  603.     at runCallback (timers.js:810:20)
  604.     at tryOnImmediate (timers.js:768:5)
  605.     at processImmediate [as _immediateCallback] (timers.js:745:5)
  606. From previous event:
  607.     at installOrRebuild (/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/out/yarn.js:33:21)
  608.     at /home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/src/cli/install-app-deps.ts:34:2
  609.     at Generator.next (<anonymous>)
  610. From previous event:
  611.     at main (/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/out/cli/install-app-deps.js:36:21)
  612.     at Object.<anonymous> (/home/mateusrc/Downloads/mBlock-4.0.0-Linux/node_modules/electron-builder/out/cli/install-app-deps.js:76:1)
  613.     at Module._compile (module.js:653:30)
  614.     at Object.Module._extensions..js (module.js:664:10)
  615.     at Module.load (module.js:566:32)
  616.     at tryModuleLoad (module.js:506:12)
  617.     at Function.Module._load (module.js:498:3)
  618.     at Function.Module.runMain (module.js:694:10)
  619.     at startup (bootstrap_node.js:204:16)
  620.     at bootstrap_node.js:625:3
  621. npm ERR! code ELIFECYCLE
  622. npm ERR! errno 255
  623. npm ERR! mBlock@4.0.0 postinstall: `install-app-deps`
  624. npm ERR! Exit status 255
  625. npm ERR!
  626. npm ERR! Failed at the mBlock@4.0.0 postinstall script.
  627. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  628.  
  629. npm ERR! A complete log of this run can be found in:
  630. npm ERR!     /home/mateusrc/.npm/_logs/2019-09-11T14_00_32_971Z-debug.log