Open krlwlfrt opened 6 years ago
$ npm install aios > bson-ext@0.1.13 install /tmp/aios/node_modules/bson-ext > (node-gyp rebuild 2> builderror.log) || (exit 0) make: Entering directory '/tmp/aios/node_modules/bson-ext/build' CXX(target) Release/obj.target/bson/ext/bson.o make: Leaving directory '/tmp/aios/node_modules/bson-ext/build' > aios@0.1.5 install /tmp/aios/node_modules/aios > CC=clang CXX=clang++ node-gyp configure build --verbose gyp info it worked if it ends with ok gyp verb cli [ '/usr/bin/node', gyp verb cli '/usr/lib/node_modules/node-gyp/bin/node-gyp.js', gyp verb cli 'configure', gyp verb cli 'build', gyp verb cli '--verbose' ] gyp info using node-gyp@3.7.0 gyp info using node@10.7.0 | linux | x64 gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` succeeded python2 /usr/bin/python2 gyp verb check python version `/usr/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.15\n" gyp verb get node dir no --target version specified, falling back to host node version: 10.7.0 gyp verb command install [ '10.7.0' ] gyp verb install input version string "10.7.0" gyp verb install installing version: 10.7.0 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 10.7.0 gyp verb build dir attempting to create "build" dir: /tmp/aios/node_modules/aios/build gyp verb build dir "build" dir needed to be created? /tmp/aios/node_modules/aios/build gyp verb build/config.gypi creating config file gyp verb build/config.gypi writing out config file: /tmp/aios/node_modules/aios/build/config.gypi gyp verb config.gypi checking for gypi file: /tmp/aios/node_modules/aios/config.gypi gyp verb common.gypi checking for gypi file: /tmp/aios/node_modules/aios/common.gypi gyp verb gyp gyp format was not specified; forcing "make" gyp info spawn /usr/bin/python2 gyp info spawn args [ '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py', 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 '/tmp/aios/node_modules/aios/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/wulfert/.node-gyp/10.7.0/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/wulfert/.node-gyp/10.7.0', gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/home/wulfert/.node-gyp/10.7.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/tmp/aios/node_modules/aios', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp verb command build [] gyp verb build type Release gyp verb architecture x64 gyp verb node dev dir /home/wulfert/.node-gyp/10.7.0 gyp verb `which` succeeded for `make` /usr/bin/make gyp info spawn make gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/tmp/aios/node_modules/aios/build' clang++ '-DNODE_GYP_MODULE_NAME=sockit' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/wulfert/.node-gyp/10.7.0/include/node -I/home/wulfert/.node-gyp/10.7.0/src -I/home/wulfert/.node-gyp/10.7.0/deps/openssl/config -I/home/wulfert/.node-gyp/10.7.0/deps/openssl/openssl/include -I/home/wulfert/.node-gyp/10.7.0/deps/uv/include -I/home/wulfert/.node-gyp/10.7.0/deps/zlib -I/home/wulfert/.node-gyp/10.7.0/deps/v8/include -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -MMD -MF ./Release/.deps/Release/obj.target/sockit/src/addon.o.d.raw -c -o Release/obj.target/sockit/src/addon.o ../src/addon.cc clang++ '-DNODE_GYP_MODULE_NAME=sockit' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/wulfert/.node-gyp/10.7.0/include/node -I/home/wulfert/.node-gyp/10.7.0/src -I/home/wulfert/.node-gyp/10.7.0/deps/openssl/config -I/home/wulfert/.node-gyp/10.7.0/deps/openssl/openssl/include -I/home/wulfert/.node-gyp/10.7.0/deps/uv/include -I/home/wulfert/.node-gyp/10.7.0/deps/zlib -I/home/wulfert/.node-gyp/10.7.0/deps/v8/include -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -MMD -MF ./Release/.deps/Release/obj.target/sockit/src/sockit.o.d.raw -c -o Release/obj.target/sockit/src/sockit.o ../src/sockit.cc ../src/sockit.cc:105:38: error: no matching member function for call to 'NewInstance' aArgs.GetReturnValue().Set(cons->NewInstance(argc, argv)); ~~~~~~^~~~~~~~~~~ /home/wulfert/.node-gyp/10.7.0/include/node/v8.h:3956:44: note: candidate function not viable: requires single argument 'context', but 2 arguments were provided V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( ^ /home/wulfert/.node-gyp/10.7.0/include/node/v8.h:3953:44: note: candidate function not viable: requires 3 arguments, but 2 were provided V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( ^ ../src/sockit.cc:187:21: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations] String::Utf8Value optionsHost(options->Get(hostKey)->ToString()); ^ /home/wulfert/.node-gyp/10.7.0/include/node/v8.h:2851:5: note: 'Utf8Value' has been explicitly marked deprecated here V8_DEPRECATED("Use Isolate version", ^ /home/wulfert/.node-gyp/10.7.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED' declarator __attribute__((deprecated)) ^ ../src/sockit.cc:269:55: error: no matching member function for call to 'ToNumber' htons(static_cast<short>(options->Get(portKey)->ToNumber()->Uint32Value())); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/netinet/in.h:404:33: note: expanded from macro 'htons' # define htons(x) __bswap_16 (x) ^ /usr/include/bits/byteswap-16.h:27:62: note: expanded from macro '__bswap_16' ({ unsigned short int __v, __x = (unsigned short int) (x); \ ^ /home/wulfert/.node-gyp/10.7.0/include/node/v8.h:2396:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided V8_WARN_UNUSED_RESULT MaybeLocal<Number> ToNumber( ^ /home/wulfert/.node-gyp/10.7.0/include/node/v8.h:2413:35: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided Local<Number> ToNumber(Isolate* isolate) const); ^ ../src/sockit.cc:364:40: error: no matching member function for call to 'ToNumber' unsigned int bytesToRead = aArgs[0]->ToNumber()->Uint32Value(); ~~~~~~~~~~^~~~~~~~ /home/wulfert/.node-gyp/10.7.0/include/node/v8.h:2396:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided V8_WARN_UNUSED_RESULT MaybeLocal<Number> ToNumber( ^ /home/wulfert/.node-gyp/10.7.0/include/node/v8.h:2413:35: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided Local<Number> ToNumber(Isolate* isolate) const); ^ ../src/sockit.cc:486:23: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations] String::Utf8Value data(dataString); ^ /home/wulfert/.node-gyp/10.7.0/include/node/v8.h:2851:5: note: 'Utf8Value' has been explicitly marked deprecated here V8_DEPRECATED("Use Isolate version", ^ /home/wulfert/.node-gyp/10.7.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED' declarator __attribute__((deprecated)) ^ 2 warnings and 3 errors generated. make: *** [sockit.target.mk:100: Release/obj.target/sockit/src/sockit.o] Error 1 make: Leaving directory '/tmp/aios/node_modules/aios/build' 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:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12) gyp ERR! System Linux 4.17.8-1-ARCH gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "--verbose" gyp ERR! cwd /tmp/aios/node_modules/aios gyp ERR! node -v v10.7.0 gyp ERR! node-gyp -v v3.7.0 gyp ERR! not ok npm WARN aiostmp@1.0.0 No description npm WARN aiostmp@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! aios@0.1.5 install: `CC=clang CXX=clang++ node-gyp configure build --verbose` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the aios@0.1.5 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/wulfert/.npm/_logs/2018-07-24T10_29_38_172Z-debug.log
facing same issue . Can you provide solution if found fix?