-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install fails on Node 12 #2
Comments
Linux error outputmake: Verzeichnis „/home/paolo/code/epages-ui/node_modules/node-memwatch/build“ wird betreten CXX(target) Release/obj.target/memwatch/src/heapdiff.o In file included from ../src/heapdiff.hh:11, from ../src/heapdiff.cc:12: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] , reinterpret_cast(AsyncExecuteComplete) ^ In file included from ../src/heapdiff.cc:12: ../src/heapdiff.hh: At global scope: ../src/heapdiff.hh:18:38: error: ‘v8::Handle’ has not been declared static void Initialize ( v8::Handle target ); ^~~~~~ ../src/heapdiff.hh:18:44: error: expected ‘,’ or ‘...’ before ‘<’ token static void Initialize ( v8::Handle target ); ^ ../src/heapdiff.cc:46:38: error: variable or field ‘Initialize’ declared void heapdiff::HeapDiff::Initialize ( v8::Handle target ) ^~~~~~ ../src/heapdiff.cc:46:38: error: ‘Handle’ is not a member of ‘v8’ ../src/heapdiff.cc:46:55: error: expected primary-expression before ‘>’ token heapdiff::HeapDiff::Initialize ( v8::Handle target ) ^ ../src/heapdiff.cc:46:57: error: ‘target’ was not declared in this scope heapdiff::HeapDiff::Initialize ( v8::Handle target ) ^~~~~~ ../src/heapdiff.cc:46:57: note: suggested alternative: ‘tzset’ heapdiff::HeapDiff::Initialize ( v8::Handle target ) ^~~~~~ tzset ../src/heapdiff.cc: In function ‘std::__cxx11::string handleToStr(const v8::Local&)’: ../src/heapdiff.cc:97:53: error: no matching function for call to ‘v8::Value::ToString()’ String::Utf8Value utfString(isolate, str->ToString()); ^ In file included from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:2528:44: note: candidate: ‘v8::MaybeLocal v8::Value::ToString(v8::Local) const’ V8_WARN_UNUSED_RESULT MaybeLocal ToString( ^~~~~~~~ /home/paolo/.node-gyp/12.4.0/include/node/v8.h:2528:44: note: candidate expects 1 argument, 0 provided In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:2544:35: note: candidate: ‘v8::Local v8::Value::ToString(v8::Isolate*) const’ Local ToString(Isolate* isolate) const); ^~~~~~~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ /home/paolo/.node-gyp/12.4.0/include/node/v8.h:2544:35: note: candidate expects 1 argument, 0 provided Local ToString(Isolate* isolate) const); ^~~~~~~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc: At global scope: ../src/heapdiff.cc:226:8: error: ‘Handle’ does not name a type; did you mean ‘rand_r’? static Handle changesetToObject(changeset & changes) ^~~~~~ rand_r ../src/heapdiff.cc: In function ‘v8::Local compare(const v8::HeapSnapshot*, const v8::HeapSnapshot*)’: ../src/heapdiff.cc:255:81: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] b->Set(Nan::New("nodes").ToLocalChecked(), Nan::New(before->GetNodesCount())); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:257:50: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] o->Set(Nan::New("before").ToLocalChecked(), b); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:260:80: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] a->Set(Nan::New("nodes").ToLocalChecked(), Nan::New(after->GetNodesCount())); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:262:49: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] o->Set(Nan::New("after").ToLocalChecked(), a); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:268:64: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] b->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New(s)); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:269:102: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] b->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(s).c_str()).ToLocalChecked()); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:274:64: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] a->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New(s)); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:275:102: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] a->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(s).c_str()).ToLocalChecked()); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:280:72: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] c->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New(diffBytes)); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:281:110: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] c->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(diffBytes).c_str()).ToLocalChecked()); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:282:50: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] o->Set(Nan::New("change").ToLocalChecked(), c); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:287:93: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] c->Set(Nan::New("freed_nodes").ToLocalChecked(), Nan::New(changedIDs.size())); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:303:97: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] c->Set(Nan::New("allocated_nodes").ToLocalChecked(), Nan::New(changedIDs.size())); ^ In file included from /home/paolo/.node-gyp/12.4.0/include/node/v8-internal.h:14, from /home/paolo/.node-gyp/12.4.0/include/node/v8.h:25, from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^~~ /home/paolo/.node-gyp/12.4.0/include/node/v8config.h:322:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/heapdiff.cc:310:50: error: ‘changesetToObject’ was not declared in this scope c->Set(Nan::New("details").ToLocalChecked(), changesetToObject(changes)); ^~~~~~~~~~~~~~~~~ ../src/heapdiff.cc:310:50: note: suggested alternative: ‘changeset’ c->Set(Nan::New("details").ToLocalChecked(), changesetToObject(changes)); ^~~~~~~~~~~~~~~~~ changeset In file included from ../src/heapdiff.hh:8, from ../src/heapdiff.cc:12: /home/paolo/.node-gyp/12.4.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo |
Any update? |
Any further update on this issue? |
Not working for node 12.14.0 |
Hi @eduardbcom , I have raised the PR which resolved the Node V12 build error. Can you review it and merge those changes. |
Hi @venkateshwarlu-bavandla, was your fix implemented? I'm trying to install in node 12.1.0 but the error persists. |
Node-memwatch
npm rebuild
fails on Node 12.Tested with:
v12.6.0
(current)v6.10.0
Full error output:
The text was updated successfully, but these errors were encountered: