Cannot compile — node v0.11.13 #19

Closed
langpavel opened this Issue May 15, 2014 · 3 comments

2 participants

@langpavel

It seems that node 0.11 is not supported

$ node --version
v0.11.13
$ npm install
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings

> microtime@0.5.1 install /home/langpavel/Projects/github/wadey/node-microtime
> node-gyp rebuild

make: Entering directory `/home/langpavel/Projects/github/wadey/node-microtime/build'
  CXX(target) Release/obj.target/microtime/src/microtime.o
In file included from ../src/microtime.cc:11:0:
../node_modules/nan/nan.h: In function ‘v8::Handle<v8::Value> NanError(const char*)’:
../node_modules/nan/nan.h:318:13: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In function ‘void NanThrowError(const char*)’:
../node_modules/nan/nan.h:322:5: error: ‘ThrowException’ is not a member of ‘v8’
../node_modules/nan/nan.h:322:5: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In function ‘void NanThrowError(v8::Handle<v8::Value>)’:
../node_modules/nan/nan.h:327:5: error: ‘ThrowException’ is not a member of ‘v8’
../node_modules/nan/nan.h: In function ‘v8::Handle<v8::Value> NanError(const char*, int)’:
../node_modules/nan/nan.h:334:53: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:336:14: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:336:65: error: no matching function for call to ‘v8::Int32::New(const int&)’
../node_modules/nan/nan.h:336:65: note: candidate is:
In file included from ../src/microtime.cc:6:0:
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2074:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2074:25: note:   candidate expects 2 arguments, 1 provided
In file included from ../src/microtime.cc:11:0:
../node_modules/nan/nan.h: In function ‘v8::Handle<v8::Value> NanTypeError(const char*)’:
../node_modules/nan/nan.h:348:12: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In function ‘void NanThrowTypeError(const char*)’:
../node_modules/nan/nan.h:352:5: error: ‘ThrowException’ is not a member of ‘v8’
../node_modules/nan/nan.h:352:5: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In function ‘v8::Handle<v8::Value> NanRangeError(const char*)’:
../node_modules/nan/nan.h:356:12: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In function ‘void NanThrowRangeError(const char*)’:
../node_modules/nan/nan.h:360:5: error: ‘ThrowException’ is not a member of ‘v8’
../node_modules/nan/nan.h:360:5: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In constructor ‘NanCallback::NanCallback(const v8::Local<v8::Function>&)’:
../node_modules/nan/nan.h:668:49: error: no matching function for call to ‘v8::Object::New()’
../node_modules/nan/nan.h:668:49: note: candidate is:
In file included from ../src/microtime.cc:6:0:
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2457:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2457:24: note:   candidate expects 1 argument, 0 provided
In file included from ../src/microtime.cc:11:0:
../node_modules/nan/nan.h:669:14: error: ‘NewSymbol’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In destructor ‘NanCallback::~NanCallback()’:
../node_modules/nan/nan.h:675:12: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Dispose’
../node_modules/nan/nan.h:676:12: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Clear’
../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Function> NanCallback::GetFunction()’:
../node_modules/nan/nan.h:680:46: error: ‘NewSymbol’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:681:25: error: expected primary-expression before ‘>’ token
../node_modules/nan/nan.h:681:27: error: expected primary-expression before ‘)’ token
../node_modules/nan/nan.h: In member function ‘void NanCallback::Call(int, v8::Local<v8::Value>*)’:
../node_modules/nan/nan.h:693:13: error: ‘NewSymbol’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:693:51: error: expected primary-expression before ‘>’ token
../node_modules/nan/nan.h:693:53: error: expected primary-expression before ‘)’ token
../node_modules/nan/nan.h:695:9: error: ‘GetCurrent’ is not a member of ‘v8::Context’
../node_modules/nan/nan.h: In member function ‘void NanAsyncWorker::SavePersistent(const char*, v8::Local<v8::Object>&)’:
../node_modules/nan/nan.h:739:17: error: ‘NewSymbol’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Object> NanAsyncWorker::GetFromPersistent(const char*)’:
../node_modules/nan/nan.h:746:24: error: ‘NewSymbol’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:746:53: error: expected primary-expression before ‘>’ token
../node_modules/nan/nan.h:746:55: error: expected primary-expression before ‘)’ token
../node_modules/nan/nan.h: In member function ‘virtual void NanAsyncWorker::HandleErrorCallback()’:
../node_modules/nan/nan.h:768:30: error: ‘New’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In function ‘char* NanFromV8String(v8::Handle<v8::Value>, Nan::Encoding, size_t*, char*, size_t, int)’:
../node_modules/nan/nan.h:987:3: error: ‘AsciiValue’ is not a member of ‘v8::String’
../node_modules/nan/nan.h:987:26: error: expected ‘;’ before ‘value’
../node_modules/nan/nan.h:1050:39: error: ‘value’ was not declared in this scope
../src/microtime.cc: In function ‘void Now(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/microtime.cc:54:61: error: ‘ThrowException’ was not declared in this scope
../src/microtime.cc:58:5: error: no matching function for call to ‘v8::Number::New(double)’
../src/microtime.cc:58:5: note: candidate is:
In file included from ../src/microtime.cc:6:0:
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2061:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2061:24: note:   candidate expects 2 arguments, 1 provided
../src/microtime.cc:58:5: error: return-statement with a value, in function returning 'void' [-fpermissive]
../src/microtime.cc: In function ‘void NowDouble(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/microtime.cc:68:61: error: ‘ThrowException’ was not declared in this scope
../src/microtime.cc:72:5: error: no matching function for call to ‘v8::Number::New(double)’
../src/microtime.cc:72:5: note: candidate is:
In file included from ../src/microtime.cc:6:0:
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2061:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2061:24: note:   candidate expects 2 arguments, 1 provided
../src/microtime.cc:72:5: error: return-statement with a value, in function returning 'void' [-fpermissive]
../src/microtime.cc: In function ‘void NowStruct(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/microtime.cc:82:61: error: ‘ThrowException’ was not declared in this scope
../src/microtime.cc:86:38: error: invalid conversion from ‘int’ to ‘v8::Isolate*’ [-fpermissive]
In file included from ../src/microtime.cc:6:0:
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2486:23: error:   initializing argument 1 of ‘static v8::Local<v8::Array> v8::Array::New(v8::Isolate*, int)’ [-fpermissive]
../src/microtime.cc:87:30: error: no matching function for call to ‘v8::Integer::New(int)’
../src/microtime.cc:87:30: note: candidate is:
In file included from ../src/microtime.cc:6:0:
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2074:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2074:25: note:   candidate expects 2 arguments, 1 provided
../src/microtime.cc:87:53: error: no matching function for call to ‘v8::Uint32::New(__time_t&)’
../src/microtime.cc:87:53: note: candidate is:
In file included from ../src/microtime.cc:6:0:
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2074:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2074:25: note:   candidate expects 2 arguments, 1 provided
../src/microtime.cc:88:30: error: no matching function for call to ‘v8::Integer::New(int)’
../src/microtime.cc:88:30: note: candidate is:
In file included from ../src/microtime.cc:6:0:
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2074:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2074:25: note:   candidate expects 2 arguments, 1 provided
../src/microtime.cc:88:54: error: no matching function for call to ‘v8::Uint32::New(__suseconds_t&)’
../src/microtime.cc:88:54: note: candidate is:
In file included from ../src/microtime.cc:6:0:
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2074:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
/home/langpavel/.node-gyp/0.11.13/deps/v8/include/v8.h:2074:25: note:   candidate expects 2 arguments, 1 provided
In file included from ../src/microtime.cc:11:0:
../node_modules/nan/nan.h: In instantiation of ‘void NanDispose(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&) [with T = v8::Object]’:
../node_modules/nan/nan.h:717:34:   required from here
../node_modules/nan/nan.h:373:5: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Clear’
make: *** [Release/obj.target/microtime/src/microtime.o] Error 1
make: Leaving directory `/home/langpavel/Projects/github/wadey/node-microtime/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:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1046:12)
gyp ERR! System Linux 3.2.0-4-amd64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/langpavel/Projects/github/wadey/node-microtime
gyp ERR! node -v v0.11.13
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok 

npm ERR! microtime@0.5.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the microtime@0.5.1 install script.
npm ERR! This is most likely a problem with the microtime 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 their info via:
npm ERR!     npm owner ls microtime
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-4-amd64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/langpavel/Projects/github/wadey/node-microtime
npm ERR! node -v v0.11.13
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/langpavel/Projects/github/wadey/node-microtime/npm-debug.log
npm ERR! not ok code 0
@wadey
Owner

I probably need to update to the latest version of https://github.com/rvagg/nan to fix support for 0.11.

@wadey
Owner

I published microtime v0.6.0 that should work with 0.11.13:

Re-open if you have any issues!

@wadey wadey closed this May 15, 2014
@langpavel

Good job! Works for me. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment