Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in npm install on RHEL7 & node v6.11.3 #30

Open
abustya opened this issue Jun 4, 2018 · 0 comments
Open

Error in npm install on RHEL7 & node v6.11.3 #30

abustya opened this issue Jun 4, 2018 · 0 comments

Comments

@abustya
Copy link

abustya commented Jun 4, 2018

Logs, not sure what else to add:

npm install
npm WARN deprecated [email protected]: Old versions of Formidable are not compatible with the current Node.js; Upgrade to 1.2.0 or later

> [email protected] install /tmp/workspace/ftb-build-ftb-consent-management-test/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js

make: Entering directory `/tmp/workspace/ftb-build-ftb-consent-management-test/node_modules/dtrace-provider/build'
  TOUCH Release/obj.target/DTraceProviderStub.stamp
make: Leaving directory `/tmp/workspace/ftb-build-ftb-consent-management-test/node_modules/dtrace-provider/build'

> [email protected] install /tmp/workspace/ftb-build-ftb-consent-management-test/node_modules/libxmljs-mt
> node-gyp rebuild

make: Entering directory `/tmp/workspace/ftb-build-ftb-consent-management-test/node_modules/libxmljs-mt/build'
  CXX(target) Release/obj.target/xmljs/src/libxmljs.o
  CXX(target) Release/obj.target/xmljs/src/xml_attribute.o
  CXX(target) Release/obj.target/xmljs/src/xml_document.o
../src/xml_document.cc: In member function 'virtual void libxmljs::FromXmlWorker::WorkComplete()':
../src/xml_document.cc:418:31: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated (declared at ../../nan/nan.h:1618) [-Wdeprecated-declarations]
         callback->Call(1, argv);
                               ^
../src/xml_document.cc:428:35: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated (declared at ../../nan/nan.h:1618) [-Wdeprecated-declarations]
             callback->Call(1, argv);
                                   ^
../src/xml_document.cc:439:31: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated (declared at ../../nan/nan.h:1618) [-Wdeprecated-declarations]
         callback->Call(2, argv);
                               ^
  CXX(target) Release/obj.target/xmljs/src/xml_element.o
  CXX(target) Release/obj.target/xmljs/src/xml_comment.o
  CXX(target) Release/obj.target/xmljs/src/xml_namespace.o
  CXX(target) Release/obj.target/xmljs/src/xml_node.o
  CXX(target) Release/obj.target/xmljs/src/xml_sax_parser.o
../src/xml_sax_parser.cc: In member function 'void libxmljs::XmlSaxParser::Callback(const char*, int, v8::Local<v8::Value>*)':
../src/xml_sax_parser.cc:130:92: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
     Nan::MakeCallback(this->handle(), v8::Local<v8::Function>::Cast(emit_v), argc + 1, args);
                                                                                            ^
  CXX(target) Release/obj.target/xmljs/src/xml_syntax_error.o
  CXX(target) Release/obj.target/xmljs/src/xml_text.o
  CXX(target) Release/obj.target/xmljs/src/xml_xpath_context.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/buf.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/catalog.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/chvalid.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/dict.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/encoding.o
../vendor/libxml/encoding.c: In function 'xmlCharEncCloseFunc':
../vendor/libxml/encoding.c:2856:12: warning: variable 'handler_in_list' set but not used [-Wunused-but-set-variable]
     int i, handler_in_list = 0;
            ^
  CC(target) Release/obj.target/xmljs/vendor/libxml/entities.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/error.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/globals.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/hash.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/HTMLparser.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/HTMLtree.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/legacy.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/list.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/parser.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/parserInternals.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/pattern.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/relaxng.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/SAX2.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/SAX.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/tree.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/threads.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/uri.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/valid.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xinclude.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xlink.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xmlIO.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xmlmemory.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xmlmodule.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xmlreader.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xmlregexp.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xmlsave.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xmlschemas.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xmlschemastypes.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xmlstring.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xmlunicode.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xmlwriter.o
  CC(target) Release/obj.target/xmljs/vendor/libxml/xpath.o
In file included from ../vendor/libxml/xpath.c:462:0:
../vendor/libxml/timsort.h: In function 'libxml_domnode_tim_sort_collapse':
../vendor/libxml/timsort.h:405:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if ((stack_curr == 2) && (stack[0].length + stack[1].length == size)) {
                                                                 ^
../vendor/libxml/timsort.h:397:19: warning: variable 'BD' set but not used [-Wunused-but-set-variable]
     int ABC, BCD, BD, CD;
                   ^
../vendor/libxml/xpath.c: In function 'xmlXPathNodeCollectAndTest':
../vendor/libxml/xpath.c:12406:28: warning: comparison between 'xmlElementType' and 'xmlXPathTypeVal' [-Wenum-compare]
       } else if (cur->type == type) {
                            ^
In file included from ../vendor/libxml/xpath.c:476:0:
../vendor/libxml/xpath.c: At top level:
../vendor/libxml/trionan.c:218:1: warning: 'trio_is_negative' defined but not used [-Wunused-function]
 trio_is_negative
 ^
../vendor/libxml/xpath.c: In function 'xmlXPathCastNumberToString':
../vendor/libxml/xpath.c:3197:7: warning: array subscript is above array bounds [-Warray-bounds]
   work[buffersize - 1] = 0;
       ^
  CC(target) Release/obj.target/xmljs/vendor/libxml/xpointer.o
../vendor/libxml/xpointer.c: In function 'xmlXPtrNewRangeNodePoint':
../vendor/libxml/xpointer.c:451:21: warning: comparison between 'xmlElementType' and 'enum <anonymous>' [-Wenum-compare]
     if (start->type != XPATH_POINT)
                     ^
  SOLINK(target) Release/obj.target/xmljs.node
  SOLINK(target) Release/obj.target/xmljs.node: Finished
  COPY Release/lib.target/xmljs.node
make: Leaving directory `/tmp/workspace/ftb-build-ftb-consent-management-test/node_modules/libxmljs-mt/build'

> [email protected] install /tmp/workspace/ftb-build-ftb-consent-management-test/node_modules/libxml-xsd
> node-gyp rebuild

make: Entering directory `/tmp/workspace/ftb-build-ftb-consent-management-test/node_modules/libxml-xsd/build'
  CXX(target) Release/obj.target/node-libxml-xsd/src/schema.o
  CXX(target) Release/obj.target/node-libxml-xsd/src/node_libxml_xsd.o
../src/node_libxml_xsd.cc:1:0: warning: "BUILDING_NODE_EXTENSION" redefined [enabled by default]
 #define BUILDING_NODE_EXTENSION
 ^
<command-line>:0:0: note: this is the location of the previous definition
../src/node_libxml_xsd.cc: In member function 'virtual void SchemaWorker::HandleOKCallback()':
../src/node_libxml_xsd.cc:76:31: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated (declared at ../../nan/nan.h:1618) [-Wdeprecated-declarations]
         callback->Call(2, argv);
                               ^
../src/node_libxml_xsd.cc:79:31: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated (declared at ../../nan/nan.h:1618) [-Wdeprecated-declarations]
         callback->Call(2, argv);
                               ^
../src/node_libxml_xsd.cc:83:31: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated (declared at ../../nan/nan.h:1618) [-Wdeprecated-declarations]
         callback->Call(2, argv);
                               ^
../src/node_libxml_xsd.cc: In member function 'virtual void ValidateWorker::HandleOKCallback()':
../src/node_libxml_xsd.cc:171:31: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated (declared at ../../nan/nan.h:1618) [-Wdeprecated-declarations]
         callback->Call(2, argv);
                               ^
../src/node_libxml_xsd.cc:174:31: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated (declared at ../../nan/nan.h:1618) [-Wdeprecated-declarations]
         callback->Call(2, argv);
                               ^
  SOLINK_MODULE(target) Release/obj.target/node-libxml-xsd.node
g++: error: /tmp/workspace/ftb-build-ftb-consent-management-test/node_modules/libxmljs-mt/build/Release/xmljs.node: No such file or directory
make: *** [Release/obj.target/node-libxml-xsd.node] Error 1
make: Leaving directory `/tmp/workspace/ftb-build-ftb-consent-management-test/node_modules/libxml-xsd/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/opt/rh/rh-nodejs6/root/usr/lib/node_modules/node-gyp/lib/build.js:276: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 3.10.0-693.2.1.el7.x86_64
gyp ERR! command "/opt/rh/rh-nodejs6/root/usr/bin/node" "/opt/rh/rh-nodejs6/root/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/workspace/ftb-build-ftb-consent-management-test/node_modules/libxml-xsd
gyp ERR! node -v v6.11.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant