Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ npm install --save @blockstack/connect
> tiny-secp256k1@1.0.1 install /private/var/www/humans/node_modules/tiny-secp256k1
> node-gyp rebuild
CXX(target) Release/obj.target/secp256k1/native/addon.o
In file included from ../native/addon.cpp:4:
In file included from ../../nan/nan.h:221:
In file included from ../../nan/nan_converters.h:67:
../../nan/nan_converters_43_inl.h:22:1: warning: 'ToBoolean' is deprecated: ToBoolean can never throw. Use Local version.
[-Wdeprecated-declarations]
X(Boolean)
^
../../nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X'
val->To ## TYPE(isolate->GetCurrentContext()) \
^
<scratch space>:207:1: note: expanded from here
ToBoolean
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:2663:3: note: 'ToBoolean' has been explicitly marked deprecated here
V8_DEPRECATED("ToBoolean can never throw. Use Local version.",
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../native/addon.cpp:4:
In file included from ../../nan/nan.h:221:
In file included from ../../nan/nan_converters.h:67:
../../nan/nan_converters_43_inl.h:40:1: warning: 'BooleanValue' is deprecated: BooleanValue can never throw. Use Isolate version.
[-Wdeprecated-declarations]
X(bool, Boolean)
^
../../nan/nan_converters_43_inl.h:37:15: note: expanded from macro 'X'
return val->NAME ## Value(isolate->GetCurrentContext()); \
^
<scratch space>:214:1: note: expanded from here
BooleanValue
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:2701:3: note: 'BooleanValue' has been explicitly marked deprecated
here
V8_DEPRECATED("BooleanValue can never throw. Use Isolate version.",
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../native/addon.cpp:4:
In file included from ../../nan/nan.h:222:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'
return scope.Escape(v8::Function::New( isolate
^~~~~~~
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:186:7: note: candidate constructor (the implicit copy constructor)
not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument
class Local {
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:186:7: note: candidate constructor (the implicit move constructor)
not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:190:13: note: candidate template ignored: could not match
'Local<type-parameter-0-0>' against 'v8::Isolate *'
V8_INLINE Local(Local<S> that)
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:4276:22: note: passing argument to parameter 'context' here
Local<Context> context, FunctionCallback callback,
^
In file included from ../native/addon.cpp:4:
../../nan/nan.h:1064:44: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:2683:3: note: 'ToString' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version",
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../native/addon.cpp:4:
../../nan/nan.h:1855:28: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version",
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../native/addon.cpp:4:
../../nan/nan.h:1861:28: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(key, value);
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version",
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../native/addon.cpp:4:
../../nan/nan.h:1867:28: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(index, value);
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:3507:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version",
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../native/addon.cpp:4:
../../nan/nan.h:1873:32: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Get(New(key).ToLocalChecked()));
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../native/addon.cpp:4:
../../nan/nan.h:1879:48: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(key));
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../native/addon.cpp:4:
../../nan/nan.h:1884:48: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(index));
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:3557:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../native/addon.cpp:4:
In file included from ../../nan/nan.h:2698:
../../nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object,
v8::NonCopyablePersistentTraits<v8::Object> >'
assert(persistent().IsNearDeath());
~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from ../native/addon.cpp:4:
In file included from ../../nan/nan.h:2698:
../../nan/nan_object_wrap.h:67:18: warning: 'MarkIndependent' is deprecated: Weak objects are always considered independent. Use TracedGlobal
when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
persistent().MarkIndependent();
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:566:3: note: 'MarkIndependent' has been explicitly marked deprecated
here
V8_DEPRECATED(
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../native/addon.cpp:4:
In file included from ../../nan/nan.h:2698:
../../nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object,
v8::NonCopyablePersistentTraits<v8::Object> >'
assert(wrap->handle_.IsNearDeath());
~~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
../native/addon.cpp:239:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
secp256k1_ec_privkey_negate(context, tweak_negated); // returns 1 always
^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
../native/addon.cpp:284:21: error: no matching member function for call to 'BooleanValue'
strict = info[3]->BooleanValue();
~~~~~~~~~^~~~~~~~~~~~
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:2699:8: note: candidate function not viable: requires single
argument 'isolate', but no arguments were provided
bool BooleanValue(Isolate* isolate) const;
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:2702:51: note: candidate function not viable: requires single
argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
^
../native/addon.cpp:81:23: error: no matching member function for call to 'BooleanValue'
return info[index]->BooleanValue() ? SECP256K1_EC_COMPRESSED : SECP256K1_EC_UNCOMPRESSED;
~~~~~~~~~~~~~^~~~~~~~~~~~
../native/addon.cpp:141:21: note: in instantiation of function template specialization '(anonymous namespace)::assumeCompression<2,
Nan::FunctionCallbackInfo<v8::Value>, v8::Local<v8::Object> >' requested here
const auto flags = assumeCompression<2>(info, pA);
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:2699:8: note: candidate function not viable: requires single
argument 'isolate', but no arguments were provided
bool BooleanValue(Isolate* isolate) const;
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:2702:51: note: candidate function not viable: requires single
argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
^
../native/addon.cpp:79:21: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (info.Length() <= index) return __isPointCompressed(p) ? SECP256K1_EC_COMPRESSED : SECP256K1_EC_UNCOMPRESSED;
~~~~~~~~~~~~~ ^ ~~~~~
../native/addon.cpp:81:23: error: no matching member function for call to 'BooleanValue'
return info[index]->BooleanValue() ? SECP256K1_EC_COMPRESSED : SECP256K1_EC_UNCOMPRESSED;
~~~~~~~~~~~~~^~~~~~~~~~~~
../native/addon.cpp:173:21: note: in instantiation of function template specialization '(anonymous namespace)::assumeCompression<1,
Nan::FunctionCallbackInfo<v8::Value>, v8::Local<v8::Object> >' requested here
const auto flags = assumeCompression<1>(info, p);
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:2699:8: note: candidate function not viable: requires single
argument 'isolate', but no arguments were provided
bool BooleanValue(Isolate* isolate) const;
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:2702:51: note: candidate function not viable: requires single
argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
^
../native/addon.cpp:79:21: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (info.Length() <= index) return __isPointCompressed(p) ? SECP256K1_EC_COMPRESSED : SECP256K1_EC_UNCOMPRESSED;
~~~~~~~~~~~~~ ^ ~~~~~
../native/addon.cpp:88:23: error: no matching member function for call to 'BooleanValue'
return info[index]->BooleanValue() ? SECP256K1_EC_COMPRESSED : SECP256K1_EC_UNCOMPRESSED;
~~~~~~~~~~~~~^~~~~~~~~~~~
../native/addon.cpp:188:21: note: in instantiation of function template specialization '(anonymous namespace)::assumeCompression<1,
Nan::FunctionCallbackInfo<v8::Value> >' requested here
const auto flags = assumeCompression<1>(info);
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:2699:8: note: candidate function not viable: requires single
argument 'isolate', but no arguments were provided
bool BooleanValue(Isolate* isolate) const;
^
/Users/markhendrickson/Library/Caches/node-gyp/12.18.0/include/node/v8.h:2702:51: note: candidate function not viable: requires single
argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
^
../native/addon.cpp:86:21: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (info.Length() <= index) return SECP256K1_EC_COMPRESSED;
~~~~~~~~~~~~~ ^ ~~~~~
14 warnings and 7 errors generated.
make: *** [Release/obj.target/secp256k1/native/addon.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/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:275:12)
gyp ERR! System Darwin 19.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/www/humans/node_modules/tiny-secp256k1
gyp ERR! node -v v12.18.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN @blockstack/connect@2.7.5 requires a peer of react@^16.31.1 but none is installed. You must install peer dependencies yourself.
npm WARN @blockstack/connect@2.7.5 requires a peer of react-dom@^16.13.1 but none is installed. You must install peer dependencies yourself.
npm WARN styled-components@5.1.1 requires a peer of react@>= 16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN styled-components@5.1.1 requires a peer of react-dom@>= 16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN use-onclickoutside@0.3.1 requires a peer of react@^16.8.0-alpha.1 but none is installed. You must install peer dependencies yourself.
npm WARN use-events@1.4.1 requires a peer of react@>=16.8.1 but none is installed. You must install peer dependencies yourself.
npm WARN @blockstack/ui@1.6.3 requires a peer of react@16.x but none is installed. You must install peer dependencies yourself.
npm WARN @blockstack/ui@1.6.3 requires a peer of react-dom@16.x but none is installed. You must install peer dependencies yourself.
npm WARN prism-react-renderer@1.1.1 requires a peer of react@>=0.14.9 but none is installed. You must install peer dependencies yourself.
npm WARN react-spring@8.0.27 requires a peer of react@>= 16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-spring@8.0.27 requires a peer of react-dom@>= 16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group@4.4.1 requires a peer of react@>=16.6.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group@4.4.1 requires a peer of react-dom@>=16.6.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/rect@0.10.4 requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/rect@0.10.4 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/auto-id@0.10.4 requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/auto-id@0.10.4 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/alert@0.10.4 requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/alert@0.10.4 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/visually-hidden@0.10.4 requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/visually-hidden@0.10.4 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/utils@0.10.4 requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/utils@0.10.4 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN use-latest@1.0.0 requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tiny-secp256k1@1.0.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tiny-secp256k1@1.0.1 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! /Users/markhendrickson/.npm/_logs/2020-06-22T16_23_07_858Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.