node-expat: Error installing node-expat

npm ERR! node-expat@2.3.12 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-expat@2.3.12 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 node-expat 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 node-expat

Node v5.2.0 NPM v3.3.12

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 24 (7 by maintainers)

Most upvoted comments

Red Hat Enterprise Linux Server release 6.6 (Santiago) node -v > v5.6.0 npm -v > 3.6.0

Straight npm install node-expat (top level install/not as a dependency) causes the following issue:

> node-expat@2.3.13 install /jenkins/workspace/project/node_modules/node-expat
> node-gyp rebuild

make: Entering directory `/jenkins/workspace/project/node_modules/node-expat/build'
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
  AR(target) Release/obj.target/deps/libexpat/libexpat.a
  COPY Release/libexpat.a
  CXX(target) Release/obj.target/node_expat/node-expat.o
In file included from ../node-expat.cc:1:
../../nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from /root/.node-gyp/5.6.0/include/node/node.h:42,
                 from ../../nan/nan.h:45,
                 from ../node-expat.cc:1:
/root/.node-gyp/5.6.0/include/node/v8.h:336: error: expected unqualified-id before ‘using’
/root/.node-gyp/5.6.0/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’:
/root/.node-gyp/5.6.0/include/node/v8.h:353: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’:
/root/.node-gyp/5.6.0/include/node/v8.h:360: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’:
/root/.node-gyp/5.6.0/include/node/v8.h:364: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’:
/root/.node-gyp/5.6.0/include/node/v8.h:430: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: At global scope:
/root/.node-gyp/5.6.0/include/node/v8.h:469: error: expected unqualified-id before ‘using’
/root/.node-gyp/5.6.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’:
/root/.node-gyp/5.6.0/include/node/v8.h:794: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’:
/root/.node-gyp/5.6.0/include/node/v8.h:819: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’:
/root/.node-gyp/5.6.0/include/node/v8.h:831: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: At global scope:
/root/.node-gyp/5.6.0/include/node/v8.h:856: error: expected unqualified-id before ‘using’
/root/.node-gyp/5.6.0/include/node/v8.h:1093: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h:1099: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’:
/root/.node-gyp/5.6.0/include/node/v8.h:3204: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()’:
/root/.node-gyp/5.6.0/include/node/v8.h:7154: error: ‘nullptr’ was not declared in this scope
In file included from ../../nan/nan.h:194,
                 from ../node-expat.cc:1:
../../nan/nan_maybe_43_inl.h: At global scope:
../../nan/nan_maybe_43_inl.h:13: error: expected unqualified-id before ‘using’
../../nan/nan_maybe_43_inl.h:16: error: expected unqualified-id before ‘using’
../../nan/nan_maybe_43_inl.h:19: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:24: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:31: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:36: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:41: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:46: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:51: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:59: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:64: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:69: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:76: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:83: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:91: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:98: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:108: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:114: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:118: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:125: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:130: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:135: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:139: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:145: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:150: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:156: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:162: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:168: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:174: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:180: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:186: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:194: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:201: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:205: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:209: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:213: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:217: error: expected initializer before ‘<’ token
../../nan/nan_maybe_43_inl.h:223: error: expected initializer before ‘<’ token
In file included from ../../nan/nan.h:199,
                 from ../node-expat.cc:1:
../../nan/nan_converters.h:14: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type
../../nan/nan_converters.h:14: error: expected ‘;’ before ‘<’ token
../../nan/nan_converters.h:16: error: ISO C++ forbids declaration of ‘Maybe’ with no type
../../nan/nan_converters.h:16: error: expected ‘;’ before ‘<’ token
../../nan/nan_converters.h:26: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:27: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:28: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:29: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:30: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:31: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:32: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:42: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:43: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:44: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:45: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:46: error: ‘return_t’ does not name a type
In file included from ../../nan/nan_converters.h:59,
                 from ../../nan/nan.h:199,
                 from ../node-expat.cc:1:
../../nan/nan_converters_43_inl.h:18: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Boolean>’ does not name a type
../../nan/nan_converters_43_inl.h:19: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Number>’ does not name a type
../../nan/nan_converters_43_inl.h:20: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::String>’ does not name a type
../../nan/nan_converters_43_inl.h:21: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Object>’ does not name a type
../../nan/nan_converters_43_inl.h:22: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Integer>’ does not name a type
../../nan/nan_converters_43_inl.h:23: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Uint32>’ does not name a type
../../nan/nan_converters_43_inl.h:24: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Int32>’ does not name a type
../../nan/nan_converters_43_inl.h:34: error: ‘return_t’ in class ‘Nan::imp::ToFactory<bool>’ does not name a type
../../nan/nan_converters_43_inl.h:35: error: ‘return_t’ in class ‘Nan::imp::ToFactory<double>’ does not name a type
../../nan/nan_converters_43_inl.h:36: error: ‘return_t’ in class ‘Nan::imp::ToFactory<long int>’ does not name a type
../../nan/nan_converters_43_inl.h:37: error: ‘return_t’ in class ‘Nan::imp::ToFactory<unsigned int>’ does not name a type
../../nan/nan_converters_43_inl.h:38: error: ‘return_t’ in class ‘Nan::imp::ToFactory<int>’ does not name a type
In file included from ../../nan/nan.h:200,
                 from ../node-expat.cc:1:
../../nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]’:
../../nan/nan_new.h:21: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../../nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]’:
../../nan/nan_new.h:28: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../../nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]’:
../../nan/nan_new.h:35: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../../nan/nan_new.h: At global scope:
../../nan/nan_new.h:43: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type
../../nan/nan_new.h:43: error: expected ‘;’ before ‘<’ token
../../nan/nan_new.h:75: error: ‘return_t’ does not name a type
../../nan/nan_new.h:141: error: ‘return_t’ does not name a type
../../nan/nan_new.h:147: error: ‘return_t’ does not name a type
../../nan/nan_new.h:148: error: ‘return_t’ does not name a type
../../nan/nan_new.h:160: error: ‘return_t’ does not name a type
../../nan/nan_new.h:161: error: ‘return_t’ does not name a type
../../nan/nan_new.h:162: error: ‘return_t’ does not name a type
../../nan/nan_new.h:163: error: ‘return_t’ does not name a type
../../nan/nan_new.h:165: error: ‘return_t’ does not name a type
../../nan/nan_new.h:166: error: ‘return_t’ does not name a type
../../nan/nan_new.h:182: error: ‘return_t’ does not name a type
../../nan/nan_new.h:183: error: ‘return_t’ does not name a type
In file included from ../../nan/nan_new.h:189,
                 from ../../nan/nan.h:200,
                 from ../node-expat.cc:1:
../../nan/nan_implementation_12_inl.h:56: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Date>’ does not name a type
../../nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::Function> Nan::imp::Factory<v8::Function>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’:
../../nan/nan_implementation_12_inl.h:90: error: ‘NewInstance’ was not declared in this scope
../../nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::FunctionTemplate> Nan::imp::Factory<v8::FunctionTemplate>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>, v8::Local<v8::Signature>)’:
../../nan/nan_implementation_12_inl.h:118: error: ‘NewInstance’ was not declared in this scope
../../nan/nan_implementation_12_inl.h: At global scope:
../../nan/nan_implementation_12_inl.h:197: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type
../../nan/nan_implementation_12_inl.h:216: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type
../../nan/nan_implementation_12_inl.h:222: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type
../../nan/nan_implementation_12_inl.h:254: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:262: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:268: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:275: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:281: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:286: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:347: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type
../../nan/nan_implementation_12_inl.h:354: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type
In file included from ../../nan/nan.h:200,
                 from ../node-expat.cc:1:
../../nan/nan_new.h:293: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:299: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:305: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:311: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:317: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:323: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:329: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:335: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type
In file included from ../node-expat.cc:1:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::Error(const char*)’:
../../nan/nan.h:659: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowError(const char*)’:
../../nan/nan.h:659: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::RangeError(const char*)’:
../../nan/nan.h:660: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowRangeError(const char*)’:
../../nan/nan.h:660: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::ReferenceError(const char*)’:
../../nan/nan.h:661: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowReferenceError(const char*)’:
../../nan/nan.h:661: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::SyntaxError(const char*)’:
../../nan/nan.h:662: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowSyntaxError(const char*)’:
../../nan/nan.h:662: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::TypeError(const char*)’:
../../nan/nan.h:663: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowTypeError(const char*)’:
../../nan/nan.h:663: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: At global scope:
../../nan/nan.h:671: error: expected initializer before ‘<’ token
../../nan/nan.h:693: error: expected initializer before ‘<’ token
../../nan/nan.h:709: error: expected initializer before ‘<’ token
../../nan/nan.h:722: error: expected initializer before ‘<’ token
../../nan/nan.h:739: error: expected initializer before ‘<’ token
../../nan/nan.h:745: error: expected initializer before ‘<’ token
../../nan/nan.h:753: error: expected initializer before ‘<’ token
../../nan/nan.h:760: error: expected initializer before ‘<’ token
../../nan/nan.h:766: error: expected initializer before ‘<’ token
/root/.node-gyp/5.6.0/include/node/v8.h: In member function ‘void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)’:
/root/.node-gyp/5.6.0/include/node/v8.h:3019: error: argument dependent lookup finds ‘class v8::Set’
../../nan/nan.h:1402: error:   in call to ‘Set’
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
../../nan/nan.h:1524: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
../../nan/nan.h:1542: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In member function ‘virtual void Nan::AsyncWorker::HandleErrorCallback()’:
../../nan/nan.h:1576: error: no matching function for call to ‘New(const char*)’
../../nan/nan.h: In function ‘void Nan::SetMethod(const T&, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:
../../nan/nan.h:1865: error: there are no arguments to ‘GetFunction’ that depend on a template parameter, so a declaration of ‘GetFunction’ must be available
../../nan/nan.h:1865: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../nan/nan.h:1866: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:
../../nan/nan.h:1878: error: ‘GetFunction’ was not declared in this scope
../../nan/nan.h:1879: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
../../nan/nan.h:1904: error: ‘NewInstance’ was not declared in this scope
../../nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:
../../nan/nan.h:1947: error: ‘NewInstance’ was not declared in this scope
../../nan/nan.h: In function ‘void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’:
../../nan/nan.h:1995: error: ‘NewInstance’ was not declared in this scope
../../nan/nan.h: In function ‘void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’:
../../nan/nan.h:2065: error: ‘NewInstance’ was not declared in this scope
../../nan/nan.h: In function ‘void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’:
../../nan/nan.h:2120: error: ‘NewInstance’ was not declared in this scope
../../nan/nan.h: In function ‘void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’:
../../nan/nan.h:2142: error: ‘NewInstance’ was not declared in this scope
In file included from ../node-expat.cc:1:
../../nan/nan.h: In function ‘void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:
../../nan/nan.h:2169: error: no matching function for call to ‘New(const char*&)’
../../nan/nan.h:2170: error: ‘GetFunction’ was not declared in this scope
/root/.node-gyp/5.6.0/include/node/v8.h:3019: error: argument dependent lookup finds ‘class v8::Set’
../../nan/nan.h:2170: error:   in call to ‘Set’
../../nan/nan.h: In constructor ‘Nan::Tap::Tap(v8::Local<v8::Value>)’:
../../nan/nan.h:2177: error: no matching function for call to ‘To(v8::Local<v8::Value>&)’
../../nan/nan.h: In member function ‘void Nan::Tap::ok(bool, const char*)’:
../../nan/nan.h:2190: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In member function ‘void Nan::Tap::pass(const char*)’:
../../nan/nan.h:2196: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../../nan/nan.h: At global scope:
../../nan/nan.h:2220: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type
../../nan/nan.h:2220: error: expected ‘;’ before ‘<’ token
../../nan/nan.h:2223: error: expected ‘;’ before ‘}’ token
../../nan/nan.h:2225: error: ‘MaybeLocal’ was not declared in this scope
../../nan/nan.h:2225: error: template argument 1 is invalid
../../nan/nan.h:2225: error: expected unqualified-id before ‘>’ token
../../nan/nan.h:2234: error: expected constructor, destructor, or type conversion before ‘<’ token
../node-expat.cc:11: error: ‘Handle’ has not been declared
../node-expat.cc:11: error: expected ‘,’ or ‘...’ before ‘<’ token
../node-expat.cc:481: error: ‘Handle’ has not been declared
../node-expat.cc:481: error: expected ‘,’ or ‘...’ before ‘<’ token
../node-expat.cc: In static member function ‘static void Parser::Initialize(int)’:
../node-expat.cc:29: error: ‘target’ was not declared in this scope
../node-expat.cc:29: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Parser::GetError(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../node-expat.cc:173: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::StartElement(void*, const XML_Char*, const XML_Char**)’:
../node-expat.cc:301: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:301: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:304: error: ‘Handle’ was not declared in this scope
../node-expat.cc:304: error: expected primary-expression before ‘>’ token
../node-expat.cc:304: error: ‘argv’ was not declared in this scope
../node-expat.cc:304: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:305: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::EndElement(void*, const XML_Char*)’:
../node-expat.cc:317: error: ‘Handle’ was not declared in this scope
../node-expat.cc:317: error: expected primary-expression before ‘>’ token
../node-expat.cc:317: error: ‘argv’ was not declared in this scope
../node-expat.cc:317: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:317: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::StartCdata(void*)’:
../node-expat.cc:327: error: ‘Handle’ was not declared in this scope
../node-expat.cc:327: error: expected primary-expression before ‘>’ token
../node-expat.cc:327: error: ‘argv’ was not declared in this scope
../node-expat.cc:327: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::EndCdata(void*)’:
../node-expat.cc:337: error: ‘Handle’ was not declared in this scope
../node-expat.cc:337: error: expected primary-expression before ‘>’ token
../node-expat.cc:337: error: ‘argv’ was not declared in this scope
../node-expat.cc:337: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::Text(void*, const XML_Char*, int)’:
../node-expat.cc:348: error: ‘Handle’ was not declared in this scope
../node-expat.cc:348: error: expected primary-expression before ‘>’ token
../node-expat.cc:348: error: ‘argv’ was not declared in this scope
../node-expat.cc:348: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:349: error: no matching function for call to ‘New(const XML_Char*&, int&)’
../../nan/nan_new.h:270: note: candidates are: v8::Local<v8::Boolean> Nan::New(bool)
../../nan/nan_new.h:276: note:                 v8::Local<v8::Int32> Nan::New(int32_t)
../../nan/nan_new.h:282: note:                 v8::Local<v8::Uint32> Nan::New(uint32_t)
../../nan/nan_new.h:288: note:                 v8::Local<v8::Number> Nan::New(double)
../node-expat.cc: In static member function ‘static void Parser::ProcessingInstruction(void*, const XML_Char*, const XML_Char*)’:
../node-expat.cc:360: error: ‘Handle’ was not declared in this scope
../node-expat.cc:360: error: expected primary-expression before ‘>’ token
../node-expat.cc:360: error: ‘argv’ was not declared in this scope
../node-expat.cc:360: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:361: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:362: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::Comment(void*, const XML_Char*)’:
../node-expat.cc:373: error: ‘Handle’ was not declared in this scope
../node-expat.cc:373: error: expected primary-expression before ‘>’ token
../node-expat.cc:373: error: ‘argv’ was not declared in this scope
../node-expat.cc:373: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:373: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc: In static member function ‘static void Parser::XmlDecl(void*, const XML_Char*, const XML_Char*, int)’:
../node-expat.cc:387: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:388: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:390: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:395: error: invalid conversion from ‘v8::Local<v8::Value>*’ to ‘int’
../node-expat.cc:395: error:   initializing argument 2 of ‘void Parser::Emit(int, int)’
../node-expat.cc: In static member function ‘static void Parser::EntityDecl(void*, const XML_Char*, int, const XML_Char*, int, const XML_Char*, const XML_Char*, const XML_Char*, const XML_Char*)’:
../node-expat.cc:408: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:409: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:413: error: no matching function for call to ‘New(const XML_Char*&, int&)’
../../nan/nan_new.h:270: note: candidates are: v8::Local<v8::Boolean> Nan::New(bool)
../../nan/nan_new.h:276: note:                 v8::Local<v8::Int32> Nan::New(int32_t)
../../nan/nan_new.h:282: note:                 v8::Local<v8::Uint32> Nan::New(uint32_t)
../../nan/nan_new.h:288: note:                 v8::Local<v8::Number> Nan::New(double)
../node-expat.cc:415: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:417: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:419: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:421: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:424: error: invalid conversion from ‘v8::Local<v8::Value>*’ to ‘int’
../node-expat.cc:424: error:   initializing argument 2 of ‘void Parser::Emit(int, int)’
../node-expat.cc: In static member function ‘static int Parser::UnknownEncoding(void*, const XML_Char*, XML_Encoding*)’:
../node-expat.cc:438: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:439: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:442: error: invalid conversion from ‘v8::Local<v8::Value>*’ to ‘int’
../node-expat.cc:442: error:   initializing argument 2 of ‘void Parser::Emit(int, int)’
../node-expat.cc: In member function ‘void Parser::Emit(int, int)’:
../node-expat.cc:485: error: ‘Handle’ was not declared in this scope
../node-expat.cc:485: error: expected primary-expression before ‘>’ token
../node-expat.cc:486: error: invalid use of member (did you forget the ‘&’ ?)
../node-expat.cc:486: error: base operand of ‘->’ is not a pointer
../node-expat.cc:486: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node-expat.cc:486: error: expected primary-expression before ‘>’ token
../node-expat.cc:486: error: expected primary-expression before ‘)’ token
../node-expat.cc:487: error: ‘argv’ was not declared in this scope
../node-expat.cc: At global scope:
../node-expat.cc:492: error: variable or field ‘init’ declared void
../node-expat.cc:492: error: ‘Handle’ was not declared in this scope
../node-expat.cc:492: error: expected primary-expression before ‘>’ token
../node-expat.cc:492: error: ‘target’ was not declared in this scope
../node-expat.cc:497: error: ‘init’ was not declared in this scope
../node-expat.cc:497: error: too many initializers for ‘node::node_module’
make: *** [Release/obj.target/node_expat/node-expat.o] Error 1

@sonnyp update gcc test again

same problem node: 5.2.0 npm: 3.5.2 ubuntu 14.04

same issue on ubuntu 15.10