node-leveldb icon indicating copy to clipboard operation
node-leveldb copied to clipboard

Fix build issues with node 0.10

Open matthiasg opened this issue 11 years ago • 9 comments

node -v v0.10.1 node-gyp -v v0.8.5 System Darwin 12.3.0

../src/cpp/handle.cc:77:12: error: no matching function for call to 'AsyncQueue' return AsyncQueue(op, AsyncWorker<T>, AsyncCallback<T>); ^~~~~~~~~~

2 warnings generated. LIBTOOL-STATIC Release/snappy.a CXX(target) Release/obj.target/leveldb/src/cpp/batch.o CXX(target) Release/obj.target/leveldb/src/cpp/binding.o CXX(target) Release/obj.target/leveldb/src/cpp/comparator.o CXX(target) Release/obj.target/leveldb/src/cpp/handle.o ../src/cpp/handle.cc:77:12: error: no matching function for call to 'AsyncQueue' return AsyncQueue(op, AsyncWorker<T>, AsyncCallback<T>); ^~~~~~~~~~ ../src/cpp/handle.cc:234:12: note: in instantiation of function template specialization 'node_leveldb::JHandle::OpAsync::AsyncEnqueue<node_leveldb::JHandle::ReadAsync>' requested here return AsyncEnqueue<ReadAsync>(op); ^ ...

matthiasg avatar Mar 24 '13 06:03 matthiasg

I believe I'm experiencing the same thing:

gyp ERR! stack Error:`make`failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:256:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:754:12)
gyp ERR! System Darwin 12.2.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /Users/somniac/Projects/level-convictions/app/node_modules/leveldb
gyp ERR! node -v v0.10.0
gyp ERR! node-gyp -v v0.8.5
gyp ERR! not ok 
make: *** [build] Error 1
npm ERR! [email protected] preinstall:`make build`
npm ERR!`sh "-c" "make build"` failed with 2
npm ERR! 
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the leveldb package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     make build

danfinlay avatar Mar 30 '13 18:03 danfinlay

bump?

I'm seeing:

../src/cpp/handle.cc:77:12: error: no matching function for call to 'AsyncQueue'
return AsyncQueue(op, AsyncWorker<T>, AsyncCallback<T>);
       ^~~~~~~~~~

electblake avatar Apr 05 '13 06:04 electblake

Sorry, about the delay in responding.

Can you try using 0.8? 0.10 was never tested and I am getting a separate issue on Ubuntu when building that I will try and track down.

my8bird avatar Apr 18 '13 01:04 my8bird

using node version 0.10.4, when I npm install The error on ubuntu is

nick at www ~/Projects/node-leveldb  on master*$ npm install .

> [email protected] preinstall /home/nick/Projects/node-leveldb
> make build

if [ ! -d ./build ]; then node-gyp configure; fi
gyp http GET http://nodejs.org/dist/v0.10.4/node-v0.10.4.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.4/node-v0.10.4.tar.gz
node-gyp build
.
.
.
.
make[1]: *** [Release/obj.target/leveldb/src/cpp/handle.o] Error 1
make[1]: Leaving directory `/home/nick/Projects/node-leveldb/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/nick/nvm/v0.10.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:784:12)
gyp ERR! System Linux 3.8.2-030802-generic
gyp ERR! command "node" "/home/nick/nvm/v0.10.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /home/nick/Projects/node-leveldb
gyp ERR! node -v v0.10.4
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok 
make: *** [build] Error 1
npm ERR! [email protected] preinstall: `make build`
npm ERR! `sh "-c" "make build"` failed with 2
npm ERR! 
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the leveldb package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     make build
npm ERR! You can get their info via:
npm ERR!     npm owner ls leveldb
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.8.2-030802-generic
npm ERR! command "/home/nick/nvm/v0.10.4/bin/node" "/home/nick/nvm/v0.10.4/bin/npm" "install" "."
npm ERR! cwd /home/nick/Projects/node-leveldb
npm ERR! node -v v0.10.4
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/nick/Projects/node-leveldb/npm-debug.log
npm ERR! not ok code 0

nickleefly avatar Apr 21 '13 08:04 nickleefly

This error is also present when using node 0.10.5 (via nvm) on OSX 10.8.3

diclophis avatar Apr 27 '13 19:04 diclophis

Please someone take over this project... there is leveldown but it doesn't support the iterator like this one does with seek, and prev

dazoe avatar Oct 11 '13 03:10 dazoe

I think we're just looking at an abandoned branch here. Levelup is working fine for me.

danfinlay avatar Oct 11 '13 04:10 danfinlay

I don't like how the iterator is handled in Levelup / Leveldown

dazoe avatar Oct 11 '13 05:10 dazoe

Same problem happening here, full log: https://gist.github.com/julienbrunuk/f420460f37525c1c2afe

julienbrunuk avatar May 28 '14 07:05 julienbrunuk