Skip to content

Instantly share code, notes, and snippets.

@fauria
Created October 5, 2015 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fauria/3dd003f6570ae241afe8 to your computer and use it in GitHub Desktop.
Save fauria/3dd003f6570ae241afe8 to your computer and use it in GitHub Desktop.
spi build error
root@raspberrypi:/home/pi/sources/nodejs-examples# npm install spi
-
> spi@0.2.0 install /home/pi/sources/nodejs-examples/node_modules/spi
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.40"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp"
make: Entering directory '/home/pi/sources/nodejs-examples/node_modules/spi/build'
CXX(target) Release/obj.target/_spi/src/spi_binding.o
In file included from ../src/spi_binding.cc:19:0:
../src/spi_binding.h:47:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:47:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:47:9: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:48:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:48:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:48:9: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:49:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:49:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:49:9: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:50:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:50:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:50:9: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:51:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:51:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:51:9: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:52:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:52:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:52:9: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:53:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:53:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:53:9: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:54:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:54:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:54:9: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:55:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:55:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:55:9: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:56:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:56:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:56:9: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:57:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:57:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:57:9: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:58:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:58:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:58:9: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:60:59: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:60:59: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:60:79: error: expected ‘,’ or ‘...’ before ‘<’ token
In file included from ../src/spi_binding.cc:19:0:
../src/spi_binding.h:61:56: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:61:56: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:61:76: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:62:51: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:62:51: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:62:71: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:63:51: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:63:51: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:63:71: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:63:14: error: ‘bool Spi::get_argument(v8::Isolate*, int)’ cannot be overloaded
../src/spi_binding.h:62:14: error: with ‘bool Spi::get_argument(v8::Isolate*, int)’
../src/spi_binding.h:64:64: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:64:64: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:64:84: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:65:53: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:65:53: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:65:73: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:66:53: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:66:53: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:66:73: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.h:66:14: error: ‘bool Spi::get_if_no_args(v8::Isolate*, int)’ cannot be overloaded
../src/spi_binding.h:65:14: error: with ‘bool Spi::get_if_no_args(v8::Isolate*, int)’
../src/spi_binding.h:68:58: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.h:68:58: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.h:68:78: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::Initialize(v8::Handle<v8::Object>)’:
../src/spi_binding.cc:49:28: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:49:28: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc:52:65: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Isolate*&, void (&)(int))’
../src/spi_binding.cc:52:65: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:2259:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::InvocationCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:2259:34: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::InvocationCallback {aka v8::Handle<v8::Value> (*)(const v8::Arguments&)}’
../src/spi_binding.cc:55:19: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc:58:44: error: no matching function for call to ‘SetPrototypeMethod(v8::Local<v8::FunctionTemplate>&, const char [5], void (&)(int))’
../src/spi_binding.cc:58:44: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/src/node.h:120:6: note: template<class target_t> void node::SetPrototypeMethod(target_t, const char*, v8::InvocationCallback)
../src/spi_binding.cc:59:46: error: no matching function for call to ‘SetPrototypeMethod(v8::Local<v8::FunctionTemplate>&, const char [6], void (&)(int))’
../src/spi_binding.cc:59:46: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/src/node.h:120:6: note: template<class target_t> void node::SetPrototypeMethod(target_t, const char*, v8::InvocationCallback)
../src/spi_binding.cc:60:52: error: no matching function for call to ‘SetPrototypeMethod(v8::Local<v8::FunctionTemplate>&, const char [9], void (&)(int))’
../src/spi_binding.cc:60:52: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/src/node.h:120:6: note: template<class target_t> void node::SetPrototypeMethod(target_t, const char*, v8::InvocationCallback)
../src/spi_binding.cc:61:50: error: no matching function for call to ‘SetPrototypeMethod(v8::Local<v8::FunctionTemplate>&, const char [5], void (&)(int))’
../src/spi_binding.cc:61:50: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/src/node.h:120:6: note: template<class target_t> void node::SetPrototypeMethod(target_t, const char*, v8::InvocationCallback)
../src/spi_binding.cc:62:62: error: no matching function for call to ‘SetPrototypeMethod(v8::Local<v8::FunctionTemplate>&, const char [11], void (&)(int))’
../src/spi_binding.cc:62:62: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/src/node.h:120:6: note: template<class target_t> void node::SetPrototypeMethod(target_t, const char*, v8::InvocationCallback)
../src/spi_binding.cc:63:57: error: no matching function for call to ‘SetPrototypeMethod(v8::Local<v8::FunctionTemplate>&, const char [5], void (&)(int))’
../src/spi_binding.cc:63:57: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/src/node.h:120:6: note: template<class target_t> void node::SetPrototypeMethod(target_t, const char*, v8::InvocationCallback)
../src/spi_binding.cc:64:58: error: no matching function for call to ‘SetPrototypeMethod(v8::Local<v8::FunctionTemplate>&, const char [9], void (&)(int))’
../src/spi_binding.cc:64:58: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/src/node.h:120:6: note: template<class target_t> void node::SetPrototypeMethod(target_t, const char*, v8::InvocationCallback)
../src/spi_binding.cc:65:58: error: no matching function for call to ‘SetPrototypeMethod(v8::Local<v8::FunctionTemplate>&, const char [9], void (&)(int))’
../src/spi_binding.cc:65:58: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/src/node.h:120:6: note: template<class target_t> void node::SetPrototypeMethod(target_t, const char*, v8::InvocationCallback)
../src/spi_binding.cc:66:57: error: no matching function for call to ‘SetPrototypeMethod(v8::Local<v8::FunctionTemplate>&, const char [11], void (&)(int))’
../src/spi_binding.cc:66:57: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/src/node.h:120:6: note: template<class target_t> void node::SetPrototypeMethod(target_t, const char*, v8::InvocationCallback)
../src/spi_binding.cc:67:52: error: no matching function for call to ‘SetPrototypeMethod(v8::Local<v8::FunctionTemplate>&, const char [6], void (&)(int))’
../src/spi_binding.cc:67:52: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/src/node.h:120:6: note: template<class target_t> void node::SetPrototypeMethod(target_t, const char*, v8::InvocationCallback)
../src/spi_binding.cc:68:54: error: no matching function for call to ‘SetPrototypeMethod(v8::Local<v8::FunctionTemplate>&, const char [9], void (&)(int))’
../src/spi_binding.cc:68:54: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/src/node.h:120:6: note: template<class target_t> void node::SetPrototypeMethod(target_t, const char*, v8::InvocationCallback)
../src/spi_binding.cc:71:15: error: ‘class v8::Persistent<v8::Function>’ has no member named ‘Reset’
../src/spi_binding.cc:74:15: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:95:1: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:95:1: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:95:1: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::New(int)’:
../src/spi_binding.cc:96:22: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:97:28: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:97:28: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc:104:69: error: no matching function for call to ‘v8::Local<v8::Function>::New(v8::Isolate*&, v8::Persistent<v8::Function>&)’
../src/spi_binding.cc:104:69: note: candidate is:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:4212:10: note: static v8::Local<T> v8::Local<T>::New(v8::Handle<T>) [with T = v8::Function]
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:4212:10: note: candidate expects 1 argument, 2 provided
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:110:22: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:110:22: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:110:42: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::Open(int)’:
../src/spi_binding.cc:111:3: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:111:3: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:111:3: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc:113:3: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:113:3: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc:120:5: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:120:5: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc:124:3: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:124:3: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc:125:3: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:125:3: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc:126:3: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:126:3: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:131:23: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:131:23: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:131:43: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::Close(int)’:
../src/spi_binding.cc:132:3: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:132:3: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:132:3: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:142:26: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:142:26: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:142:46: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::Transfer(int)’:
../src/spi_binding.cc:143:3: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:143:3: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:143:3: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc:144:3: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:144:3: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc:148:5: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:148:5: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc:172:5: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:172:5: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:184:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:184:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:184:29: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In member function ‘void Spi::full_duplex_transfer(v8::Isolate*, int)’:
../src/spi_binding.cc:195:4: error: ‘length’ was not declared in this scope
../src/spi_binding.cc:196:4: error: ‘speed’ was not declared in this scope
../src/spi_binding.cc:197:4: error: ‘delay’ was not declared in this scope
../src/spi_binding.cc:198:4: error: ‘bits’ was not declared in this scope
../src/spi_binding.cc:204:5: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:204:5: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc:208:3: error: ‘args’ was not declared in this scope
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:213:1: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:213:1: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:213:1: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::GetSetMode(int)’:
../src/spi_binding.cc:214:3: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:214:3: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:214:3: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc:220:3: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:220:3: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc:226:5: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:226:5: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:232:1: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:232:1: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:232:1: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::GetSetChipSelect(int)’:
../src/spi_binding.cc:233:3: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:233:3: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:233:3: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc:239:3: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:239:3: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:258:1: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:258:1: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:258:1: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::GetSetBitsPerWord(int)’:
../src/spi_binding.cc:259:3: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:259:3: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:259:3: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc:264:3: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:264:3: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:272:1: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:272:1: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:272:1: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::GetSetMaxSpeed(int)’:
../src/spi_binding.cc:273:3: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:273:3: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:273:3: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc:279:3: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:279:3: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:287:1: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:287:1: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:287:1: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::GetSet3Wire(int)’:
../src/spi_binding.cc:288:3: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:288:3: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:288:3: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:304:1: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:304:1: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:304:1: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::GetSetDelay(int)’:
../src/spi_binding.cc:305:2: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:305:2: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:305:2: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc:311:2: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:311:2: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:318:1: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:318:1: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:318:1: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::GetSetLoop(int)’:
../src/spi_binding.cc:318:1: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:318:1: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:318:1: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:319:1: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:319:1: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:319:1: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In static member function ‘static void Spi::GetSetBitOrder(int)’:
../src/spi_binding.cc:319:1: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:319:1: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
../src/spi_binding.cc:319:1: note: candidates are:
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp/0.10.40/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:333:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:333:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:333:29: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In member function ‘bool Spi::require_arguments(v8::Isolate*, int)’:
../src/spi_binding.cc:336:9: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:336:25: error: ‘count’ was not declared in this scope
../src/spi_binding.cc:337:7: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:337:7: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:347:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:347:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:347:29: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In member function ‘bool Spi::get_argument(v8::Isolate*, int)’:
../src/spi_binding.cc:351:7: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:351:24: error: ‘offset’ was not declared in this scope
../src/spi_binding.cc:352:5: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:352:5: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc:356:3: error: ‘value’ was not declared in this scope
../src/spi_binding.cc:356:11: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:356:16: error: ‘offset’ was not declared in this scope
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:363:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:363:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:363:29: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc:361:1: error: redefinition of ‘bool Spi::get_argument(v8::Isolate*, int)’
../src/spi_binding.cc:345:1: error: ‘bool Spi::get_argument(v8::Isolate*, int)’ previously defined here
../src/spi_binding.cc:379:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:379:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:379:29: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In member function ‘bool Spi::get_if_no_args(v8::Isolate*, int)’:
../src/spi_binding.cc:383:7: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:383:24: error: ‘offset’ was not declared in this scope
../src/spi_binding.cc:384:31: error: ‘value’ was not declared in this scope
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:394:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:394:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:394:29: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc:392:1: error: redefinition of ‘bool Spi::get_if_no_args(v8::Isolate*, int)’
../src/spi_binding.cc:377:1: error: ‘bool Spi::get_if_no_args(v8::Isolate*, int)’ previously defined here
../src/spi_binding.cc:409:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:409:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:409:29: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In member function ‘bool Spi::get_argument_greater_than(v8::Isolate*, int)’:
../src/spi_binding.cc:414:30: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:414:36: error: ‘offset’ was not declared in this scope
../src/spi_binding.cc:414:44: error: ‘value’ was not declared in this scope
../src/spi_binding.cc:416:7: error: ‘value’ was not declared in this scope
../src/spi_binding.cc:416:16: error: ‘target’ was not declared in this scope
../src/spi_binding.cc:417:5: error: ‘class v8::Isolate’ has no member named ‘ThrowException’
../src/spi_binding.cc:417:5: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
../src/spi_binding.cc: At global scope:
../src/spi_binding.cc:427:9: error: ‘FunctionCallbackInfo’ does not name a type
../src/spi_binding.cc:427:9: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/spi_binding.cc:427:29: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/spi_binding.cc: In member function ‘void Spi::get_set_mode_toggle(v8::Isolate*, int)’:
../src/spi_binding.cc:430:33: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:430:50: error: ‘mask’ was not declared in this scope
../src/spi_binding.cc:433:32: error: ‘args’ was not declared in this scope
../src/spi_binding.cc:436:17: error: ‘mask’ was not declared in this scope
../src/spi_binding.cc:438:18: error: ‘mask’ was not declared in this scope
../src/spi_binding.cc:440:5: error: ‘args’ was not declared in this scope
_spi.target.mk:80: recipe for target 'Release/obj.target/_spi/src/spi_binding.o' failed
make: *** [Release/obj.target/_spi/src/spi_binding.o] Error 1
make: Leaving directory '/home/pi/sources/nodejs-examples/node_modules/spi/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.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 4.1.7+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/sources/nodejs-examples/node_modules/spi
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! spi@0.2.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the spi@0.2.0 install script.
npm ERR! This is most likely a problem with the spi 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 spi
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.1.7+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "spi"
npm ERR! cwd /home/pi/sources/nodejs-examples
npm ERR! node -v v0.10.40
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment