node-memwatch icon indicating copy to clipboard operation
node-memwatch copied to clipboard

ubuntu install error

Open cool-firer opened this issue 8 years ago • 4 comments

`root@test:/var/stf# npm install memwatch [..................] / normalizeTree: sill install loadCurrentTree

[email protected] install /var/stf/node_modules/memwatch node-gyp rebuild

make: Entering directory '/var/stf/node_modules/memwatch/build' CXX(target) Release/obj.target/memwatch/src/heapdiff.o In file included from ../src/heapdiff.cc:5:0: ../src/heapdiff.hh:15:5: error: expected class-name before ‘{’ token { ^ ../src/heapdiff.hh:19:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handlev8::Value New( const v8::Arguments& args ); ^ ../src/heapdiff.hh:20:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handlev8::Value End( const v8::Arguments& args ); ^ ../src/heapdiff.cc: In constructor ‘heapdiff::HeapDiff::HeapDiff()’: ../src/heapdiff.cc:30:34: error: class ‘heapdiff::HeapDiff’ does not have any field named ‘ObjectWrap’ heapdiff::HeapDiff::HeapDiff() : ObjectWrap(), before(NULL), after(NULL), ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h: In static member function ‘static void heapdiff::HeapDiff::Initialize(v8::Handlev8::Object)’: /root/.node-gyp/5.10.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/heapdiff.cc:51:21: error: within this context v8::HandleScope scope; ^ ../src/heapdiff.cc:52:70: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’ v8::Localv8::FunctionTemplate t = v8::FunctionTemplate::New(New); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:4348:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int) static Local<FunctionTemplate> New( ^ /root/.node-gyp/5.10.0/include/node/v8.h:4348:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’ ../src/heapdiff.cc:54:21: error: ‘NewSymbol’ is not a member of ‘v8::String’ t->SetClassName(String::NewSymbol("HeapDiff")); ^ ../src/heapdiff.cc:56:44: error: invalid conversion from ‘v8::Handlev8::Value ()(const int&) {aka v8::Localv8::Value ()(const int&)}’ to ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t, "end", End); ^ In file included from ../src/heapdiff.hh:10:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/node.h:252:13: note: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Localv8::FunctionTemplate, const char, v8::FunctionCallback)’ inline void NODE_SET_PROTOTYPE_METHOD(v8::Localv8::FunctionTemplate recv, ^ ../src/heapdiff.cc:58:17: error: ‘NewSymbol’ is not a member of ‘v8::String’ target->Set(v8::String::NewSymbol( "HeapDiff"), t->GetFunction()); ^ ../src/heapdiff.cc: At global scope: ../src/heapdiff.cc:62:36: error: ‘Arguments’ in namespace ‘v8’ does not name a type heapdiff::HeapDiff::New (const v8::Arguments& args) ^ ../src/heapdiff.cc: In static member function ‘static v8::Handlev8::Value heapdiff::HeapDiff::New(const int&)’: ../src/heapdiff.cc:67:15: error: request for member ‘IsConstructCall’ in ‘args’, which is of non-class type ‘const int’ if (!args.IsConstructCall()) { ^ ../src/heapdiff.cc:70:17: error: ‘New’ is not a member of ‘v8::String’ String::New("Use the new operator to create instances of this object."))); ^ ../src/heapdiff.cc:70:89: error: ‘ThrowException’ was not declared in this scope String::New("Use the new operator to create instances of this object."))); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/heapdiff.cc:73:21: error: within this context v8::HandleScope scope; ^ ../src/heapdiff.cc:77:11: error: ‘class heapdiff::HeapDiff’ has no member named ‘Wrap’ self->Wrap(args.This()); ^ ../src/heapdiff.cc:77:21: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ self->Wrap(args.This()); ^ ../src/heapdiff.cc:82:20: error: ‘TakeSnapshot’ is not a member of ‘v8::HeapProfiler’ self->before = v8::HeapProfiler::TakeSnapshot(v8::String::New("")); ^ ../src/heapdiff.cc:82:51: error: ‘New’ is not a member of ‘v8::String’ self->before = v8::HeapProfiler::TakeSnapshot(v8::String::New("")); ^ ../src/heapdiff.cc:85:17: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ return args.This(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h: In function ‘void buildIDSet(std::set, const v8::HeapGraphNode, int&)’: /root/.node-gyp/5.10.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/heapdiff.cc:97:21: error: within this context v8::HandleScope scope; ^ ../src/heapdiff.cc:111:15: error: ‘const class v8::HeapGraphNode’ has no member named ‘GetSelfSize’ s += cur->GetSelfSize(); ^ ../src/heapdiff.cc: In function ‘void manageChange(changeset&, const v8::HeapGraphNode*, bool)’: ../src/heapdiff.cc:202:29: error: ‘const class v8::HeapGraphNode’ has no member named ‘GetSelfSize’ i->second.size += node->GetSelfSize() * (added ? 1 : -1); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h: In function ‘v8::Handlev8::Value changesetToObject(changeset&)’: /root/.node-gyp/5.10.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/heapdiff.cc:213:21: error: within this context v8::HandleScope scope; ^ ../src/heapdiff.cc:214:33: error: no matching function for call to ‘v8::Array::New()’ Local<Array> a = Array::New(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2962:23: note: candidate: static v8::Localv8::Array v8::Array::New(v8::Isolate*, int) static Local<Array> New(Isolate* isolate, int length = 0); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2962:23: note: candidate expects 2 arguments, 0 provided ../src/heapdiff.cc:217:39: error: no matching function for call to ‘v8::Object::New()’ Local<Object> d = Object::New(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2930:24: note: candidate: static v8::Localv8::Object v8::Object::New(v8::Isolate*) static Local<Object> New(Isolate* isolate); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2930:24: note: candidate expects 1 argument, 0 provided ../src/heapdiff.cc:218:16: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("what"), String::New(i->first.c_str())); ^ ../src/heapdiff.cc:218:37: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("what"), String::New(i->first.c_str())); ^ ../src/heapdiff.cc:219:16: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("size_bytes"), Integer::New(i->second.size)); ^ ../src/heapdiff.cc:219:70: error: no matching function for call to ‘v8::Integer::New(long int&)’ d->Set(String::New("size_bytes"), Integer::New(i->second.size)); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:220:16: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("size"), String::New(mw_util::niceSize(i->second.size).c_str())); ^ ../src/heapdiff.cc:220:37: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("size"), String::New(mw_util::niceSize(i->second.size).c_str())); ^ ../src/heapdiff.cc:221:16: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("+"), Integer::New(i->second.added)); ^ ../src/heapdiff.cc:221:62: error: no matching function for call to ‘v8::Integer::New(long int&)’ d->Set(String::New("+"), Integer::New(i->second.added)); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:222:16: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("-"), Integer::New(i->second.released)); ^ ../src/heapdiff.cc:222:65: error: no matching function for call to ‘v8::Integer::New(long int&)’ d->Set(String::New("-"), Integer::New(i->second.released)); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:226:18: error: ‘class v8::HandleScope’ has no member named ‘Close’ return scope.Close(a); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h: In function ‘v8::Handlev8::Value compare(const v8::HeapSnapshot*, const v8::HeapSnapshot*)’: /root/.node-gyp/5.10.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/heapdiff.cc:233:21: error: within this context v8::HandleScope scope; ^ ../src/heapdiff.cc:236:35: error: no matching function for call to ‘v8::Object::New()’ Local<Object> o = Object::New(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2930:24: note: candidate: static v8::Localv8::Object v8::Object::New(v8::Isolate*) static Local<Object> New(Isolate* isolate); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2930:24: note: candidate expects 1 argument, 0 provided ../src/heapdiff.cc:239:35: error: no matching function for call to ‘v8::Object::New()’ Local<Object> b = Object::New(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2930:24: note: candidate: static v8::Localv8::Object v8::Object::New(v8::Isolate*) static Local<Object> New(Isolate* isolate); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2930:24: note: candidate expects 1 argument, 0 provided ../src/heapdiff.cc:240:12: error: ‘New’ is not a member of ‘v8::String’ b->Set(String::New("nodes"), Integer::New(before->GetNodesCount())); ^ ../src/heapdiff.cc:240:70: error: no matching function for call to ‘v8::Integer::New(int)’ b->Set(String::New("nodes"), Integer::New(before->GetNodesCount())); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:241:12: error: ‘New’ is not a member of ‘v8::String’ b->Set(String::New("time"), NODE_UNIXTIME_V8(s_startTime)); ^ ../src/heapdiff.cc:242:12: error: ‘New’ is not a member of ‘v8::String’ o->Set(String::New("before"), b); ^ ../src/heapdiff.cc:244:35: error: no matching function for call to ‘v8::Object::New()’ Local<Object> a = Object::New(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2930:24: note: candidate: static v8::Localv8::Object v8::Object::New(v8::Isolate*) static Local<Object> New(Isolate* isolate); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2930:24: note: candidate expects 1 argument, 0 provided ../src/heapdiff.cc:245:12: error: ‘New’ is not a member of ‘v8::String’ a->Set(String::New("nodes"), Integer::New(after->GetNodesCount())); ^ ../src/heapdiff.cc:245:69: error: no matching function for call to ‘v8::Integer::New(int)’ a->Set(String::New("nodes"), Integer::New(after->GetNodesCount())); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:246:12: error: ‘New’ is not a member of ‘v8::String’ a->Set(String::New("time"), NODE_UNIXTIME_V8(time(NULL))); ^ ../src/heapdiff.cc:247:12: error: ‘New’ is not a member of ‘v8::String’ o->Set(String::New("after"), a); ^ ../src/heapdiff.cc:253:12: error: ‘New’ is not a member of ‘v8::String’ b->Set(String::New("size_bytes"), Integer::New(s)); ^ ../src/heapdiff.cc:253:53: error: no matching function for call to ‘v8::Integer::New(int&)’ b->Set(String::New("size_bytes"), Integer::New(s)); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:254:12: error: ‘New’ is not a member of ‘v8::String’ b->Set(String::New("size"), String::New(mw_util::niceSize(s).c_str())); ^ ../src/heapdiff.cc:254:33: error: ‘New’ is not a member of ‘v8::String’ b->Set(String::New("size"), String::New(mw_util::niceSize(s).c_str())); ^ ../src/heapdiff.cc:259:12: error: ‘New’ is not a member of ‘v8::String’ a->Set(String::New("size_bytes"), Integer::New(s)); ^ ../src/heapdiff.cc:259:53: error: no matching function for call to ‘v8::Integer::New(int&)’ a->Set(String::New("size_bytes"), Integer::New(s)); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:260:12: error: ‘New’ is not a member of ‘v8::String’ a->Set(String::New("size"), String::New(mw_util::niceSize(s).c_str())); ^ ../src/heapdiff.cc:260:33: error: ‘New’ is not a member of ‘v8::String’ a->Set(String::New("size"), String::New(mw_util::niceSize(s).c_str())); ^ ../src/heapdiff.cc:264:35: error: no matching function for call to ‘v8::Object::New()’ Local<Object> c = Object::New(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2930:24: note: candidate: static v8::Localv8::Object v8::Object::New(v8::Isolate*) static Local<Object> New(Isolate* isolate); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2930:24: note: candidate expects 1 argument, 0 provided ../src/heapdiff.cc:265:12: error: ‘New’ is not a member of ‘v8::String’ c->Set(String::New("size_bytes"), Integer::New(diffBytes)); ^ ../src/heapdiff.cc:265:61: error: no matching function for call to ‘v8::Integer::New(int&)’ c->Set(String::New("size_bytes"), Integer::New(diffBytes)); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:266:12: error: ‘New’ is not a member of ‘v8::String’ c->Set(String::New("size"), String::New(mw_util::niceSize(diffBytes).c_str())); ^ ../src/heapdiff.cc:266:33: error: ‘New’ is not a member of ‘v8::String’ c->Set(String::New("size"), String::New(mw_util::niceSize(diffBytes).c_str())); ^ ../src/heapdiff.cc:267:12: error: ‘New’ is not a member of ‘v8::String’ o->Set(String::New("change"), c); ^ ../src/heapdiff.cc:272:12: error: ‘New’ is not a member of ‘v8::String’ c->Set(String::New("freed_nodes"), Integer::New(changedIDs.size())); ^ ../src/heapdiff.cc:272:70: error: no matching function for call to ‘v8::Integer::New(std::vector::size_type)’ c->Set(String::New("freed_nodes"), Integer::New(changedIDs.size())); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:288:12: error: ‘New’ is not a member of ‘v8::String’ c->Set(String::New("allocated_nodes"), Integer::New(changedIDs.size())); ^ ../src/heapdiff.cc:288:74: error: no matching function for call to ‘v8::Integer::New(std::vector::size_type)’ c->Set(String::New("allocated_nodes"), Integer::New(changedIDs.size())); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /root/.node-gyp/5.10.0/include/node/v8.h:2496:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:295:12: error: ‘New’ is not a member of ‘v8::String’ c->Set(String::New("details"), changesetToObject(changes)); ^ ../src/heapdiff.cc:297:18: error: ‘class v8::HandleScope’ has no member named ‘Close’ return scope.Close(o); ^ ../src/heapdiff.cc: At global scope: ../src/heapdiff.cc:301:32: error: ‘Arguments’ does not name a type heapdiff::HeapDiff::End( const Arguments& args ) ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /root/.node-gyp/5.10.0/include/node/v8.h: In static member function ‘static v8::Handlev8::Value heapdiff::HeapDiff::End(const int&)’: /root/.node-gyp/5.10.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/heapdiff.cc:304:21: error: within this context v8::HandleScope scope; ^ ../src/heapdiff.cc:306:19: error: ‘Unwrap’ was not declared in this scope HeapDiff *t = Unwrap<HeapDiff>( args.This() ); ^ ../src/heapdiff.cc:306:34: error: expected primary-expression before ‘>’ token HeapDiff *t = Unwrap<HeapDiff>( args.This() ); ^ ../src/heapdiff.cc:306:42: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ HeapDiff *t = Unwrap<HeapDiff>( args.This() ); ^ ../src/heapdiff.cc:312:16: error: ‘ThrowException’ is not a member of ‘v8’ return v8::ThrowException( ^ ../src/heapdiff.cc:314:17: error: ‘New’ is not a member of ‘v8::String’ v8::String::New("attempt to end() a HeapDiff that was " ^ ../src/heapdiff.cc:320:16: error: ‘TakeSnapshot’ is not a member of ‘v8::HeapProfiler’ t->after = v8::HeapProfiler::TakeSnapshot(v8::String::New("")); ^ ../src/heapdiff.cc:320:47: error: ‘New’ is not a member of ‘v8::String’ t->after = v8::HeapProfiler::TakeSnapshot(v8::String::New("")); ^ ../src/heapdiff.cc:331:18: error: ‘class v8::HandleScope’ has no member named ‘Close’ return scope.Close(comparison); ^ memwatch.target.mk:97: recipe for target 'Release/obj.target/memwatch/src/heapdiff.o' failed make: *** [Release/obj.target/memwatch/src/heapdiff.o] Error 1 make: Leaving directory '/var/stf/node_modules/memwatch/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:276:23) gyp ERR! stack at emitTwo (events.js:100:13) gyp ERR! stack at ChildProcess.emit (events.js:185:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12) gyp ERR! System Linux 4.4.0-72-generic gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /var/stf/node_modules/memwatch gyp ERR! node -v v5.10.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! Linux 4.4.0-72-generic npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "memwatch" npm ERR! node v5.10.0 npm ERR! npm v4.1.1 npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the memwatch package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs memwatch npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls memwatch npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /var/stf/npm-debug.log`

cool-firer avatar Apr 06 '17 03:04 cool-firer

Same

FireController1847 avatar May 23 '17 03:05 FireController1847

Check #79

Do npm install memwatch-next. Worked for me.

qburst-gokulk avatar Jun 16 '17 09:06 qburst-gokulk

My node version is node v6.11

I too get this

`> [email protected] install /media/sahanlm/COMMON/PROJECTS/Celigo/integrator-adaptor/node_modules/memwatch

node-gyp rebuild

make: Entering directory '/media/sahanlm/COMMON/PROJECTS/Celigo/integrator-adaptor/node_modules/memwatch/build' CXX(target) Release/obj.target/memwatch/src/heapdiff.o In file included from ../src/heapdiff.cc:5:0: ../src/heapdiff.hh:15:5: error: expected class-name before ‘{’ token { ^ ../src/heapdiff.hh:19:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handlev8::Value New( const v8::Arguments& args ); ^ ../src/heapdiff.hh:20:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handlev8::Value End( const v8::Arguments& args ); ^ ../src/heapdiff.cc: In constructor ‘heapdiff::HeapDiff::HeapDiff()’: ../src/heapdiff.cc:30:34: error: class ‘heapdiff::HeapDiff’ does not have any field named ‘ObjectWrap’ heapdiff::HeapDiff::HeapDiff() : ObjectWrap(), before(NULL), after(NULL), ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h: In static member function ‘static void heapdiff::HeapDiff::Initialize(v8::Handlev8::Object)’: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/heapdiff.cc:51:21: error: within this context v8::HandleScope scope; ^ ../src/heapdiff.cc:52:70: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’ v8::Localv8::FunctionTemplate t = v8::FunctionTemplate::New(New); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:4485:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int) static Local<FunctionTemplate> New( ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:4485:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:4489:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior) static Local<FunctionTemplate> New( ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:4489:34: note: candidate expects 6 arguments, 1 provided ../src/heapdiff.cc:54:21: error: ‘NewSymbol’ is not a member of ‘v8::String’ t->SetClassName(String::NewSymbol("HeapDiff")); ^ ../src/heapdiff.cc:56:44: error: invalid conversion from ‘v8::Handlev8::Value ()(const int&) {aka v8::Localv8::Value ()(const int&)}’ to ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t, "end", End); ^ In file included from ../src/heapdiff.hh:10:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/node.h:275:13: note: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Localv8::FunctionTemplate, const char, v8::FunctionCallback)’ inline void NODE_SET_PROTOTYPE_METHOD(v8::Localv8::FunctionTemplate recv, ^ ../src/heapdiff.cc:58:17: error: ‘NewSymbol’ is not a member of ‘v8::String’ target->Set(v8::String::NewSymbol( "HeapDiff"), t->GetFunction()); ^ ../src/heapdiff.cc: At global scope: ../src/heapdiff.cc:62:36: error: ‘Arguments’ in namespace ‘v8’ does not name a type heapdiff::HeapDiff::New (const v8::Arguments& args) ^ ../src/heapdiff.cc: In static member function ‘static v8::Handlev8::Value heapdiff::HeapDiff::New(const int&)’: ../src/heapdiff.cc:67:15: error: request for member ‘IsConstructCall’ in ‘args’, which is of non-class type ‘const int’ if (!args.IsConstructCall()) { ^ ../src/heapdiff.cc:70:17: error: ‘New’ is not a member of ‘v8::String’ String::New("Use the new operator to create instances of this object."))); ^ ../src/heapdiff.cc:70:89: error: ‘ThrowException’ was not declared in this scope String::New("Use the new operator to create instances of this object."))); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/heapdiff.cc:73:21: error: within this context v8::HandleScope scope; ^ ../src/heapdiff.cc:77:11: error: ‘class heapdiff::HeapDiff’ has no member named ‘Wrap’ self->Wrap(args.This()); ^ ../src/heapdiff.cc:77:21: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ self->Wrap(args.This()); ^ ../src/heapdiff.cc:82:20: error: ‘TakeSnapshot’ is not a member of ‘v8::HeapProfiler’ self->before = v8::HeapProfiler::TakeSnapshot(v8::String::New("")); ^ ../src/heapdiff.cc:82:51: error: ‘New’ is not a member of ‘v8::String’ self->before = v8::HeapProfiler::TakeSnapshot(v8::String::New("")); ^ ../src/heapdiff.cc:85:17: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ return args.This(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h: In function ‘void buildIDSet(std::set, const v8::HeapGraphNode, int&)’: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/heapdiff.cc:97:21: error: within this context v8::HandleScope scope; ^ ../src/heapdiff.cc:111:15: error: ‘const class v8::HeapGraphNode’ has no member named ‘GetSelfSize’ s += cur->GetSelfSize(); ^ ../src/heapdiff.cc: In function ‘void manageChange(changeset&, const v8::HeapGraphNode*, bool)’: ../src/heapdiff.cc:202:29: error: ‘const class v8::HeapGraphNode’ has no member named ‘GetSelfSize’ i->second.size += node->GetSelfSize() * (added ? 1 : -1); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h: In function ‘v8::Handlev8::Value changesetToObject(changeset&)’: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/heapdiff.cc:213:21: error: within this context v8::HandleScope scope; ^ ../src/heapdiff.cc:214:33: error: no matching function for call to ‘v8::Array::New()’ Local<Array> a = Array::New(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:3039:23: note: candidate: static v8::Localv8::Array v8::Array::New(v8::Isolate*, int) static Local<Array> New(Isolate* isolate, int length = 0); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:3039:23: note: candidate expects 2 arguments, 0 provided ../src/heapdiff.cc:217:39: error: no matching function for call to ‘v8::Object::New()’ Local<Object> d = Object::New(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:3006:24: note: candidate: static v8::Localv8::Object v8::Object::New(v8::Isolate*) static Local<Object> New(Isolate* isolate); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:3006:24: note: candidate expects 1 argument, 0 provided ../src/heapdiff.cc:218:16: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("what"), String::New(i->first.c_str())); ^ ../src/heapdiff.cc:218:37: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("what"), String::New(i->first.c_str())); ^ ../src/heapdiff.cc:219:16: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("size_bytes"), Integer::New(i->second.size)); ^ ../src/heapdiff.cc:219:70: error: no matching function for call to ‘v8::Integer::New(long int&)’ d->Set(String::New("size_bytes"), Integer::New(i->second.size)); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:220:16: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("size"), String::New(mw_util::niceSize(i->second.size).c_str())); ^ ../src/heapdiff.cc:220:37: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("size"), String::New(mw_util::niceSize(i->second.size).c_str())); ^ ../src/heapdiff.cc:221:16: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("+"), Integer::New(i->second.added)); ^ ../src/heapdiff.cc:221:62: error: no matching function for call to ‘v8::Integer::New(long int&)’ d->Set(String::New("+"), Integer::New(i->second.added)); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:222:16: error: ‘New’ is not a member of ‘v8::String’ d->Set(String::New("-"), Integer::New(i->second.released)); ^ ../src/heapdiff.cc:222:65: error: no matching function for call to ‘v8::Integer::New(long int&)’ d->Set(String::New("-"), Integer::New(i->second.released)); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:226:18: error: ‘class v8::HandleScope’ has no member named ‘Close’ return scope.Close(a); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h: In function ‘v8::Handlev8::Value compare(const v8::HeapSnapshot*, const v8::HeapSnapshot*)’: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/heapdiff.cc:233:21: error: within this context v8::HandleScope scope; ^ ../src/heapdiff.cc:236:35: error: no matching function for call to ‘v8::Object::New()’ Local<Object> o = Object::New(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:3006:24: note: candidate: static v8::Localv8::Object v8::Object::New(v8::Isolate*) static Local<Object> New(Isolate* isolate); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:3006:24: note: candidate expects 1 argument, 0 provided ../src/heapdiff.cc:239:35: error: no matching function for call to ‘v8::Object::New()’ Local<Object> b = Object::New(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:3006:24: note: candidate: static v8::Localv8::Object v8::Object::New(v8::Isolate*) static Local<Object> New(Isolate* isolate); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:3006:24: note: candidate expects 1 argument, 0 provided ../src/heapdiff.cc:240:12: error: ‘New’ is not a member of ‘v8::String’ b->Set(String::New("nodes"), Integer::New(before->GetNodesCount())); ^ ../src/heapdiff.cc:240:70: error: no matching function for call to ‘v8::Integer::New(int)’ b->Set(String::New("nodes"), Integer::New(before->GetNodesCount())); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:241:12: error: ‘New’ is not a member of ‘v8::String’ b->Set(String::New("time"), NODE_UNIXTIME_V8(s_startTime)); ^ ../src/heapdiff.cc:242:12: error: ‘New’ is not a member of ‘v8::String’ o->Set(String::New("before"), b); ^ ../src/heapdiff.cc:244:35: error: no matching function for call to ‘v8::Object::New()’ Local<Object> a = Object::New(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:3006:24: note: candidate: static v8::Localv8::Object v8::Object::New(v8::Isolate*) static Local<Object> New(Isolate* isolate); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:3006:24: note: candidate expects 1 argument, 0 provided ../src/heapdiff.cc:245:12: error: ‘New’ is not a member of ‘v8::String’ a->Set(String::New("nodes"), Integer::New(after->GetNodesCount())); ^ ../src/heapdiff.cc:245:69: error: no matching function for call to ‘v8::Integer::New(int)’ a->Set(String::New("nodes"), Integer::New(after->GetNodesCount())); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:246:12: error: ‘New’ is not a member of ‘v8::String’ a->Set(String::New("time"), NODE_UNIXTIME_V8(time(NULL))); ^ ../src/heapdiff.cc:247:12: error: ‘New’ is not a member of ‘v8::String’ o->Set(String::New("after"), a); ^ ../src/heapdiff.cc:253:12: error: ‘New’ is not a member of ‘v8::String’ b->Set(String::New("size_bytes"), Integer::New(s)); ^ ../src/heapdiff.cc:253:53: error: no matching function for call to ‘v8::Integer::New(int&)’ b->Set(String::New("size_bytes"), Integer::New(s)); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:254:12: error: ‘New’ is not a member of ‘v8::String’ b->Set(String::New("size"), String::New(mw_util::niceSize(s).c_str())); ^ ../src/heapdiff.cc:254:33: error: ‘New’ is not a member of ‘v8::String’ b->Set(String::New("size"), String::New(mw_util::niceSize(s).c_str())); ^ ../src/heapdiff.cc:259:12: error: ‘New’ is not a member of ‘v8::String’ a->Set(String::New("size_bytes"), Integer::New(s)); ^ ../src/heapdiff.cc:259:53: error: no matching function for call to ‘v8::Integer::New(int&)’ a->Set(String::New("size_bytes"), Integer::New(s)); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:260:12: error: ‘New’ is not a member of ‘v8::String’ a->Set(String::New("size"), String::New(mw_util::niceSize(s).c_str())); ^ ../src/heapdiff.cc:260:33: error: ‘New’ is not a member of ‘v8::String’ a->Set(String::New("size"), String::New(mw_util::niceSize(s).c_str())); ^ ../src/heapdiff.cc:264:35: error: no matching function for call to ‘v8::Object::New()’ Local<Object> c = Object::New(); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:3006:24: note: candidate: static v8::Localv8::Object v8::Object::New(v8::Isolate*) static Local<Object> New(Isolate* isolate); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:3006:24: note: candidate expects 1 argument, 0 provided ../src/heapdiff.cc:265:12: error: ‘New’ is not a member of ‘v8::String’ c->Set(String::New("size_bytes"), Integer::New(diffBytes)); ^ ../src/heapdiff.cc:265:61: error: no matching function for call to ‘v8::Integer::New(int&)’ c->Set(String::New("size_bytes"), Integer::New(diffBytes)); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:266:12: error: ‘New’ is not a member of ‘v8::String’ c->Set(String::New("size"), String::New(mw_util::niceSize(diffBytes).c_str())); ^ ../src/heapdiff.cc:266:33: error: ‘New’ is not a member of ‘v8::String’ c->Set(String::New("size"), String::New(mw_util::niceSize(diffBytes).c_str())); ^ ../src/heapdiff.cc:267:12: error: ‘New’ is not a member of ‘v8::String’ o->Set(String::New("change"), c); ^ ../src/heapdiff.cc:272:12: error: ‘New’ is not a member of ‘v8::String’ c->Set(String::New("freed_nodes"), Integer::New(changedIDs.size())); ^ ../src/heapdiff.cc:272:70: error: no matching function for call to ‘v8::Integer::New(std::vector::size_type)’ c->Set(String::New("freed_nodes"), Integer::New(changedIDs.size())); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:288:12: error: ‘New’ is not a member of ‘v8::String’ c->Set(String::New("allocated_nodes"), Integer::New(changedIDs.size())); ^ ../src/heapdiff.cc:288:74: error: no matching function for call to ‘v8::Integer::New(std::vector::size_type)’ c->Set(String::New("allocated_nodes"), Integer::New(changedIDs.size())); ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/heapdiff.cc:295:12: error: ‘New’ is not a member of ‘v8::String’ c->Set(String::New("details"), changesetToObject(changes)); ^ ../src/heapdiff.cc:297:18: error: ‘class v8::HandleScope’ has no member named ‘Close’ return scope.Close(o); ^ ../src/heapdiff.cc: At global scope: ../src/heapdiff.cc:301:32: error: ‘Arguments’ does not name a type heapdiff::HeapDiff::End( const Arguments& args ) ^ In file included from ../src/heapdiff.hh:8:0, from ../src/heapdiff.cc:5: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h: In static member function ‘static v8::Handlev8::Value heapdiff::HeapDiff::End(const int&)’: /home/sahanlm/.node-gyp/6.11.3/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected V8_INLINE HandleScope() {} ^ ../src/heapdiff.cc:304:21: error: within this context v8::HandleScope scope; ^ ../src/heapdiff.cc:306:19: error: ‘Unwrap’ was not declared in this scope HeapDiff *t = Unwrap<HeapDiff>( args.This() ); ^ ../src/heapdiff.cc:306:34: error: expected primary-expression before ‘>’ token HeapDiff *t = Unwrap<HeapDiff>( args.This() ); ^ ../src/heapdiff.cc:306:42: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ HeapDiff *t = Unwrap<HeapDiff>( args.This() ); ^ ../src/heapdiff.cc:312:16: error: ‘ThrowException’ is not a member of ‘v8’ return v8::ThrowException( ^ ../src/heapdiff.cc:314:17: error: ‘New’ is not a member of ‘v8::String’ v8::String::New("attempt to end() a HeapDiff that was " ^ ../src/heapdiff.cc:320:16: error: ‘TakeSnapshot’ is not a member of ‘v8::HeapProfiler’ t->after = v8::HeapProfiler::TakeSnapshot(v8::String::New("")); ^ ../src/heapdiff.cc:320:47: error: ‘New’ is not a member of ‘v8::String’ t->after = v8::HeapProfiler::TakeSnapshot(v8::String::New("")); ^ ../src/heapdiff.cc:331:18: error: ‘class v8::HandleScope’ has no member named ‘Close’ return scope.Close(comparison); ^ memwatch.target.mk:95: recipe for target 'Release/obj.target/memwatch/src/heapdiff.o' failed make: *** [Release/obj.target/memwatch/src/heapdiff.o] Error 1 make: Leaving directory '/media/sahanlm/COMMON/PROJECTS/Celigo/integrator-adaptor/node_modules/memwatch/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/sahanlm/.nvm/versions/node/v6.11.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12) gyp ERR! System Linux 4.15.0-38-generic gyp ERR! command "/home/sahanlm/.nvm/versions/node/v6.11.3/bin/node" "/home/sahanlm/.nvm/versions/node/v6.11.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /media/sahanlm/COMMON/PROJECTS/Celigo/integrator-adaptor/node_modules/memwatch gyp ERR! node -v v6.11.3 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm ERR! Linux 4.15.0-38-generic npm ERR! argv "/home/sahanlm/.nvm/versions/node/v6.11.3/bin/node" "/home/sahanlm/.nvm/versions/node/v6.11.3/bin/npm" "install" "memwatch" npm ERR! node v6.11.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the memwatch package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs memwatch npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls memwatch npm ERR! There is likely additional logging output above. `

sahanmal avatar Oct 31 '18 08:10 sahanmal

I got sam on osx.

goors avatar Apr 23 '21 09:04 goors