Skip to content

Instantly share code, notes, and snippets.

@metamatt
Created February 27, 2015 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metamatt/7d58b95169c8c431d26d to your computer and use it in GitHub Desktop.
Save metamatt/7d58b95169c8c431d26d to your computer and use it in GitHub Desktop.
node-webkit-agent compile errors in node 0.12.0 after nan patch
matt@matt-dev ~/s/n/node-webkit-agent> node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.2
gyp info using node@0.12.0 | linux | x64
child_process: customFds option is deprecated, use stdio instead.
gyp info spawn python
gyp info spawn args [ '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/matt/src/node12-tests/node-webkit-agent/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/matt/.node-gyp/0.12.0/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/matt/.node-gyp/0.12.0',
gyp info spawn args '-Dmodule_root_dir=/home/matt/src/node12-tests/node-webkit-agent',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info make: Entering directory `/home/matt/src/node12-tests/node-webkit-agent/build'
spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/profiler/src/cpu_profiler.o
CXX(target) Release/obj.target/profiler/src/heap_profiler.o
CXX(target) Release/obj.target/profiler/src/profile.o
CXX(target) Release/obj.target/profiler/src/profile_node.o
../src/profile.cc: In static member function ‘static void nodex::Profile::GetUid(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’:
../src/profile.cc:25:49: error: ‘class v8::CpuProfile’ has no member named ‘GetUid’
uint32_t uid = static_cast<CpuProfile*>(ptr)->GetUid();
^
../src/profile.cc: In static member function ‘static void nodex::Profile::GetBottomRoot(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’:
../src/profile.cc:51:63: error: ‘class v8::CpuProfile’ has no member named ‘GetBottomUpRoot’
const CpuProfileNode* node = static_cast<CpuProfile*>(ptr)->GetBottomUpRoot();
^
../src/profile_node.cc: In static member function ‘static void nodex::ProfileNode::GetTotalTime(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’:
../src/profile_node.cc:53:53: error: ‘class v8::CpuProfileNode’ has no member named ‘GetTotalTime’
double ttime = static_cast<CpuProfileNode*>(ptr)->GetTotalTime();
^
../src/profile_node.cc: In static member function ‘static void nodex::ProfileNode::GetSelfTime(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’:
../src/profile_node.cc:61:53: error: ‘class v8::CpuProfileNode’ has no member named ‘GetSelfTime’
double stime = static_cast<CpuProfileNode*>(ptr)->GetSelfTime();
^
../src/profile_node.cc: In static member function ‘static void nodex::ProfileNode::GetTotalSamplesCount(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’:
../src/profile_node.cc:69:55: error: ‘class v8::CpuProfileNode’ has no member named ‘GetTotalSamplesCount’
double samples = static_cast<CpuProfileNode*>(ptr)->GetTotalSamplesCount();
^
../src/profile_node.cc: In static member function ‘static void nodex::ProfileNode::GetSelfSamplesCount(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’:
../src/profile_node.cc:77:55: error: ‘class v8::CpuProfileNode’ has no member named ‘GetSelfSamplesCount’
double samples = static_cast<CpuProfileNode*>(ptr)->GetSelfSamplesCount();
^
In file included from ../src/cpu_profiler.h:6:0,
from ../src/cpu_profiler.cc:1:
../src/cpu_profiler.cc: In static member function ‘static void nodex::CpuProfiler::GetProfilesCount(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/cpu_profiler.cc:31:40: error: ‘GetProfilesCount’ is not a member of ‘v8::CpuProfiler’
NanReturnValue(NanNew<Integer>(v8::CpuProfiler::GetProfilesCount()));
^
../node_modules/nan/nan.h:299:65: note: in definition of macro ‘NanReturnValue’
# define NanReturnValue(value) return args.GetReturnValue().Set(value)
^
../node_modules/nan/nan.h:299:70: error: return-statement with a value, in function returning 'void' [-fpermissive]
# define NanReturnValue(value) return args.GetReturnValue().Set(value)
^
../src/cpu_profiler.cc:31:9: note: in expansion of macro ‘NanReturnValue’
NanReturnValue(NanNew<Integer>(v8::CpuProfiler::GetProfilesCount()));
^
../src/cpu_profiler.cc: In static member function ‘static void nodex::CpuProfiler::GetProfile(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/cpu_profiler.cc:42:37: error: ‘GetProfile’ is not a member of ‘v8::CpuProfiler’
const CpuProfile* profile = v8::CpuProfiler::GetProfile(index);
^
../src/cpu_profiler.cc: In static member function ‘static void nodex::CpuProfiler::FindProfile(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/cpu_profiler.cc:54:37: error: ‘FindProfile’ is not a member of ‘v8::CpuProfiler’
const CpuProfile* profile = v8::CpuProfiler::FindProfile(uid);
^
../src/cpu_profiler.cc: In static member function ‘static void nodex::CpuProfiler::StartProfiling(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/cpu_profiler.cc:61:46: error: cannot call member function ‘void v8::CpuProfiler::StartProfiling(v8::Handle<v8::String>, bool)’ without object
v8::CpuProfiler::StartProfiling(title);
^
../src/cpu_profiler.cc: In static member function ‘static void nodex::CpuProfiler::StopProfiling(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/cpu_profiler.cc:68:73: error: cannot call member function ‘v8::CpuProfile* v8::CpuProfiler::StopProfiling(v8::Handle<v8::String>)’ without object
const CpuProfile* profile = v8::CpuProfiler::StopProfiling(title);
^
../src/cpu_profiler.cc: In static member function ‘static void nodex::CpuProfiler::DeleteAllProfiles(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/cpu_profiler.cc:73:9: error: ‘DeleteAllProfiles’ is not a member of ‘v8::CpuProfiler’
v8::CpuProfiler::DeleteAllProfiles();
^
In file included from ../src/heap_profiler.h:6:0,
from ../src/heap_profiler.cc:1:
../src/heap_profiler.cc: In static member function ‘static void nodex::HeapProfiler::GetSnapshotsCount(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/heap_profiler.cc:67:40: error: ‘GetSnapshotsCount’ is not a member of ‘v8::HeapProfiler’
NanReturnValue(NanNew<Integer>(v8::HeapProfiler::GetSnapshotsCount()));
^
../node_modules/nan/nan.h:299:65: note: in definition of macro ‘NanReturnValue’
# define NanReturnValue(value) return args.GetReturnValue().Set(value)
^
../node_modules/nan/nan.h:299:70: error: return-statement with a value, in function returning 'void' [-fpermissive]
# define NanReturnValue(value) return args.GetReturnValue().Set(value)
^
../src/heap_profiler.cc:67:9: note: in expansion of macro ‘NanReturnValue’
NanReturnValue(NanNew<Integer>(v8::HeapProfiler::GetSnapshotsCount()));
^
../src/heap_profiler.cc: In static member function ‘static void nodex::HeapProfiler::GetSnapshot(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/heap_profiler.cc:78:44: error: ‘GetSnapshot’ is not a member of ‘v8::HeapProfiler’
const v8::HeapSnapshot* snapshot = v8::HeapProfiler::GetSnapshot(index);
^
../src/heap_profiler.cc: In static member function ‘static void nodex::HeapProfiler::FindSnapshot(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/heap_profiler.cc:90:44: error: ‘FindSnapshot’ is not a member of ‘v8::HeapProfiler’
const v8::HeapSnapshot* snapshot = v8::HeapProfiler::FindSnapshot(uid);
^
../src/heap_profiler.cc: In static member function ‘static void nodex::HeapProfiler::TakeSnapshot(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/heap_profiler.cc:120:44: error: ‘TakeSnapshot’ is not a member of ‘v8::HeapProfiler’
const v8::HeapSnapshot* snapshot = v8::HeapProfiler::TakeSnapshot(title, HeapSnapshot::kFull, control);
^
../src/heap_profiler.cc:120:82: error: ‘kFull’ is not a member of ‘v8::HeapSnapshot’
const v8::HeapSnapshot* snapshot = v8::HeapProfiler::TakeSnapshot(title, HeapSnapshot::kFull, control);
^
../src/heap_profiler.cc: In static member function ‘static void nodex::HeapProfiler::DeleteAllSnapshots(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/heap_profiler.cc:127:9: error: ‘DeleteAllSnapshots’ is not a member of ‘v8::HeapProfiler’
v8::HeapProfiler::DeleteAllSnapshots();
^
make: *** [Release/obj.target/profiler/src/profile.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Release/obj.target/profiler/src/cpu_profiler.o] Error 1
make: *** [Release/obj.target/profiler/src/profile_node.o] Error 1
make: *** [Release/obj.target/profiler/src/heap_profiler.o] Error 1
make: Leaving directory `/home/matt/src/node12-tests/node-webkit-agent/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Linux 3.13.0-32-generic
gyp ERR! command "node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/matt/src/node12-tests/node-webkit-agent
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment