Support for newer node versions
L3P3 opened this issue · comments
When I try to build this with node 17, I get this:
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.0
npm ERR! gyp info using node@17.2.0 | linux | x64
npm ERR! gyp info find Python using Python version 3.10.9 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/l3p3/.nvm/versions/node/v17.2.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/media/Archiv/Entwicklung/Importiert/node-opencl-ts/node_modules/node-memwatch/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/l3p3/.nvm/versions/node/v17.2.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/l3p3/.cache/node-gyp/17.2.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/l3p3/.cache/node-gyp/17.2.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/l3p3/.nvm/versions/node/v17.2.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/l3p3/.cache/node-gyp/17.2.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/media/Archiv/Entwicklung/Importiert/node-opencl-ts/node_modules/node-memwatch',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/heapdiff.hh:11,
npm ERR! from ../src/heapdiff.cc:12:
npm ERR! ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(AsyncWorker*)’:
npm ERR! ../../nan/nan.h:2298:7: 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]
npm ERR! 2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from ../../nan/nan.h:2884:
npm ERR! ../../nan/nan_typedarray_contents.h: In constructor ‘Nan::TypedArrayContents<T>::TypedArrayContents(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_typedarray_contents.h:34:43: error: ‘class v8::ArrayBuffer’ has no member named ‘GetContents’
npm ERR! 34 | data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
npm ERR! | ^~~~~~~~~~~
npm ERR! ../src/heapdiff.hh: At global scope:
npm ERR! ../src/heapdiff.hh:18:34: error: ‘v8::Handle’ has not been declared
npm ERR! 18 | static void Initialize ( v8::Handle<v8::Object> target );
npm ERR! | ^~
npm ERR! ../src/heapdiff.hh:18:44: error: expected ‘,’ or ‘...’ before ‘<’ token
npm ERR! 18 | static void Initialize ( v8::Handle<v8::Object> target );
npm ERR! | ^
npm ERR! ../src/heapdiff.cc:46:1: error: variable or field ‘Initialize’ declared void
npm ERR! 46 | heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
npm ERR! | ^~~~~~~~
npm ERR! ../src/heapdiff.cc:46:38: error: ‘Handle’ is not a member of ‘v8’; did you mean ‘JobHandle’?
npm ERR! 46 | heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
npm ERR! | ^~~~~~
npm ERR! | JobHandle
npm ERR! ../src/heapdiff.cc:46:55: error: expected primary-expression before ‘>’ token
npm ERR! 46 | heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
npm ERR! | ^
npm ERR! ../src/heapdiff.cc:46:57: error: ‘target’ was not declared in this scope
npm ERR! 46 | heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
npm ERR! | ^~~~~~
npm ERR! ../src/heapdiff.cc: In function ‘std::string handleToStr(const v8::Local<v8::Value>&)’:
npm ERR! ../src/heapdiff.cc:97:59: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR! 97 | String::Utf8Value utfString(isolate, str->ToString());
npm ERR! | ~~~~~~~~~~~~~^~
npm ERR! In file included from /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-primitive.h:11,
npm ERR! from /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:11,
npm ERR! from /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-array-buffer.h:13,
npm ERR! from /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8.h:25,
npm ERR! from ../src/heapdiff.hh:8:
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-value.h:360:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR! 360 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR! | ^~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-value.h:360:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/heapdiff.cc: At global scope:
npm ERR! ../src/heapdiff.cc:226:8: error: ‘Handle’ does not name a type
npm ERR! 226 | static Handle<Value> changesetToObject(changeset & changes)
npm ERR! | ^~~~~~
npm ERR! ../src/heapdiff.cc: In function ‘v8::Local<v8::Value> compare(const v8::HeapSnapshot*, const v8::HeapSnapshot*)’:
npm ERR! ../src/heapdiff.cc:255:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Int32>::return_t)’
npm ERR! 255 | b->Set(Nan::New("nodes").ToLocalChecked(), Nan::New(before->GetNodesCount()));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:257:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’
npm ERR! 257 | o->Set(Nan::New("before").ToLocalChecked(), b);
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:260:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Int32>::return_t)’
npm ERR! 260 | a->Set(Nan::New("nodes").ToLocalChecked(), Nan::New(after->GetNodesCount()));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:262:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’
npm ERR! 262 | o->Set(Nan::New("after").ToLocalChecked(), a);
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:268:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Int32>::return_t)’
npm ERR! 268 | b->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New(s));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:269:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
npm ERR! 269 | b->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(s).c_str()).ToLocalChecked());
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:274:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Int32>::return_t)’
npm ERR! 274 | a->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New(s));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:275:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
npm ERR! 275 | a->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(s).c_str()).ToLocalChecked());
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:280:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Int32>::return_t)’
npm ERR! 280 | c->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New(diffBytes));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:281:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
npm ERR! 281 | c->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(diffBytes).c_str()).ToLocalChecked());
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:282:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’
npm ERR! 282 | o->Set(Nan::New("change").ToLocalChecked(), c);
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:287:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)’
npm ERR! 287 | c->Set(Nan::New("freed_nodes").ToLocalChecked(), Nan::New<v8::Number>(changedIDs.size()));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:303:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)’
npm ERR! 303 | c->Set(Nan::New("allocated_nodes").ToLocalChecked(), Nan::New<v8::Number>(changedIDs.size()));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:310:50: error: ‘changesetToObject’ was not declared in this scope
npm ERR! 310 | c->Set(Nan::New("details").ToLocalChecked(), changesetToObject(changes));
npm ERR! | ^~~~~~~~~~~~~~~~~
npm ERR! make: *** [memwatch.target.mk:116: Release/obj.target/memwatch/src/heapdiff.o] Fehler 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/l3p3/.nvm/versions/node/v17.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 6.0.0-5-amd64
npm ERR! gyp ERR! command "/home/l3p3/.nvm/versions/node/v17.2.0/bin/node" "/home/l3p3/.nvm/versions/node/v17.2.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /media/Archiv/Entwicklung/Importiert/node-opencl-ts/node_modules/node-memwatch
npm ERR! gyp ERR! node -v v17.2.0
npm ERR! gyp ERR! node-gyp -v v8.4.0
npm ERR! gyp ERR! not ok
My app runs on latest node version, so it is a bit sad I cannot use this module without learning c++ first. 😆
I upgraded nan to latest.
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.0
npm ERR! gyp info using node@17.2.0 | linux | x64
npm ERR! gyp info find Python using Python version 3.10.9 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/l3p3/.nvm/versions/node/v17.2.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/media/Archiv/Entwicklung/Importiert/node-opencl-ts/node_modules/node-memwatch/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/l3p3/.nvm/versions/node/v17.2.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/l3p3/.cache/node-gyp/17.2.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/l3p3/.cache/node-gyp/17.2.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/l3p3/.nvm/versions/node/v17.2.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/l3p3/.cache/node-gyp/17.2.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/media/Archiv/Entwicklung/Importiert/node-opencl-ts/node_modules/node-memwatch',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/heapdiff.cc:12:
npm ERR! ../src/heapdiff.hh:18:34: error: ‘v8::Handle’ has not been declared
npm ERR! 18 | static void Initialize ( v8::Handle<v8::Object> target );
npm ERR! | ^~
npm ERR! ../src/heapdiff.hh:18:44: error: expected ‘,’ or ‘...’ before ‘<’ token
npm ERR! 18 | static void Initialize ( v8::Handle<v8::Object> target );
npm ERR! | ^
npm ERR! ../src/heapdiff.cc:46:1: error: variable or field ‘Initialize’ declared void
npm ERR! 46 | heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
npm ERR! | ^~~~~~~~
npm ERR! ../src/heapdiff.cc:46:38: error: ‘Handle’ is not a member of ‘v8’; did you mean ‘JobHandle’?
npm ERR! 46 | heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
npm ERR! | ^~~~~~
npm ERR! | JobHandle
npm ERR! ../src/heapdiff.cc:46:55: error: expected primary-expression before ‘>’ token
npm ERR! 46 | heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
npm ERR! | ^
npm ERR! ../src/heapdiff.cc:46:57: error: ‘target’ was not declared in this scope
npm ERR! 46 | heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
npm ERR! | ^~~~~~
npm ERR! ../src/heapdiff.cc: In function ‘std::string handleToStr(const v8::Local<v8::Value>&)’:
npm ERR! ../src/heapdiff.cc:97:59: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR! 97 | String::Utf8Value utfString(isolate, str->ToString());
npm ERR! | ~~~~~~~~~~~~~^~
npm ERR! In file included from /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-primitive.h:11,
npm ERR! from /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:11,
npm ERR! from /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-array-buffer.h:13,
npm ERR! from /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8.h:25,
npm ERR! from ../src/heapdiff.hh:8:
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-value.h:360:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR! 360 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR! | ^~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-value.h:360:44: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/heapdiff.cc: At global scope:
npm ERR! ../src/heapdiff.cc:226:8: error: ‘Handle’ does not name a type
npm ERR! 226 | static Handle<Value> changesetToObject(changeset & changes)
npm ERR! | ^~~~~~
npm ERR! ../src/heapdiff.cc: In function ‘v8::Local<v8::Value> compare(const v8::HeapSnapshot*, const v8::HeapSnapshot*)’:
npm ERR! ../src/heapdiff.cc:255:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Int32>::return_t)’
npm ERR! 255 | b->Set(Nan::New("nodes").ToLocalChecked(), Nan::New(before->GetNodesCount()));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:257:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’
npm ERR! 257 | o->Set(Nan::New("before").ToLocalChecked(), b);
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:260:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Int32>::return_t)’
npm ERR! 260 | a->Set(Nan::New("nodes").ToLocalChecked(), Nan::New(after->GetNodesCount()));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:262:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’
npm ERR! 262 | o->Set(Nan::New("after").ToLocalChecked(), a);
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:268:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Int32>::return_t)’
npm ERR! 268 | b->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New(s));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:269:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
npm ERR! 269 | b->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(s).c_str()).ToLocalChecked());
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:274:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Int32>::return_t)’
npm ERR! 274 | a->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New(s));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:275:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
npm ERR! 275 | a->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(s).c_str()).ToLocalChecked());
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:280:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Int32>::return_t)’
npm ERR! 280 | c->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New(diffBytes));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:281:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
npm ERR! 281 | c->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(diffBytes).c_str()).ToLocalChecked());
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:282:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’
npm ERR! 282 | o->Set(Nan::New("change").ToLocalChecked(), c);
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:287:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)’
npm ERR! 287 | c->Set(Nan::New("freed_nodes").ToLocalChecked(), Nan::New<v8::Number>(changedIDs.size()));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:303:11: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)’
npm ERR! 303 | c->Set(Nan::New("allocated_nodes").ToLocalChecked(), Nan::New<v8::Number>(changedIDs.size()));
npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR! | ^~~
npm ERR! /home/l3p3/.cache/node-gyp/17.2.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
npm ERR! ../src/heapdiff.cc:310:50: error: ‘changesetToObject’ was not declared in this scope
npm ERR! 310 | c->Set(Nan::New("details").ToLocalChecked(), changesetToObject(changes));
npm ERR! | ^~~~~~~~~~~~~~~~~
npm ERR! make: *** [memwatch.target.mk:116: Release/obj.target/memwatch/src/heapdiff.o] Fehler 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/l3p3/.nvm/versions/node/v17.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 6.0.0-5-amd64
npm ERR! gyp ERR! command "/home/l3p3/.nvm/versions/node/v17.2.0/bin/node" "/home/l3p3/.nvm/versions/node/v17.2.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /media/Archiv/Entwicklung/Importiert/node-opencl-ts/node_modules/node-memwatch
npm ERR! gyp ERR! node -v v17.2.0
npm ERR! gyp ERR! node-gyp -v v8.4.0
npm ERR! gyp ERR! not ok
I try to fix it by myself... https://github.com/L3P3/node-opencl