Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error OS X 10.8 #10

Closed
DamienBell opened this issue Jul 11, 2013 · 6 comments
Closed

build error OS X 10.8 #10

DamienBell opened this issue Jul 11, 2013 · 6 comments

Comments

@DamienBell
Copy link

I'm getting a build error when I attempt to install this on my mac.

building talib functions...
CXX(target) Release/obj.target/talib/src/talib.o
../src/talib.cpp:694:9: error: no matching function for call to 'uv_queue_work'
uv_queue_work(uv_default_loop(), req, ExecuteWork, ExecuteWorkDone);
^~~~~~~~~~~~~
/Users/damiensbell/.node-gyp/0.8.16/deps/uv/include/uv.h:1322:15: note: candidate
function not viable: no known conversion from 'void (uv_work_t , int)' to
'uv_after_work_cb' (aka 'void (
)(uv_work_t )') for 4th argument
UV_EXTERN int uv_queue_work(uv_loop_t
loop, uv_work_t* req,
^

It's followed by lots of others errors, but it looks like this is probably the cause.
Any ideas what this might be?

@oransel
Copy link
Owner

oransel commented Jul 11, 2013

Here is an output from my mac.

~/Desktop/test$ npm install talib
npm http GET https://registry.npmjs.org/talib
npm http 200 https://registry.npmjs.org/talib

talib@0.2.11 preinstall /Users/oransel/Desktop/test/node_modules/talib
cd ./src/lib && node build.js && cd ../../ && node-gyp configure && node-gyp build

building talib functions...
gyp http GET http://nodejs.org/dist/v0.10.12/node-v0.10.12.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.12/node-v0.10.12.tar.gz
CXX(target) Release/obj.target/talib/src/talib.o
SOLINK_MODULE(target) Release/talib.node
SOLINK_MODULE(target) Release/talib.node: Finished
talib@0.2.11 node_modules/talib
~/Desktop/test$

Can you please specify the nodejs version you are using? May be include the full output?

@DamienBell
Copy link
Author

sure, and thanks for the quick response.

node version: node-0.8.16

Damiens-MacBook-Air:breakout damiensbell$ npm install talib
npm WARN package.json Breakout@0.0.1 No README.md file found!
npm http GET https://registry.npmjs.org/talib
npm http 304 https://registry.npmjs.org/talib

talib@0.2.11 preinstall /Users/damiensbell/Sites/breakout/node_modules/talib
cd ./src/lib && node build.js && cd ../../ && node-gyp configure && node-gyp build

building talib functions...
CXX(target) Release/obj.target/talib/src/talib.o
../src/talib.cpp:694:9: error: no matching function for call to 'uv_queue_work'
uv_queue_work(uv_default_loop(), req, ExecuteWork, ExecuteWorkDone);
^~~~~~~~~~~~~
/Users/damiensbell/.node-gyp/0.8.16/deps/uv/include/uv.h:1322:15: note: candidate
function not viable: no known conversion from 'void (uv_work_t , int)' to
'uv_after_work_cb' (aka 'void (
)(uv_work_t )') for 4th argument
UV_EXTERN int uv_queue_work(uv_loop_t
loop, uv_work_t* req,
^
1 error generated.
make: *** [Release/obj.target/talib/src/talib.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/Cellar/node/0.8.16/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:232:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Darwin 12.3.0
gyp ERR! command "node" "/usr/local/Cellar/node/0.8.16/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /Users/damiensbell/Sites/breakout/node_modules/talib
gyp ERR! node -v v0.8.16
gyp ERR! node-gyp -v v0.7.3
gyp ERR! not ok

talib@0.2.11 preuninstall /Users/damiensbell/Sites/breakout/node_modules/talib
rm -rf build/* && cd ./src/lib && node clean.js && cd ../../

cleaning talib...
npm ERR! talib@0.2.11 preinstall: cd ./src/lib && node build.js && cd ../../ && node-gyp configure && node-gyp build
npm ERR! sh "-c" "cd ./src/lib && node build.js && cd ../../ && node-gyp configure && node-gyp build" failed with 1
npm ERR!
npm ERR! Failed at the talib@0.2.11 preinstall script.
npm ERR! This is most likely a problem with the talib package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cd ./src/lib && node build.js && cd ../../ && node-gyp configure && node-gyp build
npm ERR! You can get their info via:
npm ERR! npm owner ls talib
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 12.3.0
npm ERR! command "/usr/local/Cellar/node/0.8.16/bin/node" "/usr/local/bin/npm" "install" "talib"
npm ERR! cwd /Users/damiensbell/Sites/breakout
npm ERR! node -v v0.8.16
npm ERR! npm -v 1.1.69
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/damiensbell/Sites/breakout/npm-debug.log
npm ERR! not ok code 0

@oransel
Copy link
Owner

oransel commented Jul 11, 2013

Sure. Is it possible for you to upgrade to the latest NodeJS version?

@DamienBell
Copy link
Author

hmm.. updated node, and now it's looking like the problem may actually be coming from node-gyp.

npm install talib
npm http GET https://registry.npmjs.org/talib
npm http 304 https://registry.npmjs.org/talib

talib@0.2.11 preinstall /Users/damiensbell/Sites/breakout/node_modules/talib
cd ./src/lib && node build.js && cd ../../ && node-gyp configure && node-gyp build

building talib functions...
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack TypeError: Cannot read property '0' of undefined
gyp ERR! stack at install (/usr/local/Cellar/node/0.8.16/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:59:25)
gyp ERR! stack at Object.self.commands.(anonymous function) as install
gyp ERR! stack at getNodeDir (/usr/local/Cellar/node/0.8.16/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:219:20)
gyp ERR! stack at /usr/local/Cellar/node/0.8.16/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:105:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:635:7)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at maybeClose (child_process.js:735:16)
gyp ERR! stack at Socket. (child_process.js:948:11)
gyp ERR! stack at Socket.EventEmitter.emit (events.js:95:17)
gyp ERR! stack at Pipe.close (net.js:466:12)
gyp ERR! System Darwin 12.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure"
gyp ERR! cwd /Users/damiensbell/Sites/breakout/node_modules/talib
gyp ERR! node -v v0.10.13
gyp ERR! node-gyp -v v0.10.2
gyp ERR! This is a bug in node-gyp.
gyp ERR! Please file an Issue:
gyp ERR! https://github.com/TooTallNate/node-gyp/issues

talib@0.2.11 preuninstall /Users/damiensbell/Sites/breakout/node_modules/talib
rm -rf build/* && cd ./src/lib && node clean.js && cd ../../

cleaning talib...
unbuild talib@0.2.11
npm ERR! weird error 7
npm ERR! not ok code 0

@oransel
Copy link
Owner

oransel commented Jul 11, 2013

It is still pointing to the old node
/usr/local/Cellar/node/0.8.16/

@DamienBell
Copy link
Author

okay, so what eventually got this to work was completely uninstalling, the reinstalling node. Seems to be working fine, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants