{"action":"created","issue":{"url":"https://api.github.com/repos/kelly/node-i2c/issues/69","labels_url":"https://api.github.com/repos/kelly/node-i2c/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/kelly/node-i2c/issues/69/comments","events_url":"https://api.github.com/repos/kelly/node-i2c/issues/69/events","html_url":"https://github.com/kelly/node-i2c/issues/69","id":106447387,"number":69,"title":"Possible compatibility problem with node 4.0?  Can't build on Raspberry Pi - Debian Jessie","user":{"login":"JohnNavratil","id":8019430,"avatar_url":"https://avatars.githubusercontent.com/u/8019430?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnNavratil","html_url":"https://github.com/JohnNavratil","followers_url":"https://api.github.com/users/JohnNavratil/followers","following_url":"https://api.github.com/users/JohnNavratil/following{/other_user}","gists_url":"https://api.github.com/users/JohnNavratil/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnNavratil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnNavratil/subscriptions","organizations_url":"https://api.github.com/users/JohnNavratil/orgs","repos_url":"https://api.github.com/users/JohnNavratil/repos","events_url":"https://api.github.com/users/JohnNavratil/events{/privacy}","received_events_url":"https://api.github.com/users/JohnNavratil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kelly","id":36345,"avatar_url":"https://avatars.githubusercontent.com/u/36345?v=3","gravatar_id":"","url":"https://api.github.com/users/kelly","html_url":"https://github.com/kelly","followers_url":"https://api.github.com/users/kelly/followers","following_url":"https://api.github.com/users/kelly/following{/other_user}","gists_url":"https://api.github.com/users/kelly/gists{/gist_id}","starred_url":"https://api.github.com/users/kelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelly/subscriptions","organizations_url":"https://api.github.com/users/kelly/orgs","repos_url":"https://api.github.com/users/kelly/repos","events_url":"https://api.github.com/users/kelly/events{/privacy}","received_events_url":"https://api.github.com/users/kelly/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-09-14T23:27:23Z","updated_at":"2015-10-08T03:31:50Z","closed_at":null,"body":"node -v ==> v4.0.0\r\nnode-gyp -v ==> v3.0.2\r\nuname -a ==> Linux rpi0 4.1.6+ #810 PREEMPT Tue Aug 18 15:19:58 BST 2015 armv6l GNU/Linux\r\n\r\nMany C++ compile errors.  I'll be happy to generate a clean npm debug log if someone can tell me how to attach it.\r\n--------------------------------------------------------------------------\r\n\r\nroot@rpi0: /home/jnavratil/pmon$ npm -g install i2c    \r\n|\r\n> i2c@0.2.1 install /usr/local/lib/node_modules/i2c\r\n> node-gyp rebuild\r\n\r\nmake: Entering directory '/usr/local/lib/node_modules/i2c/build'\r\n  CXX(target) Release/obj.target/i2c/src/i2c.o\r\n../src/i2c.cc: In function 'void ReadBlock(const v8::FunctionCallbackInfo<v8::Value>&)':\r\n../src/i2c.cc:162:47: error: no matching function for call to 'New(int32_t&)'\r\n   Local<Object> buffer = node::Buffer::New(len);\r\n                                               ^\r\n../src/i2c.cc:162:47: note: candidates are:\r\nIn file included from ../src/i2c.cc:2:0:\r\n/root/.node-gyp/4.0.0/include/node/node_buffer.h:28:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, size_t)\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);\r\n                                        ^\r\n/root/.node-gyp/4.0.0/include/node/node_buffer.h:28:40: note:   candidate expects 2 arguments, 1 provided\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)\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:   candidate expects 3 arguments, 1 provided\r\n/root/.node-gyp/4.0.0/include/node/node_buffer.h:36:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)\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:36:40: note:   candidate expects 5 arguments, 1 provided\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)\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:   candidate expects 3 arguments, 1 provided\r\ni2c.target.mk:86: recipe for target 'Release/obj.target/i2c/src/i2c.o' failed\r\nmake: *** [Release/obj.target/i2c/src/i2c.o] Error 1\r\nmake: Leaving directory '/usr/local/lib/node_modules/i2c/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.6+\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 /usr/local/lib/node_modules/i2c\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.6+\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"-g\" \"install\" \"i2c\"\r\nnpm ERR! node v4.0.0\r\nnpm ERR! npm  v2.14.2\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! i2c@0.2.1 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the i2c@0.2.1 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the i2c 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 i2c\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!     /home/jnavratil/pmon/npm-debug.log\r\n"},"comment":{"url":"https://api.github.com/repos/kelly/node-i2c/issues/comments/146408066","html_url":"https://github.com/kelly/node-i2c/issues/69#issuecomment-146408066","issue_url":"https://api.github.com/repos/kelly/node-i2c/issues/69","id":146408066,"user":{"login":"kelly","id":36345,"avatar_url":"https://avatars.githubusercontent.com/u/36345?v=3","gravatar_id":"","url":"https://api.github.com/users/kelly","html_url":"https://github.com/kelly","followers_url":"https://api.github.com/users/kelly/followers","following_url":"https://api.github.com/users/kelly/following{/other_user}","gists_url":"https://api.github.com/users/kelly/gists{/gist_id}","starred_url":"https://api.github.com/users/kelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelly/subscriptions","organizations_url":"https://api.github.com/users/kelly/orgs","repos_url":"https://api.github.com/users/kelly/repos","events_url":"https://api.github.com/users/kelly/events{/privacy}","received_events_url":"https://api.github.com/users/kelly/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T03:31:50Z","updated_at":"2015-10-08T03:31:50Z","body":"node 4.0 requires a major re-write of native v8 modules. I likely won't be able to get to this for sometime. If someone wants to tackle it and send me a pull request, i'll merge it, and submit a release. "}}