-
Notifications
You must be signed in to change notification settings - Fork 10
Description
I have tried to compile it on my Linux machine, but it is complaining of a make error when I try to do a node-gyp rebuild.
The error I get is as follows:
make: Entering directory '/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/build' CXX(target) Release/obj.target/xmljs/src/libxmljs.o make: Entering directory '/home/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/build' CXX(target) Release/obj.target/xmljs/src/libxmljs.o In file included from ../node_modules/nan/nan.h:190, from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan_maybe_43_inl.h: In function 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)': ../node_modules/nan/nan_maybe_43_inl.h:112:15: error: 'class v8::Object' has no member named 'ForceSet' 112 | return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs); | ^~~~~~~~ In file included from ../node_modules/nan/nan_new.h:189, from ../node_modules/nan/nan.h:196, from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/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>)': ../node_modules/nan/nan_implementation_12_inl.h:337:37: warning: 'static v8::Local<v8::Value> v8::StringObject::New(v8::Local<v8::String>)' is deprecated: Use Isolate* version [-Wdeprecated-declarations] 337 | return v8::StringObject::New(value).As<v8::StringObject>(); | ^ In file included from /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:26, from ../src/libxmljs.cc:3: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:5242:37: note: declared here 5242 | static Local<Value> New(Local<String> value)); | ^~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED' 326 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ In file included from ../node_modules/nan/nan_new.h:189, from ../node_modules/nan/nan.h:196, from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan_implementation_12_inl.h:337:37: warning: 'static v8::Local<v8::Value> v8::StringObject::New(v8::Local<v8::String>)' is deprecated: Use Isolate* version [-Wdeprecated-declarations] 337 | return v8::StringObject::New(value).As<v8::StringObject>(); | ^ In file included from /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:26, from ../src/libxmljs.cc:3: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:5242:37: note: declared here 5242 | static Local<Value> New(Local<String> value)); | ^~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED' 326 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)': ../node_modules/nan/nan.h:833:60: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 833 | v8::Isolate::GetCurrent(), target, func, argc, argv); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:172:50: note: declared here 172 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h:833:60: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 833 | v8::Isolate::GetCurrent(), target, func, argc, argv); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:172:50: note: declared here 172 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)': ../node_modules/nan/nan.h:848:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 848 | v8::Isolate::GetCurrent(), target, symbol, argc, argv); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:165:50: note: declared here 165 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h:848:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 848 | v8::Isolate::GetCurrent(), target, symbol, argc, argv); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:165:50: note: declared here 165 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)': ../node_modules/nan/nan.h:863:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 863 | v8::Isolate::GetCurrent(), target, method, argc, argv); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:158:50: note: declared here 158 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h:863:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 863 | v8::Isolate::GetCurrent(), target, method, argc, argv); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:158:50: note: declared here 158 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)': ../node_modules/nan/nan.h:909:53: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations] 909 | v8::Local<v8::String> string = from->ToString(); | ^ In file included from ../src/libxmljs.cc:3: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:10248:15: note: declared here 10248 | Local<String> Value::ToString() const { | ^~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h:919:74: warning: 'int v8::String::WriteUtf8(char*, int, int*, int) const' is deprecated: Use Isolate* version [-Wdeprecated-declarations] 919 | length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags); | ^ In file included from /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:26, from ../src/libxmljs.cc:3: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:2754:21: note: declared here 2754 | int WriteUtf8(char* buffer, int length = -1, | ^~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED' 326 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h: In member function 'v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const': ../node_modules/nan/nan.h:1477:5: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 1477 | )); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:172:50: note: declared here 172 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h:1477:5: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 1477 | )); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:172:50: note: declared here 172 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)': ../node_modules/nan/nan.h:1730: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] 1730 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: ../src/libxmljs.cc: At global scope: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:495:43: warning: cast between incompatible function types from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void (*)(v8::Local<v8::Object>)'} to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type] 495 | (node::addon_register_func) (regfunc), \ | ^ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:529:3: note: in expansion of macro 'NODE_MODULE_X' 529 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | ^~~~~~~~~~~~~ ../src/libxmljs.cc:321:1: note: in expansion of macro 'NODE_MODULE' 321 | NODE_MODULE(xmljs, init) | ^~~~~~~~~~~ In file included from ../src/libxmljs.cc:3: /<HOME_FOLDER>/.node-gyp/11.7.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_FOLDER>/.node-gyp/11.7.0/include/node/node_object_wrap.h:85:78: required from here /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:9707: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] 9707 | reinterpret_cast<Callback>(callback), type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.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>&)]': ../node_modules/nan/nan_object_wrap.h:66:61: required from here /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:9707:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type] In file included from ../node_modules/nan/nan.h:190, from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan_maybe_43_inl.h: In function 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)': ../node_modules/nan/nan_maybe_43_inl.h:112:15: error: 'class v8::Object' has no member named 'ForceSet' 112 | return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs); | ^~~~~~~~ In file included from ../node_modules/nan/nan_new.h:189, from ../node_modules/nan/nan.h:196, from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/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>)': ../node_modules/nan/nan_implementation_12_inl.h:337:37: warning: 'static v8::Local<v8::Value> v8::StringObject::New(v8::Local<v8::String>)' is deprecated: Use Isolate* version [-Wdeprecated-declarations] 337 | return v8::StringObject::New(value).As<v8::StringObject>(); | ^ In file included from /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:26, from ../src/libxmljs.cc:3: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:5242:37: note: declared here 5242 | static Local<Value> New(Local<String> value)); | ^~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED' 326 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ In file included from ../node_modules/nan/nan_new.h:189, from ../node_modules/nan/nan.h:196, from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan_implementation_12_inl.h:337:37: warning: 'static v8::Local<v8::Value> v8::StringObject::New(v8::Local<v8::String>)' is deprecated: Use Isolate* version [-Wdeprecated-declarations] 337 | return v8::StringObject::New(value).As<v8::StringObject>(); | ^ In file included from /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:26, from ../src/libxmljs.cc:3: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:5242:37: note: declared here 5242 | static Local<Value> New(Local<String> value)); | ^~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED' 326 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)': ../node_modules/nan/nan.h:833:60: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 833 | v8::Isolate::GetCurrent(), target, func, argc, argv); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:172:50: note: declared here 172 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h:833:60: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 833 | v8::Isolate::GetCurrent(), target, func, argc, argv); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:172:50: note: declared here 172 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)': ../node_modules/nan/nan.h:848:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 848 | v8::Isolate::GetCurrent(), target, symbol, argc, argv); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:165:50: note: declared here 165 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h:848:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 848 | v8::Isolate::GetCurrent(), target, symbol, argc, argv); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:165:50: note: declared here 165 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)': ../node_modules/nan/nan.h:863:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 863 | v8::Isolate::GetCurrent(), target, method, argc, argv); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:158:50: note: declared here 158 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h:863:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 863 | v8::Isolate::GetCurrent(), target, method, argc, argv); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:158:50: note: declared here 158 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)': ../node_modules/nan/nan.h:909:53: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations] 909 | v8::Local<v8::String> string = from->ToString(); | ^ In file included from ../src/libxmljs.cc:3: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:10248:15: note: declared here 10248 | Local<String> Value::ToString() const { | ^~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h:919:74: warning: 'int v8::String::WriteUtf8(char*, int, int*, int) const' is deprecated: Use Isolate* version [-Wdeprecated-declarations] 919 | length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags); | ^ In file included from /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:26, from ../src/libxmljs.cc:3: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:2754:21: note: declared here 2754 | int WriteUtf8(char* buffer, int length = -1, | ^~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED' 326 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h: In member function 'v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const': ../node_modules/nan/nan.h:1477:5: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 1477 | )); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:172:50: note: declared here 172 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h:1477:5: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 1477 | )); | ^ In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:172:50: note: declared here 172 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( | ^~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED' 91 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/libxmljs.h:7, from ../src/libxmljs.cc:7: ../node_modules/nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)': ../node_modules/nan/nan.h:1730: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] 1730 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | ^ make: *** [xmljs.target.mk:167: Release/obj.target/xmljs/src/libxmljs.o] Error 1 make: Leaving directory '/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/build' gyp ERR! build error gyp ERR! stack Error:makefailed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:188:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12) gyp ERR! System Linux 5.2.0-1-MANJARO gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--loglevel=http" "--module=/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/build/Release/xmljs.node" "--module_name=xmljs" "--module_path=/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/build/Release" gyp ERR! cwd /<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt gyp ERR! node -v v11.7.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --loglevel=http --module=/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/build/Release/xmljs.node --module_name=xmljs --module_path=/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/build/Release' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:188:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:978:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) node-pre-gyp ERR! System Linux 5.2.0-1-MANJARO node-pre-gyp ERR! command "/usr/local/bin/node" "/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--loglevel" "http" node-pre-gyp ERR! cwd /<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt node-pre-gyp ERR! node -v v11.7.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.39 node-pre-gyp ERR! not ok Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --loglevel=http --module=/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/build/Release/xmljs.node --module_name=xmljs --module_path=/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/build/Release' (1) In file included from ../src/libxmljs.h:6, from ../src/libxmljs.cc:7: ../src/libxmljs.cc: At global scope: /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:495:43: warning: cast between incompatible function types from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void (*)(v8::Local<v8::Object>)'} to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type] 495 | (node::addon_register_func) (regfunc), \ | ^ /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/node.h:529:3: note: in expansion of macro 'NODE_MODULE_X' 529 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | ^~~~~~~~~~~~~ ../src/libxmljs.cc:321:1: note: in expansion of macro 'NODE_MODULE' 321 | NODE_MODULE(xmljs, init) | ^~~~~~~~~~~ In file included from ../src/libxmljs.cc:3: /<HOME_FOLDER>/.node-gyp/11.7.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_FOLDER>/.node-gyp/11.7.0/include/node/node_object_wrap.h:85:78: required from here /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:9707: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] 9707 | reinterpret_cast<Callback>(callback), type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<HOME_FOLDER>/.node-gyp/11.7.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>&)]': ../node_modules/nan/nan_object_wrap.h:66:61: required from here /<HOME_FOLDER>/.node-gyp/11.7.0/include/node/v8.h:9707: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: *** [xmljs.target.mk:167: Release/obj.target/xmljs/src/libxmljs.o] Error 1d to exec install script make: Leaving directory '/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/build' gyp ERR! build error gyp ERR! stack Error:make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:188:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 5.2.0-1-MANJARO
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--loglevel=http" "--module=/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/build/Release/xmljs.node" "--module_name=xmljs" "--module_path=/<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt/build/Release"
gyp ERR! cwd /<PROJECT_FOLDER_PATH>/node_modules/libxmljs-mt
gyp ERR! node -v v11.7.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! libxmljs-mt@0.18.3 install: node-pre-gyp install --fallback-to-build --loglevel http
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libxmljs-mt@0.18.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /<HOME_FOLDER>/.npm/_logs/2019-08-14T04_16_09_856Z-debug.log`
`
Anybody know way to fix this?