hypercore-protocol / hyperdrive-daemon

Hyperdrive, batteries included.
MIT License
156 stars 24 forks source link

Can't compile and install on Mojava or Catalina #3

Closed raguay closed 5 years ago

raguay commented 5 years ago

Hi,

I'm trying to install it on my two systems. One is running the latest Catalina, the other is Majova (not sure if I'm spelling them right). Both systems are getting the following errors:

/usr/local/bin/ginstall -c -m 644 libsodium.pc '/usr/local/lib/node_modules/hyperdrive-daemon/node_modules/sodium-native/tmp/lib/pkgconfig'
  CXX(target) Release/obj.target/sodium/binding.o
../binding.cc:23:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER(info[0], buf)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:29:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER(info[0], buf)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:35:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER(info[0], buf)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:49:3: error: too few arguments to function call, single argument 'context' was not
      specified
  ASSERT_UINT_BOUNDS(info[0], size, 0, 0, `buffer.constants.MAX_LENGTH`, node::Buffer::kMaxLength)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:95:36: note: expanded from macro 'ASSERT_UINT_BOUNDS'
  int64_t var = name->IntegerValue(); \
                ~~~~~~~~~~~~~~~~~~ ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2565:3: note: 'IntegerValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../binding.cc:71:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER(info[0], buf)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:77:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER(info[0], buf)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:83:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER(info[0], buf)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:95:3: error: too few arguments to function call, single argument 'context' was not
      specified
  ASSERT_UINT_BOUNDS(info[0], upper_bound, 0, 0, 0xffffffff, 0xffffffff)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:95:36: note: expanded from macro 'ASSERT_UINT_BOUNDS'
  int64_t var = name->IntegerValue(); \
                ~~~~~~~~~~~~~~~~~~ ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2565:3: note: 'IntegerValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../binding.cc:101:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER(info[0], random)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:107:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER(info[0], random)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:108:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER_MIN_LENGTH(info[1], seed, randombytes_SEEDBYTES, randombytes_seedbytes())
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:73:3: note: expanded from macro 'ASSERT_BUFFER_MIN_LENGTH'
  ASSERT_BUFFER_SET_LENGTH(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:69:3: note: expanded from macro 'ASSERT_BUFFER_SET_LENGTH'
  ASSERT_BUFFER(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:116:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER_SET_LENGTH(info[0], b1)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:69:3: note: expanded from macro 'ASSERT_BUFFER_SET_LENGTH'
  ASSERT_BUFFER(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:117:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER_MIN_LENGTH(info[1], b2, `b1.length`, b1_length)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:73:3: note: expanded from macro 'ASSERT_BUFFER_MIN_LENGTH'
  ASSERT_BUFFER_SET_LENGTH(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:69:3: note: expanded from macro 'ASSERT_BUFFER_SET_LENGTH'
  ASSERT_BUFFER(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:123:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER_SET_LENGTH(info[0], b1)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:69:3: note: expanded from macro 'ASSERT_BUFFER_SET_LENGTH'
  ASSERT_BUFFER(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:124:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER_MIN_LENGTH(info[1], b2, `b1.length`, b1_length)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:73:3: note: expanded from macro 'ASSERT_BUFFER_MIN_LENGTH'
  ASSERT_BUFFER_SET_LENGTH(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:69:3: note: expanded from macro 'ASSERT_BUFFER_SET_LENGTH'
  ASSERT_BUFFER(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:130:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER_SET_LENGTH(info[0], a)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:69:3: note: expanded from macro 'ASSERT_BUFFER_SET_LENGTH'
  ASSERT_BUFFER(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:131:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER_MIN_LENGTH(info[1], b, `a.length`, a_length)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:73:3: note: expanded from macro 'ASSERT_BUFFER_MIN_LENGTH'
  ASSERT_BUFFER_SET_LENGTH(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:69:3: note: expanded from macro 'ASSERT_BUFFER_SET_LENGTH'
  ASSERT_BUFFER(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:137:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER_SET_LENGTH(info[0], a)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:69:3: note: expanded from macro 'ASSERT_BUFFER_SET_LENGTH'
  ASSERT_BUFFER(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../binding.cc:138:3: error: no matching member function for call to 'ToObject'
  ASSERT_BUFFER_MIN_LENGTH(info[1], b, `a.length`, a_length)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:73:3: note: expanded from macro 'ASSERT_BUFFER_MIN_LENGTH'
  ASSERT_BUFFER_SET_LENGTH(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:69:3: note: expanded from macro 'ASSERT_BUFFER_SET_LENGTH'
  ASSERT_BUFFER(name, var) \
  ^~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:66:37: note: expanded from macro 'ASSERT_BUFFER'
  v8::Local<v8::Object> var = name->ToObject();
                              ~~~~~~^~~~~~~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2532:44: note: candidate function not viable:
      requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2546:31: note: candidate function not viable:
      requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/sodium/binding.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:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:200:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/Cellar/node/12.5.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/hyperdrive-daemon/node_modules/sodium-native
gyp ERR! node -v v12.5.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 

> utp-native@2.1.4 install /usr/local/lib/node_modules/hyperdrive-daemon/node_modules/utp-native
> node-gyp-build

> fuse-native@1.1.0 install /usr/local/lib/node_modules/hyperdrive-daemon/node_modules/fuse-native
> node-gyp-build

  CXX(target) Release/obj.target/fuse/fuse-bindings.o
../fuse-bindings.cc:741:33: error: too few arguments to function call, single argument 'context'
      was not specified
  double ms = date->NumberValue();
              ~~~~~~~~~~~~~~~~~ ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2564:3: note: 'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../fuse-bindings.cc:750:12: error: no matching member function for call to 'Has'
  if (obj->Has(LOCAL_STRING("dev"))) stat->st_dev = obj->Get(LOCAL_STRING("dev"))->NumberValue();
      ~~~~~^~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3449:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
                                    ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3455:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
                                    ^
../fuse-bindings.cc:750:58: warning: 'Get' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  if (obj->Has(LOCAL_STRING("dev"))) stat->st_dev = obj->Get(LOCAL_STRING("dev"))->NumberValue();
                                                         ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3412:3: note: 'Get' has been explicitly marked
      deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro
      'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../fuse-bindings.cc:750:96: error: too few arguments to function call, single argument 'context'
      was not specified
  if (obj->Has(LOCAL_STRING("dev"))) stat->st_dev = obj->Get(LOCAL_STRING("dev"))->NumberValue();
                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2564:3: note: 'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../fuse-bindings.cc:751:12: error: no matching member function for call to 'Has'
  if (obj->Has(LOCAL_STRING("ino"))) stat->st_ino = obj->Get(LOCAL_STRING("ino"))->NumberValue();
      ~~~~~^~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3449:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
                                    ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3455:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
                                    ^
../fuse-bindings.cc:751:58: warning: 'Get' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  if (obj->Has(LOCAL_STRING("ino"))) stat->st_ino = obj->Get(LOCAL_STRING("ino"))->NumberValue();
                                                         ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3412:3: note: 'Get' has been explicitly marked
      deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro
      'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../fuse-bindings.cc:751:96: error: too few arguments to function call, single argument 'context'
      was not specified
  if (obj->Has(LOCAL_STRING("ino"))) stat->st_ino = obj->Get(LOCAL_STRING("ino"))->NumberValue();
                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2564:3: note: 'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../fuse-bindings.cc:752:12: error: no matching member function for call to 'Has'
  if (obj->Has(LOCAL_STRING("mode"))) stat->st_mode = obj->Get(LOCAL_STRING("mode"))->Uint3...
      ~~~~~^~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3449:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
                                    ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3455:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
                                    ^
../fuse-bindings.cc:752:60: warning: 'Get' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  if (obj->Has(LOCAL_STRING("mode"))) stat->st_mode = obj->Get(LOCAL_STRING("mode"))->Uint3...
                                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3412:3: note: 'Get' has been explicitly marked
      deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro
      'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../fuse-bindings.cc:752:99: error: too few arguments to function call, single argument 'context'
      was not specified
  ...stat->st_mode = obj->Get(LOCAL_STRING("mode"))->Uint32Value();
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2567:3: note: 'Uint32Value' declared here
  V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../fuse-bindings.cc:753:12: error: no matching member function for call to 'Has'
  if (obj->Has(LOCAL_STRING("nlink"))) stat->st_nlink = obj->Get(LOCAL_STRING("nlink"))->Nu...
      ~~~~~^~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3449:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
                                    ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3455:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
                                    ^
../fuse-bindings.cc:753:62: warning: 'Get' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  if (obj->Has(LOCAL_STRING("nlink"))) stat->st_nlink = obj->Get(LOCAL_STRING("nlink"))->Nu...
                                                             ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3412:3: note: 'Get' has been explicitly marked
      deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro
      'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../fuse-bindings.cc:753:102: error: too few arguments to function call, single argument 'context'
      was not specified
  ...stat->st_nlink = obj->Get(LOCAL_STRING("nlink"))->NumberValue();
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2564:3: note: 'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../fuse-bindings.cc:754:12: error: no matching member function for call to 'Has'
  if (obj->Has(LOCAL_STRING("uid"))) stat->st_uid = obj->Get(LOCAL_STRING("uid"))->NumberValue();
      ~~~~~^~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3449:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
                                    ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3455:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
                                    ^
../fuse-bindings.cc:754:58: warning: 'Get' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  if (obj->Has(LOCAL_STRING("uid"))) stat->st_uid = obj->Get(LOCAL_STRING("uid"))->NumberValue();
                                                         ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3412:3: note: 'Get' has been explicitly marked
      deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro
      'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../fuse-bindings.cc:754:96: error: too few arguments to function call, single argument 'context'
      was not specified
  if (obj->Has(LOCAL_STRING("uid"))) stat->st_uid = obj->Get(LOCAL_STRING("uid"))->NumberValue();
                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2564:3: note: 'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../fuse-bindings.cc:755:12: error: no matching member function for call to 'Has'
  if (obj->Has(LOCAL_STRING("gid"))) stat->st_gid = obj->Get(LOCAL_STRING("gid"))->NumberValue();
      ~~~~~^~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3449:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
                                    ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3455:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
                                    ^
../fuse-bindings.cc:755:58: warning: 'Get' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  if (obj->Has(LOCAL_STRING("gid"))) stat->st_gid = obj->Get(LOCAL_STRING("gid"))->NumberValue();
                                                         ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3412:3: note: 'Get' has been explicitly marked
      deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro
      'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../fuse-bindings.cc:755:96: error: too few arguments to function call, single argument 'context'
      was not specified
  if (obj->Has(LOCAL_STRING("gid"))) stat->st_gid = obj->Get(LOCAL_STRING("gid"))->NumberValue();
                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2564:3: note: 'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../fuse-bindings.cc:756:12: error: no matching member function for call to 'Has'
  if (obj->Has(LOCAL_STRING("rdev"))) stat->st_rdev = obj->Get(LOCAL_STRING("rdev"))->Numbe...
      ~~~~~^~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3449:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
                                    ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3455:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
                                    ^
../fuse-bindings.cc:756:60: warning: 'Get' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  if (obj->Has(LOCAL_STRING("rdev"))) stat->st_rdev = obj->Get(LOCAL_STRING("rdev"))->Numbe...
                                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3412:3: note: 'Get' has been explicitly marked
      deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro
      'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../fuse-bindings.cc:756:99: error: too few arguments to function call, single argument 'context'
      was not specified
  ...stat->st_rdev = obj->Get(LOCAL_STRING("rdev"))->NumberValue();
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2564:3: note: 'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../fuse-bindings.cc:757:12: error: no matching member function for call to 'Has'
  if (obj->Has(LOCAL_STRING("size"))) stat->st_size = obj->Get(LOCAL_STRING("size"))->Numbe...
      ~~~~~^~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3449:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
                                    ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3455:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
                                    ^
../fuse-bindings.cc:757:60: warning: 'Get' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  if (obj->Has(LOCAL_STRING("size"))) stat->st_size = obj->Get(LOCAL_STRING("size"))->Numbe...
                                                           ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3412:3: note: 'Get' has been explicitly marked
      deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro
      'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../fuse-bindings.cc:757:99: error: too few arguments to function call, single argument 'context'
      was not specified
  ...stat->st_size = obj->Get(LOCAL_STRING("size"))->NumberValue();
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2564:3: note: 'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../fuse-bindings.cc:758:12: error: no matching member function for call to 'Has'
  if (obj->Has(LOCAL_STRING("blocks"))) stat->st_blocks = obj->Get(LOCAL_STRING("blocks"))-...
      ~~~~~^~~
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3449:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
                                    ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3455:37: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
                                    ^
../fuse-bindings.cc:758:64: warning: 'Get' is deprecated: Use maybe version
      [-Wdeprecated-declarations]
  if (obj->Has(LOCAL_STRING("blocks"))) stat->st_blocks = obj->Get(LOCAL_STRING("blocks"))-...
                                                               ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:3412:3: note: 'Get' has been explicitly marked
      deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro
      'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../fuse-bindings.cc:758:105: error: too few arguments to function call, single argument 'context'
      was not specified
  ...stat->st_blocks = obj->Get(LOCAL_STRING("blocks"))->NumberValue();
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8.h:2564:3: note: 'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
  ^
/Users/raguay/.node-gyp/12.5.0/include/node/v8config.h:351:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
andrewosh commented 5 years ago

Hey @raguay, thanks for the issue.

The root cause here is that sodium-native does not currently support Node 12. If you downgrade your Node version, this build issue will be resolved.

A sodium update for Node 12 is in the works, so this should be fixed soon. Going to close this in the meantime, as it's being tracked elsewhere.

raguay commented 5 years ago

Oh, okay. I'm wait until it updates. I new version 12 for other things and I really don't want to have multiple versions on my system.

On Thu, Jul 11, 2019 at 7:58 PM Andrew Osheroff notifications@github.com wrote:

Hey @raguay https://github.com/raguay, thanks for the issue.

The root cause here is that sodium-native https://github.com/sodium-friends/sodium-native does not currently support https://github.com/sodium-friends/sodium-native/issues/95 Node

  1. If you downgrade your Node version, this build issue will be resolved.

A sodium update for Node 12 is in the works, so this should be fixed soon. Going to close this in the meantime, as it's being tracked elsewhere.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andrewosh/hyperdrive-daemon/issues/3?email_source=notifications&email_token=AAS7JR26EWS5ZK6H5DJX72DP64U6TA5CNFSM4IATF242YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZWTRZA#issuecomment-510474468, or mute the thread https://github.com/notifications/unsubscribe-auth/AAS7JR3FGFZ64UH5NPUN4ZTP64U6TANCNFSM4IATF24Q .

andrewosh commented 5 years ago

Sounds good. If you'd still like to try it out, nvm makes it really simple to install/switch between multiple Node versions. Anything earlier than 12 should work.

raguay commented 5 years ago

Yea. I've used it before. But, my system is a low disk space laptop. That creates a lot of extra files for each new version. Very handy, but hard to keep the disk space low enough. I just can't afford the upgrade.

On Thu, Jul 11, 2019 at 8:02 PM Andrew Osheroff notifications@github.com wrote:

Sounds good. If you'd still like to try it out, nvm https://github.com/nvm-sh/nvm makes it really simple to install/switch between multiple Node versions. Anything earlier than 12 should work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andrewosh/hyperdrive-daemon/issues/3?email_source=notifications&email_token=AAS7JR7IICJ4WDSQZUO4EQLP64VN5A5CNFSM4IATF242YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZWT4OA#issuecomment-510475832, or mute the thread https://github.com/notifications/unsubscribe-auth/AAS7JR74DSOIBO6VMKIWV3DP64VN5ANCNFSM4IATF24Q .