Skip to content

Instantly share code, notes, and snippets.

@pitersky
Created Feb 24, 2021
Embed
What would you like to do?
yurec@DESKTOP-EIN0K01:~/atomic-core$ nvm use 14
Now using node v14.16.0 (npm v6.14.11)
yurec@DESKTOP-EIN0K01:~/atomic-core$ npm i
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
[ ......] - extract:lisk-sdk: sill extract lisk-sdk@git://github.com/Atomicwallet/lisk-sdk.git#feature/es5build extracted to /ho[ ......] \ extract:lisk-sdk: sill extract lisk-sdk@git://github.com/Atomicwallet/lisk-sdk.git#feature/es5build ex[ ......] \ extract:lodash: sill extract lodash@4.17.20 extracted to /home/yurec/atomic-core/node_modul[ ......] \ extract:lodash: sill extract lodash@4.17.20 extracted to /home/yurec/atomic-core/node_m[ ......] \ extract:lodash: sill extract lodash@4.17.20 extracted to /home/yurec/atomic-core/nod[ ......] \ extract:lodash: sill extract lodash@4.17.20 extracted to /home/yurec/atomic-co
> scrypt@6.0.3 preinstall /home/yurec/atomic-core/node_modules/scrypt
> node node-scrypt-preinstall.js
> bcrypto@git+ssh://git@github.com/Atomicwallet/bcrypto.git#8f566691cd8228718408167fc0e04d6c26fc9886 install /home/yurec/atomic-core/node_modules/bcrypto
> node-gyp rebuild || echo 'Build failed.'
make: Entering directory '/home/yurec/atomic-core/node_modules/bcrypto/build'
CC(target) Release/obj.target/bcrypto/src/aead/aead.o
CC(target) Release/obj.target/bcrypto/src/aes/aes.o
CC(target) Release/obj.target/bcrypto/src/base58/base58.o
CC(target) Release/obj.target/bcrypto/src/bech32/bech32.o
CC(target) Release/obj.target/bcrypto/src/blake2b/blake2b.o
CC(target) Release/obj.target/bcrypto/src/blake2s/blake2s.o
CC(target) Release/obj.target/bcrypto/src/cash32/cash32.o
CC(target) Release/obj.target/bcrypto/src/chacha20/chacha20.o
CC(target) Release/obj.target/bcrypto/src/dsa/dsa.o
CC(target) Release/obj.target/bcrypto/src/ecdsa/ecdsa.o
CC(target) Release/obj.target/bcrypto/src/ed25519/ed25519.o
CC(target) Release/obj.target/bcrypto/src/ed448/arch_32/f_impl.o
CC(target) Release/obj.target/bcrypto/src/ed448/curve448.o
CC(target) Release/obj.target/bcrypto/src/ed448/curve448_tables.o
CC(target) Release/obj.target/bcrypto/src/ed448/eddsa.o
CC(target) Release/obj.target/bcrypto/src/ed448/f_generic.o
CC(target) Release/obj.target/bcrypto/src/ed448/scalar.o
CC(target) Release/obj.target/bcrypto/src/murmur3/murmur3.o
CC(target) Release/obj.target/bcrypto/src/pbkdf2/pbkdf2.o
CC(target) Release/obj.target/bcrypto/src/poly1305/poly1305.o
CC(target) Release/obj.target/bcrypto/src/random/random.o
CC(target) Release/obj.target/bcrypto/src/rsa/rsa.o
CC(target) Release/obj.target/bcrypto/src/salsa20/salsa20.o
CC(target) Release/obj.target/bcrypto/src/scrypt/insecure_memzero.o
CC(target) Release/obj.target/bcrypto/src/scrypt/sha256.o
CC(target) Release/obj.target/bcrypto/src/scrypt/scrypt.o
CC(target) Release/obj.target/bcrypto/src/secp256k1/src/secp256k1.o
CC(target) Release/obj.target/bcrypto/src/secp256k1/contrib/lax_der_parsing.o
CC(target) Release/obj.target/bcrypto/src/secp256k1/contrib/lax_der_privatekey_parsing.o
CC(target) Release/obj.target/bcrypto/src/siphash/siphash.o
CC(target) Release/obj.target/bcrypto/src/keccak/keccak.o
CXX(target) Release/obj.target/bcrypto/src/aead.o
CXX(target) Release/obj.target/bcrypto/src/aes.o
CXX(target) Release/obj.target/bcrypto/src/base58.o
CXX(target) Release/obj.target/bcrypto/src/bech32.o
CXX(target) Release/obj.target/bcrypto/src/bcrypto.o
CXX(target) Release/obj.target/bcrypto/src/blake2b.o
CXX(target) Release/obj.target/bcrypto/src/blake2s.o
CXX(target) Release/obj.target/bcrypto/src/cash32.o
CXX(target) Release/obj.target/bcrypto/src/chacha20.o
CXX(target) Release/obj.target/bcrypto/src/cipherbase.o
CXX(target) Release/obj.target/bcrypto/src/dsa.o
CXX(target) Release/obj.target/bcrypto/src/dsa_async.o
CXX(target) Release/obj.target/bcrypto/src/ecdsa.o
CXX(target) Release/obj.target/bcrypto/src/ed25519.o
CXX(target) Release/obj.target/bcrypto/src/ed448.o
CXX(target) Release/obj.target/bcrypto/src/hash160.o
CXX(target) Release/obj.target/bcrypto/src/hash256.o
CXX(target) Release/obj.target/bcrypto/src/keccak.o
CXX(target) Release/obj.target/bcrypto/src/md4.o
CXX(target) Release/obj.target/bcrypto/src/md5.o
CXX(target) Release/obj.target/bcrypto/src/murmur3.o
CXX(target) Release/obj.target/bcrypto/src/pbkdf2.o
CXX(target) Release/obj.target/bcrypto/src/pbkdf2_async.o
CXX(target) Release/obj.target/bcrypto/src/poly1305.o
CXX(target) Release/obj.target/bcrypto/src/random.o
CXX(target) Release/obj.target/bcrypto/src/ripemd160.o
CXX(target) Release/obj.target/bcrypto/src/rsa.o
CXX(target) Release/obj.target/bcrypto/src/rsa_async.o
CXX(target) Release/obj.target/bcrypto/src/salsa20.o
CXX(target) Release/obj.target/bcrypto/src/scrypt.o
CXX(target) Release/obj.target/bcrypto/src/scrypt_async.o
CXX(target) Release/obj.target/bcrypto/src/secp256k1.o
CXX(target) Release/obj.target/bcrypto/src/sha1.o
CXX(target) Release/obj.target/bcrypto/src/sha224.o
CXX(target) Release/obj.target/bcrypto/src/sha256.o
CXX(target) Release/obj.target/bcrypto/src/sha384.o
CXX(target) Release/obj.target/bcrypto/src/sha512.o
CXX(target) Release/obj.target/bcrypto/src/siphash.o
CXX(target) Release/obj.target/bcrypto/src/whirlpool.o
SOLINK_MODULE(target) Release/obj.target/bcrypto.node
COPY Release/bcrypto.node
make: Leaving directory '/home/yurec/atomic-core/node_modules/bcrypto/build'
> bstring@0.3.9 install /home/yurec/atomic-core/node_modules/bstring
> node-gyp rebuild || echo 'Build failed.'
make: Entering directory '/home/yurec/atomic-core/node_modules/bstring/build'
CXX(target) Release/obj.target/bstring/src/base58.o
CXX(target) Release/obj.target/bstring/src/bech32.o
CXX(target) Release/obj.target/bstring/src/cashaddr.o
CXX(target) Release/obj.target/bstring/src/bstring.o
SOLINK_MODULE(target) Release/obj.target/bstring.node
COPY Release/bstring.node
make: Leaving directory '/home/yurec/atomic-core/node_modules/bstring/build'
> ed25519@0.0.4 install /home/yurec/atomic-core/node_modules/ed25519
> node-gyp rebuild
make: Entering directory '/home/yurec/atomic-core/node_modules/ed25519/build'
CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o
CC(target) Release/obj.target/ed25519/src/ed25519/sign.o
CC(target) Release/obj.target/ed25519/src/ed25519/open.o
CC(target) Release/obj.target/ed25519/src/ed25519/crypto_verify_32.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_double_scalarmult.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_frombytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_scalarmult_base.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_precomp_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_dbl.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_dbl.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_p2.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_cached.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_madd.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_add.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_msub.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_sub.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p3.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p2.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_1.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_cmov.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_copy.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_neg.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_add.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sub.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_mul.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq2.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_invert.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnegative.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnonzero.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_frombytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_pow22523.o
CC(target) Release/obj.target/ed25519/src/ed25519/sc_reduce.o
CC(target) Release/obj.target/ed25519/src/ed25519/sc_muladd.o
CXX(target) Release/obj.target/ed25519/src/ed25519.o
../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE MakeKeypair(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ed25519.cc:19:98: error: no matching function for call to ‘v8::Value::ToObject()’
19 | if ((info.Length() < 1) || (!Buffer::HasInstance(info[0])) || (Buffer::Length(info[0]->ToObject()) != 32)) {
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:22:77: error: no matching function for call to ‘v8::Value::ToObject()’
22 | const unsigned char* seed = (unsigned char*)Buffer::Data(info[0]->ToObject());
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:35:63: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’
35 | result->Set(Nan::New("publicKey").ToLocalChecked(), publicKey);
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/ed25519.cc:36:65: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Object>&)’
36 | result->Set(Nan::New("privateKey").ToLocalChecked(), privateKey);
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Sign(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ed25519.cc:53:69: error: no matching function for call to ‘v8::Value::ToObject()’
53 | if ((info.Length() < 2) || (!Buffer::HasInstance(info[0]->ToObject()))) {
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:56:74: error: no matching function for call to ‘v8::Value::ToObject()’
56 | if ((Buffer::HasInstance(info[1])) && (Buffer::Length(info[1]->ToObject()) == 32)) {
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:57:72: error: no matching function for call to ‘v8::Value::ToObject()’
57 | unsigned char* seed = (unsigned char*)Buffer::Data(info[1]->ToObject());
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:65:81: error: no matching function for call to ‘v8::Value::ToObject()’
65 | } else if ((Buffer::HasInstance(info[1])) && (Buffer::Length(info[1]->ToObject()) == 64)) {
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:66:63: error: no matching function for call to ‘v8::Value::ToObject()’
66 | privateKey = (unsigned char*)Buffer::Data(info[1]->ToObject());
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:68:53: error: no matching function for call to ‘v8::Value::ToObject()’
68 | Local<Value> privateKeyBuffer = info[1]->ToObject()->Get(Nan::New<String>("privateKey").ToLocalChecked())->ToObject();
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:76:2: error: ‘Handle’ was not declared in this scope
76 | Handle<Object> message = info[0]->ToObject();
| ^~~~~~
../src/ed25519.cc:76:15: error: expected primary-expression before ‘>’ token
76 | Handle<Object> message = info[0]->ToObject();
| ^
../src/ed25519.cc:76:17: error: ‘message’ was not declared in this scope
76 | Handle<Object> message = info[0]->ToObject();
| ^~~~~~~
../src/ed25519.cc:76:45: error: no matching function for call to ‘v8::Value::ToObject()’
76 | Handle<Object> message = info[0]->ToObject();
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Verify(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ed25519.cc:101:69: error: no matching function for call to ‘v8::Value::ToObject()’
101 | if ((info.Length() < 3) || (!Buffer::HasInstance(info[0]->ToObject())) ||
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:102:43: error: no matching function for call to ‘v8::Value::ToObject()’
102 | (!Buffer::HasInstance(info[1]->ToObject())) || (!Buffer::HasInstance(info[2]->ToObject()))) {
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:102:90: error: no matching function for call to ‘v8::Value::ToObject()’
102 | (!Buffer::HasInstance(info[1]->ToObject())) || (!Buffer::HasInstance(info[2]->ToObject()))) {
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:105:2: error: ‘Handle’ was not declared in this scope
105 | Handle<Object> message = info[0]->ToObject();
| ^~~~~~
../src/ed25519.cc:105:15: error: expected primary-expression before ‘>’ token
105 | Handle<Object> message = info[0]->ToObject();
| ^
../src/ed25519.cc:105:17: error: ‘message’ was not declared in this scope
105 | Handle<Object> message = info[0]->ToObject();
| ^~~~~~~
../src/ed25519.cc:105:45: error: no matching function for call to ‘v8::Value::ToObject()’
105 | Handle<Object> message = info[0]->ToObject();
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:106:15: error: expected primary-expression before ‘>’ token
106 | Handle<Object> signature = info[1]->ToObject();
| ^
../src/ed25519.cc:106:17: error: ‘signature’ was not declared in this scope; did you mean ‘sigreturn’?
106 | Handle<Object> signature = info[1]->ToObject();
| ^~~~~~~~~
| sigreturn
../src/ed25519.cc:106:47: error: no matching function for call to ‘v8::Value::ToObject()’
106 | Handle<Object> signature = info[1]->ToObject();
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc:107:15: error: expected primary-expression before ‘>’ token
107 | Handle<Object> publicKey = info[2]->ToObject();
| ^
../src/ed25519.cc:107:17: error: ‘publicKey’ was not declared in this scope
107 | Handle<Object> publicKey = info[2]->ToObject();
| ^~~~~~~~~
../src/ed25519.cc:107:47: error: no matching function for call to ‘v8::Value::ToObject()’
107 | Handle<Object> publicKey = info[2]->ToObject();
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/ed25519.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../src/ed25519.cc: At global scope:
../src/ed25519.cc:120:17: error: variable or field ‘InitModule’ declared void
120 | void InitModule(Handle<Object> exports) {
| ^~~~~~
../src/ed25519.cc:120:17: error: ‘Handle’ was not declared in this scope
../src/ed25519.cc:120:30: error: expected primary-expression before ‘>’ token
120 | void InitModule(Handle<Object> exports) {
| ^
../src/ed25519.cc:120:32: error: ‘exports’ was not declared in this scope
120 | void InitModule(Handle<Object> exports) {
| ^~~~~~~
In file included from ../src/ed25519.cc:1:
../src/ed25519.cc:126:22: error: ‘InitModule’ was not declared in this scope
126 | NODE_MODULE(ed25519, InitModule)
| ^~~~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:758:36: note: in definition of macro ‘NODE_MODULE_X’
758 | (node::addon_register_func) (regfunc), \
| ^~~~~~~
../src/ed25519.cc:126:1: note: in expansion of macro ‘NODE_MODULE’
126 | NODE_MODULE(ed25519, InitModule)
| ^~~~~~~~~~~
make: *** [ed25519.target.mk:153: Release/obj.target/ed25519/src/ed25519.o] Error 1
make: Leaving directory '/home/yurec/atomic-core/node_modules/ed25519/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/yurec/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 5.4.72-microsoft-standard-WSL2
gyp ERR! command "/home/yurec/.nvm/versions/node/v14.16.0/bin/node" "/home/yurec/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/yurec/atomic-core/node_modules/ed25519
gyp ERR! node -v v14.16.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
> sodium-native@3.2.1 install /home/yurec/atomic-core/node_modules/@zilliqa-js/blockchain/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"
> sodium-native@3.2.1 install /home/yurec/atomic-core/node_modules/@zilliqa-js/contract/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"
> sodium-native@3.2.1 install /home/yurec/atomic-core/node_modules/@zilliqa-js/subscriptions/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"
> sodium-native@3.2.1 install /home/yurec/atomic-core/node_modules/@zilliqa-js/zilliqa/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"
> bufferutil@4.0.3 install /home/yurec/atomic-core/node_modules/bufferutil
> node-gyp-build
> secp256k1@4.0.2 install /home/yurec/atomic-core/node_modules/ethereum-cryptography/node_modules/secp256k1
> node-gyp-build || exit 0
> keccak@3.0.1 install /home/yurec/atomic-core/node_modules/keccak
> node-gyp-build || exit 0
> secp256k1@4.0.2 install /home/yurec/atomic-core/node_modules/keythereum/node_modules/secp256k1
> node-gyp-build || exit 0
> argon2@0.24.1 install /home/yurec/atomic-core/node_modules/argon2
> node-gyp-build
> keccak@1.4.0 install /home/yurec/atomic-core/node_modules/@vechain/web3-eth-abi/node_modules/keccak
> npm run rebuild || echo "Keccak bindings compilation fail. Pure JS implementation will be used."
> keccak@1.4.0 rebuild /home/yurec/atomic-core/node_modules/@vechain/web3-eth-abi/node_modules/keccak
> node-gyp rebuild
make: Entering directory '/home/yurec/atomic-core/node_modules/@vechain/web3-eth-abi/node_modules/keccak/build'
CXX(target) Release/obj.target/keccak/src/addon.o
../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/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/addon.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
2863 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
| ^~~~~~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2863: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/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/addon.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
2863 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
| ^~~~~~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2863: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/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/addon.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
2863 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
| ^~~~~~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2863: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/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/addon.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
2863 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
| ^~~~~~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2863: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/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../src/addon.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
| ^~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
In file included from ../src/addon.cc:1:
../src/addon.cc: At global scope:
/home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:758: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]
758 | (node::addon_register_func) (regfunc), \
| ^
/home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:792:3: note: in expansion of macro ‘NODE_MODULE_X’
792 | 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)
| ^~~~~~~~~~~
make: *** [keccak.target.mk:129: Release/obj.target/keccak/src/addon.o] Error 1
make: Leaving directory '/home/yurec/atomic-core/node_modules/@vechain/web3-eth-abi/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/yurec/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 5.4.72-microsoft-standard-WSL2
gyp ERR! command "/home/yurec/.nvm/versions/node/v14.16.0/bin/node" "/home/yurec/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/yurec/atomic-core/node_modules/@vechain/web3-eth-abi/node_modules/keccak
gyp ERR! node -v v14.16.0
gyp ERR! node-gyp -v v5.1.0
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/yurec/.npm/_logs/2021-02-24T15_42_05_168Z-debug.log
Keccak bindings compilation fail. Pure JS implementation will be used.
> scrypt@6.0.3 install /home/yurec/atomic-core/node_modules/scrypt
> node-gyp rebuild
make: Entering directory '/home/yurec/atomic-core/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
CXX(target) Release/obj.target/scrypt/src/node-boilerplate/scrypt_params_async.o
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: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
39 | N(obj->Get(Nan::New("N").ToLocalChecked())->Uint32Value()),
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 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: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
40 | r(obj->Get(Nan::New("r").ToLocalChecked())->Uint32Value()),
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 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: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
41 | p(obj->Get(Nan::New("p").ToLocalChecked())->Uint32Value()) {}
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 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:1742:3: note: declared here
1742 | 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/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2861:39: note: candidate: ‘v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const’
2861 | V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
| ^~~~~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2861: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/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2861:39: note: candidate: ‘v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const’
2861 | V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
| ^~~~~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2861: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/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
2863 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
| ^~~~~~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2863: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/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2863:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
2863 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
| ^~~~~~~~~~~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:2863: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: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
23 | obj->Set(Nan::New("N").ToLocalChecked(), Nan::New<Integer>(logN));
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/node-boilerplate/scrypt_params_async.cc:24:64: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
24 | obj->Set(Nan::New("r").ToLocalChecked(), Nan::New<Integer>(r));
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/node-boilerplate/scrypt_params_async.cc:25:64: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
25 | obj->Set(Nan::New("p").ToLocalChecked(), Nan::New<Integer>(p));
| ^
In file included from /home/yurec/.cache/node-gyp/14.16.0/include/node/node.h:67,
from ../../nan/nan.h:56,
from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/yurec/.cache/node-gyp/14.16.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../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:1742:3: note: declared here
1742 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
make: *** [scrypt.target.mk:131: Release/obj.target/scrypt/src/node-boilerplate/scrypt_params_async.o] Error 1
make: Leaving directory '/home/yurec/atomic-core/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/yurec/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 5.4.72-microsoft-standard-WSL2
gyp ERR! command "/home/yurec/.nvm/versions/node/v14.16.0/bin/node" "/home/yurec/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/yurec/atomic-core/node_modules/scrypt
gyp ERR! node -v v14.16.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN atomic-core@0.69.0 license should be a valid SPDX license expression
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ed25519@0.0.4 (node_modules/ed25519):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ed25519@0.0.4 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
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/yurec/.npm/_logs/2021-02-24T15_42_08_295Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment