Skip to content

Instantly share code, notes, and snippets.

@skeet70
Last active December 10, 2019 19:32
Show Gist options
  • Save skeet70/9b211e44fbde5cf19bdf9a4ef2455230 to your computer and use it in GitHub Desktop.
Save skeet70/9b211e44fbde5cf19bdf9a4ef2455230 to your computer and use it in GitHub Desktop.
yarn install v1.21.0
$ node tools/preinstall.js
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/6] ⡀ serialport
[2/6] ⡀ usb
[-/6] ⡀ waiting...
[-/6] ⡀ waiting...
error /home/mumu/code/oss/Chrysalis/node_modules/serialport: Command failed.
Exit code: 1
Command: prebuild-install || node-gyp rebuild
Arguments:
Directory: /home/mumu/code/oss/Chrysalis/node_modules/serialport
Output:
prebuild-install WARN install No prebuilt binaries found (target=12.0.0 runtime=node arch=x64 platform=linux)
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 2.7.17 found at "/usr/bin/python2"
gyp info spawn /usr/bin/python2
gyp info spawn args [
gyp info spawn args '/home/mumu/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/mumu/code/oss/Chrysalis/node_modules/serialport/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/mumu/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/mumu/.cache/node-gyp/12.0.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/mumu/.cache/node-gyp/12.0.0',
gyp info spawn args '-Dnode_gyp_dir=/home/mumu/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/mumu/.cache/node-gyp/12.0.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/mumu/code/oss/Chrysalis/node_modules/serialport',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/mumu/code/oss/Chrysalis/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
In file included from ../../nan/nan_converters.h:67,
from ../../nan/nan.h:222,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
../../nan/nan_converters_43_inl.h:18:51: warning: ‘v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
18 | val->To ## TYPE(isolate->GetCurrentContext()) \
| ^
../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
22 | X(Boolean)
| ^
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8-internal.h:14,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:25,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2524:63: note: declared here
2524 | V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
| ^~~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
In file included from ../../nan/nan_converters.h:67,
from ../../nan/nan.h:222,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
37 | return val->NAME ## Value(isolate->GetCurrentContext()); \
| ^
../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
40 | X(bool, Boolean)
| ^
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8-internal.h:14,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:25,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2562:51: note: declared here
2562 | V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
| ^~~~~~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:307:3: note: in definition of macro ‘V8_DEPRECATED’
307 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:223,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:356:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
356 | return v8::StringObject::New(value).As<v8::StringObject>();
| ^
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:5380:23: note: candidate: ‘static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)’
5380 | static Local<Value> New(Isolate* isolate, Local<String> value);
| ^~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:5380:23: note: candidate expects 2 arguments, 1 provided
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:223,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan_implementation_12_inl.h:356:58: error: expected primary-expression before ‘>’ token
356 | return v8::StringObject::New(value).As<v8::StringObject>();
| ^
../../nan/nan_implementation_12_inl.h:356:60: error: expected primary-expression before ‘)’ token
356 | return v8::StringObject::New(value).As<v8::StringObject>();
| ^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2232: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]
2232 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/node_object_wrap.h:26,
from ../../nan/nan.h:55,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
24 | assert(persistent().IsNearDeath());
| ^~~~~~~~~~~
../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
../../nan/nan_object_wrap.h:127:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
127 | assert(wrap->handle_.IsNearDeath());
| ^~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:41:48: error: no matching function for call to ‘v8::Value::ToString()’
41 | v8::String::Utf8Value path(info[0]->ToString());
| ^
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2528:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
2528 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
| ^~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2528:44: note: candidate expects 1 argument, 0 provided
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8-internal.h:14,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:25,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2544:35: note: candidate: ‘v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const’
2544 | Local<String> ToString(Isolate* isolate) const);
| ^~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2544:35: note: candidate expects 1 argument, 0 provided
2544 | Local<String> ToString(Isolate* isolate) const);
| ^~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
../src/serialport.cpp:48:53: error: no matching function for call to ‘v8::Value::ToObject()’
48 | v8::Local<v8::Object> options = info[1]->ToObject();
| ^
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2532:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2532 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8-internal.h:14,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:25,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2546:35: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’
2546 | Local<Object> ToObject(Isolate* isolate) const);
| ^~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided
2546 | Local<Object> ToObject(Isolate* isolate) const);
| ^~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
78 | uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
| ^~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
../src/serialport.cpp:95:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
95 | data->callback.Call(2, argv);
| ^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1674:3: note: declared here
1674 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:113:53: error: no matching function for call to ‘v8::Value::ToObject()’
113 | v8::Local<v8::Object> options = info[1]->ToObject();
| ^
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2532:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2532 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8-internal.h:14,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:25,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2546:35: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’
2546 | Local<Object> ToObject(Isolate* isolate) const);
| ^~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided
2546 | Local<Object> ToObject(Isolate* isolate) const);
| ^~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
135 | uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
| ^~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
../src/serialport.cpp:150:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
150 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1674:3: note: declared here
1674 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
175 | uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
../src/serialport.cpp:188:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
188 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1674:3: note: declared here
1674 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
215 | uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
../src/serialport.cpp:231:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
231 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1674:3: note: declared here
1674 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:250:53: error: no matching function for call to ‘v8::Value::ToObject()’
250 | v8::Local<v8::Object> options = info[1]->ToObject();
| ^
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2532:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2532 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8-internal.h:14,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:25,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2546:35: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’
2546 | Local<Object> ToObject(Isolate* isolate) const);
| ^~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided
2546 | Local<Object> ToObject(Isolate* isolate) const);
| ^~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
../src/serialport.cpp:270:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
270 | uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
| ^~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
../src/serialport.cpp:285:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
285 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1674:3: note: declared here
1674 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:314:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
314 | uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);
| ^~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t*)’:
../src/serialport.cpp:329:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
329 | results->Set(Nan::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
| ^
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8-internal.h:14,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:25,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:3359:26: note: declared here
3359 | bool Set(Local<Value> key, Local<Value> value));
| ^~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
../src/serialport.cpp:330:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
330 | results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr));
| ^
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8-internal.h:14,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:25,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:3359:26: note: declared here
3359 | bool Set(Local<Value> key, Local<Value> value));
| ^~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
../src/serialport.cpp:331:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
331 | results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
| ^
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8-internal.h:14,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:25,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:3359:26: note: declared here
3359 | bool Set(Local<Value> key, Local<Value> value));
| ^~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
../src/serialport.cpp:336:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
336 | data->callback.Call(2, argv);
| ^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1674:3: note: declared here
1674 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:363:76: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
363 | uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);
| ^~~~~~~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t*)’:
../src/serialport.cpp:378:106: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
378 | results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
| ^
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8-internal.h:14,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:25,
from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:3359:26: note: declared here
3359 | bool Set(Local<Value> key, Local<Value> value));
| ^~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’
322 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
../src/serialport.cpp:383:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
383 | data->callback.Call(2, argv);
| ^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1674:3: note: declared here
1674 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:409:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
409 | uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
| ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
../src/serialport.cpp:424:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
424 | data->callback.Call(1, argv);
| ^
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../nan/nan.h:1674:3: note: declared here
1674 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/serialport.cpp: At global scope:
../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
430 | SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
| ^
../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
449 | SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
| ^
../src/serialport.cpp:460:17: error: variable or field ‘init’ declared void
460 | void init(v8::Handle<v8::Object> target) {
| ^~~~~~
../src/serialport.cpp:460:17: error: ‘Handle’ is not a member of ‘v8’
../src/serialport.cpp:460:34: error: expected primary-expression before ‘>’ token
460 | void init(v8::Handle<v8::Object> target) {
| ^
../src/serialport.cpp:460:36: error: ‘target’ was not declared in this scope
460 | void init(v8::Handle<v8::Object> target) {
| ^~~~~~
In file included from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../src/serialport.cpp:485:25: error: ‘init’ was not declared in this scope; did you mean ‘int’?
485 | NODE_MODULE(serialport, init);
| ^~~~
/home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:556:36: note: in definition of macro ‘NODE_MODULE_X’
556 | (node::addon_register_func) (regfunc), \
| ^~~~~~~
../src/serialport.cpp:485:1: note: in expansion of macro ‘NODE_MODULE’
485 | NODE_MODULE(serialport, init);
| ^~~~~~~~~~~
In file included from /home/mumu/.cache/node-gyp/12.0.0/include/node/node.h:63,
from ../../nan/nan.h:53,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/mumu/.cache/node-gyp/12.0.0/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/mumu/.cache/node-gyp/12.0.0/include/node/node_object_wrap.h:84:78: required from here
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:9817: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]
9817 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mumu/.cache/node-gyp/12.0.0/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:66:61: required from here
/home/mumu/.cache/node-gyp/12.0.0/include/node/v8.h:9817:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
make: *** [serialport.target.mk:110: Release/obj.target/serialport/src/serialport.o] Error 1
make: Leaving directory '/home/mumu/code/oss/Chrysalis/node_modules/serialport/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/mumu/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:190:23)
gyp ERR! stack at ChildProcess.emit (events.js:196:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12)
gyp ERR! System Linux 5.3.7-arch1-1-ARCH
gyp ERR! command "/home/mumu/.nvm/versions/node/v12.0.0/bin/node" "/home/mumu/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/mumu/code/oss/Chrysalis/node_modules/serialport
gyp ERR! node -v v12.0.0
gyp ERR! node-gyp -v v5.0.2
gyp ERR! not ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment