Skip to content

Node.js v4.4.0 install fail! #52

@perzy

Description

@perzy

JerryDeAir:toobusy jerry$ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@3.3.1
gyp info using node@4.4.0 | darwin | x64
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/jerry/.nvm/versions/node/v4.4.0/lib/node_modules/.node-gyp_npminstall/node-gyp/3.3.1/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 '/Users/jerry/work/nodejs/chat-server/node_modules/.npminstall/toobusy/0.2.4/toobusy/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/jerry/.nvm/versions/node/v4.4.0/lib/node_modules/.node-gyp_npminstall/node-gyp/3.3.1/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/jerry/.node-gyp/4.4.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/jerry/.node-gyp/4.4.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/jerry/.nvm/versions/node/v4.4.0/lib/node_modules/.node-gyp_npminstall/node-gyp/3.3.1/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/jerry/work/nodejs/chat-server/node_modules/.npminstall/toobusy/0.2.4/toobusy',
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 WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/toobusy/toobusy.o
../toobusy.cc:25:29: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle TooBusy(const Arguments& args) {
^~~~~~~~~
v8::internal::Arguments
/Users/jerry/.node-gyp/4.4.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../toobusy.cc:37:20: error: no matching function for call to 'True'
return block ? True() : False();
^~~~
/Users/jerry/.node-gyp/4.4.0/include/node/v8.h:8139:16: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local True(Isolate* isolate) {
^
../toobusy.cc:37:29: error: no matching function for call to 'False'
return block ? True() : False();
^~~~~
/Users/jerry/.node-gyp/4.4.0/include/node/v8.h:8148:16: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local False(Isolate* isolate) {
^
../toobusy.cc:40:30: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle ShutDown(const Arguments& args) {
^~~~~~~~~
v8::internal::Arguments
/Users/jerry/.node-gyp/4.4.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../toobusy.cc:45:12: error: no matching function for call to 'Undefined'
return Undefined();
^~~~~~~~~
/Users/jerry/.node-gyp/4.4.0/include/node/v8.h:315:27: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
friend Local Undefined(Isolate* isolate);
^
../toobusy.cc:48:25: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle Lag(const Arguments& args) {
^~~~~~~~~
v8::internal::Arguments
/Users/jerry/.node-gyp/4.4.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../toobusy.cc:49:17: error: calling a protected constructor of class 'v8::HandleScope'
HandleScope scope;
^
/Users/jerry/.node-gyp/4.4.0/include/node/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^
../toobusy.cc:50:18: error: no member named 'Close' in 'v8::HandleScope'
return scope.Close(Integer::New(s_currentLag));
~~~~~ ^
../toobusy.cc:50:49: error: too few arguments to function call, expected 2, have 1
return scope.Close(Integer::New(s_currentLag));
~~~~~~~~~~~~ ^
/Users/jerry/.node-gyp/4.4.0/include/node/v8.h:2499:3: note: 'New' declared here
static Local New(Isolate* isolate, int32_t value);
^
../toobusy.cc:53:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle HighWaterMark(const Arguments& args) {
^~~~~~~~~
v8::internal::Arguments
/Users/jerry/.node-gyp/4.4.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../toobusy.cc:54:17: error: calling a protected constructor of class 'v8::HandleScope'
HandleScope scope;
^
/Users/jerry/.node-gyp/4.4.0/include/node/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^
../toobusy.cc:56:13: error: member access into incomplete type 'const v8::internal::Arguments'
if (args.Length() >= 1) {
^
/Users/jerry/.node-gyp/4.4.0/include/node/v8.h:139:7: note: forward declaration of 'v8::internal::Arguments'
class Arguments;
^
../toobusy.cc:57:18: error: type 'const v8::internal::Arguments' does not provide a subscript operator
if (!args[0]->IsNumber()) {
~~~~^~
../toobusy.cc:58:24: error: no member named 'ThrowException' in namespace 'v8'
return v8::ThrowException(
~~~~^
../toobusy.cc:60:33: error: no member named 'New' in 'v8::String'
v8::String::New("expected numeric first argument")));
~~~~~~~~~~~~^
../toobusy.cc:62:23: error: type 'const v8::internal::Arguments' does not provide a subscript operator
int hwm = args[0]->Int32Value();
~~~~^~
../toobusy.cc:64:24: error: no member named 'ThrowException' in namespace 'v8'
return v8::ThrowException(
~~~~^
../toobusy.cc:66:33: error: no member named 'New' in 'v8::String'
v8::String::New("maximum lag should be greater than 10ms")));
~~~~~~~~~~~~^
../toobusy.cc:71:18: error: no member named 'Close' in 'v8::HandleScope'
return scope.Close(Number::New(HIGH_WATER_MARK_MS));
~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/toobusy/toobusy.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/jerry/.nvm/versions/node/v4.4.0/lib/node_modules/.node-gyp_npminstall/node-gyp/3.3.1/node-gyp/lib/build.js:276: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 Darwin 14.5.0
gyp ERR! command "/Users/jerry/.nvm/versions/node/v4.4.0/bin/node" "/Users/jerry/.nvm/versions/node/v4.4.0/bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/jerry/work/nodejs/chat-server/node_modules/.npminstall/toobusy/0.2.4/toobusy
gyp ERR! node -v v4.4.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions