Created
August 12, 2020 11:47
-
-
Save 1N50MN14/27c4ab77275a28cd085901abf670e92d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
am@dfv:~/dev/dfv/playground/lmdb$ yarn add lmdb-store | |
yarn add v1.22.4 | |
info No lockfile found. | |
[1/4] Resolving packages... | |
[2/4] Fetching packages... | |
[3/4] Linking dependencies... | |
[4/4] Building fresh packages... | |
error /home/am/dev/dfv/playground/lmdb/node_modules/lmdb-store: Command failed. | |
Exit code: 1 | |
Command: prebuild-install || node-gyp rebuild | |
Arguments: | |
Directory: /home/am/dev/dfv/playground/lmdb/node_modules/lmdb-store | |
Output: | |
prebuild-install WARN install No prebuilt binaries found (target=12.18.3 runtime=node arch=x64 libc= platform=linux) | |
gyp info it worked if it ends with ok | |
gyp info using [email protected] | |
gyp info using [email protected] | linux | x64 | |
gyp info find Python using Python version 2.7.16 found at "/usr/bin/python" | |
gyp http GET https://nodejs.org/download/release/v12.18.3/node-v12.18.3-headers.tar.gz | |
gyp http 200 https://nodejs.org/download/release/v12.18.3/node-v12.18.3-headers.tar.gz | |
gyp http GET https://nodejs.org/download/release/v12.18.3/SHASUMS256.txt | |
gyp http 200 https://nodejs.org/download/release/v12.18.3/SHASUMS256.txt | |
gyp info spawn /usr/bin/python | |
gyp info spawn args [ | |
gyp info spawn args '/home/am/n/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', | |
gyp info spawn args 'binding.gyp', | |
gyp info spawn args '-f', | |
gyp info spawn args 'make', | |
gyp info spawn args '-I', | |
gyp info spawn args '/home/am/dev/dfv/playground/lmdb/node_modules/lmdb-store/build/config.gypi', | |
gyp info spawn args '-I', | |
gyp info spawn args '/home/am/n/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', | |
gyp info spawn args '-I', | |
gyp info spawn args '/home/am/.cache/node-gyp/12.18.3/include/node/common.gypi', | |
gyp info spawn args '-Dlibrary=shared_library', | |
gyp info spawn args '-Dvisibility=default', | |
gyp info spawn args '-Dnode_root_dir=/home/am/.cache/node-gyp/12.18.3', | |
gyp info spawn args '-Dnode_gyp_dir=/home/am/n/lib/node_modules/npm/node_modules/node-gyp', | |
gyp info spawn args '-Dnode_lib_file=/home/am/.cache/node-gyp/12.18.3/<(target_arch)/node.lib', | |
gyp info spawn args '-Dmodule_root_dir=/home/am/dev/dfv/playground/lmdb/node_modules/lmdb-store', | |
gyp info spawn args '-Dnode_engine=v8', | |
gyp info spawn args '--depth=.', | |
gyp info spawn args '--no-parallel', | |
gyp info spawn args '--generator-output', | |
gyp info spawn args 'build', | |
gyp info spawn args '-Goutput_dir=.' | |
gyp info spawn args ] | |
gyp info spawn make | |
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] | |
make: Entering directory '/home/am/dev/dfv/playground/lmdb/node_modules/lmdb-store/build' | |
CC(target) Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb.o | |
CC(target) Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/midl.o | |
CC(target) Release/obj.target/lmdb-store/dependencies/lz4/lib/lz4.o | |
CXX(target) Release/obj.target/lmdb-store/src/node-lmdb.o | |
In file included from ../src/node-lmdb.h:32, | |
from ../src/node-lmdb.cpp:24: | |
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: | |
../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] | |
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | |
^ | |
In file included from ../src/node-lmdb.h:30, | |
from ../src/node-lmdb.cpp:24: | |
../src/node-lmdb.cpp: At global scope: | |
/home/am/.cache/node-gyp/12.18.3/include/node/node.h:628:51: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_context_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Context>, void*)’} [-Wcast-function-type] | |
(node::addon_context_register_func) (regfunc), \ | |
^ | |
/home/am/.cache/node-gyp/12.18.3/include/node/node.h:646:3: note: in expansion of macro ‘NODE_MODULE_CONTEXT_AWARE_X’ | |
NODE_MODULE_CONTEXT_AWARE_X(modname, regfunc, NULL, 0) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../src/node-lmdb.cpp:43:5: note: in expansion of macro ‘NODE_MODULE_CONTEXT_AWARE’ | |
NODE_MODULE_CONTEXT_AWARE(node_lmdb, initializeModule) | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/node-lmdb.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’: | |
/home/am/.cache/node-gyp/12.18.3/include/node/node_object_wrap.h:85:78: required from here | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
reinterpret_cast<Callback>(callback), type); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’: | |
../../nan/nan_object_wrap.h:65:61: required from here | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
In file included from ../src/node-lmdb.cpp:24: | |
../src/node-lmdb.h:87:28: warning: ‘lastVersion’ defined but not used [-Wunused-variable] | |
static thread_local double lastVersion = 0; | |
^~~~~~~~~~~ | |
CXX(target) Release/obj.target/lmdb-store/src/env.o | |
In file included from ../src/node-lmdb.h:32, | |
from ../src/env.cpp:24: | |
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: | |
../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] | |
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | |
^ | |
../src/env.cpp: In constructor ‘CopyWorker::CopyWorker(MDB_env*, char*, int, Nan::Callback*)’: | |
../src/env.cpp:150:9: warning: ‘CopyWorker::flags’ will be initialized after [-Wreorder] | |
int flags; | |
^~~~~ | |
../src/env.cpp:149:11: warning: ‘char* CopyWorker::path’ [-Wreorder] | |
char* path; | |
^~~~ | |
../src/env.cpp:123:5: warning: when initialized here [-Wreorder] | |
CopyWorker(MDB_env* env, char* inPath, int flags, Nan::Callback *callback) | |
^~~~~~~~~~ | |
../src/env.cpp: In constructor ‘BatchWorker::BatchWorker(MDB_env*, action_t*, int, int, Nan::Callback*, Nan::Callback*)’: | |
../src/env.cpp:342:15: warning: ‘BatchWorker::actions’ will be initialized after [-Wreorder] | |
action_t* actions; | |
^~~~~~~ | |
../src/env.cpp:338:9: warning: ‘int BatchWorker::actionCount’ [-Wreorder] | |
int actionCount; | |
^~~~~~~~~~~ | |
../src/env.cpp:175:5: warning: when initialized here [-Wreorder] | |
BatchWorker(MDB_env* env, action_t *actions, int actionCount, int putFlags, Nan::Callback *callback, Nan::Callback *progress) | |
^~~~~~~~~~~ | |
../src/env.cpp:343:9: warning: ‘BatchWorker::putFlags’ will be initialized after [-Wreorder] | |
int putFlags; | |
^~~~~~~~ | |
../src/env.cpp:337:14: warning: ‘MDB_env* BatchWorker::env’ [-Wreorder] | |
MDB_env* env; | |
^~~ | |
../src/env.cpp:175:5: warning: when initialized here [-Wreorder] | |
BatchWorker(MDB_env* env, action_t *actions, int actionCount, int putFlags, Nan::Callback *callback, Nan::Callback *progress) | |
^~~~~~~~~~~ | |
../src/env.cpp: In member function ‘virtual void BatchWorker::Execute(const Nan::AsyncBareProgressWorker<char>::ExecutionProgress&)’: | |
../src/env.cpp:212:13: warning: unused variable ‘getCount’ [-Wunused-variable] | |
int getCount = 0; | |
^~~~~~~~ | |
../src/env.cpp: In member function ‘v8::Local<v8::Array> BatchWorker::updatedResultsArray(int)’: | |
../src/env.cpp:312:91: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
resultsArray->Set(context, resultIndex, Nan::New<Number>(results[resultIndex])); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3509:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, | |
^~~ | |
../src/env.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE EnvWrap::stat(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/env.cpp:481:101: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
obj->Set(context, Nan::New<String>("pageSize").ToLocalChecked(), Nan::New<Number>(stat.ms_psize)); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
../src/env.cpp:482:102: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
obj->Set(context, Nan::New<String>("treeDepth").ToLocalChecked(), Nan::New<Number>(stat.ms_depth)); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
../src/env.cpp:483:119: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
obj->Set(context, Nan::New<String>("treeBranchPageCount").ToLocalChecked(), Nan::New<Number>(stat.ms_branch_pages)); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
../src/env.cpp:484:115: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
obj->Set(context, Nan::New<String>("treeLeafPageCount").ToLocalChecked(), Nan::New<Number>(stat.ms_leaf_pages)); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
../src/env.cpp:485:105: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
obj->Set(context, Nan::New<String>("entryCount").ToLocalChecked(), Nan::New<Number>(stat.ms_entries)); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
../src/env.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE EnvWrap::info(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/env.cpp:509:119: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
obj->Set(context, Nan::New<String>("mapAddress").ToLocalChecked(), Nan::New<Number>((uint64_t) envinfo.me_mapaddr)); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
../src/env.cpp:510:105: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
obj->Set(context, Nan::New<String>("mapSize").ToLocalChecked(), Nan::New<Number>(envinfo.me_mapsize)); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
../src/env.cpp:511:114: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
obj->Set(context, Nan::New<String>("lastPageNumber").ToLocalChecked(), Nan::New<Number>(envinfo.me_last_pgno)); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
../src/env.cpp:512:110: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
obj->Set(context, Nan::New<String>("lastTxnId").ToLocalChecked(), Nan::New<Number>(envinfo.me_last_txnid)); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
../src/env.cpp:513:111: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
obj->Set(context, Nan::New<String>("maxReaders").ToLocalChecked(), Nan::New<Number>(envinfo.me_maxreaders)); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
../src/env.cpp:514:111: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
obj->Set(context, Nan::New<String>("numReaders").ToLocalChecked(), Nan::New<Number>(envinfo.me_numreaders)); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
../src/env.cpp: In static member function ‘static void EnvWrap::setupExports(v8::Local<v8::Object>)’: | |
../src/env.cpp:849:164: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
exports->Set(Nan::GetCurrentContext(), Nan::New<String>("Compression").ToLocalChecked(), compressionTpl->GetFunction(Nan::GetCurrentContext()).ToLocalChecked()); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
../src/env.cpp:852:148: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
exports->Set(Nan::GetCurrentContext(), Nan::New<String>("Env").ToLocalChecked(), envTpl->GetFunction(Nan::GetCurrentContext()).ToLocalChecked()); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/env.cpp:24: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3504:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | |
^~~ | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’: | |
/home/am/.cache/node-gyp/12.18.3/include/node/node_object_wrap.h:85:78: required from here | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
reinterpret_cast<Callback>(callback), type); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’: | |
../../nan/nan_object_wrap.h:65:61: required from here | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
In file included from ../src/env.cpp:24: | |
../src/node-lmdb.h: At global scope: | |
../src/node-lmdb.h:87:28: warning: ‘lastVersion’ defined but not used [-Wunused-variable] | |
static thread_local double lastVersion = 0; | |
^~~~~~~~~~~ | |
../src/env.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE EnvWrap::batchWrite(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/env.cpp:683:35: warning: ‘keyType’ may be used uninitialized in this function [-Wmaybe-uninitialized] | |
action->freeKey = argToKey(key, action->key, keyType, keyIsValid); | |
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
CXX(target) Release/obj.target/lmdb-store/src/compression.o | |
In file included from ../src/node-lmdb.h:32, | |
from ../src/compression.cpp:2: | |
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: | |
../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] | |
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | |
^ | |
../src/compression.cpp: In member function ‘void Compression::decompress(MDB_val&)’: | |
../src/compression.cpp:71:9: warning: unused variable ‘written’ [-Wunused-variable] | |
int written = LZ4_decompress_safe_usingDict( | |
^~~~~~~ | |
../src/compression.cpp: In member function ‘void Compression::compress(MDB_val*, int)’: | |
../src/compression.cpp:104:25: warning: deleting ‘void*’ is undefined [-Wdelete-incomplete] | |
delete[] value->mv_data; | |
^~~~~~~ | |
../src/compression.cpp:108:57: warning: right shift count >= width of type [-Wshift-count-overflow] | |
compressedData[2] = (uint8_t)(dataLength >> 40u); | |
^~~ | |
../src/compression.cpp:109:57: warning: right shift count >= width of type [-Wshift-count-overflow] | |
compressedData[3] = (uint8_t)(dataLength >> 32u); | |
^~~ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/compression.cpp:2: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’: | |
/home/am/.cache/node-gyp/12.18.3/include/node/node_object_wrap.h:85:78: required from here | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
reinterpret_cast<Callback>(callback), type); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’: | |
../../nan/nan_object_wrap.h:65:61: required from here | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
In file included from ../src/compression.cpp:2: | |
../src/node-lmdb.h: At global scope: | |
../src/node-lmdb.h:87:28: warning: ‘lastVersion’ defined but not used [-Wunused-variable] | |
static thread_local double lastVersion = 0; | |
^~~~~~~~~~~ | |
CXX(target) Release/obj.target/lmdb-store/src/ordered-binary.o | |
In file included from ../src/node-lmdb.h:32, | |
from ../src/ordered-binary.cpp:1: | |
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: | |
../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] | |
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | |
^ | |
../src/ordered-binary.cpp: In function ‘void (* valueToKey(v8::Local<v8::Value>&, MDB_val&, bool))(MDB_val&)’: | |
../src/ordered-binary.cpp:40:27: warning: deleting ‘void*’ is undefined [-Wdelete-incomplete] | |
delete mdbKey.mv_data; | |
^~~~~~~ | |
../src/ordered-binary.cpp:53:28: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] | |
uint64_t asInt = *((uint64_t*) &number); | |
~^~~~~~~~~~~~~~~~~~~~ | |
../src/ordered-binary.cpp:52:14: warning: unused variable ‘negative’ [-Wunused-variable] | |
bool negative = number < 0; | |
^~~~~~~~ | |
../src/ordered-binary.cpp:89:77: error: cannot bind non-const lvalue reference of type ‘v8::Local<v8::Value>&’ to an rvalue of type ‘v8::Local<v8::Value>’ | |
auto freeData = valueToKey(array->Get(context, i).ToLocalChecked(), segments[i], true); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ | |
../src/ordered-binary.cpp:19:21: note: initializing argument 1 of ‘void (* valueToKey(v8::Local<v8::Value>&, MDB_val&, bool))(MDB_val&)’ | |
argtokey_callback_t valueToKey(Local<Value> &jsKey, MDB_val &mdbKey, bool fullLength) { | |
^~~~~~~~~~ | |
../src/ordered-binary.cpp: In function ‘v8::Local<v8::Value> keyToValue(MDB_val&)’: | |
../src/ordered-binary.cpp:168:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] | |
value = Nan::New<Number>(*((double*) &asInt)); | |
~^~~~~~~~~~~~~~~~~ | |
../src/ordered-binary.cpp:231:97: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
resultsArray->Set(context, i + 1, resultsArray->Get(context, i).ToLocalChecked()); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/ordered-binary.cpp:1: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3509:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, | |
^~~ | |
../src/ordered-binary.cpp:235:52: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
resultsArray->Set(context, 1, nextValue); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/ordered-binary.cpp:1: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3509:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, | |
^~~ | |
../src/ordered-binary.cpp:237:44: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result] | |
resultsArray->Set(context, 0, value); | |
^ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/ordered-binary.cpp:1: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:3509:37: note: declared here | |
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, | |
^~~ | |
../src/ordered-binary.cpp:131:10: warning: unused variable ‘hasMore’ [-Wunused-variable] | |
bool hasMore = false; | |
^~~~~~~ | |
../src/ordered-binary.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE keyValueToBuffer(Nan::NAN_METHOD_ARGS_TYPE)’: | |
../src/ordered-binary.cpp:256:37: error: cannot bind non-const lvalue reference of type ‘v8::Local<v8::Value>&’ to an rvalue of type ‘v8::Local<v8::Value>’ | |
auto freeKey = valueToKey(info[0], key); | |
~~~~~~^ | |
../src/ordered-binary.cpp:19:21: note: initializing argument 1 of ‘void (* valueToKey(v8::Local<v8::Value>&, MDB_val&, bool))(MDB_val&)’ | |
argtokey_callback_t valueToKey(Local<Value> &jsKey, MDB_val &mdbKey, bool fullLength) { | |
^~~~~~~~~~ | |
In file included from ../src/node-lmdb.h:29, | |
from ../src/ordered-binary.cpp:1: | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’: | |
/home/am/.cache/node-gyp/12.18.3/include/node/node_object_wrap.h:85:78: required from here | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
reinterpret_cast<Callback>(callback), type); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’: | |
../../nan/nan_object_wrap.h:65:61: required from here | |
/home/am/.cache/node-gyp/12.18.3/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] | |
In file included from ../src/ordered-binary.cpp:1: | |
../src/node-lmdb.h: At global scope: | |
../src/node-lmdb.h:87:28: warning: ‘lastVersion’ defined but not used [-Wunused-variable] | |
static thread_local double lastVersion = 0; | |
^~~~~~~~~~~ | |
make: *** [lmdb-store.target.mk:148: Release/obj.target/lmdb-store/src/ordered-binary.o] Error 1 | |
make: Leaving directory '/home/am/dev/dfv/playground/lmdb/node_modules/lmdb-store/build' | |
gyp ERR! build error | |
gyp ERR! stack Error: `make` failed with exit code: 2 | |
gyp ERR! stack at ChildProcess.onExit (/home/am/n/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) | |
gyp ERR! stack at ChildProcess.emit (events.js:315:20) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) | |
gyp ERR! System Linux 4.19.0-10-amd64 | |
gyp ERR! command "/home/am/n/bin/node" "/home/am/n/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" | |
gyp ERR! cwd /home/am/dev/dfv/playground/lmdb/node_modules/lmdb-store | |
gyp ERR! node -v v12.18.3 | |
gyp ERR! node-gyp -v v5.1.0 | |
gyp ERR! not ok | |
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment