Level / level

Universal abstract-level database for Node.js and browsers.
MIT License
1.55k stars 106 forks source link

fails to build on node 12 #148

Closed bruce-solar closed 5 years ago

bruce-solar commented 5 years ago

I'm trying to build level on node 12.1.0 and 12.2.0 on both ubuntu 18.04 and debian stretch. There are no prebuilt binaries so it tries to compile source and fails at multiple places due to

error: no matching function for call to <various>

Here's a log of the output (sorry if it's more than needed).

root@471002a74cee:~/user npm install level

leveldown@4.0.2 install /user/node_modules/leveldown prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=12.2.0 runtime=node arch=x64 libc= platform=linux) make: Entering directory '/root/appoptics-apm-node/node_modules/leveldown/build' CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_iter.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/filename.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/dbformat.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_reader.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_writer.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/memtable.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/repair.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/table_cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_edit.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_set.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/write_batch.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix_sse.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/filter_block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/format.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/merger.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/two_level_iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/arena.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/bloom.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/coding.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/comparator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/crc32c.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/filter_policy.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/hash.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/logging.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/options.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/status.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env_posix.o AR(target) Release/obj.target/deps/leveldb/leveldb.a COPY Release/leveldb.a CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy-sinksource.o CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy-stubs-internal.o CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy.o AR(target) Release/obj.target/deps/snappy/snappy.a COPY Release/snappy.a CXX(target) Release/obj.target/leveldown/src/batch.o In file included from ../node_modules/nan/nan_converters.h:67:0, from ../node_modules/nan/nan.h:222, from ../src/batch.cc:3: ../node_modules/nan/nan_converters_43_inl.h: In static member function 'static Nan::imp::ToFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Local)': ../node_modules/nan/nan_converters_43_inl.h:18:51: warning: 'v8::MaybeLocal v8::Value::ToBoolean(v8::Local) const' is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations] val->To ## TYPE(isolate->GetCurrentContext()) \ ^ ../node_modules/nan/nan_converters_43_inl.h:22:1: note: in expansion of macro 'X' X(Boolean) ^ In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2524:63: note: declared here V8_WARN_UNUSED_RESULT MaybeLocal ToBoolean( ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../node_modules/nan/nan_converters.h:67:0, from ../node_modules/nan/nan.h:222, from ../src/batch.cc:3: ../node_modules/nan/nan_converters_43_inl.h: In static member function 'static Nan::imp::ValueFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Local)': ../node_modules/nan/nan_converters_43_inl.h:37:57: warning: 'v8::Maybe v8::Value::BooleanValue(v8::Local) const' is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations] return val->NAME ## Value(isolate->GetCurrentContext()); \ ^ ../node_modules/nan/nan_converters_43_inl.h:40:1: note: in expansion of macro 'X' X(bool, Boolean) ^ In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2562:51: note: declared here V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^ /root/.node-gyp/12.2.0/include/node/v8config.h:307:3: note: in definition of macro 'V8_DEPRECATED' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:223, from ../src/batch.cc:3: ../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(v8::Local)': ../node_modules/nan/nan_implementation_12_inl.h:356:37: error: no matching function for call to 'v8::StringObject::New(v8::Local&)' return v8::StringObject::New(value).As(); ^ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:5380:23: note: candidate: static v8::Local v8::StringObject::New(v8::Isolate, v8::Local) static Local New(Isolate isolate, Local value); ^~~ /root/.node-gyp/12.2.0/include/node/v8.h:5380:23: note: candidate expects 2 arguments, 1 provided In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:223, from ../src/batch.cc:3: ../node_modules/nan/nan_implementation_12_inl.h:356:58: error: expected primary-expression before '>' token return v8::StringObject::New(value).As(); ^ ../node_modules/nan/nan_implementation_12_inl.h:356:60: error: expected primary-expression before ')' token return v8::StringObject::New(value).As(); ^ In file included from /usr/include/c++/6/cassert:44:0, from /root/.node-gyp/12.2.0/include/node/node_object_wrap.h:26, from ../node_modules/nan/nan.h:55, from ../src/batch.cc:3: ../node_modules/nan/nan_object_wrap.h: In destructor 'virtual Nan::ObjectWrap::~ObjectWrap()': ../node_modules/nan/nan_object_wrap.h:24:25: error: 'class Nan::Persistent' has no member named 'IsNearDeath' assert(persistent().IsNearDeath()); ^ ../node_modules/nan/nan_object_wrap.h: In static member function 'static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo&)': ../node_modules/nan/nan_objectwrap.h:127:26: error: 'class Nan::Persistent' has no member named 'IsNearDeath' assert(wrap->handle.IsNearDeath()); ^ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h: In function 'size_t StringOrBufferLength(v8::Local)': ../src/leveldown.h:16:26: error: no matching function for call to 'v8::Value::ToObject()' return (!obj->ToObject().IsEmpty() ^ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:17:48: error: no matching function for call to 'v8::Value::ToObject()' && node::Buffer::HasInstance(obj->ToObject())) ^ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:18:42: error: no matching function for call to 'v8::Value::ToObject()' ? node::Buffer::Length(obj->ToObject()) ^ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:19:21: error: no matching function for call to 'v8::Value::ToString()' : obj->ToString()->Utf8Length(); ^ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2528:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToString( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2528:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2544:35: note: candidate: v8::Local v8::Value::ToString(v8::Isolate) const Local ToString(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2544:35: note: candidate expects 1 argument, 0 provided Local ToString(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h: In function 'void DisposeStringOrBufferFromSlice(Nan::Persistent&, leveldb::Slice)': ../src/leveldown.h:30:110: warning: 'v8::Local v8::Object::Get(v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] an::New(handle)->Get(Nan::New("obj").ToLocalChecked()); ^ In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:3412:55: note: declared here V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/batch.cc:5:0: ../src/database.h: In constructor 'leveldown::Reference::Reference(v8::Local, leveldb::Slice)': ../src/database.h:31:52: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] _obj->Set(Nan::New("obj").ToLocalChecked(), obj); ^ In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:3359:26: note: declared here bool Set(Local key, Local value)); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/batch.cc:8:0: ../src/common.h: In function 'bool leveldown::BooleanOptionValue(v8::Local, const char, bool)': ../src/common.h:19:24: error: no matching function for call to 'v8::Object::Has(v8::Local&)' && options->Has(key) ^ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:3449:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT Maybe Has(Local context, ^~~ /root/.node-gyp/12.2.0/include/node/v8.h:3449:37: note: candidate expects 2 arguments, 1 provided /root/.node-gyp/12.2.0/include/node/v8.h:3455:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT Maybe Has(Local context, uint32_t index); ^~~ /root/.node-gyp/12.2.0/include/node/v8.h:3455:37: note: candidate expects 2 arguments, 1 provided In file included from ../src/batch.cc:8:0: ../src/common.h:20:23: warning: 'v8::Local v8::Object::Get(v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] ? options->Get(key)->BooleanValue() ^ In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:3412:55: note: declared here V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/batch.cc:8:0: ../src/common.h:20:39: error: no matching function for call to 'v8::Value::BooleanValue()' ? options->Get(key)->BooleanValue() ^ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2559:8: note: candidate: bool v8::Value::BooleanValue(v8::Isolate) const bool BooleanValue(Isolate isolate) const; ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2559:8: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2562:51: note: candidate: v8::Maybe v8::Value::BooleanValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^ /root/.node-gyp/12.2.0/include/node/v8config.h:307:3: note: in definition of macro 'V8_DEPRECATED' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2562:51: note: candidate expects 1 argument, 0 provided V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^ /root/.node-gyp/12.2.0/include/node/v8config.h:307:3: note: in definition of macro 'V8_DEPRECATED' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/batch.cc:8:0: ../src/common.h: In function 'uint32_t leveldown::UInt32OptionValue(v8::Local, const char, uint32_t)': ../src/common.h:30:24: error: no matching function for call to 'v8::Object::Has(v8::Local&)' && options->Has(key) ^ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:3449:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT Maybe Has(Local context, ^~~ /root/.node-gyp/12.2.0/include/node/v8.h:3449:37: note: candidate expects 2 arguments, 1 provided /root/.node-gyp/12.2.0/include/node/v8.h:3455:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT Maybe Has(Local context, uint32_t index); ^~~ /root/.node-gyp/12.2.0/include/node/v8.h:3455:37: note: candidate expects 2 arguments, 1 provided In file included from ../src/batch.cc:8:0: ../src/common.h:31:24: warning: 'v8::Local v8::Object::Get(v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] && options->Get(key)->IsNumber() ^ In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:3412:55: note: declared here V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/batch.cc:8:0: ../src/common.h:32:23: warning: 'v8::Local v8::Object::Get(v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] ? options->Get(key)->Uint32Value() ^ In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:3412:55: note: declared here V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/batch.cc:8:0: ../src/common.h:32:38: error: no matching function for call to 'v8::Value::Uint32Value()' ? options->Get(key)->Uint32Value() ^ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2567:41: note: candidate: v8::Maybe v8::Value::Uint32Value(v8::Local) const V8_WARN_UNUSED_RESULT Maybe Uint32Value( ^~~ /root/.node-gyp/12.2.0/include/node/v8.h:2567:41: note: candidate expects 1 argument, 0 provided ../src/batch.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE leveldown::Batch::New(Nan::NAN_METHOD_ARGS_TYPE)': ../src/batch.cc:42:76: error: no matching function for call to 'v8::Value::ToObject()' Database database = Nan::ObjectWrap::Unwrap(info[0]->ToObject()); ^ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ ../src/batch.cc: In static member function 'static v8::Local leveldown::Batch::NewInstance(v8::Local, v8::Local)': ../src/batch.cc:72:69: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()' maybeInstance = Nan::NewInstance(constructorHandle->GetFunction(), 1, argv); ^ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:5947:46: note: candidate: v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( ^~~ /root/.node-gyp/12.2.0/include/node/v8.h:5947:46: note: candidate expects 1 argument, 0 provided ../src/batch.cc:75:69: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()' maybeInstance = Nan::NewInstance(constructorHandle->GetFunction(), 2, argv); ^ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:5947:46: note: candidate: v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( ^~~ /root/.node-gyp/12.2.0/include/node/v8.h:5947:46: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/batch.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE leveldown::Batch::Put(Nan::NAN_METHOD_ARGS_TYPE)': ../src/leveldown.h:53:30: error: no matching function for call to 'v8::Value::ToObject()' } else if (!from->ToObject().IsEmpty() \ ^ ../src/batch.cc:91:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:54:51: error: no matching function for call to 'v8::Value::ToObject()' && node::Buffer::HasInstance(from->ToObject())) { \ ^ ../src/batch.cc:91:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATESOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:55:53: error: no matching function for call to 'v8::Value::ToObject()' to ## Sz = node::Buffer::Length(from->ToObject()); \ ^ ../src/batch.cc:91:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATESOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:56:51: error: no matching function for call to 'v8::Value::ToObject()' to ## Ch = node::Buffer::Data(from->ToObject()); \ ^ ../src/batch.cc:91:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:58:54: error: no matching function for call to 'v8::Value::ToString()' v8::Local to ## Str = from->ToString(); \ ^ ../src/batch.cc:91:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2528:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToString( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2528:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2544:35: note: candidate: v8::Local v8::Value::ToString(v8::Isolate) const Local ToString(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2544:35: note: candidate expects 1 argument, 0 provided Local ToString(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATESOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:59:39: error: no matching function for call to 'v8::String::Utf8Length()' to ## Sz = to ## Str->Utf8Length(); \ ^ ../src/batch.cc:91:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2678:7: note: candidate: int v8::String::Utf8Length(v8::Isolate) const int Utf8Length(Isolate isolate) const; ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2678:7: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:65:5: error: no matching function for call to 'v8::String::WriteUtf8(char&, int, NULL, v8::String::WriteOptions)' ); \ ^ ../src/batch.cc:91:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2738:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate, char, int, int, int) const int WriteUtf8(Isolate isolate, char buffer, int length = -1, ^~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2738:7: note: no known conversion for argument 1 from 'char' to 'v8::Isolate' In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:53:30: error: no matching function for call to 'v8::Value::ToObject()' } else if (!from->ToObject().IsEmpty() \ ^ ../src/batch.cc:92:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:54:51: error: no matching function for call to 'v8::Value::ToObject()' && node::Buffer::HasInstance(from->ToObject())) { \ ^ ../src/batch.cc:92:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATESOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:55:53: error: no matching function for call to 'v8::Value::ToObject()' to ## Sz = node::Buffer::Length(from->ToObject()); \ ^ ../src/batch.cc:92:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATESOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:56:51: error: no matching function for call to 'v8::Value::ToObject()' to ## Ch = node::Buffer::Data(from->ToObject()); \ ^ ../src/batch.cc:92:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:58:54: error: no matching function for call to 'v8::Value::ToString()' v8::Local to ## Str = from->ToString(); \ ^ ../src/batch.cc:92:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2528:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToString( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2528:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2544:35: note: candidate: v8::Local v8::Value::ToString(v8::Isolate) const Local ToString(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2544:35: note: candidate expects 1 argument, 0 provided Local ToString(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATESOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:59:39: error: no matching function for call to 'v8::String::Utf8Length()' to ## Sz = to ## Str->Utf8Length(); \ ^ ../src/batch.cc:92:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2678:7: note: candidate: int v8::String::Utf8Length(v8::Isolate) const int Utf8Length(Isolate isolate) const; ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2678:7: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:65:5: error: no matching function for call to 'v8::String::WriteUtf8(char&, int, NULL, v8::String::WriteOptions)' ); \ ^ ../src/batch.cc:92:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2738:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate, char, int, int, int) const int WriteUtf8(Isolate isolate, char buffer, int length = -1, ^~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2738:7: note: no known conversion for argument 1 from 'char' to 'v8::Isolate' In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/batch.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE leveldown::Batch::Del(Nan::NAN_METHOD_ARGS_TYPE)': ../src/leveldown.h:53:30: error: no matching function for call to 'v8::Value::ToObject()' } else if (!from->ToObject().IsEmpty() \ ^ ../src/batch.cc:110:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:54:51: error: no matching function for call to 'v8::Value::ToObject()' && node::Buffer::HasInstance(from->ToObject())) { \ ^ ../src/batch.cc:110:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATESOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:55:53: error: no matching function for call to 'v8::Value::ToObject()' to ## Sz = node::Buffer::Length(from->ToObject()); \ ^ ../src/batch.cc:110:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATESOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:56:51: error: no matching function for call to 'v8::Value::ToObject()' to ## Ch = node::Buffer::Data(from->ToObject()); \ ^ ../src/batch.cc:110:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2532:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate) const Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2546:35: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:58:54: error: no matching function for call to 'v8::Value::ToString()' v8::Local to ## Str = from->ToString(); \ ^ ../src/batch.cc:110:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2528:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToString( ^~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2528:44: note: candidate expects 1 argument, 0 provided In file included from /root/.node-gyp/12.2.0/include/node/v8-internal.h:14:0, from /root/.node-gyp/12.2.0/include/node/v8.h:25, from /root/.node-gyp/12.2.0/include/node/node.h:63, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2544:35: note: candidate: v8::Local v8::Value::ToString(v8::Isolate) const Local ToString(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATE_SOON' declarator attribute((deprecated(message))) ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2544:35: note: candidate expects 1 argument, 0 provided Local ToString(Isolate isolate) const); ^ /root/.node-gyp/12.2.0/include/node/v8config.h:322:3: note: in definition of macro 'V8_DEPRECATESOON' declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:59:39: error: no matching function for call to 'v8::String::Utf8Length()' to ## Sz = to ## Str->Utf8Length(); \ ^ ../src/batch.cc:110:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2678:7: note: candidate: int v8::String::Utf8Length(v8::Isolate) const int Utf8Length(Isolate isolate) const; ^~~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2678:7: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:18:0, from ../src/batch.cc:5: ../src/leveldown.h:65:5: error: no matching function for call to 'v8::String::WriteUtf8(char&, int, NULL, v8::String::WriteOptions)' ); \ ^ ../src/batch.cc:110:3: note: in expansion of macro 'LD_STRING_OR_BUFFER_TO_SLICE' LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key) ^~~~~~~~ In file included from /root/.node-gyp/12.2.0/include/node/node.h:63:0, from ../src/batch.cc:1: /root/.node-gyp/12.2.0/include/node/v8.h:2738:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate, char, int, int, int) const int WriteUtf8(Isolate isolate, char buffer, int length = -1, ^~~~~ /root/.node-gyp/12.2.0/include/node/v8.h:2738:7: note: no known conversion for argument 1 from 'char' to 'v8::Isolate*' leveldown.target.mk:125: recipe for target 'Release/obj.target/leveldown/src/batch.o' failed

ralphtheninja commented 5 years ago

You need at least level@5 for node 12.

bmacnaughton commented 5 years ago

Got it. thanks.