Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/nodejs-i2c.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-fbc5cea4c238619b973c6f295cca6b86f7a08272/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=995) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/nodejs-i2c.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/nodejs-i2c-0.1.4-9.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/nodejs-i2c.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-fbc5cea4c238619b973c6f295cca6b86f7a08272/root'shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/nodejs-i2c.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fKkZCv + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf package + /usr/bin/gzip -dc /builddir/build/SOURCES/i2c-0.1.4.tgz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd package + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/nodejs-fixdep coffee-script '~1.4' + /usr/lib/rpm/nodejs-fixdep underscore '~1.4' + /usr/lib/rpm/nodejs-fixdep bindings '~1.1' + cp /builddir/build/SOURCES/LICENSE . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.5rIsMF + umask 022 + cd /builddir/build/BUILD + cd package + node-gyp rebuild gyp info it worked if it ends with ok gyp info using node-gyp@0.10.6 gyp info using node@6.11.1 | linux | arm gyp info spawn python gyp info spawn args [ '/usr/bin/gyp', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/builddir/build/BUILD/package/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/lib/node_modules/node-gyp/addon-rpm.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/share/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/usr/share/node', gyp info spawn args '-Dmodule_root_dir=/builddir/build/BUILD/package', gyp info spawn args '--depth=.', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] (node:24897) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead. gyp info spawn make gyp info spawn argsmake: Entering directory `/builddir/build/BUILD/package/build' [ 'BUILDTYPE=Release', '-C', 'build' ] CXX(target) Release/obj.target/i2c/src/i2c.o ../src/i2c.cc: In function 'void setAddress(int8_t)': ../src/i2c.cc:21:28: error: 'New' is not a member of 'v8::String' Exception::TypeError(String::New("Failed to set address")) ^ ../src/i2c.cc:22:5: error: 'ThrowException' was not declared in this scope ); ^ ../src/i2c.cc: At global scope: ../src/i2c.cc:26:32: error: 'Arguments' does not name a type Handle SetAddress(const Arguments& args) { ^ ../src/i2c.cc:26:43: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] Handle SetAddress(const Arguments& args) { ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h: In function 'v8::Handle SetAddress(const int&)': /usr/include/node/v8.h:915:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/i2c.cc:27:15: error: within this context HandleScope scope; ^ ../src/i2c.cc:29:16: error: invalid types 'const int[int]' for array subscript addr = args[0]->Int32Value(); ^ ../src/i2c.cc:32:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(Undefined()); ^ ../src/i2c.cc:32:32: error: too few arguments to function 'v8::Local v8::Undefined(v8::Isolate*)' return scope.Close(Undefined()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:324:27: note: declared here friend Local Undefined(Isolate* isolate); ^ ../src/i2c.cc: At global scope: ../src/i2c.cc:35:26: error: 'Arguments' does not name a type Handle Scan(const Arguments& args) { ^ ../src/i2c.cc:35:37: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] Handle Scan(const Arguments& args) { ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h: In function 'v8::Handle Scan(const int&)': /usr/include/node/v8.h:915:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/i2c.cc:36:15: error: within this context HandleScope scope; ^ ../src/i2c.cc:39:58: error: invalid types 'const int[int]' for array subscript Local callback = Local::Cast(args[0]); ^ ../src/i2c.cc:40:38: error: invalid conversion from 'int' to 'v8::Isolate*' [-fpermissive] Local results(Array::New(128)); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:3039:23: error: initializing argument 1 of 'static v8::Local v8::Array::New(v8::Isolate*, int)' [-fpermissive] static Local New(Isolate* isolate, int length = 0); ^ ../src/i2c.cc:41:45: error: too few arguments to function 'v8::Local v8::Null(v8::Isolate*)' Local err = Local::New(Null()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:325:27: note: declared here friend Local Null(Isolate* isolate); ^ ../src/i2c.cc:53:37: error: no matching function for call to 'v8::Integer::New(int&)' results->Set(i, Integer::New(res)); ^ ../src/i2c.cc:53:37: note: candidate is: In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:2558:25: note: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^ /usr/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/i2c.cc:60:18: error: 'GetCurrent' is not a member of 'v8::Context' callback->Call(Context::GetCurrent()->Global(), argc, argv); ^ ../src/i2c.cc:62:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(results); ^ ../src/i2c.cc: At global scope: ../src/i2c.cc:65:27: error: 'Arguments' does not name a type Handle Close(const Arguments& args) { ^ ../src/i2c.cc:65:38: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] Handle Close(const Arguments& args) { ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h: In function 'v8::Handle Close(const int&)': /usr/include/node/v8.h:915:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/i2c.cc:66:15: error: within this context HandleScope scope; ^ ../src/i2c.cc:71:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(Undefined()); ^ ../src/i2c.cc:71:32: error: too few arguments to function 'v8::Local v8::Undefined(v8::Isolate*)' return scope.Close(Undefined()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:324:27: note: declared here friend Local Undefined(Isolate* isolate); ^ ../src/i2c.cc: At global scope: ../src/i2c.cc:74:26: error: 'Arguments' does not name a type Handle Open(const Arguments& args) { ^ ../src/i2c.cc:74:37: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] Handle Open(const Arguments& args) { ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h: In function 'v8::Handle Open(const int&)': /usr/include/node/v8.h:915:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/i2c.cc:75:15: error: within this context HandleScope scope; ^ ../src/i2c.cc:77:34: error: invalid types 'const int[int]' for array subscript String::Utf8Value device(args[0]); ^ ../src/i2c.cc:79:45: error: too few arguments to function 'v8::Local v8::Null(v8::Isolate*)' Local err = Local::New(Null()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:325:27: note: declared here friend Local Null(Isolate* isolate); ^ ../src/i2c.cc:83:28: error: 'New' is not a member of 'v8::String' err = Exception::Error(String::New("Failed to open I2C device")); ^ ../src/i2c.cc:86:13: error: invalid types 'const int[int]' for array subscript if (args[1]->IsFunction()) { ^ ../src/i2c.cc:88:60: error: invalid types 'const int[int]' for array subscript Local callback = Local::Cast(args[1]); ^ ../src/i2c.cc:91:20: error: 'GetCurrent' is not a member of 'v8::Context' callback->Call(Context::GetCurrent()->Global(), argc, argv); ^ ../src/i2c.cc:94:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(Undefined()); ^ ../src/i2c.cc:94:32: error: too few arguments to function 'v8::Local v8::Undefined(v8::Isolate*)' return scope.Close(Undefined()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:324:27: note: declared here friend Local Undefined(Isolate* isolate); ^ ../src/i2c.cc: At global scope: ../src/i2c.cc:97:30: error: 'Arguments' does not name a type Handle ReadByte(const Arguments& args) { ^ ../src/i2c.cc:97:41: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] Handle ReadByte(const Arguments& args) { ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h: In function 'v8::Handle ReadByte(const int&)': /usr/include/node/v8.h:915:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/i2c.cc:98:15: error: within this context HandleScope scope; ^ ../src/i2c.cc:101:45: error: too few arguments to function 'v8::Local v8::Null(v8::Isolate*)' Local err = Local::New(Null()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:325:27: note: declared here friend Local Null(Isolate* isolate); ^ ../src/i2c.cc:106:28: error: 'New' is not a member of 'v8::String' err = Exception::Error(String::New("Cannot read device")); ^ ../src/i2c.cc:108:28: error: no matching function for call to 'v8::Integer::New(int8_t&)' data = Integer::New(res); ^ ../src/i2c.cc:108:28: note: candidate is: In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:2558:25: note: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^ /usr/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/i2c.cc:111:13: error: invalid types 'const int[int]' for array subscript if (args[0]->IsFunction()) { ^ ../src/i2c.cc:113:60: error: invalid types 'const int[int]' for array subscript Local callback = Local::Cast(args[0]); ^ ../src/i2c.cc:116:20: error: 'GetCurrent' is not a member of 'v8::Context' callback->Call(Context::GetCurrent()->Global(), argc, argv); ^ ../src/i2c.cc:118:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(data); ^ ../src/i2c.cc: At global scope: ../src/i2c.cc:121:31: error: 'Arguments' does not name a type Handle ReadBlock(const Arguments& args) { ^ ../src/i2c.cc:121:42: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] Handle ReadBlock(const Arguments& args) { ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h: In function 'v8::Handle ReadBlock(const int&)': /usr/include/node/v8.h:915:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/i2c.cc:122:15: error: within this context HandleScope scope; ^ ../src/i2c.cc:124:22: error: invalid types 'const int[int]' for array subscript int8_t cmd = args[0]->Int32Value(); ^ ../src/i2c.cc:125:23: error: invalid types 'const int[int]' for array subscript int32_t len = args[1]->Int32Value(); ^ ../src/i2c.cc:127:45: error: too few arguments to function 'v8::Local v8::Null(v8::Isolate*)' Local err = Local::New(Null()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:325:27: note: declared here friend Local Null(Isolate* isolate); ^ ../src/i2c.cc:128:16: error: expected primary-expression before '*' token node::Buffer *buffer = node::Buffer::New(len); ^ ../src/i2c.cc:128:17: error: 'buffer' was not declared in this scope node::Buffer *buffer = node::Buffer::New(len); ^ ../src/i2c.cc:128:48: error: no matching function for call to 'New(int32_t&)' node::Buffer *buffer = node::Buffer::New(len); ^ ../src/i2c.cc:128:48: note: candidates are: In file included from ../src/i2c.cc:2:0: /usr/include/node/node_buffer.h:31:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate*, size_t) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, size_t length); ^ /usr/include/node/node_buffer.h:31:40: note: candidate expects 2 arguments, 1 provided /usr/include/node/node_buffer.h:34:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate*, v8::Local, node::encoding) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, ^ /usr/include/node/node_buffer.h:34:40: note: candidate expects 3 arguments, 1 provided /usr/include/node/node_buffer.h:39:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, ^ /usr/include/node/node_buffer.h:39:40: note: candidate expects 5 arguments, 1 provided /usr/include/node/node_buffer.h:46:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate*, char*, size_t) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, ^ /usr/include/node/node_buffer.h:46:40: note: candidate expects 3 arguments, 1 provided ../src/i2c.cc:130:29: error: 'GetCurrent' is not a member of 'v8::Context' Local globalObj = Context::GetCurrent()->Global(); ^ ../src/i2c.cc:131:76: error: 'New' is not a member of 'v8::String' Local bufferConstructor = Local::Cast(globalObj->Get(String::New("Buffer"))); ^ ../src/i2c.cc:132:77: error: no matching function for call to 'v8::Integer::New(int32_t&)' Handle constructorArgs[3] = { buffer->handle_, v8::Integer::New(len), v8::Integer::New(0) }; ^ ../src/i2c.cc:132:77: note: candidate is: make: Leaving directory `/builddir/build/BUILD/package/build' RPM build errors: In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:2558:25: note: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^ /usr/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/i2c.cc:132:98: error: no matching function for call to 'v8::Integer::New(int)' Handle constructorArgs[3] = { buffer->handle_, v8::Integer::New(len), v8::Integer::New(0) }; ^ ../src/i2c.cc:132:98: note: candidate is: In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:2558:25: note: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^ /usr/include/node/v8.h:2558:25: note: candidate expects 2 arguments, 1 provided ../src/i2c.cc:137:30: error: 'New' is not a member of 'v8::String' err = Exception::Error(String::New("Error reading length of bytes")); ^ ../src/i2c.cc:142:15: error: invalid types 'const int[int]' for array subscript if (args[3]->IsFunction()) { ^ ../src/i2c.cc:144:62: error: invalid types 'const int[int]' for array subscript Local callback = Local::Cast(args[3]); ^ ../src/i2c.cc:146:22: error: 'GetCurrent' is not a member of 'v8::Context' callback->Call(Context::GetCurrent()->Global(), argc, argv); ^ ../src/i2c.cc:149:15: error: invalid types 'const int[int]' for array subscript if (args[2]->IsNumber()) { ^ ../src/i2c.cc:150:29: error: invalid types 'const int[int]' for array subscript int32_t delay = args[2]->Int32Value(); ^ ../src/i2c.cc:156:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(actualBuffer); ^ ../src/i2c.cc: At global scope: ../src/i2c.cc:160:31: error: 'Arguments' does not name a type Handle WriteByte(const Arguments& args) { ^ ../src/i2c.cc:160:42: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] Handle WriteByte(const Arguments& args) { ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h: In function 'v8::Handle WriteByte(const int&)': /usr/include/node/v8.h:915:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/i2c.cc:161:15: error: within this context HandleScope scope; ^ ../src/i2c.cc:163:23: error: invalid types 'const int[int]' for array subscript int8_t byte = args[0]->Int32Value(); ^ ../src/i2c.cc:164:45: error: too few arguments to function 'v8::Local v8::Null(v8::Isolate*)' Local err = Local::New(Null()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:325:27: note: declared here friend Local Null(Isolate* isolate); ^ ../src/i2c.cc:167:28: error: 'New' is not a member of 'v8::String' err = Exception::Error(String::New("Cannot write to device")); ^ ../src/i2c.cc:170:13: error: invalid types 'const int[int]' for array subscript if (args[1]->IsFunction()) { ^ ../src/i2c.cc:172:60: error: invalid types 'const int[int]' for array subscript Local callback = Local::Cast(args[1]); ^ ../src/i2c.cc:175:20: error: 'GetCurrent' is not a member of 'v8::Context' callback->Call(Context::GetCurrent()->Global(), argc, argv); ^ ../src/i2c.cc:178:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(Undefined()); ^ ../src/i2c.cc:178:32: error: too few arguments to function 'v8::Local v8::Undefined(v8::Isolate*)' return scope.Close(Undefined()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:324:27: note: declared here friend Local Undefined(Isolate* isolate); ^ ../src/i2c.cc: At global scope: ../src/i2c.cc:181:32: error: 'Arguments' does not name a type Handle WriteBlock(const Arguments& args) { ^ ../src/i2c.cc:181:43: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] Handle WriteBlock(const Arguments& args) { ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h: In function 'v8::Handle WriteBlock(const int&)': /usr/include/node/v8.h:915:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/i2c.cc:182:15: error: within this context HandleScope scope; ^ ../src/i2c.cc:184:31: error: invalid types 'const int[int]' for array subscript Local buffer = args[1]; ^ ../src/i2c.cc:186:22: error: invalid types 'const int[int]' for array subscript int8_t cmd = args[0]->Int32Value(); ^ ../src/i2c.cc:190:45: error: too few arguments to function 'v8::Local v8::Null(v8::Isolate*)' Local err = Local::New(Null()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:325:27: note: declared here friend Local Null(Isolate* isolate); ^ ../src/i2c.cc:193:28: error: 'New' is not a member of 'v8::String' err = Exception::Error(String::New("Cannot write to device")); ^ ../src/i2c.cc:196:13: error: invalid types 'const int[int]' for array subscript if (args[2]->IsFunction()) { ^ ../src/i2c.cc:198:60: error: invalid types 'const int[int]' for array subscript Local callback = Local::Cast(args[2]); ^ ../src/i2c.cc:201:20: error: 'GetCurrent' is not a member of 'v8::Context' callback->Call(Context::GetCurrent()->Global(), argc, argv); ^ ../src/i2c.cc:204:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(Undefined()); ^ ../src/i2c.cc:204:32: error: too few arguments to function 'v8::Local v8::Undefined(v8::Isolate*)' return scope.Close(Undefined()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:324:27: note: declared here friend Local Undefined(Isolate* isolate); ^ ../src/i2c.cc: At global scope: ../src/i2c.cc:207:31: error: 'Arguments' does not name a type Handle WriteWord(const Arguments& args) { ^ ../src/i2c.cc:207:42: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] Handle WriteWord(const Arguments& args) { ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h: In function 'v8::Handle WriteWord(const int&)': /usr/include/node/v8.h:915:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/i2c.cc:208:15: error: within this context HandleScope scope; ^ ../src/i2c.cc:210:22: error: invalid types 'const int[int]' for array subscript int8_t cmd = args[0]->Int32Value(); ^ ../src/i2c.cc:211:24: error: invalid types 'const int[int]' for array subscript int16_t word = args[1]->Int32Value(); ^ ../src/i2c.cc:213:45: error: too few arguments to function 'v8::Local v8::Null(v8::Isolate*)' Local err = Local::New(Null()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:325:27: note: declared here friend Local Null(Isolate* isolate); ^ ../src/i2c.cc:216:28: error: 'New' is not a member of 'v8::String' err = Exception::Error(String::New("Cannot write to device")); ^ ../src/i2c.cc:219:13: error: invalid types 'const int[int]' for array subscript if (args[2]->IsFunction()) { ^ ../src/i2c.cc:221:60: error: invalid types 'const int[int]' for array subscript Local callback = Local::Cast(args[2]); ^ ../src/i2c.cc:224:20: error: 'GetCurrent' is not a member of 'v8::Context' callback->Call(Context::GetCurrent()->Global(), argc, argv); ^ ../src/i2c.cc:227:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(Undefined()); ^ ../src/i2c.cc:227:32: error: too few arguments to function 'v8::Local v8::Undefined(v8::Isolate*)' return scope.Close(Undefined()); ^ In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:324:27: note: declared here friend Local Undefined(Isolate* isolate); ^ ../src/i2c.cc: In function 'void Init(v8::Handle)': ../src/i2c.cc:231:15: error: 'NewSymbol' is not a member of 'v8::String' target->Set(String::NewSymbol("scan"), ^ ../src/i2c.cc:232:31: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle (&)(const int&))' FunctionTemplate::New(Scan)->GetFunction()); ^ ../src/i2c.cc:232:31: note: candidates are: In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:4485:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int) static Local New( ^ /usr/include/node/v8.h:4485:34: note: no known conversion for argument 1 from 'v8::Handle(const int&) {aka v8::Local(const int&)}' to 'v8::Isolate*' /usr/include/node/v8.h:4489:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int, v8::ConstructorBehavior) static Local New( ^ /usr/include/node/v8.h:4489:34: note: candidate expects 6 arguments, 1 provided ../src/i2c.cc:234:15: error: 'NewSymbol' is not a member of 'v8::String' target->Set(String::NewSymbol("setAddress"), ^ ../src/i2c.cc:235:37: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle (&)(const int&))' FunctionTemplate::New(SetAddress)->GetFunction()); ^ ../src/i2c.cc:235:37: note: candidates are: In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:4485:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int) static Local New( ^ /usr/include/node/v8.h:4485:34: note: no known conversion for argument 1 from 'v8::Handle(const int&) {aka v8::Local(const int&)}' to 'v8::Isolate*' /usr/include/node/v8.h:4489:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int, v8::ConstructorBehavior) static Local New( ^ /usr/include/node/v8.h:4489:34: note: candidate expects 6 arguments, 1 provided ../src/i2c.cc:237:15: error: 'NewSymbol' is not a member of 'v8::String' target->Set(String::NewSymbol("open"), ^ ../src/i2c.cc:238:31: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle (&)(const int&))' FunctionTemplate::New(Open)->GetFunction()); ^ ../src/i2c.cc:238:31: note: candidates are: In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:4485:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int) static Local New( ^ /usr/include/node/v8.h:4485:34: note: no known conversion for argument 1 from 'v8::Handle(const int&) {aka v8::Local(const int&)}' to 'v8::Isolate*' /usr/include/node/v8.h:4489:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int, v8::ConstructorBehavior) static Local New( ^ /usr/include/node/v8.h:4489:34: note: candidate expects 6 arguments, 1 provided ../src/i2c.cc:240:15: error: 'NewSymbol' is not a member of 'v8::String' target->Set(String::NewSymbol("close"), ^ ../src/i2c.cc:241:32: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle (&)(const int&))' FunctionTemplate::New(Close)->GetFunction()); ^ ../src/i2c.cc:241:32: note: candidates are: In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:4485:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int) static Local New( ^ /usr/include/node/v8.h:4485:34: note: no known conversion for argument 1 from 'v8::Handle(const int&) {aka v8::Local(const int&)}' to 'v8::Isolate*' /usr/include/node/v8.h:4489:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int, v8::ConstructorBehavior) static Local New( ^ /usr/include/node/v8.h:4489:34: note: candidate expects 6 arguments, 1 provided ../src/i2c.cc:243:15: error: 'NewSymbol' is not a member of 'v8::String' target->Set(String::NewSymbol("writeByte"), ^ ../src/i2c.cc:244:38: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle (&)(const int&))' FunctionTemplate::New(WriteByte)->GetFunction()); ^ ../src/i2c.cc:244:38: note: candidates are: In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:4485:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int) static Local New( ^ /usr/include/node/v8.h:4485:34: note: no known conversion for argument 1 from 'v8::Handle(const int&) {aka v8::Local(const int&)}' to 'v8::Isolate*' /usr/include/node/v8.h:4489:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int, v8::ConstructorBehavior) static Local New( ^ /usr/include/node/v8.h:4489:34: note: candidate expects 6 arguments, 1 provided ../src/i2c.cc:246:15: error: 'NewSymbol' is not a member of 'v8::String' target->Set(String::NewSymbol("writeBlock"), ^ ../src/i2c.cc:247:39: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle (&)(const int&))' FunctionTemplate::New(WriteBlock)->GetFunction()); ^ ../src/i2c.cc:247:39: note: candidates are: In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:4485:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int) static Local New( ^ /usr/include/node/v8.h:4485:34: note: no known conversion for argument 1 from 'v8::Handle(const int&) {aka v8::Local(const int&)}' to 'v8::Isolate*' /usr/include/node/v8.h:4489:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int, v8::ConstructorBehavior) static Local New( ^ /usr/include/node/v8.h:4489:34: note: candidate expects 6 arguments, 1 provided ../src/i2c.cc:249:15: error: 'NewSymbol' is not a member of 'v8::String' target->Set(String::NewSymbol("readByte"), ^ ../src/i2c.cc:250:35: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle (&)(const int&))' FunctionTemplate::New(ReadByte)->GetFunction()); ^ ../src/i2c.cc:250:35: note: candidates are: In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:4485:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int) static Local New( ^ /usr/include/node/v8.h:4485:34: note: no known conversion for argument 1 from 'v8::Handle(const int&) {aka v8::Local(const int&)}' to 'v8::Isolate*' /usr/include/node/v8.h:4489:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int, v8::ConstructorBehavior) static Local New( ^ /usr/include/node/v8.h:4489:34: note: candidate expects 6 arguments, 1 provided ../src/i2c.cc:252:15: error: 'NewSymbol' is not a member of 'v8::String' target->Set(String::NewSymbol("readBlock"), ^ ../src/i2c.cc:253:36: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle (&)(const int&))' FunctionTemplate::New(ReadBlock)->GetFunction()); ^ ../src/i2c.cc:253:36: note: candidates are: In file included from /usr/include/node/node.h:42:0, from ../src/i2c.cc:1: /usr/include/node/v8.h:4485:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int) static Local New( ^ /usr/include/node/v8.h:4485:34: note: no known conversion for argument 1 from 'v8::Handle(const int&) {aka v8::Local(const int&)}' to 'v8::Isolate*' /usr/include/node/v8.h:4489:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int, v8::ConstructorBehavior) static Local New( ^ /usr/include/node/v8.h:4489:34: note: candidate expects 6 arguments, 1 provided ../src/i2c.cc: In function 'v8::Handle SetAddress(const int&)': ../src/i2c.cc:33:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/i2c.cc: In function 'v8::Handle Scan(const int&)': ../src/i2c.cc:63:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/i2c.cc: In function 'v8::Handle Close(const int&)': ../src/i2c.cc:72:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/i2c.cc: In function 'v8::Handle Open(const int&)': ../src/i2c.cc:95:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/i2c.cc: In function 'v8::Handle ReadByte(const int&)': ../src/i2c.cc:119:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/i2c.cc: In function 'v8::Handle ReadBlock(const int&)': ../src/i2c.cc:157:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/i2c.cc: In function 'v8::Handle WriteByte(const int&)': ../src/i2c.cc:179:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/i2c.cc: In function 'v8::Handle WriteBlock(const int&)': ../src/i2c.cc:205:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/i2c.cc: In function 'v8::Handle WriteWord(const int&)': ../src/i2c.cc:228:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make: *** [Release/obj.target/i2c/src/i2c.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Linux 4.8.14-fedora-2 gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /builddir/build/BUILD/package gyp ERR! node -v v6.11.1 gyp ERR! node-gyp -v v0.10.6 gyp ERR! not ok error: Bad exit status from /var/tmp/rpm-tmp.5rIsMF (%build) Bad exit status from /var/tmp/rpm-tmp.5rIsMF (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/nodejs-i2c.spec