Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/nodejs-libxmljs.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-34089d130cb78d21e55d8f7a1f32adcea8f331fb/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=996) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/nodejs-libxmljs.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-libxmljs-0.9.0-1.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-libxmljs.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-34089d130cb78d21e55d8f7a1f32adcea8f331fb/root'shell=Falseuid=996env={'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-libxmljs.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.ItGZ7A + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf package + /usr/bin/gzip -dc /builddir/build/SOURCES/libxmljs-0.9.0.tgz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd package + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (nodejs-libxmljs-0.8.1-remove-bundled-libxml.patch):' Patch #0 (nodejs-libxmljs-0.8.1-remove-bundled-libxml.patch): + /usr/bin/cat /builddir/build/SOURCES/nodejs-libxmljs-0.8.1-remove-bundled-libxml.patch + /usr/bin/patch -p1 --fuzz=0 patching file binding.gyp + rm -rf vendor/ + /usr/lib/rpm/nodejs-fixdep bindings '*' + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.OuQmOF + umask 022 + cd /builddir/build/BUILD + cd package + export 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + node-gyp configure gyp info it worked if it ends with ok gyp info using node-gyp@0.10.6 gyp info using node@6.14.3 | 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:11816) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead. gyp info ok + node-gyp build gyp info it worked if it ends with ok gyp info using node-gyp@0.10.6 gyp info using node@6.14.3 | linux | arm gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory `/builddir/build/BUILD/package/build' CXX(target) Release/obj.target/xmljs/src/libxmljs.o (node:11845) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead. In file included from ../src/libxmljs.cc:8:0: ../src/xml_document.h:11:45: error: expected class-name before '{' token class XmlDocument : public node::ObjectWrap { ^ ../src/xml_document.h:42:44: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle New(const v8::Arguments& args); ^ ../src/xml_document.h:42:59: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle New(const v8::Arguments& args); ^ ../src/xml_document.h:43:49: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle FromHtml(const v8::Arguments& args); ^ ../src/xml_document.h:43:64: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle FromHtml(const v8::Arguments& args); ^ ../src/xml_document.h:44:48: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle FromXml(const v8::Arguments& args); ^ ../src/xml_document.h:44:63: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle FromXml(const v8::Arguments& args); ^ ../src/xml_document.h:45:47: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle SetDtd(const v8::Arguments& args); ^ ../src/xml_document.h:45:62: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle SetDtd(const v8::Arguments& args); ^ ../src/xml_document.h:48:45: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Root(const v8::Arguments& args); ^ ../src/xml_document.h:48:60: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Root(const v8::Arguments& args); ^ ../src/xml_document.h:49:49: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Encoding(const v8::Arguments& args); ^ ../src/xml_document.h:49:64: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Encoding(const v8::Arguments& args); ^ ../src/xml_document.h:50:48: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Version(const v8::Arguments& args); ^ ../src/xml_document.h:50:63: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Version(const v8::Arguments& args); ^ ../src/xml_document.h:51:44: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Doc(const v8::Arguments& args); ^ ../src/xml_document.h:51:59: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Doc(const v8::Arguments& args); ^ ../src/xml_document.h:52:47: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Errors(const v8::Arguments& args); ^ ../src/xml_document.h:52:62: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Errors(const v8::Arguments& args); ^ ../src/xml_document.h:53:49: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle ToString(const v8::Arguments& args); ^ ../src/xml_document.h:53:64: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle ToString(const v8::Arguments& args); ^ ../src/xml_document.h:54:49: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Validate(const v8::Arguments& args); ^ ../src/xml_document.h:54:64: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Validate(const v8::Arguments& args); ^ ../src/xml_document.h: In member function 'void libxmljs::XmlDocument::ref()': ../src/xml_document.h:30:13: error: 'Ref' was not declared in this scope Ref(); ^ ../src/xml_document.h: In member function 'void libxmljs::XmlDocument::unref()': ../src/xml_document.h:34:15: error: 'Unref' was not declared in this scope Unref(); ^ In file included from ../src/libxmljs.cc:9:0: ../src/xml_node.h: At global scope: ../src/xml_node.h:9:41: error: expected class-name before '{' token class XmlNode : public node::ObjectWrap { ^ ../src/xml_node.h:25:44: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Doc(const v8::Arguments& args); ^ ../src/xml_node.h:25:59: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Doc(const v8::Arguments& args); ^ ../src/xml_node.h:26:50: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Namespace(const v8::Arguments& args); ^ ../src/xml_node.h:26:65: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Namespace(const v8::Arguments& args); ^ ../src/xml_node.h:27:51: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Namespaces(const v8::Arguments& args); ^ ../src/xml_node.h:27:66: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Namespaces(const v8::Arguments& args); ^ ../src/xml_node.h:28:47: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Parent(const v8::Arguments& args); ^ ../src/xml_node.h:28:62: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Parent(const v8::Arguments& args); ^ ../src/xml_node.h:29:52: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle NextSibling(const v8::Arguments& args); ^ ../src/xml_node.h:29:67: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle NextSibling(const v8::Arguments& args); ^ ../src/xml_node.h:30:52: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle PrevSibling(const v8::Arguments& args); ^ ../src/xml_node.h:30:67: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle PrevSibling(const v8::Arguments& args); ^ ../src/xml_node.h:31:51: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle LineNumber(const v8::Arguments& args); ^ ../src/xml_node.h:31:66: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle LineNumber(const v8::Arguments& args); ^ ../src/xml_node.h:32:45: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Type(const v8::Arguments& args); ^ ../src/xml_node.h:32:60: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Type(const v8::Arguments& args); ^ ../src/xml_node.h:33:49: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle ToString(const v8::Arguments& args); ^ ../src/xml_node.h:33:64: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle ToString(const v8::Arguments& args); ^ ../src/xml_node.h:34:47: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Remove(const v8::Arguments& args); ^ ../src/xml_node.h:34:62: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Remove(const v8::Arguments& args); ^ ../src/xml_node.h:35:46: error: 'Arguments' in namespace 'v8' does not name a type static v8::Handle Clone(const v8::Arguments& args); ^ ../src/xml_node.h:35:61: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] static v8::Handle Clone(const v8::Arguments& args); ^ In file included from ../src/libxmljs.cc:10:0: ../src/xml_sax_parser.h:9:46: error: expected class-name before '{' token class XmlSaxParser : public node::ObjectWrap { ^ ../src/xml_sax_parser.h:19:19: error: 'Arguments' in namespace 'v8' does not name a type NewParser(const v8::Arguments& args); ^ ../src/xml_sax_parser.h:19:34: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] NewParser(const v8::Arguments& args); ^ ../src/xml_sax_parser.h:22:23: error: 'Arguments' in namespace 'v8' does not name a type NewPushParser(const v8::Arguments& args); ^ ../src/xml_sax_parser.h:22:38: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] NewPushParser(const v8::Arguments& args); ^ ../src/xml_sax_parser.h:25:21: error: 'Arguments' in namespace 'v8' does not name a type ParseString(const v8::Arguments& args); ^ ../src/xml_sax_parser.h:25:36: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] ParseString(const v8::Arguments& args); ^ ../src/xml_sax_parser.h:28:14: error: 'Arguments' in namespace 'v8' does not name a type Push(const v8::Arguments& args); ^ ../src/xml_sax_parser.h:28:29: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] Push(const v8::Arguments& args); ^ make: Leaving directory `/builddir/build/BUILD/package/build' RPM build errors: ../src/libxmljs.cc: In function 'void* libxmljs::xmlMemMallocWrap(size_t)': ../src/libxmljs.cc:35:5: error: 'AdjustAmountOfExternalAllocatedMemory' is not a member of 'v8::V8' v8::V8::AdjustAmountOfExternalAllocatedMemory(diff); ^ ../src/libxmljs.cc: In function 'void libxmljs::xmlMemFreeWrap(void*)': ../src/libxmljs.cc:57:5: error: 'AdjustAmountOfExternalAllocatedMemory' is not a member of 'v8::V8' v8::V8::AdjustAmountOfExternalAllocatedMemory(diff); ^ ../src/libxmljs.cc: In function 'void* libxmljs::xmlMemReallocWrap(void*, size_t)': ../src/libxmljs.cc:73:5: error: 'AdjustAmountOfExternalAllocatedMemory' is not a member of 'v8::V8' v8::V8::AdjustAmountOfExternalAllocatedMemory(diff); ^ ../src/libxmljs.cc: In function 'char* libxmljs::xmlMemoryStrdupWrap(const char*)': ../src/libxmljs.cc:90:5: error: 'AdjustAmountOfExternalAllocatedMemory' is not a member of 'v8::V8' v8::V8::AdjustAmountOfExternalAllocatedMemory(diff); ^ ../src/libxmljs.cc: In function 'v8::Handle libxmljs::ThrowError(const char*)': ../src/libxmljs.cc:96:12: error: 'ThrowException' is not a member of 'v8' return v8::ThrowException(v8::Exception::Error(v8::String::New(msg))); ^ ../src/libxmljs.cc:96:52: error: 'New' is not a member of 'v8::String' return v8::ThrowException(v8::Exception::Error(v8::String::New(msg))); ^ In file included from ../src/libxmljs.cc:3:0: /usr/include/node/v8.h: In function 'void libxmljs::init(v8::Handle)': /usr/include/node/v8.h:915:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/libxmljs.cc:123:23: error: within this context v8::HandleScope scope; ^ ../src/libxmljs.cc:128:19: error: 'NewSymbol' is not a member of 'v8::String' target->Set(v8::String::NewSymbol("libxml_version"), ^ ../src/libxmljs.cc:129:19: error: 'New' is not a member of 'v8::String' v8::String::New(LIBXML_DOTTED_VERSION)); ^ ../src/libxmljs.cc:131:19: error: 'NewSymbol' is not a member of 'v8::String' target->Set(v8::String::NewSymbol("libxml_parser_version"), ^ ../src/libxmljs.cc:132:19: error: 'New' is not a member of 'v8::String' v8::String::New(xmlParserVersion)); ^ ../src/libxmljs.cc:134:19: error: 'NewSymbol' is not a member of 'v8::String' target->Set(v8::String::NewSymbol("libxml_debug_enabled"), ^ ../src/libxmljs.cc:135:45: error: no matching function for call to 'v8::Boolean::New(const bool&)' v8::Boolean::New(debugging)); ^ ../src/libxmljs.cc:135:45: note: candidate is: In file included from ../src/libxmljs.cc:3:0: /usr/include/node/v8.h:8012:16: note: static v8::Local v8::Boolean::New(v8::Isolate*, bool) Local Boolean::New(Isolate* isolate, bool value) { ^ /usr/include/node/v8.h:8012:16: note: candidate expects 2 arguments, 1 provided ../src/libxmljs.cc:137:19: error: 'NewSymbol' is not a member of 'v8::String' target->Set(v8::String::NewSymbol("libxml"), target); ^ ../src/libxmljs.cc: In function 'v8::Handle libxmljs::ThrowError(const char*)': ../src/libxmljs.cc:97:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make: *** [Release/obj.target/xmljs/src/libxmljs.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:219:12) gyp ERR! System Linux 4.10.8-fedora-1 gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "build" gyp ERR! cwd /builddir/build/BUILD/package gyp ERR! node -v v6.14.3 gyp ERR! node-gyp -v v0.10.6 gyp ERR! not ok error: Bad exit status from /var/tmp/rpm-tmp.OuQmOF (%build) Bad exit status from /var/tmp/rpm-tmp.OuQmOF (%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-libxmljs.spec