Comments (5)
@rizkyramadhan Could you try 0.3.0 version?
I added -std=c++17 flag. But I can't test it on Mac, I dont have it.
from node-mdbx.
% npm run platform i node-mdbx
[email protected] platform
npm -w=platform "i" "node-mdbx"
npm ERR! code 1
npm ERR! path /Users/riz/Documents/base/node_modules/node-mdbx
npm ERR! command failed
npm ERR! command sh -c node build.js
npm ERR! [
npm ERR! '/Users/riz/.fnm/node-versions/v16.4.0/installation/bin/node',
npm ERR! '/Users/riz/Documents/base/node_modules/.bin/cmake-js',
npm ERR! 'rebuild'
npm ERR! ]
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- The C compiler identification is AppleClang 12.0.5.12050022
npm ERR! -- The CXX compiler identification is AppleClang 12.0.5.12050022
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
npm ERR! -- Detecting C compile features
npm ERR! -- Detecting C compile features - done
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Configuring done
npm ERR! -- Generating done
npm ERR! -- Build files have been written to: /Users/riz/Documents/base/node_modules/node-mdbx/build
npm ERR! [ 16%] Building C object CMakeFiles/node-mdbx-native.dir/deps/mdbx/mdbx.c.o
npm ERR! [ 33%] Building CXX object CMakeFiles/node-mdbx-native.dir/src/bindings.cc.o
npm ERR! [ 50%] Building CXX object CMakeFiles/node-mdbx-native.dir/src/cpp_dbi.cc.o
npm ERR! [ 66%] Building CXX object CMakeFiles/node-mdbx-native.dir/src/cpp_mdbx.cc.o
npm ERR! info TOOL Using Unix Makefiles generator.
npm ERR! info CMD CLEAN
npm ERR! info RUN [
npm ERR! info RUN 'cmake',
npm ERR! info RUN '-E',
npm ERR! info RUN 'remove_directory',
npm ERR! info RUN '/Users/riz/Documents/base/node_modules/node-mdbx/build'
npm ERR! info RUN ]
npm ERR! info CMD CONFIGURE
npm ERR! info RUN [
npm ERR! info RUN 'cmake',
npm ERR! info RUN '/Users/riz/Documents/base/node_modules/node-mdbx',
npm ERR! info RUN '--no-warn-unused-cli',
npm ERR! info RUN '-G',
npm ERR! info RUN 'Unix Makefiles',
npm ERR! info RUN '-DCMAKE_JS_VERSION=6.1.4',
npm ERR! info RUN '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/riz/Documents/base/node_modules/node-mdbx/build/Release',
npm ERR! info RUN '-DCMAKE_JS_INC=/Users/riz/.cmake-js/node-arm64/v16.4.0/include/node',
npm ERR! info RUN '-DCMAKE_JS_SRC=',
npm ERR! info RUN '-DNODE_RUNTIME=node',
npm ERR! info RUN '-DNODE_RUNTIMEVERSION=16.4.0',
npm ERR! info RUN '-DNODE_ARCH=arm64',
npm ERR! info RUN '-DCMAKE_CXX_FLAGS=-D_DARWIN_USE_64_BIT_INODE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILDING_NODE_EXTENSION',
npm ERR! info RUN '-DCMAKE_SHARED_LINKER_FLAGS=-undefined dynamic_lookup'
npm ERR! info RUN ]
npm ERR! CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
npm ERR! Compatibility with CMake < 2.8.12 will be removed from a future version of
npm ERR! CMake.
npm ERR!
npm ERR! Update the VERSION argument value or use a ... suffix to tell
npm ERR! CMake that the project does not need compatibility with older versions.
npm ERR!
npm ERR!
npm ERR! CMake Warning (dev):
npm ERR! Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
npm ERR! --help-policy CMP0042" for policy details. Use the cmake_policy command to
npm ERR! set the policy and suppress this warning.
npm ERR!
npm ERR! MACOSX_RPATH is not specified for the following targets:
npm ERR!
npm ERR! node-mdbx-native
npm ERR!
npm ERR! This warning is for project developers. Use -Wno-dev to suppress it.
npm ERR!
npm ERR! info CMD BUILD
npm ERR! info RUN [
npm ERR! info RUN 'cmake',
npm ERR! info RUN '--build',
npm ERR! info RUN '/Users/riz/Documents/base/node_modules/node-mdbx/build',
npm ERR! info RUN '--config',
npm ERR! info RUN 'Release'
npm ERR! info RUN ]
npm ERR! /Users/riz/Documents/base/node_modules/node-mdbx/src/cpp_mdbx.cc:23:44: error: conversion from 'Napi::Number' to 'intptr_t' (aka 'long') is ambiguous
npm ERR! pageSize = options.Get("pageSize").ToNumber();
npm ERR! ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
npm ERR! /Users/riz/Documents/base/node_modules/node-addon-api/napi.h:352:4: note: candidate function
npm ERR! operator int32_t()
npm ERR! ^
npm ERR! /Users/riz/Documents/base/node_modules/node-addon-api/napi.h:354:4: note: candidate function
npm ERR! operator uint32_t()
npm ERR! ^
npm ERR! /Users/riz/Documents/base/node_modules/node-addon-api/napi.h:356:4: note: candidate function
npm ERR! operator int64_t()
npm ERR! ^
npm ERR! /Users/riz/Documents/base/node_modules/node-addon-api/napi.h:358:4: note: candidate function
npm ERR! operator float()
npm ERR! ^
npm ERR! /Users/riz/Documents/base/node_modules/node-addon-api/napi.h:360:4: note: candidate function
npm ERR! operator double()
npm ERR! ^
npm ERR! 1 error generated.
npm ERR! make[2]: *** [CMakeFiles/node-mdbx-native.dir/src/cpp_mdbx.cc.o] Error 1
npm ERR! make[1]: *** [CMakeFiles/node-mdbx-native.dir/all] Error 2
npm ERR! make: *** [all] Error 2
npm ERR! ERR! OMG Process terminated: 2
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/riz/.npm/_logs/2021-07-02T06_43_30_503Z-debug.log
from node-mdbx.
It's much shorter now, but still don't have a clue what's gone wrong. Sorry for slow response >.<
from node-mdbx.
Possibly fixed. Try 0.3.1.
from node-mdbx.
Congrats!
-> % npm i node-mdbx
added 55 packages, and audited 1422 packages in 14s
101 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
from node-mdbx.
Related Issues (7)
- What is the upper cap for options.maxDbs HOT 1
- First key do not returns first key indeed HOT 2
- DupSort support HOT 2
- How to generate mdbx.c ? I trying update mdbx.c to latest , but not found mdbx.c HOT 1
- Upgrade to support new versions of libmbdx 0.11.x HOT 1
- Does the package support the latest mdbx changes? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-mdbx.