wechaty / wechaty-puppet-padplus

DEPRECATED: One puppet based on iPad protocal for Wechaty
https://wechaty.js.org/docs/puppet-services/
317 stars 65 forks source link

padplus upgrade/install failure for node version > 10 #212

Closed suntong closed 4 years ago

suntong commented 4 years ago

0. Report Issue

  1. I run the following command:
npm install wechaty-puppet-padlus

but the installation failed.

1. Versions

My node was version 12.x but failing the padplus installation, so I upgraded it to the latest, and tried again.

$ node -v
v13.12.0

$ npm ls wechaty wechaty-puppet wechaty-puppet-mock wechaty-puppet-puppeteer wechaty-puppet-padplus
wechaty-getting-started@0.1.20 /lfs/workv/repo/gitwork/nodejs/wechaty-examples
├─┬ wechaty@0.38.4 
│ └── UNMET PEER DEPENDENCY wechaty-puppet@0.24.0  deduped
├── UNMET PEER DEPENDENCY wechaty-puppet@0.24.0 
├── wechaty-puppet-mock@0.20.4 
├── UNMET DEPENDENCY wechaty-puppet-padplus@
└── wechaty-puppet-puppeteer@0.18.6 
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:    18.04
Codename:   bionic

3. To Reproduce

Steps to reproduce the behavior:

rm -vrf package-lock.json
rm -rf node_modules
npm install wechaty-puppet-padplus

6. Full Output Logs

Show Logs ```shell $ npm install wechaty-puppet-padplus > rocksdb@3.1.0 install /lfs/workv/repo/gitwork/nodejs/wechaty-examples/node_modules/rocksdb > prebuild-install || node-gyp rebuild prebuild-install WARN install No prebuilt binaries found (target=13.12.0 runtime=node arch=x64 libc= platform=linux) make: Entering directory '/lfs/workv/repo/gitwork/nodejs/wechaty-examples/node_modules/rocksdb/build' CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/auto_roll_logger.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/c.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/column_family.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/compacted_db_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/compaction.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/compaction_iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/compaction_job.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/compaction_picker.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/convenience.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/range_del_aggregator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/db_filesnapshot.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/dbformat.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/db_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/db_impl_debug.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/db_impl_readonly.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/db_impl_experimental.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/db_info_dumper.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/db_iter.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/external_sst_file_ingestion_job.o ../deps/leveldb/leveldb-rocksdb/db/external_sst_file_ingestion_job.cc:10:0: warning: "__STDC_FORMAT_MACROS" redefined #define __STDC_FORMAT_MACROS :0:0: note: this is the location of the previous definition CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/experimental.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/event_helpers.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/file_indexer.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/filename.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/flush_job.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/flush_scheduler.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/forward_iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/internal_stats.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/log_reader.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/log_writer.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/managed_iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/memtable_allocator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/memtable.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/memtable_list.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/merge_helper.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/merge_operator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/repair.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/snapshot_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/table_cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/table_properties_collector.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/transaction_log_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/version_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/version_edit.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/version_set.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/wal_manager.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/write_batch.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/write_batch_base.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/write_controller.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/db/write_thread.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/memtable/hash_cuckoo_rep.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/memtable/hash_linklist_rep.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/memtable/hash_skiplist_rep.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/memtable/skiplistrep.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/memtable/vectorrep.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/port/stack_trace.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/adaptive_table_factory.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/block_based_filter_block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/block_based_table_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/block_based_table_factory.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/block_based_table_reader.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/block_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/block_prefix_index.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/bloom_block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/cuckoo_table_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/cuckoo_table_factory.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/cuckoo_table_reader.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/flush_block_policy.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/format.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/full_filter_block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/get_context.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/index_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/merging_iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/meta_blocks.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/sst_file_writer.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/partitioned_filter_block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/plain_table_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/plain_table_factory.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/plain_table_index.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/plain_table_key_coding.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/plain_table_reader.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/persistent_cache_helper.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/table_properties.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/table/two_level_iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/tools/dump/db_dump_tool.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/arena.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/bloom.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/build_version.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/cf_options.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/clock_cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/coding.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/comparator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/compaction_job_stats_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/concurrent_arena.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/crc32c.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/db_options.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/delete_scheduler.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/dynamic_bloom.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/env.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/env_chroot.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/env_hdfs.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/event_logger.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/file_util.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/file_reader_writer.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/filter_policy.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/hash.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/histogram.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/histogram_windowing.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/instrumented_mutex.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/iostats_context.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/io_posix.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/log_buffer.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/logging.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/lru_cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/memenv.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/murmurhash.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/options.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/options_helper.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/options_parser.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/options_sanity_check.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/perf_context.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/perf_level.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/random.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/rate_limiter.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/sharded_cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/slice.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/sst_file_manager_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/statistics.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/status.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/status_message.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/string_util.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/sync_point.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/thread_local.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/thread_status_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/thread_status_updater.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/thread_status_updater_debug.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/thread_status_util.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/thread_status_util_debug.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/threadpool_imp.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/transaction_test_util.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/util/xxhash.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/backupable/backupable_db.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/blob_db/blob_db.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/convenience/info_log_finder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/checkpoint/checkpoint.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/compaction_filters/remove_emptyvalue_compactionfilter.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/document/document_db.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/document/json_document_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/document/json_document.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/env_mirror.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/geodb/geodb_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/leveldb_options/leveldb_options.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/lua/rocks_lua_compaction_filter.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/memory/memory_util.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/merge_operators/put.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/merge_operators/max.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/merge_operators/string_append/stringappend2.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/merge_operators/string_append/stringappend.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/merge_operators/uint64add.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/option_change_migration/option_change_migration.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/options/options_util.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/persistent_cache/persistent_cache_tier.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/persistent_cache/volatile_tier_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/persistent_cache/block_cache_tier_file.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/persistent_cache/block_cache_tier_metadata.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/persistent_cache/block_cache_tier.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/redis/redis_lists.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/simulator_cache/sim_cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/spatialdb/spatial_db.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/table_properties_collectors/compact_on_deletion_collector.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/transactions/optimistic_transaction_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/transactions/optimistic_transaction_db_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/transactions/transaction_base.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/transactions/transaction_db_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/transactions/transaction_db_mutex_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/transactions/transaction_lock_mgr.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/transactions/transaction_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/transactions/transaction_util.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/ttl/db_ttl_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/date_tiered/date_tiered_db_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/write_batch_with_index/write_batch_with_index.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/port/port_posix.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-rocksdb/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.7/snappy-sinksource.o CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.7/snappy-stubs-internal.o CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.7/snappy.o AR(target) Release/obj.target/deps/snappy/snappy.a COPY Release/snappy.a CXX(target) Release/obj.target/leveldown/src/batch.o ../src/leveldown.h: In function ‘size_t StringOrBufferLength(v8::Local)’: ../src/leveldown.h:12:26: error: no matching function for call to ‘v8::Value::ToObject()’ return (!obj->ToObject().IsEmpty() ^ In file included from /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:13:48: error: no matching function for call to ‘v8::Value::ToObject()’ && node::Buffer::HasInstance(obj->ToObject())) ^ In file included from /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:14:42: error: no matching function for call to ‘v8::Value::ToObject()’ ? node::Buffer::Length(obj->ToObject()) ^ In file included from /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:15:21: error: no matching function for call to ‘v8::Value::ToString()’ : obj->ToString()->Utf8Length(); ^ In file included from /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2750:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToString( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2750:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h: In function ‘void DisposeStringOrBufferFromSlice(Nan::Persistent&, rocksdb::Slice)’: ../src/leveldown.h:26:110: error: no matching function for call to ‘v8::Object::Get(v8::Local)’ :New(handle)->Get(Nan::New("obj").ToLocalChecked()); ^ In file included from /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate expects 2 arguments, 1 provided /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate expects 2 arguments, 1 provided In file included from ../src/batch.cc:5:0: ../src/database.h: In constructor ‘leveldown::Reference::Reference(v8::Local, rocksdb::Slice)’: ../src/database.h:26:52: error: no matching function for call to ‘v8::Object::Set(v8::Local, v8::Local&)’ _obj->Set(Nan::New("obj").ToLocalChecked(), obj); ^ In file included from /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate: v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local) V8_WARN_UNUSED_RESULT Maybe Set(Local context, ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate expects 3 arguments, 2 provided /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate: v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local) V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate expects 3 arguments, 2 provided 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:14:24: error: no matching function for call to ‘v8::Object::Has(v8::Local&)’ && options->Has(key) ^ In file included from /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3629:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT Maybe Has(Local context, ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3629:37: note: candidate expects 2 arguments, 1 provided /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3635:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT Maybe Has(Local context, uint32_t index); ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3635:37: note: candidate expects 2 arguments, 1 provided In file included from ../src/batch.cc:8:0: ../src/common.h:15:23: error: no matching function for call to ‘v8::Object::Get(v8::Local&)’ ? options->Get(key)->BooleanValue() ^ In file included from /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate expects 2 arguments, 1 provided /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate expects 2 arguments, 1 provided 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:25:24: error: no matching function for call to ‘v8::Object::Has(v8::Local&)’ && options->Has(key) ^ In file included from /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3629:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT Maybe Has(Local context, ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3629:37: note: candidate expects 2 arguments, 1 provided /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3635:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT Maybe Has(Local context, uint32_t index); ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3635:37: note: candidate expects 2 arguments, 1 provided In file included from ../src/batch.cc:8:0: ../src/common.h:26:24: error: no matching function for call to ‘v8::Object::Get(v8::Local&)’ && options->Get(key)->IsNumber() ^ In file included from /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate expects 2 arguments, 1 provided /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate expects 2 arguments, 1 provided In file included from ../src/batch.cc:8:0: ../src/common.h:27:23: error: no matching function for call to ‘v8::Object::Get(v8::Local&)’ ? options->Get(key)->Uint32Value() ^ In file included from /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate expects 2 arguments, 1 provided /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate expects 2 arguments, 1 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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided ../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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:6283:46: note: candidate: v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( ^~~~~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:6283: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:6283:46: note: candidate: v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( ^~~~~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:6283:46: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13: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:49: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:50: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:51: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:52: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:54: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2750:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToString( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2750:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:55: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2887:7: note: candidate: int v8::String::Utf8Length(v8::Isolate*) const int Utf8Length(Isolate* isolate) const; ^~~~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2887:7: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:61: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2947:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2947:7: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’ In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:49: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:50: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:51: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:52: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:54: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2750:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToString( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2750:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:55: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2887:7: note: candidate: int v8::String::Utf8Length(v8::Isolate*) const int Utf8Length(Isolate* isolate) const; ^~~~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2887:7: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:61: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2947:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2947:7: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’ In file included from ../src/database.h:13: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:49: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:50: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:51: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:52: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2754:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:54: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2750:44: note: candidate: v8::MaybeLocal v8::Value::ToString(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToString( ^~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2750:44: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:55: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2887:7: note: candidate: int v8::String::Utf8Length(v8::Isolate*) const int Utf8Length(Isolate* isolate) const; ^~~~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2887:7: note: candidate expects 1 argument, 0 provided In file included from ../src/database.h:13:0, from ../src/batch.cc:5: ../src/leveldown.h:61: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 /home/tong/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../src/batch.cc:1: /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2947:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~ /home/tong/.cache/node-gyp/13.12.0/include/node/v8.h:2947:7: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’ leveldown.target.mk:121: recipe for target 'Release/obj.target/leveldown/src/batch.o' failed make: *** [Release/obj.target/leveldown/src/batch.o] Error 1 make: Leaving directory '/lfs/workv/repo/gitwork/nodejs/wechaty-examples/node_modules/rocksdb/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/lfs/cache1/cache-app/node/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.15.0-54-generic gyp ERR! command "/usr/bin/node" "/lfs/cache1/cache-app/node/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /lfs/workv/repo/gitwork/nodejs/wechaty-examples/node_modules/rocksdb gyp ERR! node -v v13.12.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN wechaty-puppet-puppeteer@0.18.6 requires a peer of file-box@^0.10.6 but none is installed. You must install peer dependencies yourself. npm WARN wechaty-puppet-puppeteer@0.18.6 requires a peer of wechaty-puppet@^0.18.3 but none is installed. You must install peer dependencies yourself. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! rocksdb@3.1.0 install: `prebuild-install || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the rocksdb@3.1.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/tong/.npm/_logs/2020-04-11T16_34_56_706Z-debug.log ```

[bug]

su-chang commented 4 years ago

Thanks for your issue, the new version of wechaty-puppet-padplus@next only supported node@10.16.0, so please change your node version for it.

suntong commented 4 years ago

Ah, thanks for the swift reply. I changed to v10.20.0 and it is working now:

$ npm install wechaty-puppet-padplus

> rocksdb@3.1.0 install /lfs/workv/repo/gitwork/nodejs/wechaty-examples/node_modules/rocksdb
> prebuild-install || node-gyp rebuild

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN wechaty-puppet-puppeteer@0.18.6 requires a peer of file-box@^0.10.6 but none is installed. You must install peer dependencies yourself.
npm WARN wechaty-puppet-puppeteer@0.18.6 requires a peer of wechaty-puppet@^0.18.3 but none is installed. You must install peer dependencies yourself.

+ wechaty-puppet-padplus@0.6.1
added 46 packages from 45 contributors and audited 2559 packages in 7.224s