pomelo版本如下2.2.5,与package.json 一致。删了重装没有效果
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server# pomelo -V
2.2.5
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server# cat package.json
{
"name": "lord_of_pomelo",
"version": "0.3.0",
"private": false,
"dependencies": {
"express": "2.5.2"
, "connect": ">=0.0.1"
, "socket.io": ">=0.9.6"
, "generic-pool": "*"
, "mysql": ">=2.0"
, "pomelo": "2.2.5"
, "async": ">=0.0.1"
, "socket.io-client" : ">=0.9.6"
, "pomelo-aoi" : ">=0.3.4"
, "crc" : ">=0.0.1"
, "pomelo-bt": ">=0.0.1"
, "pomelo-pathfinding": ">=0.1.0"
, "pomelo-collection": ">=0.1.0"
, "pomelo-logger": "0.0.3"
, "pomelo-monitor": ">=0.3.3"
, "pomelo-sync-plugin": "0.0.1"
, "pomelo-masterha-plugin": "0.0.4"
, "underscore": "1.5.2"
, "node-zookeeper-client": "0.2.0"
, "webkit-devtools-agent" : "0.1.2"
},
"devDependencies": {
"should": ">=0.0.1"
, "mocha": ">=0.0.1"
}
}
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server# cnpm install -d
[1/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/express
[2/22] Packgage connect@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/connect
[3/22] Packgage socket.io@>=0.9.6 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/socket.io
[4/22] Packgage generic-pool@* is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/generic-pool
[5/22] Packgage mysql@>=2.0 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/mysql
[6/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo
[7/22] Packgage async@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/async
[8/22] Packgage socket.io-client@>=0.9.6 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/socket.io-client
[9/22] Packgage pomelo-aoi@>=0.3.4 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-aoi
[10/22] Packgage crc@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/crc
[11/22] Packgage pomelo-bt@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-bt
[12/22] Packgage pomelo-pathfinding@>=0.1.0 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-pathfinding
[13/22] Packgage pomelo-collection@>=0.1.0 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-collection
[14/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-logger
[15/22] Packgage pomelo-monitor@>=0.3.3 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-monitor
[16/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-sync-plugin
[17/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-masterha-plugin
[18/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/underscore
[19/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/node-zookeeper-client
[20/22] Packgage should@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/should
[21/22] Packgage mocha@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/mocha
WARN node unsupported "[email protected]" is incompatible with [email protected], expected [email protected] || 0.7 || 0.8
[[email protected] › v8-profiler@git://github.com/c4milo/v8-profiler.git#v4.0.0] install v8-profiler from git git://github.com/c4milo/v8-profiler.git#v4.0.0, may be very slow, please keep patience
make: Entering directory '/code/vol/lordofpomelo/game-server/node_modules/v8-profiler@4.0.0@v8-profiler/build'
CXX(target) Release/obj.target/profiler/cpu_profiler.o
In file included from ../cpu_profiler.cc:1:0:
../cpu_profiler.h:19:57: error: ‘Arguments’ does not name a type
static Handle GetProfilesCount(const Arguments& args);
^
../cpu_profiler.h:20:51: error: ‘Arguments’ does not name a type
static Handle GetProfile(const Arguments& args);
^
../cpu_profiler.h:21:52: error: ‘Arguments’ does not name a type
static Handle FindProfile(const Arguments& args);
^
../cpu_profiler.h:22:55: error: ‘Arguments’ does not name a type
static Handle StartProfiling(const Arguments& args);
^
../cpu_profiler.h:23:54: error: ‘Arguments’ does not name a type
static Handle StopProfiling(const Arguments& args);
^
../cpu_profiler.h:24:58: error: ‘Arguments’ does not name a type
static Handle DeleteAllProfiles(const Arguments& args);
^
In file included from ../cpu_profiler.cc:2:0:
../profile.h:15:61: error: ‘AccessorInfo’ does not name a type
static Handle GetUid(Local property, const AccessorInfo& info);
^
../profile.h:16:63: error: ‘AccessorInfo’ does not name a type
static Handle GetTitle(Local property, const AccessorInfo& info);
^
../profile.h:17:65: error: ‘AccessorInfo’ does not name a type
static Handle GetTopRoot(Local property, const AccessorInfo& info);
^
../profile.h:18:68: error: ‘AccessorInfo’ does not name a type
static Handle GetBottomRoot(Local property, const AccessorInfo& info);
^
../profile.h:19:37: error: ‘Arguments’ does not name a type
static Handle Delete(const Arguments& args);
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static void nodex::CpuProfiler::Initialize(v8::Handlev8::Object)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:8:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:10:87: error: no matching function for call to ‘v8::Persistentv8::ObjectTemplate::New(v8::Localv8::ObjectTemplate)’
cpu_profiler_template = Persistent::New(ObjectTemplate::New());
^
../cpu_profiler.cc:10:87: note: candidate is:
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h:7181:4: note: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::ObjectTemplate]
T* PersistentBase::New(Isolate* isolate, T* that) {
^
/root/.node-gyp/4.2.6/include/node/v8.h:7181:4: note: candidate expects 2 arguments, 1 provided
../cpu_profiler.cc:11:31: error: base operand of ‘->’ has non-pointer type ‘v8::Persistentv8::ObjectTemplate’
cpu_profiler_template_->SetInternalFieldCount(1);
^
../cpu_profiler.cc:13:62: error: base operand of ‘->’ has non-pointer type ‘v8::Persistentv8::ObjectTemplate’
Local cpuProfilerObj = cpu_profiler_template_->NewInstance();
^
../cpu_profiler.cc:15:90: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [17], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "getProfilesCount", CpuProfiler::GetProfilesCount);
^
../cpu_profiler.cc:15:90: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:15:90: note: cannot convert ‘nodex::CpuProfiler::GetProfilesCount’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "getProfilesCount", CpuProfiler::GetProfilesCount);
^
../cpu_profiler.cc:16:78: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [11], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "getProfile", CpuProfiler::GetProfile);
^
../cpu_profiler.cc:16:78: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:16:78: note: cannot convert ‘nodex::CpuProfiler::GetProfile’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "getProfile", CpuProfiler::GetProfile);
^
../cpu_profiler.cc:17:80: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [12], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "findProfile", CpuProfiler::FindProfile);
^
../cpu_profiler.cc:17:80: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:17:80: note: cannot convert ‘nodex::CpuProfiler::FindProfile’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "findProfile", CpuProfiler::FindProfile);
^
../cpu_profiler.cc:18:86: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [15], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "startProfiling", CpuProfiler::StartProfiling);
^
../cpu_profiler.cc:18:86: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:18:86: note: cannot convert ‘nodex::CpuProfiler::StartProfiling’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "startProfiling", CpuProfiler::StartProfiling);
^
../cpu_profiler.cc:19:84: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [14], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "stopProfiling", CpuProfiler::StopProfiling);
^
../cpu_profiler.cc:19:84: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:19:84: note: cannot convert ‘nodex::CpuProfiler::StopProfiling’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "stopProfiling", CpuProfiler::StopProfiling);
^
../cpu_profiler.cc:20:92: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [18], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "deleteAllProfiles", CpuProfiler::DeleteAllProfiles);
^
../cpu_profiler.cc:20:92: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:20:92: note: cannot convert ‘nodex::CpuProfiler::DeleteAllProfiles’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "deleteAllProfiles", CpuProfiler::DeleteAllProfiles);
^
../cpu_profiler.cc:22:21: error: ‘NewSymbol’ is not a member of ‘v8::String’
target->Set(String::NewSymbol("cpuProfiler"), cpuProfilerObj);
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:28:55: error: ‘Arguments’ does not name a type
Handle CpuProfiler::GetProfilesCount(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfilesCount(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:29:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:30:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Integer::New(v8::CpuProfiler::GetProfilesCount()));
^
../cpu_profiler.cc:30:41: error: ‘GetProfilesCount’ is not a member of ‘v8::CpuProfiler’
return scope.Close(Integer::New(v8::CpuProfiler::GetProfilesCount()));
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:33:49: error: ‘Arguments’ does not name a type
Handle CpuProfiler::GetProfile(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfile(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:34:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:35:18: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1) {
^
../cpu_profiler.cc:36:52: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:36:86: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:37:27: error: invalid types ‘const int[int]’ for array subscript
} else if (!args[0]->IsInt32()) {
^
../cpu_profiler.cc:38:56: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:38:99: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:40:31: error: invalid types ‘const int[int]’ for array subscript
int32_t index = args[0]->Int32Value();
^
../cpu_profiler.cc:41:37: error: ‘GetProfile’ is not a member of ‘v8::CpuProfiler’
const CpuProfile profile = v8::CpuProfiler::GetProfile(index);
^
../cpu_profiler.cc:42:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Profile::New(profile));
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:45:50: error: ‘Arguments’ does not name a type
Handle CpuProfiler::FindProfile(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::FindProfile(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:46:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:47:18: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1) {
^
../cpu_profiler.cc:48:52: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:48:86: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:49:27: error: invalid types ‘const int[int]’ for array subscript
} else if (!args[0]->IsInt32()) {
^
../cpu_profiler.cc:50:56: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:50:99: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:52:30: error: invalid types ‘const int[int]’ for array subscript
uint32_t uid = args[0]->Uint32Value();
^
../cpu_profiler.cc:53:37: error: ‘FindProfile’ is not a member of ‘v8::CpuProfiler’
const CpuProfile* profile = v8::CpuProfiler::FindProfile(uid);
^
../cpu_profiler.cc:54:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Profile::New(profile));
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:57:53: error: ‘Arguments’ does not name a type
Handle CpuProfiler::StartProfiling(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StartProfiling(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:58:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:59:36: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:59:57: error: invalid types ‘const int[int]’ for array subscript
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:59:73: error: ‘New’ is not a member of ‘v8::String’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:60:46: error: cannot call member function ‘void v8::CpuProfiler::StartProfiling(v8::Localv8::String, bool)’ without object
v8::CpuProfiler::StartProfiling(title);
^
../cpu_profiler.cc:61:26: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(v8::Isolate*)’
return Undefined();
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h:315:27: note: declared here
friend Local Undefined(Isolate* isolate);
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:64:52: error: ‘Arguments’ does not name a type
Handle CpuProfiler::StopProfiling(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StopProfiling(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:65:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:66:36: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:66:57: error: invalid types ‘const int[int]’ for array subscript
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:66:73: error: ‘New’ is not a member of ‘v8::String’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:67:73: error: cannot call member function ‘v8::CpuProfile* v8::CpuProfiler::StopProfiling(v8::Localv8::String)’ without object
const CpuProfile* profile = v8::CpuProfiler::StopProfiling(title);
^
../cpu_profiler.cc:68:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Profile::New(profile));
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:71:56: error: ‘Arguments’ does not name a type
Handle CpuProfiler::DeleteAllProfiles(const Arguments& args) {
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::DeleteAllProfiles(const int&)’:
../cpu_profiler.cc:72:9: error: ‘DeleteAllProfiles’ is not a member of ‘v8::CpuProfiler’
v8::CpuProfiler::DeleteAllProfiles();
^
../cpu_profiler.cc:73:26: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(v8::Isolate*)’
return Undefined();
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h:315:27: note: declared here
friend Local Undefined(Isolate* isolate);
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfilesCount(const int&)’:
../cpu_profiler.cc:31:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfile(const int&)’:
../cpu_profiler.cc:43:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::FindProfile(const int&)’:
../cpu_profiler.cc:55:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StartProfiling(const int&)’:
../cpu_profiler.cc:62:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StopProfiling(const int&)’:
../cpu_profiler.cc:69:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::DeleteAllProfiles(const int&)’:
../cpu_profiler.cc:74:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
profiler.target.mk:99: recipe for target 'Release/obj.target/profiler/cpu_profiler.o' failed
make: *** [Release/obj.target/profiler/cpu_profiler.o] Error 1
make: Leaving directory '/code/vol/lordofpomelo/game-server/node_modules/_v8-profiler@4.0.0@v8-profiler/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/cnpm/node_modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-71-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/local/lib/node_modules/cnpm/node_modules/npminstall/node-gyp-bin/node-gyp.js" "rebuild"
gyp ERR! cwd /code/vol/lordofpomelo/game-server/node_modules/_v8-profiler@4.0.0@v8-profiler
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
Install fail! Error: Run "sh -c node-gyp rebuild" error, exit code 1
Error: Run "sh -c node-gyp rebuild" error, exit code 1
at ChildProcess. (/usr/local/lib/node_modules/cnpm/node_modules/runscript/index.js:65:21)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:821:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npminstall version: 2.29.2
npminstall args: /usr/bin/nodejs /usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --china --userconfig=/root/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org -d
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
pomelo版本如下2.2.5,与package.json 一致。删了重装没有效果
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server# pomelo -V
2.2.5
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server# cat package.json
{
"name": "lord_of_pomelo",
"version": "0.3.0",
"private": false,
"dependencies": {
"express": "2.5.2"
, "connect": ">=0.0.1"
, "socket.io": ">=0.9.6"
, "generic-pool": "*"
, "mysql": ">=2.0"
, "pomelo": "2.2.5"
, "async": ">=0.0.1"
, "socket.io-client" : ">=0.9.6"
, "pomelo-aoi" : ">=0.3.4"
, "crc" : ">=0.0.1"
, "pomelo-bt": ">=0.0.1"
, "pomelo-pathfinding": ">=0.1.0"
, "pomelo-collection": ">=0.1.0"
, "pomelo-logger": "0.0.3"
, "pomelo-monitor": ">=0.3.3"
, "pomelo-sync-plugin": "0.0.1"
, "pomelo-masterha-plugin": "0.0.4"
, "underscore": "1.5.2"
, "node-zookeeper-client": "0.2.0"
, "webkit-devtools-agent" : "0.1.2"
},
"devDependencies": {
"should": ">=0.0.1"
, "mocha": ">=0.0.1"
}
}
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server# cnpm install -d
[1/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/express
[2/22] Packgage connect@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/connect
[3/22] Packgage socket.io@>=0.9.6 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/socket.io
[4/22] Packgage generic-pool@* is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/generic-pool
[5/22] Packgage mysql@>=2.0 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/mysql
[6/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo
[7/22] Packgage async@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/async
[8/22] Packgage socket.io-client@>=0.9.6 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/socket.io-client
[9/22] Packgage pomelo-aoi@>=0.3.4 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-aoi
[10/22] Packgage crc@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/crc
[11/22] Packgage pomelo-bt@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-bt
[12/22] Packgage pomelo-pathfinding@>=0.1.0 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-pathfinding
[13/22] Packgage pomelo-collection@>=0.1.0 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-collection
[14/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-logger
[15/22] Packgage pomelo-monitor@>=0.3.3 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-monitor
[16/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-sync-plugin
[17/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-masterha-plugin
[18/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/underscore
[19/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/node-zookeeper-client
[20/22] Packgage should@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/should
[21/22] Packgage mocha@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/mocha
WARN node unsupported "[email protected]" is incompatible with [email protected], expected [email protected] || 0.7 || 0.8
[[email protected] › v8-profiler@git://github.com/c4milo/v8-profiler.git#v4.0.0] install v8-profiler from git git://github.com/c4milo/v8-profiler.git#v4.0.0, may be very slow, please keep patience
make: Entering directory '/code/vol/lordofpomelo/game-server/node_modules/v8-profiler@4.0.0@v8-profiler/build'
CXX(target) Release/obj.target/profiler/cpu_profiler.o
In file included from ../cpu_profiler.cc:1:0:
../cpu_profiler.h:19:57: error: ‘Arguments’ does not name a type
static Handle GetProfilesCount(const Arguments& args);
^
../cpu_profiler.h:20:51: error: ‘Arguments’ does not name a type
static Handle GetProfile(const Arguments& args);
^
../cpu_profiler.h:21:52: error: ‘Arguments’ does not name a type
static Handle FindProfile(const Arguments& args);
^
../cpu_profiler.h:22:55: error: ‘Arguments’ does not name a type
static Handle StartProfiling(const Arguments& args);
^
../cpu_profiler.h:23:54: error: ‘Arguments’ does not name a type
static Handle StopProfiling(const Arguments& args);
^
../cpu_profiler.h:24:58: error: ‘Arguments’ does not name a type
static Handle DeleteAllProfiles(const Arguments& args);
^
In file included from ../cpu_profiler.cc:2:0:
../profile.h:15:61: error: ‘AccessorInfo’ does not name a type
static Handle GetUid(Local property, const AccessorInfo& info);
^
../profile.h:16:63: error: ‘AccessorInfo’ does not name a type
static Handle GetTitle(Local property, const AccessorInfo& info);
^
../profile.h:17:65: error: ‘AccessorInfo’ does not name a type
static Handle GetTopRoot(Local property, const AccessorInfo& info);
^
../profile.h:18:68: error: ‘AccessorInfo’ does not name a type
static Handle GetBottomRoot(Local property, const AccessorInfo& info);
^
../profile.h:19:37: error: ‘Arguments’ does not name a type
static Handle Delete(const Arguments& args);
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static void nodex::CpuProfiler::Initialize(v8::Handlev8::Object)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:8:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:10:87: error: no matching function for call to ‘v8::Persistentv8::ObjectTemplate::New(v8::Localv8::ObjectTemplate)’
cpu_profiler_template = Persistent::New(ObjectTemplate::New());
^
../cpu_profiler.cc:10:87: note: candidate is:
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h:7181:4: note: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::ObjectTemplate]
T* PersistentBase::New(Isolate* isolate, T* that) {
^
/root/.node-gyp/4.2.6/include/node/v8.h:7181:4: note: candidate expects 2 arguments, 1 provided
../cpu_profiler.cc:11:31: error: base operand of ‘->’ has non-pointer type ‘v8::Persistentv8::ObjectTemplate’
cpu_profiler_template_->SetInternalFieldCount(1);
^
../cpu_profiler.cc:13:62: error: base operand of ‘->’ has non-pointer type ‘v8::Persistentv8::ObjectTemplate’
Local cpuProfilerObj = cpu_profiler_template_->NewInstance();
^
../cpu_profiler.cc:15:90: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [17], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "getProfilesCount", CpuProfiler::GetProfilesCount);
^
../cpu_profiler.cc:15:90: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:15:90: note: cannot convert ‘nodex::CpuProfiler::GetProfilesCount’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "getProfilesCount", CpuProfiler::GetProfilesCount);
^
../cpu_profiler.cc:16:78: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [11], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "getProfile", CpuProfiler::GetProfile);
^
../cpu_profiler.cc:16:78: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:16:78: note: cannot convert ‘nodex::CpuProfiler::GetProfile’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "getProfile", CpuProfiler::GetProfile);
^
../cpu_profiler.cc:17:80: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [12], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "findProfile", CpuProfiler::FindProfile);
^
../cpu_profiler.cc:17:80: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:17:80: note: cannot convert ‘nodex::CpuProfiler::FindProfile’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "findProfile", CpuProfiler::FindProfile);
^
../cpu_profiler.cc:18:86: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [15], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "startProfiling", CpuProfiler::StartProfiling);
^
../cpu_profiler.cc:18:86: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:18:86: note: cannot convert ‘nodex::CpuProfiler::StartProfiling’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "startProfiling", CpuProfiler::StartProfiling);
^
../cpu_profiler.cc:19:84: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [14], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "stopProfiling", CpuProfiler::StopProfiling);
^
../cpu_profiler.cc:19:84: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:19:84: note: cannot convert ‘nodex::CpuProfiler::StopProfiling’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "stopProfiling", CpuProfiler::StopProfiling);
^
../cpu_profiler.cc:20:92: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [18], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "deleteAllProfiles", CpuProfiler::DeleteAllProfiles);
^
../cpu_profiler.cc:20:92: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:20:92: note: cannot convert ‘nodex::CpuProfiler::DeleteAllProfiles’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "deleteAllProfiles", CpuProfiler::DeleteAllProfiles);
^
../cpu_profiler.cc:22:21: error: ‘NewSymbol’ is not a member of ‘v8::String’
target->Set(String::NewSymbol("cpuProfiler"), cpuProfilerObj);
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:28:55: error: ‘Arguments’ does not name a type
Handle CpuProfiler::GetProfilesCount(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfilesCount(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:29:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:30:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Integer::New(v8::CpuProfiler::GetProfilesCount()));
^
../cpu_profiler.cc:30:41: error: ‘GetProfilesCount’ is not a member of ‘v8::CpuProfiler’
return scope.Close(Integer::New(v8::CpuProfiler::GetProfilesCount()));
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:33:49: error: ‘Arguments’ does not name a type
Handle CpuProfiler::GetProfile(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfile(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:34:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:35:18: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1) {
^
../cpu_profiler.cc:36:52: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:36:86: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:37:27: error: invalid types ‘const int[int]’ for array subscript
} else if (!args[0]->IsInt32()) {
^
../cpu_profiler.cc:38:56: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:38:99: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:40:31: error: invalid types ‘const int[int]’ for array subscript
int32_t index = args[0]->Int32Value();
^
../cpu_profiler.cc:41:37: error: ‘GetProfile’ is not a member of ‘v8::CpuProfiler’
const CpuProfile profile = v8::CpuProfiler::GetProfile(index);
^
../cpu_profiler.cc:42:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Profile::New(profile));
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:45:50: error: ‘Arguments’ does not name a type
Handle CpuProfiler::FindProfile(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::FindProfile(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:46:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:47:18: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1) {
^
../cpu_profiler.cc:48:52: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:48:86: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:49:27: error: invalid types ‘const int[int]’ for array subscript
} else if (!args[0]->IsInt32()) {
^
../cpu_profiler.cc:50:56: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:50:99: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:52:30: error: invalid types ‘const int[int]’ for array subscript
uint32_t uid = args[0]->Uint32Value();
^
../cpu_profiler.cc:53:37: error: ‘FindProfile’ is not a member of ‘v8::CpuProfiler’
const CpuProfile* profile = v8::CpuProfiler::FindProfile(uid);
^
../cpu_profiler.cc:54:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Profile::New(profile));
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:57:53: error: ‘Arguments’ does not name a type
Handle CpuProfiler::StartProfiling(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StartProfiling(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:58:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:59:36: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:59:57: error: invalid types ‘const int[int]’ for array subscript
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:59:73: error: ‘New’ is not a member of ‘v8::String’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:60:46: error: cannot call member function ‘void v8::CpuProfiler::StartProfiling(v8::Localv8::String, bool)’ without object
v8::CpuProfiler::StartProfiling(title);
^
../cpu_profiler.cc:61:26: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(v8::Isolate*)’
return Undefined();
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h:315:27: note: declared here
friend Local Undefined(Isolate* isolate);
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:64:52: error: ‘Arguments’ does not name a type
Handle CpuProfiler::StopProfiling(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StopProfiling(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:65:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:66:36: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:66:57: error: invalid types ‘const int[int]’ for array subscript
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:66:73: error: ‘New’ is not a member of ‘v8::String’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:67:73: error: cannot call member function ‘v8::CpuProfile* v8::CpuProfiler::StopProfiling(v8::Localv8::String)’ without object
const CpuProfile* profile = v8::CpuProfiler::StopProfiling(title);
^
../cpu_profiler.cc:68:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Profile::New(profile));
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:71:56: error: ‘Arguments’ does not name a type
Handle CpuProfiler::DeleteAllProfiles(const Arguments& args) {
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::DeleteAllProfiles(const int&)’:
../cpu_profiler.cc:72:9: error: ‘DeleteAllProfiles’ is not a member of ‘v8::CpuProfiler’
v8::CpuProfiler::DeleteAllProfiles();
^
../cpu_profiler.cc:73:26: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(v8::Isolate*)’
return Undefined();
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h:315:27: note: declared here
friend Local Undefined(Isolate* isolate);
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfilesCount(const int&)’:
../cpu_profiler.cc:31:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfile(const int&)’:
../cpu_profiler.cc:43:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::FindProfile(const int&)’:
../cpu_profiler.cc:55:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StartProfiling(const int&)’:
../cpu_profiler.cc:62:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StopProfiling(const int&)’:
../cpu_profiler.cc:69:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::DeleteAllProfiles(const int&)’:
../cpu_profiler.cc:74:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
profiler.target.mk:99: recipe for target 'Release/obj.target/profiler/cpu_profiler.o' failed
make: *** [Release/obj.target/profiler/cpu_profiler.o] Error 1
make: Leaving directory '/code/vol/lordofpomelo/game-server/node_modules/_v8-profiler@4.0.0@v8-profiler/build'
gyp ERR! build error
gyp ERR! stack Error:
makefailed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/cnpm/node_modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-71-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/local/lib/node_modules/cnpm/node_modules/npminstall/node-gyp-bin/node-gyp.js" "rebuild"
gyp ERR! cwd /code/vol/lordofpomelo/game-server/node_modules/_v8-profiler@4.0.0@v8-profiler
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
Install fail! Error: Run "sh -c node-gyp rebuild" error, exit code 1
Error: Run "sh -c node-gyp rebuild" error, exit code 1
at ChildProcess. (/usr/local/lib/node_modules/cnpm/node_modules/runscript/index.js:65:21)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:821:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npminstall version: 2.29.2
npminstall args: /usr/bin/nodejs /usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --china --userconfig=/root/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org -d
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#