kriszyp / lmdb-js

Simple, efficient, ultra-fast, scalable data store wrapper for LMDB
Other
484 stars 39 forks source link

Build errors on both Vercel and CloudFlare Pages #76

Closed fregante closed 2 years ago

fregante commented 2 years ago

I'm getting these errors when running on Vercel and CloudFlare Pages and it's probably why my Parcel build ends with SIGV (even though it completes)

16:14:53.610 | > lmdb-store@1.6.1 install /vercel/path0/node_modules/lmdb-store
16:14:53.610 | > node-gyp-build
16:14:54.103 | make: Entering directory `/vercel/path0/node_modules/lmdb-store/build'
16:14:54.104 | CC(target) Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/midl.o
16:14:54.237 | CC(target) Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/chacha8.o
16:14:54.306 | CC(target) Release/obj.target/lmdb-store/dependencies/lz4/lib/lz4.o
16:14:56.872 | CXX(target) Release/obj.target/lmdb-store/src/node-lmdb.o
16:14:57.316 | In file included from ../src/node-lmdb.cpp:24:0:
16:14:57.316 | ../src/node-lmdb.h:156:31: warning: ‘fixedKeySpace’ defined but not used [-Wunused-variable]
16:14:57.316 | static thread_local KeySpace* fixedKeySpace;
16:14:57.316 | ^~~~~~~~~~~~~
16:14:57.316 | ../src/node-lmdb.h:155:30: warning: ‘currentDb’ defined but not used [-Wunused-variable]
16:14:57.316 | static thread_local DbiWrap* currentDb = nullptr;
16:14:57.316 | ^~~~~~~~~
16:14:57.317 | ../src/node-lmdb.h:154:28: warning: ‘lastVersion’ defined but not used [-Wunused-variable]
16:14:57.317 | static thread_local double lastVersion = 0;
16:14:57.317 | ^~~~~~~~~~~
16:14:57.350 | CXX(target) Release/obj.target/lmdb-store/src/env.o
16:14:57.746 | ../src/env.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE EnvWrap::stat(Nan::NAN_METHOD_ARGS_TYPE)’:
16:14:57.747 | ../src/env.cpp:683:107: 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]
16:14:57.747 | (void)obj->Set(context, Nan::New<String>("pageSize").ToLocalChecked(), Nan::New<Number>(stat.ms_psize));
16:14:57.747 | ^
16:14:57.747 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.747 | from ../src/env.cpp:25:
16:14:57.747 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.747 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.747 | ^~~
16:14:57.747 | ../src/env.cpp:684:108: 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]
16:14:57.747 | (void)obj->Set(context, Nan::New<String>("treeDepth").ToLocalChecked(), Nan::New<Number>(stat.ms_depth));
16:14:57.747 | ^
16:14:57.747 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.747 | from ../src/env.cpp:25:
16:14:57.747 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.747 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.747 | ^~~
16:14:57.747 | ../src/env.cpp:685:125: 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]
16:14:57.747 | (void)obj->Set(context, Nan::New<String>("treeBranchPageCount").ToLocalChecked(), Nan::New<Number>(stat.ms_branch_pages));
16:14:57.747 | ^
16:14:57.748 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.748 | from ../src/env.cpp:25:
16:14:57.748 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.748 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.748 | ^~~
16:14:57.748 | ../src/env.cpp:686:121: 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]
16:14:57.748 | (void)obj->Set(context, Nan::New<String>("treeLeafPageCount").ToLocalChecked(), Nan::New<Number>(stat.ms_leaf_pages));
16:14:57.748 | ^
16:14:57.748 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.748 | from ../src/env.cpp:25:
16:14:57.748 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.748 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.748 | ^~~
16:14:57.748 | ../src/env.cpp:687: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]
16:14:57.748 | (void)obj->Set(context, Nan::New<String>("entryCount").ToLocalChecked(), Nan::New<Number>(stat.ms_entries));
16:14:57.748 | ^
16:14:57.748 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.748 | from ../src/env.cpp:25:
16:14:57.748 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.748 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.748 | ^~~
16:14:57.748 | ../src/env.cpp:688:121: 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]
16:14:57.748 | (void)obj->Set(context, Nan::New<String>("overflowPages").ToLocalChecked(), Nan::New<Number>(stat.ms_overflow_pages));
16:14:57.748 | ^
16:14:57.748 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.748 | from ../src/env.cpp:25:
16:14:57.748 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.748 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.748 | ^~~
16:14:57.748 | ../src/env.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE EnvWrap::freeStat(Nan::NAN_METHOD_ARGS_TYPE)’:
16:14:57.749 | ../src/env.cpp:718:107: 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]
16:14:57.749 | (void)obj->Set(context, Nan::New<String>("pageSize").ToLocalChecked(), Nan::New<Number>(stat.ms_psize));
16:14:57.749 | ^
16:14:57.749 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.749 | from ../src/env.cpp:25:
16:14:57.749 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.749 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.749 | ^~~
16:14:57.749 | ../src/env.cpp:719:108: 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]
16:14:57.749 | (void)obj->Set(context, Nan::New<String>("treeDepth").ToLocalChecked(), Nan::New<Number>(stat.ms_depth));
16:14:57.749 | ^
16:14:57.749 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.749 | from ../src/env.cpp:25:
16:14:57.749 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.749 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.749 | ^~~
16:14:57.750 | ../src/env.cpp:720:125: 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]
16:14:57.750 | (void)obj->Set(context, Nan::New<String>("treeBranchPageCount").ToLocalChecked(), Nan::New<Number>(stat.ms_branch_pages));
16:14:57.750 | ^
16:14:57.750 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.750 | from ../src/env.cpp:25:
16:14:57.750 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.750 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.750 | ^~~
16:14:57.750 | ../src/env.cpp:721:121: 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]
16:14:57.750 | (void)obj->Set(context, Nan::New<String>("treeLeafPageCount").ToLocalChecked(), Nan::New<Number>(stat.ms_leaf_pages));
16:14:57.751 | ^
16:14:57.751 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.751 | from ../src/env.cpp:25:
16:14:57.751 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.751 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.751 | ^~~
16:14:57.751 | ../src/env.cpp:722: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]
16:14:57.751 | (void)obj->Set(context, Nan::New<String>("entryCount").ToLocalChecked(), Nan::New<Number>(stat.ms_entries));
16:14:57.751 | ^
16:14:57.751 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.751 | from ../src/env.cpp:25:
16:14:57.751 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.752 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.752 | ^~~
16:14:57.752 | ../src/env.cpp:723:121: 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]
16:14:57.752 | (void)obj->Set(context, Nan::New<String>("overflowPages").ToLocalChecked(), Nan::New<Number>(stat.ms_overflow_pages));
16:14:57.752 | ^
16:14:57.752 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.752 | from ../src/env.cpp:25:
16:14:57.752 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.752 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.752 | ^~~
16:14:57.752 | ../src/env.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE EnvWrap::info(Nan::NAN_METHOD_ARGS_TYPE)’:
16:14:57.752 | ../src/env.cpp:747:125: 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]
16:14:57.752 | (void)obj->Set(context, Nan::New<String>("mapAddress").ToLocalChecked(), Nan::New<Number>((uint64_t) envinfo.me_mapaddr));
16:14:57.752 | ^
16:14:57.752 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.752 | from ../src/env.cpp:25:
16:14:57.752 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.752 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.752 | ^~~
16:14:57.752 | ../src/env.cpp:748: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]
16:14:57.752 | (void)obj->Set(context, Nan::New<String>("mapSize").ToLocalChecked(), Nan::New<Number>(envinfo.me_mapsize));
16:14:57.752 | ^
16:14:57.752 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.752 | from ../src/env.cpp:25:
16:14:57.752 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.752 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.752 | ^~~
16:14:57.752 | ../src/env.cpp:749:120: 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]
16:14:57.752 | (void)obj->Set(context, Nan::New<String>("lastPageNumber").ToLocalChecked(), Nan::New<Number>(envinfo.me_last_pgno));
16:14:57.752 | ^
16:14:57.752 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.752 | from ../src/env.cpp:25:
16:14:57.752 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.753 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.753 | ^~~
16:14:57.753 | ../src/env.cpp:750:116: 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]
16:14:57.753 | (void)obj->Set(context, Nan::New<String>("lastTxnId").ToLocalChecked(), Nan::New<Number>(envinfo.me_last_txnid));
16:14:57.753 | ^
16:14:57.753 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.753 | from ../src/env.cpp:25:
16:14:57.753 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.753 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.753 | ^~~
16:14:57.753 | ../src/env.cpp:751:117: 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]
16:14:57.753 | (void)obj->Set(context, Nan::New<String>("maxReaders").ToLocalChecked(), Nan::New<Number>(envinfo.me_maxreaders));
16:14:57.753 | ^
16:14:57.753 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.753 | from ../src/env.cpp:25:
16:14:57.753 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.753 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.753 | ^~~
16:14:57.753 | ../src/env.cpp:752:117: 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]
16:14:57.753 | (void)obj->Set(context, Nan::New<String>("numReaders").ToLocalChecked(), Nan::New<Number>(envinfo.me_numreaders));
16:14:57.753 | ^
16:14:57.753 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.753 | from ../src/env.cpp:25:
16:14:57.753 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.753 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.753 | ^~~
16:14:57.761 | ../src/env.cpp: In static member function ‘static void EnvWrap::setupExports(v8::Local<v8::Object>)’:
16:14:57.761 | ../src/env.cpp:1160:170: 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]
16:14:57.761 | (void)exports->Set(Nan::GetCurrentContext(), Nan::New<String>("Compression").ToLocalChecked(), compressionTpl->GetFunction(Nan::GetCurrentContext()).ToLocalChecked());
16:14:57.761 | ^
16:14:57.762 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.762 | from ../src/env.cpp:25:
16:14:57.762 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.762 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.762 | ^~~
16:14:57.762 | ../src/env.cpp:1163:154: 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]
16:14:57.762 | (void)exports->Set(Nan::GetCurrentContext(), Nan::New<String>("Env").ToLocalChecked(), envTpl->GetFunction(Nan::GetCurrentContext()).ToLocalChecked());
16:14:57.762 | ^
16:14:57.762 | In file included from ../src/node-lmdb.h:29:0,
16:14:57.762 | from ../src/env.cpp:25:
16:14:57.762 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:14:57.762 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:14:57.762 | ^~~
16:14:57.848 | In file included from ../src/env.cpp:25:0:
16:14:57.848 | ../src/node-lmdb.h: At global scope:
16:14:57.848 | ../src/node-lmdb.h:156:31: warning: ‘fixedKeySpace’ defined but not used [-Wunused-variable]
16:14:57.848 | static thread_local KeySpace* fixedKeySpace;
16:14:57.848 | ^~~~~~~~~~~~~
16:14:57.848 | ../src/node-lmdb.h:155:30: warning: ‘currentDb’ defined but not used [-Wunused-variable]
16:14:57.848 | static thread_local DbiWrap* currentDb = nullptr;
16:14:57.848 | ^~~~~~~~~
16:14:57.848 | ../src/node-lmdb.h:154:28: warning: ‘lastVersion’ defined but not used [-Wunused-variable]
16:14:57.848 | static thread_local double lastVersion = 0;
16:14:57.849 | ^~~~~~~~~~~
16:14:58.244 | ../src/env.cpp: In member function ‘void Nan::AsyncBareProgressWorker<T>::Execute() [with T = char]’:
16:14:58.245 | ../src/env.cpp:332:33: warning: ‘dw’ may be used uninitialized in this function [-Wmaybe-uninitialized]
16:14:58.245 | if (dw->hasVersions)
16:14:58.245 | ~~~~^~~~~~~~~~~
16:14:58.245 | ../src/env.cpp:218:18: note: ‘dw’ was declared here
16:14:58.245 | DbiWrap* dw;
16:14:58.245 | ^~
16:14:58.281 | ../src/env.cpp: In member function ‘virtual void BatchWorker::Execute(const Nan::AsyncBareProgressWorker<char>::ExecutionProgress&)’:
16:14:58.281 | ../src/env.cpp:332:33: warning: ‘dw’ may be used uninitialized in this function [-Wmaybe-uninitialized]
16:14:58.281 | if (dw->hasVersions)
16:14:58.281 | ~~~~^~~~~~~~~~~
16:14:58.382 | ../src/env.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE EnvWrap::batchWrite(Nan::NAN_METHOD_ARGS_TYPE)’:
16:14:58.382 | ../src/env.cpp:1004:17: warning: ‘dw’ may be used uninitialized in this function [-Wmaybe-uninitialized]
16:14:58.382 | if (dw->hasVersions) {
16:14:58.382 | ~~~~^~~~~~~~~~~
16:14:58.699 | CXX(target) Release/obj.target/lmdb-store/src/compression.o
16:14:59.155 | In file included from ../src/compression.cpp:26:0:
16:14:59.155 | ../src/node-lmdb.h:156:31: warning: ‘fixedKeySpace’ defined but not used [-Wunused-variable]
16:14:59.155 | static thread_local KeySpace* fixedKeySpace;
16:14:59.155 | ^~~~~~~~~~~~~
16:14:59.155 | ../src/node-lmdb.h:155:30: warning: ‘currentDb’ defined but not used [-Wunused-variable]
16:14:59.155 | static thread_local DbiWrap* currentDb = nullptr;
16:14:59.155 | ^~~~~~~~~
16:14:59.155 | ../src/node-lmdb.h:154:28: warning: ‘lastVersion’ defined but not used [-Wunused-variable]
16:14:59.155 | static thread_local double lastVersion = 0;
16:14:59.155 | ^~~~~~~~~~~
16:14:59.281 | CXX(target) Release/obj.target/lmdb-store/src/ordered-binary.o
16:14:59.671 | ../src/ordered-binary.cpp: In function ‘size_t valueToKey(const v8::Local<v8::Value>&, uint8_t*, size_t, bool, bool)’:
16:14:59.671 | ../src/ordered-binary.cpp:68:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
16:14:59.671 | uint64_t asInt = *((uint64_t*) &number);
16:14:59.671 | ^
16:14:59.673 | ../src/ordered-binary.cpp: In function ‘v8::Local<v8::Value> MDBKeyToValue(MDB_val&)’:
16:14:59.673 | ../src/ordered-binary.cpp:225:56: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
16:14:59.673 | value = Nan::New<Number>(*((double*) &asInt));
16:14:59.673 | ^
16:14:59.675 | ../src/ordered-binary.cpp:271:100: 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]
16:14:59.675 | (void)resultsArray->Set(context, i + 1, nextArray->Get(context, i).ToLocalChecked());
16:14:59.675 | ^
16:14:59.675 | In file included from ../src/node-lmdb.h:29:0,
16:14:59.675 | from ../src/ordered-binary.cpp:1:
16:14:59.675 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3673:37: note: declared here
16:14:59.675 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
16:14:59.675 | ^~~
16:14:59.675 | ../src/ordered-binary.cpp:275:58: 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]
16:14:59.675 | (void)resultsArray->Set(context, 1, nextValue);
16:14:59.676 | ^
16:14:59.676 | In file included from ../src/node-lmdb.h:29:0,
16:14:59.676 | from ../src/ordered-binary.cpp:1:
16:14:59.676 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3673:37: note: declared here
16:14:59.676 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
16:14:59.676 | ^~~
16:14:59.676 | ../src/ordered-binary.cpp:277:50: 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]
16:14:59.676 | (void)resultsArray->Set(context, 0, value);
16:14:59.676 | ^
16:14:59.676 | In file included from ../src/node-lmdb.h:29:0,
16:14:59.676 | from ../src/ordered-binary.cpp:1:
16:14:59.676 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3673:37: note: declared here
16:14:59.676 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
16:14:59.676 | ^~~
16:14:59.739 | In file included from ../src/ordered-binary.cpp:1:0:
16:14:59.740 | ../src/node-lmdb.h: At global scope:
16:14:59.740 | ../src/node-lmdb.h:156:31: warning: ‘fixedKeySpace’ defined but not used [-Wunused-variable]
16:14:59.740 | static thread_local KeySpace* fixedKeySpace;
16:14:59.740 | ^~~~~~~~~~~~~
16:14:59.740 | ../src/node-lmdb.h:155:30: warning: ‘currentDb’ defined but not used [-Wunused-variable]
16:14:59.740 | static thread_local DbiWrap* currentDb = nullptr;
16:14:59.740 | ^~~~~~~~~
16:14:59.740 | ../src/node-lmdb.h:154:28: warning: ‘lastVersion’ defined but not used [-Wunused-variable]
16:14:59.740 | static thread_local double lastVersion = 0;
16:14:59.740 | ^~~~~~~~~~~
16:14:59.917 | ../src/ordered-binary.cpp: In function ‘int compare32LE(const MDB_val*, const MDB_val*)’:
16:14:59.918 | ../src/ordered-binary.cpp:407:5: warning: ‘wordB’ may be used uninitialized in this function [-Wmaybe-uninitialized]
16:14:59.918 | if (wordA < wordB)
16:14:59.918 | ^~
16:14:59.918 | ../src/ordered-binary.cpp:407:5: warning: ‘wordA’ may be used uninitialized in this function [-Wmaybe-uninitialized]
16:14:59.954 | CXX(target) Release/obj.target/lmdb-store/src/misc.o
16:15:00.345 | ../src/misc.cpp: In function ‘void setupExportMisc(v8::Local<v8::Object>)’:
16:15:00.345 | ../src/misc.cpp:43:126: 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]
16:15:00.345 | (void)versionObj->Set(context, Nan::New<String>("versionString").ToLocalChecked(), Nan::New<String>(str).ToLocalChecked());
16:15:00.345 | ^
16:15:00.345 | In file included from ../src/node-lmdb.h:29:0,
16:15:00.345 | from ../src/misc.cpp:25:
16:15:00.345 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:00.345 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:00.345 | ^~~
16:15:00.345 | ../src/misc.cpp:44:104: 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]
16:15:00.345 | (void)versionObj->Set(context, Nan::New<String>("major").ToLocalChecked(), Nan::New<Integer>(major));
16:15:00.345 | ^
16:15:00.346 | In file included from ../src/node-lmdb.h:29:0,
16:15:00.346 | from ../src/misc.cpp:25:
16:15:00.346 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:00.346 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:00.346 | ^~~
16:15:00.346 | ../src/misc.cpp:45:104: 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]
16:15:00.346 | (void)versionObj->Set(context, Nan::New<String>("minor").ToLocalChecked(), Nan::New<Integer>(minor));
16:15:00.346 | ^
16:15:00.346 | In file included from ../src/node-lmdb.h:29:0,
16:15:00.346 | from ../src/misc.cpp:25:
16:15:00.346 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:00.346 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:00.346 | ^~~
16:15:00.346 | ../src/misc.cpp:46:104: 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]
16:15:00.346 | (void)versionObj->Set(context, Nan::New<String>("patch").ToLocalChecked(), Nan::New<Integer>(patch));
16:15:00.346 | ^
16:15:00.346 | In file included from ../src/node-lmdb.h:29:0,
16:15:00.346 | from ../src/misc.cpp:25:
16:15:00.346 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:00.347 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:00.347 | ^~~
16:15:00.347 | ../src/misc.cpp:48:89: 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]
16:15:00.347 | (void)exports->Set(context, Nan::New<String>("version").ToLocalChecked(), versionObj);
16:15:00.347 | ^
16:15:00.347 | In file included from ../src/node-lmdb.h:29:0,
16:15:00.347 | from ../src/misc.cpp:25:
16:15:00.347 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:00.347 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:00.347 | ^~~
16:15:00.352 | ../src/misc.cpp: In function ‘void throwLmdbError(int)’:
16:15:00.352 | ../src/misc.cpp:417:106: 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]
16:15:00.352 | (void)err.As<Object>()->Set(Nan::GetCurrentContext(), Nan::New("code").ToLocalChecked(), Nan::New(rc));
16:15:00.352 | ^
16:15:00.352 | In file included from ../src/node-lmdb.h:29:0,
16:15:00.352 | from ../src/misc.cpp:25:
16:15:00.352 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:00.352 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:00.352 | ^~~
16:15:00.754 | CXX(target) Release/obj.target/lmdb-store/src/txn.o
16:15:01.218 | In file included from ../src/txn.cpp:25:0:
16:15:01.218 | ../src/node-lmdb.h:156:31: warning: ‘fixedKeySpace’ defined but not used [-Wunused-variable]
16:15:01.218 | static thread_local KeySpace* fixedKeySpace;
16:15:01.218 | ^~~~~~~~~~~~~
16:15:01.218 | ../src/node-lmdb.h:155:30: warning: ‘currentDb’ defined but not used [-Wunused-variable]
16:15:01.218 | static thread_local DbiWrap* currentDb = nullptr;
16:15:01.218 | ^~~~~~~~~
16:15:01.219 | ../src/node-lmdb.h:154:28: warning: ‘lastVersion’ defined but not used [-Wunused-variable]
16:15:01.219 | static thread_local double lastVersion = 0;
16:15:01.219 | ^~~~~~~~~~~
16:15:01.624 | CXX(target) Release/obj.target/lmdb-store/src/dbi.o
16:15:02.019 | ../src/dbi.cpp: In member function ‘void DbiWrap::setUnsafeBuffer(char*, const v8::Persistent<v8::Object>&)’:
16:15:02.020 | ../src/dbi.cpp:69:52: 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]
16:15:02.020 | unsafeBuffer.Get(Isolate::GetCurrent()));
16:15:02.020 | ^
16:15:02.020 | In file included from ../src/node-lmdb.h:29:0,
16:15:02.020 | from ../src/dbi.cpp:25:
16:15:02.020 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:02.020 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:02.020 | ^~~
16:15:02.025 | ../src/dbi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DbiWrap::stat(Nan::NAN_METHOD_ARGS_TYPE)’:
16:15:02.025 | ../src/dbi.cpp:354:107: 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]
16:15:02.025 | (void)obj->Set(context, Nan::New<String>("pageSize").ToLocalChecked(), Nan::New<Number>(stat.ms_psize));
16:15:02.025 | ^
16:15:02.025 | In file included from ../src/node-lmdb.h:29:0,
16:15:02.025 | from ../src/dbi.cpp:25:
16:15:02.025 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:02.025 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:02.025 | ^~~
16:15:02.025 | ../src/dbi.cpp:355:108: 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]
16:15:02.025 | (void)obj->Set(context, Nan::New<String>("treeDepth").ToLocalChecked(), Nan::New<Number>(stat.ms_depth));
16:15:02.025 | ^
16:15:02.025 | In file included from ../src/node-lmdb.h:29:0,
16:15:02.025 | from ../src/dbi.cpp:25:
16:15:02.025 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:02.025 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:02.025 | ^~~
16:15:02.025 | ../src/dbi.cpp:356:125: 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]
16:15:02.025 | (void)obj->Set(context, Nan::New<String>("treeBranchPageCount").ToLocalChecked(), Nan::New<Number>(stat.ms_branch_pages));
16:15:02.025 | ^
16:15:02.025 | In file included from ../src/node-lmdb.h:29:0,
16:15:02.025 | from ../src/dbi.cpp:25:
16:15:02.025 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:02.025 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:02.025 | ^~~
16:15:02.026 | ../src/dbi.cpp:357:121: 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]
16:15:02.026 | (void)obj->Set(context, Nan::New<String>("treeLeafPageCount").ToLocalChecked(), Nan::New<Number>(stat.ms_leaf_pages));
16:15:02.026 | ^
16:15:02.026 | In file included from ../src/node-lmdb.h:29:0,
16:15:02.026 | from ../src/dbi.cpp:25:
16:15:02.026 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:02.026 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:02.026 | ^~~
16:15:02.026 | ../src/dbi.cpp:358: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]
16:15:02.026 | (void)obj->Set(context, Nan::New<String>("entryCount").ToLocalChecked(), Nan::New<Number>(stat.ms_entries));
16:15:02.026 | ^
16:15:02.026 | In file included from ../src/node-lmdb.h:29:0,
16:15:02.026 | from ../src/dbi.cpp:25:
16:15:02.026 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:02.026 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:02.026 | ^~~
16:15:02.026 | ../src/dbi.cpp:359:121: 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]
16:15:02.026 | (void)obj->Set(context, Nan::New<String>("overflowPages").ToLocalChecked(), Nan::New<Number>(stat.ms_overflow_pages));
16:15:02.026 | ^
16:15:02.026 | In file included from ../src/node-lmdb.h:29:0,
16:15:02.026 | from ../src/dbi.cpp:25:
16:15:02.026 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:02.026 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:02.026 | ^~~
16:15:02.093 | In file included from ../src/dbi.cpp:25:0:
16:15:02.093 | ../src/node-lmdb.h: At global scope:
16:15:02.093 | ../src/node-lmdb.h:156:31: warning: ‘fixedKeySpace’ defined but not used [-Wunused-variable]
16:15:02.093 | static thread_local KeySpace* fixedKeySpace;
16:15:02.093 | ^~~~~~~~~~~~~
16:15:02.093 | ../src/node-lmdb.h:155:30: warning: ‘currentDb’ defined but not used [-Wunused-variable]
16:15:02.093 | static thread_local DbiWrap* currentDb = nullptr;
16:15:02.093 | ^~~~~~~~~
16:15:02.093 | ../src/node-lmdb.h:154:28: warning: ‘lastVersion’ defined but not used [-Wunused-variable]
16:15:02.093 | static thread_local double lastVersion = 0;
16:15:02.093 | ^~~~~~~~~~~
16:15:02.386 | CXX(target) Release/obj.target/lmdb-store/src/cursor.o
16:15:02.791 | ../src/cursor.cpp: In static member function ‘static void CursorWrap::setupExports(v8::Local<v8::Object>)’:
16:15:02.791 | ../src/cursor.cpp:635:160: 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]
16:15:02.791 | (void)exports->Set(Nan::GetCurrentContext(), Nan::New<String>("Cursor").ToLocalChecked(), cursorTpl->GetFunction(Nan::GetCurrentContext()).ToLocalChecked());
16:15:02.791 | ^
16:15:02.791 | In file included from ../src/node-lmdb.h:29:0,
16:15:02.791 | from ../src/cursor.cpp:25:
16:15:02.791 | /vercel/.cache/node-gyp/14.17.3/include/node/v8.h:3670:37: note: declared here
16:15:02.791 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
16:15:02.791 | ^~~
16:15:02.859 | In file included from ../src/cursor.cpp:25:0:
16:15:02.859 | ../src/node-lmdb.h: At global scope:
16:15:02.859 | ../src/node-lmdb.h:156:31: warning: ‘fixedKeySpace’ defined but not used [-Wunused-variable]
16:15:02.859 | static thread_local KeySpace* fixedKeySpace;
16:15:02.859 | ^~~~~~~~~~~~~
16:15:02.859 | ../src/node-lmdb.h:155:30: warning: ‘currentDb’ defined but not used [-Wunused-variable]
16:15:02.859 | static thread_local DbiWrap* currentDb = nullptr;
16:15:02.859 | ^~~~~~~~~
16:15:02.859 | ../src/node-lmdb.h:154:28: warning: ‘lastVersion’ defined but not used [-Wunused-variable]
16:15:02.859 | static thread_local double lastVersion = 0;
16:15:02.859 | ^~~~~~~~~~~
16:15:03.518 | CC(target) Release/obj.target/lmdb-store/src/windows.o
16:15:03.551 | CC(target) Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb.o
16:15:05.780 | SOLINK_MODULE(target) Release/obj.target/lmdb-store.node
16:15:05.834 | COPY Release/lmdb-store.node
16:15:05.842 | make: Leaving directory `/vercel/path0/node_modules/lmdb-store/build'
kriszyp commented 2 years ago

I don't think there are any errors in there, those are all compiler warnings, and the COPY Release/lmdb-store.node at the end indicates that it compiled successfully. However, I did just recently clean up the warnings with https://github.com/DoctorEvidence/lmdb-store/commit/9f008c346481412a746f05e70db7f513ac95c7e6, and I can publish that.

By "SIGV", do you mean you are getting a SIGSEGV (segmentation fault)? I think that would almost certainly be unrelated to these compiler warnings, but if you have any more info (is there a stack trace?), I could look into it.

fregante commented 2 years ago

Yes it was SIGSEGV sorry 😅

Being Parcel the error could come from a thousand places. The error started appearing after I added @parcel/transformer-image, which doesn't even depend on this package directly.

If your recent changes don't fix the error, I'll have to debug the issue and probably open one on Parcel’s repo.

fregante commented 2 years ago

This is the tail of the log:

16:15:10.022 | > parcel build 'source/**/*.html' 'source/**/*.pug' 'source/favicon.ico' --no-cache
16:15:10.416 | Building...
16:15:11.822 | Bundling...
16:15:11.896 | Packaging & Optimizing...
16:15:13.179 | ✨ Built in 3.01s
16:15:13.186 | dist/index.html                                                     40.67 KB    1.18s
16:15:13.186 | dist/logo.55b2af64.svg                                                1.8 KB    1.17s
16:15:13.187 | dist/EBD403C3-D845-476F-AD65-6CB6B576667A.98a58b3d.webp             55.41 KB    296ms
16:15:13.187 | dist/EBD403C3-D845-476F-AD65-6CB6B576667A.1139a93b.jpeg              76.9 KB    297ms
...etc
16:15:13.192 | dist/favicon.ico                                                     2.37 KB    337ms
16:15:13.893 | Error: Command "npm run build" exited with SIGSEGV
16:15:16.062 | [   47.025867] fargate-bridge: port 1(veth14c14670) entered blocking state
16:15:16.062 | [   47.030450] fargate-bridge: port 1(veth14c14670) entered forwarding state
16:15:16.062 | [   47.090970] ena 0000:00:06.0 eth1: Local page cache is disabled for less than 16 channels
16:15:16.062 | [  128.265934] cgroup: cgroup: disabling cgroup2 socket matching due to net_prio or net_cls activation
fregante commented 2 years ago

Closing, according to Vercel’s support my issue might be due to an "Out of Memory" error. Thanks for looking into the warnings in 4645575!