{"action":"created","issue":{"url":"https://api.github.com/repos/natevw/pi-spi/issues/16","labels_url":"https://api.github.com/repos/natevw/pi-spi/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/natevw/pi-spi/issues/16/comments","events_url":"https://api.github.com/repos/natevw/pi-spi/issues/16/events","html_url":"https://github.com/natevw/pi-spi/issues/16","id":111027734,"number":16,"title":"Error installing on Rasberry model 2 ","user":{"login":"adeptp","id":12010511,"avatar_url":"https://avatars.githubusercontent.com/u/12010511?v=3","gravatar_id":"","url":"https://api.github.com/users/adeptp","html_url":"https://github.com/adeptp","followers_url":"https://api.github.com/users/adeptp/followers","following_url":"https://api.github.com/users/adeptp/following{/other_user}","gists_url":"https://api.github.com/users/adeptp/gists{/gist_id}","starred_url":"https://api.github.com/users/adeptp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adeptp/subscriptions","organizations_url":"https://api.github.com/users/adeptp/orgs","repos_url":"https://api.github.com/users/adeptp/repos","events_url":"https://api.github.com/users/adeptp/events{/privacy}","received_events_url":"https://api.github.com/users/adeptp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-12T18:19:00Z","updated_at":"2015-10-17T03:48:47Z","closed_at":"2015-10-15T07:40:20Z","body":"npm install pi-spi on my Raspberry Pi (model 2) running Raspbian\r\n```\r\n npm install pi-spi\r\n\\\r\n> pi-spi@1.0.0 install /root/node_modules/pi-spi\r\n> node-gyp rebuild\r\n\r\nmake: вход в каталог «/root/node_modules/pi-spi/build»\r\n  CXX(target) Release/obj.target/spi_binding/spi_binding.o\r\nIn file included from ../spi_binding.cc:2:0:\r\n../node_modules/nan/nan.h:324:27: error: redefinition of ‘template<class T> v8::Local<T> Nan::imp::NanEnsureHandleOrPersistent(const v8::Local<T>&)’\r\n   NAN_INLINE v8::Local<T> NanEnsureHandleOrPersistent(const v8::Local<T> &val) {\r\n                           ^\r\n../node_modules/nan/nan.h:319:17: note: ‘template<class T> v8::Handle<T> Nan::imp::NanEnsureHandleOrPersistent(v8::Handle<T>&)’ previously declared here\r\n   v8::Handle<T> NanEnsureHandleOrPersistent(const v8::Handle<T> &val) {\r\n                 ^\r\n../node_modules/nan/nan.h:344:27: error: redefinition of ‘template<class T> v8::Local<T> Nan::imp::NanEnsureLocal(v8::Handle<T>&)’\r\n   NAN_INLINE v8::Local<T> NanEnsureLocal(const v8::Handle<T> &val) {\r\n                           ^\r\n../node_modules/nan/nan.h:334:27: note: ‘template<class T> v8::Local<T> Nan::imp::NanEnsureLocal(const v8::Local<T>&)’ previously declared here\r\n   NAN_INLINE v8::Local<T> NanEnsureLocal(const v8::Local<T> &val) {\r\n                           ^\r\n../node_modules/nan/nan.h:757:13: error: ‘node::smalloc’ has not been declared\r\n     , node::smalloc::FreeCallback callback\r\n             ^\r\n../node_modules/nan/nan.h:757:35: error: expected ‘,’ or ‘...’ before ‘callback’\r\n     , node::smalloc::FreeCallback callback\r\n                                   ^\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:\r\n../node_modules/nan/nan.h:761:50: error: ‘callback’ was not declared in this scope\r\n         v8::Isolate::GetCurrent(), data, length, callback, hint);\r\n                                                  ^\r\n../node_modules/nan/nan.h:761:60: error: ‘hint’ was not declared in this scope\r\n         v8::Isolate::GetCurrent(), data, length, callback, hint);\r\n                                                            ^\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:\r\n../node_modules/nan/nan.h:768:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous\r\n     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);\r\n                                                                   ^\r\n../node_modules/nan/nan.h:768:67: note: candidates are:\r\nIn file included from ../node_modules/nan/nan.h:25:0,\r\n                 from ../spi_binding.cc:2:\r\n/root/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/root/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note:   no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’\r\n/root/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\n/root/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note:   no known conversion for argument 2 from ‘const char*’ to ‘char*’\r\nIn file included from ../spi_binding.cc:2:0:\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:\r\n../node_modules/nan/nan.h:772:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), size)’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’\r\n     return node::Buffer::New(v8::Isolate::GetCurrent(), size);\r\n                                                             ^\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:\r\n../node_modules/nan/nan.h:779:12: error: ‘Use’ is not a member of ‘node::Buffer’\r\n     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);\r\n            ^\r\n../spi_binding.cc: In member function ‘virtual void SpiTransfer::Execute()’:\r\n../spi_binding.cc:72:19: warning: missing initializer for member ‘spi_ioc_transfer::rx_nbits’ [-Wmissing-field-initializers]\r\n                   };\r\n                   ^\r\n../spi_binding.cc:72:19: warning: missing initializer for member ‘spi_ioc_transfer::pad’ [-Wmissing-field-initializers]\r\n../spi_binding.cc: In member function ‘virtual void SpiTransfer::HandleOKCallback()’:\r\n../spi_binding.cc:125:43: warning: ‘void node::FatalException(const v8::TryCatch&)’ is deprecated (declared at /root/.node-gyp/4.0.0/include/node/node.h:282): Use FatalException(isolate, ...) [-Wdeprecated-declarations]\r\n             node::FatalException(try_catch);\r\n                                           ^\r\nIn file included from ../spi_binding.cc:2:0:\r\n../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:\r\n../node_modules/nan/nan.h:769:3: warning: control reaches end of non-void function [-Wreturn-type]\r\n   }\r\n   ^\r\nspi_binding.target.mk:88: ошибка выполнения рецепта для цели «Release/obj.target/spi_binding/spi_binding.o»\r\nmake: *** [Release/obj.target/spi_binding/spi_binding.o] Ошибка 1\r\nmake: выход из каталога «/root/node_modules/pi-spi/build»\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)\r\ngyp ERR! stack     at emitTwo (events.js:87:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\ngyp ERR! System Linux 4.1.10-v7+\r\ngyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /root/node_modules/pi-spi\r\ngyp ERR! node -v v4.0.0\r\ngyp ERR! node-gyp -v v3.0.1\r\ngyp ERR! not ok\r\nnpm ERR! Linux 4.1.10-v7+\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"pi-spi\"\r\nnpm ERR! node v4.0.0\r\nnpm ERR! npm  v2.14.2\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! pi-spi@1.0.0 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the pi-spi@1.0.0 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the pi-spi package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls pi-spi\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /root/npm-debug.log\r\nnpm install pi-spi  15,60s user 0,99s system 65% cpu 25,161 total\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/natevw/pi-spi/issues/comments/148883555","html_url":"https://github.com/natevw/pi-spi/issues/16#issuecomment-148883555","issue_url":"https://api.github.com/repos/natevw/pi-spi/issues/16","id":148883555,"user":{"login":"sterlinghw","id":8450364,"avatar_url":"https://avatars.githubusercontent.com/u/8450364?v=3","gravatar_id":"","url":"https://api.github.com/users/sterlinghw","html_url":"https://github.com/sterlinghw","followers_url":"https://api.github.com/users/sterlinghw/followers","following_url":"https://api.github.com/users/sterlinghw/following{/other_user}","gists_url":"https://api.github.com/users/sterlinghw/gists{/gist_id}","starred_url":"https://api.github.com/users/sterlinghw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sterlinghw/subscriptions","organizations_url":"https://api.github.com/users/sterlinghw/orgs","repos_url":"https://api.github.com/users/sterlinghw/repos","events_url":"https://api.github.com/users/sterlinghw/events{/privacy}","received_events_url":"https://api.github.com/users/sterlinghw/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T03:48:47Z","updated_at":"2015-10-17T03:48:47Z","body":"+1\r\n\r\nCould you please publish these changes? Would love to make use of them soon. Thanks"}}