-
-
Save phahulin/3f267d933a5cc78a56b599f6c5d0b8d1 to your computer and use it in GitHub Desktop.
Keythereum npm install error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install --save keythereum | |
> scrypt@6.0.3 preinstall /home/x/Work/test-deps/node_modules/scrypt | |
> node node-scrypt-preinstall.js | |
> keccak@1.4.0 install /home/x/Work/test-deps/node_modules/keccak | |
> npm run rebuild || echo "Keccak bindings compilation fail. Pure JS implementation will be used." | |
> keccak@1.4.0 rebuild /home/x/Work/test-deps/node_modules/keccak | |
> node-gyp rebuild | |
make: Entering directory '/home/x/Work/test-deps/node_modules/keccak/build' | |
CXX(target) Release/obj.target/keccak/src/addon.o | |
In file included from ../src/addon.cc:2: | |
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: | |
../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] | |
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | |
| ^ | |
../src/addon.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE KeccakWrapper::Initialize(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/addon.cc:37:47: error: no matching function for call to ‘v8::Value::IntegerValue()’ | |
37 | unsigned int rate = info[0]->IntegerValue(); | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../src/addon.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2572:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’ | |
2572 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue( | |
| ^~~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2572:40: note: candidate expects 1 argument, 0 provided | |
../src/addon.cc:38:51: error: no matching function for call to ‘v8::Value::IntegerValue()’ | |
38 | unsigned int capacity = info[1]->IntegerValue(); | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../src/addon.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2572:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’ | |
2572 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue( | |
| ^~~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2572:40: note: candidate expects 1 argument, 0 provided | |
../src/addon.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE KeccakWrapper::AbsorbLastFewBits(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/addon.cc:56:48: error: no matching function for call to ‘v8::Value::IntegerValue()’ | |
56 | unsigned char bits = info[0]->IntegerValue(); | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../src/addon.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2572:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’ | |
2572 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue( | |
| ^~~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2572:40: note: candidate expects 1 argument, 0 provided | |
../src/addon.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE KeccakWrapper::Squeeze(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/addon.cc:64:43: error: no matching function for call to ‘v8::Value::IntegerValue()’ | |
64 | size_t length = info[0]->IntegerValue(); | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../src/addon.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2572:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’ | |
2572 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue( | |
| ^~~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2572:40: note: candidate expects 1 argument, 0 provided | |
../src/addon.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE KeccakWrapper::Copy(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/addon.cc:75:82: error: no matching function for call to ‘v8::Value::ToObject()’ | |
75 | KeccakWrapper* to = Nan::ObjectWrap::Unwrap<KeccakWrapper>(info[0]->ToObject()); | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../src/addon.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2539:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ | |
2539 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( | |
| ^~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2539:44: note: candidate expects 1 argument, 0 provided | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/v8-internal.h:14, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/v8.h:25, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../src/addon.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2553:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’ | |
2553 | Local<Object> ToObject(Isolate* isolate) const); | |
| ^~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’ | |
311 | declarator __attribute__((deprecated(message))) | |
| ^~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2553:31: note: candidate expects 1 argument, 0 provided | |
2553 | Local<Object> ToObject(Isolate* isolate) const); | |
| ^~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’ | |
311 | declarator __attribute__((deprecated(message))) | |
| ^~~~~~~~~~ | |
In file included from ../src/addon.cc:1: | |
../src/addon.cc: At global scope: | |
/home/x/.cache/node-gyp/12.8.1/include/node/node.h:556:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] | |
556 | (node::addon_register_func) (regfunc), \ | |
| ^ | |
/home/x/.cache/node-gyp/12.8.1/include/node/node.h:590:3: note: in expansion of macro ‘NODE_MODULE_X’ | |
590 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | |
| ^~~~~~~~~~~~~ | |
../src/addon.cc:86:1: note: in expansion of macro ‘NODE_MODULE’ | |
86 | NODE_MODULE(keccak, Init) | |
| ^~~~~~~~~~~ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../src/addon.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’: | |
/home/x/.cache/node-gyp/12.8.1/include/node/node_object_wrap.h:84:78: required from here | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
9853 | reinterpret_cast<Callback>(callback), type); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’: | |
../../nan/nan_object_wrap.h:65:61: required from here | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
make: *** [keccak.target.mk:127: Release/obj.target/keccak/src/addon.o] Error 1 | |
make: Leaving directory '/home/x/Work/test-deps/node_modules/keccak/build' | |
gyp ERR! build error | |
gyp ERR! stack Error: `make` failed with exit code: 2 | |
gyp ERR! stack at ChildProcess.onExit (/home/x/.nvm/versions/node/v12.8.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23) | |
gyp ERR! stack at ChildProcess.emit (events.js:203:13) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) | |
gyp ERR! System Linux 4.19.69-1-MANJARO | |
gyp ERR! command "/home/x/.nvm/versions/node/v12.8.1/bin/node" "/home/x/.nvm/versions/node/v12.8.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" | |
gyp ERR! cwd /home/x/Work/test-deps/node_modules/keccak | |
gyp ERR! node -v v12.8.1 | |
gyp ERR! node-gyp -v v5.0.3 | |
gyp ERR! not ok | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 1 | |
npm ERR! keccak@1.4.0 rebuild: `node-gyp rebuild` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the keccak@1.4.0 rebuild script. | |
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. | |
npm WARN Local package.json exists, but node_modules missing, did you mean to install? | |
npm ERR! A complete log of this run can be found in: | |
npm ERR! /home/x/.npm/_logs/2019-09-12T13_51_59_038Z-debug.log | |
Keccak bindings compilation fail. Pure JS implementation will be used. | |
> scrypt@6.0.3 install /home/x/Work/test-deps/node_modules/scrypt | |
> node-gyp rebuild | |
make: Entering directory '/home/x/Work/test-deps/node_modules/scrypt/build' | |
SOLINK_MODULE(target) Release/obj.target/copied_files.node | |
COPY Release/copied_files.node | |
CC(target) Release/obj.target/scrypt_wrapper/src/util/memlimit.o | |
CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/keyderivation.o | |
CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/pickparams.o | |
CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/hash.o | |
AR(target) Release/obj.target/scrypt_wrapper.a | |
COPY Release/scrypt_wrapper.a | |
CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/lib/crypto/crypto_scrypt.o | |
CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/lib/crypto/crypto_scrypt_smix.o | |
CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/libcperciva/util/warnp.o | |
CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/libcperciva/alg/sha256.o | |
CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/libcperciva/util/insecure_memzero.o | |
CC(target) Release/obj.target/scrypt_lib/scrypt/scrypt-1.2.0/lib/scryptenc/scryptenc_cpuperf.o | |
AR(target) Release/obj.target/scrypt_lib.a | |
COPY Release/scrypt_lib.a | |
CXX(target) Release/obj.target/scrypt/src/node-boilerplate/scrypt_common.o | |
In file included from ../src/node-boilerplate/scrypt_common.cc:28: | |
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: | |
../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] | |
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_common.cc:28: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’: | |
/home/x/.cache/node-gyp/12.8.1/include/node/node_object_wrap.h:84:78: required from here | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
9853 | reinterpret_cast<Callback>(callback), type); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’: | |
../../nan/nan_object_wrap.h:65:61: required from here | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
CXX(target) Release/obj.target/scrypt/src/node-boilerplate/scrypt_params_async.o | |
In file included from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: | |
../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] | |
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | |
| ^ | |
In file included from ../src/node-boilerplate/inc/scrypt_async.h:28, | |
from ../src/node-boilerplate/inc/scrypt_params_async.h:28, | |
from ../src/node-boilerplate/scrypt_params_async.cc:4: | |
../src/node-boilerplate/inc/scrypt_common.h: In constructor ‘NodeScrypt::Params::Params(const v8::Local<v8::Object>&)’: | |
../src/node-boilerplate/inc/scrypt_common.h:39:48: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] | |
39 | N(obj->Get(Nan::New("N").ToLocalChecked())->Uint32Value()), | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/v8-internal.h:14, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/v8.h:25, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:3419:55: note: declared here | |
3419 | V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key)); | |
| ^~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ | |
326 | declarator __attribute__((deprecated(message))) | |
| ^~~~~~~~~~ | |
In file included from ../src/node-boilerplate/inc/scrypt_async.h:28, | |
from ../src/node-boilerplate/inc/scrypt_params_async.h:28, | |
from ../src/node-boilerplate/scrypt_params_async.cc:4: | |
../src/node-boilerplate/inc/scrypt_common.h:39:63: error: no matching function for call to ‘v8::Value::Uint32Value()’ | |
39 | N(obj->Get(Nan::New("N").ToLocalChecked())->Uint32Value()), | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2574:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ | |
2574 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( | |
| ^~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2574:41: note: candidate expects 1 argument, 0 provided | |
In file included from ../src/node-boilerplate/inc/scrypt_async.h:28, | |
from ../src/node-boilerplate/inc/scrypt_params_async.h:28, | |
from ../src/node-boilerplate/scrypt_params_async.cc:4: | |
../src/node-boilerplate/inc/scrypt_common.h:40:48: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] | |
40 | r(obj->Get(Nan::New("r").ToLocalChecked())->Uint32Value()), | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/v8-internal.h:14, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/v8.h:25, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:3419:55: note: declared here | |
3419 | V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key)); | |
| ^~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ | |
326 | declarator __attribute__((deprecated(message))) | |
| ^~~~~~~~~~ | |
In file included from ../src/node-boilerplate/inc/scrypt_async.h:28, | |
from ../src/node-boilerplate/inc/scrypt_params_async.h:28, | |
from ../src/node-boilerplate/scrypt_params_async.cc:4: | |
../src/node-boilerplate/inc/scrypt_common.h:40:63: error: no matching function for call to ‘v8::Value::Uint32Value()’ | |
40 | r(obj->Get(Nan::New("r").ToLocalChecked())->Uint32Value()), | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2574:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ | |
2574 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( | |
| ^~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2574:41: note: candidate expects 1 argument, 0 provided | |
In file included from ../src/node-boilerplate/inc/scrypt_async.h:28, | |
from ../src/node-boilerplate/inc/scrypt_params_async.h:28, | |
from ../src/node-boilerplate/scrypt_params_async.cc:4: | |
../src/node-boilerplate/inc/scrypt_common.h:41:48: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] | |
41 | p(obj->Get(Nan::New("p").ToLocalChecked())->Uint32Value()) {} | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/v8-internal.h:14, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/v8.h:25, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:3419:55: note: declared here | |
3419 | V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key)); | |
| ^~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ | |
326 | declarator __attribute__((deprecated(message))) | |
| ^~~~~~~~~~ | |
In file included from ../src/node-boilerplate/inc/scrypt_async.h:28, | |
from ../src/node-boilerplate/inc/scrypt_params_async.h:28, | |
from ../src/node-boilerplate/scrypt_params_async.cc:4: | |
../src/node-boilerplate/inc/scrypt_common.h:41:63: error: no matching function for call to ‘v8::Value::Uint32Value()’ | |
41 | p(obj->Get(Nan::New("p").ToLocalChecked())->Uint32Value()) {} | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2574:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’ | |
2574 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value( | |
| ^~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2574:41: note: candidate expects 1 argument, 0 provided | |
In file included from ../src/node-boilerplate/inc/scrypt_params_async.h:28, | |
from ../src/node-boilerplate/scrypt_params_async.cc:4: | |
../src/node-boilerplate/inc/scrypt_async.h: In member function ‘virtual void ScryptAsyncWorker::HandleErrorCallback()’: | |
../src/node-boilerplate/inc/scrypt_async.h:53:29: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] | |
53 | callback->Call(1, argv); | |
| ^ | |
In file included from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
../../nan/nan.h:1740:3: note: declared here | |
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const { | |
| ^~~~ | |
In file included from ../src/node-boilerplate/scrypt_params_async.cc:4: | |
../src/node-boilerplate/inc/scrypt_params_async.h: In constructor ‘ScryptParamsAsyncWorker::ScryptParamsAsyncWorker(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/node-boilerplate/inc/scrypt_params_async.h:35:36: error: no matching function for call to ‘v8::Value::NumberValue()’ | |
35 | maxtime(info[0]->NumberValue()), | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2571:39: note: candidate: ‘v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const’ | |
2571 | V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const; | |
| ^~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2571:39: note: candidate expects 1 argument, 0 provided | |
In file included from ../src/node-boilerplate/scrypt_params_async.cc:4: | |
../src/node-boilerplate/inc/scrypt_params_async.h:36:39: error: no matching function for call to ‘v8::Value::NumberValue()’ | |
36 | maxmemfrac(info[1]->NumberValue()), | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2571:39: note: candidate: ‘v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const’ | |
2571 | V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const; | |
| ^~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2571:39: note: candidate expects 1 argument, 0 provided | |
In file included from ../src/node-boilerplate/scrypt_params_async.cc:4: | |
../src/node-boilerplate/inc/scrypt_params_async.h:37:36: error: no matching function for call to ‘v8::Value::IntegerValue()’ | |
37 | maxmem(info[2]->IntegerValue()), | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2572:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’ | |
2572 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue( | |
| ^~~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2572:40: note: candidate expects 1 argument, 0 provided | |
In file included from ../src/node-boilerplate/scrypt_params_async.cc:4: | |
../src/node-boilerplate/inc/scrypt_params_async.h:38:39: error: no matching function for call to ‘v8::Value::IntegerValue()’ | |
38 | osfreemem(info[3]->IntegerValue()) | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2572:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’ | |
2572 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue( | |
| ^~~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:2572:40: note: candidate expects 1 argument, 0 provided | |
../src/node-boilerplate/scrypt_params_async.cc: In member function ‘virtual void ScryptParamsAsyncWorker::HandleOKCallback()’: | |
../src/node-boilerplate/scrypt_params_async.cc:23:67: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] | |
23 | obj->Set(Nan::New("N").ToLocalChecked(), Nan::New<Integer>(logN)); | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/v8-internal.h:14, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/v8.h:25, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:3366:26: note: declared here | |
3366 | bool Set(Local<Value> key, Local<Value> value)); | |
| ^~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ | |
326 | declarator __attribute__((deprecated(message))) | |
| ^~~~~~~~~~ | |
../src/node-boilerplate/scrypt_params_async.cc:24:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] | |
24 | obj->Set(Nan::New("r").ToLocalChecked(), Nan::New<Integer>(r)); | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/v8-internal.h:14, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/v8.h:25, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:3366:26: note: declared here | |
3366 | bool Set(Local<Value> key, Local<Value> value)); | |
| ^~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ | |
326 | declarator __attribute__((deprecated(message))) | |
| ^~~~~~~~~~ | |
../src/node-boilerplate/scrypt_params_async.cc:25:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] | |
25 | obj->Set(Nan::New("p").ToLocalChecked(), Nan::New<Integer>(p)); | |
| ^ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/v8-internal.h:14, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/v8.h:25, | |
from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:3366:26: note: declared here | |
3366 | bool Set(Local<Value> key, Local<Value> value)); | |
| ^~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATE_SOON’ | |
326 | declarator __attribute__((deprecated(message))) | |
| ^~~~~~~~~~ | |
../src/node-boilerplate/scrypt_params_async.cc:32:25: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] | |
32 | callback->Call(2, argv); | |
| ^ | |
In file included from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
../../nan/nan.h:1740:3: note: declared here | |
1740 | Call(int argc, v8::Local<v8::Value> argv[]) const { | |
| ^~~~ | |
In file included from /home/x/.cache/node-gyp/12.8.1/include/node/node.h:63, | |
from ../../nan/nan.h:54, | |
from ../src/node-boilerplate/scrypt_params_async.cc:1: | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’: | |
/home/x/.cache/node-gyp/12.8.1/include/node/node_object_wrap.h:84:78: required from here | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
9853 | reinterpret_cast<Callback>(callback), type); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’: | |
../../nan/nan_object_wrap.h:65:61: required from here | |
/home/x/.cache/node-gyp/12.8.1/include/node/v8.h:9853:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
make: *** [scrypt.target.mk:129: Release/obj.target/scrypt/src/node-boilerplate/scrypt_params_async.o] Error 1 | |
make: Leaving directory '/home/x/Work/test-deps/node_modules/scrypt/build' | |
gyp ERR! build error | |
gyp ERR! stack Error: `make` failed with exit code: 2 | |
gyp ERR! stack at ChildProcess.onExit (/home/x/.nvm/versions/node/v12.8.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23) | |
gyp ERR! stack at ChildProcess.emit (events.js:203:13) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) | |
gyp ERR! System Linux 4.19.69-1-MANJARO | |
gyp ERR! command "/home/x/.nvm/versions/node/v12.8.1/bin/node" "/home/x/.nvm/versions/node/v12.8.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" | |
gyp ERR! cwd /home/x/Work/test-deps/node_modules/scrypt | |
gyp ERR! node -v v12.8.1 | |
gyp ERR! node-gyp -v v5.0.3 | |
gyp ERR! not ok | |
npm WARN test-deps@1.0.0 No description | |
npm WARN test-deps@1.0.0 No repository field. | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 1 | |
npm ERR! scrypt@6.0.3 install: `node-gyp rebuild` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the scrypt@6.0.3 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/x/.npm/_logs/2019-09-12T13_52_02_501Z-debug.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment