Closed alexandertrefz closed 9 years ago
I can verify this is a problem, Please update if you need more info.
> ref@0.1.3 install /home/stefan/node/node_modules/exec-sync/node_modules/ffi/node_modules/ref
> node-gyp rebuild
make: Entering directory `/home/stefan/node/node_modules/exec-sync/node_modules/ffi/node_modules/ref/build'
CXX(target) Release/obj.target/binding/src/binding.o
SOLINK_MODULE(target) Release/obj.target/binding.node
SOLINK_MODULE(target) Release/obj.target/binding.node: Finished
COPY Release/binding.node
make: Leaving directory `/home/stefan/node/node_modules/exec-sync/node_modules/ffi/node_modules/ref/build'
> ffi@1.1.2 install /home/stefan/node/node_modules/exec-sync/node_modules/ffi
> node-gyp rebuild
make: Entering directory `/home/stefan/node/node_modules/exec-sync/node_modules/ffi/build'
CC(target) Release/obj.target/ffi/deps/libffi/src/prep_cif.o
CC(target) Release/obj.target/ffi/deps/libffi/src/types.o
CC(target) Release/obj.target/ffi/deps/libffi/src/raw_api.o
CC(target) Release/obj.target/ffi/deps/libffi/src/java_raw_api.o
CC(target) Release/obj.target/ffi/deps/libffi/src/closures.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi64.o
../deps/libffi/src/x86/ffi64.c: In function ‘classify_argument’:
../deps/libffi/src/x86/ffi64.c:181: warning: suggest braces around empty body in an ‘else’ statement
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/unix64.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/sysv.o
AR(target) Release/obj.target/deps/libffi/libffi.a
COPY Release/libffi.a
CXX(target) Release/obj.target/ffi_bindings/src/ffi.o
../src/ffi.cc: In static member function ‘static v8::Handle<v8::Value> FFI::FFICallAsync(const v8::Arguments&)’:
../src/ffi.cc:286: error: invalid conversion from ‘void (*)(uv_work_t*)’ to ‘void (*)(uv_work_t*, int)’
../src/ffi.cc:286: error: initializing argument 4 of ‘int uv_queue_work(uv_loop_t*, uv_work_t*, void (*)(uv_work_t*), void (*)(uv_work_t*, int))’
make: *** [Release/obj.target/ffi_bindings/src/ffi.o] Error 1
make: Leaving directory `/home/stefan/node/node_modules/exec-sync/node_modules/ffi/build'
gyp ERR! build error
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: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 2.6.32-5-amd64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/stefan/node/node_modules/exec-sync/node_modules/ffi
gyp ERR! node -v v0.10.4
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! ffi@1.1.2 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the ffi@1.1.2 install script.
npm ERR! This is most likely a problem with the ffi package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls ffi
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-5-amd64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "exec-sync"
npm ERR! cwd /home/stefan/node
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/stefan/node/npm-debug.log
npm ERR! not ok code 0
As it is said in the main page of the repo, I don't maintain this module anymore. I advise you use https://github.com/mgutz/execSync instead, which is providing the same features as this one.
This is really funny, this repo is not maintained but the above mentioned is also not being maintained. I wish I knew more about NPM and Node because I am getting the same error as above. My env is setup with Node v 0.12.3 and npm 2.9.3. I'll be notifying here if I happen to come to a fix.
execSync is now available in node v0.12 standard library. No need to use a third-party library
Thanks @jeremyfa, I'll take this up with them as their package also does not work on my system.
Oh I understand now! You meant built in already. Thanks!
The install of this module works under 0.8.22 but fails under 0.10.0 as well as 0.10.1 for me (OS X) here is the log: