cannot build
dodo opened this issue · 5 comments
dodo commented
what am i doing wrong? :(
master//node-profiler » npm i .
> profiler@1.0.1 preinstall /home/dodo/code/javascript/libs/node-profiler
> node-waf configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /home/dodo/.node_libraries
Checking for node prefix : ok /usr
'configure' finished successfully (0.052s)
> profiler@1.0.1 install /home/dodo/code/javascript/libs/node-profiler
> node-waf build install
Waf: Entering directory `/home/dodo/code/javascript/libs/node-profiler/build'
[1/2] cxx: profiler.cc -> build/default/profiler_1.o
../profiler.cc: In function ‘v8::Handle<v8::Value> {anonymous}::Resume(const v8::Arguments&)’:
../profiler.cc:29:3: error: ‘ResumeProfilerEx’ is not a member of ‘v8::V8’
../profiler.cc: In function ‘v8::Handle<v8::Value> {anonymous}::Pause(const v8::Arguments&)’:
../profiler.cc:36:3: error: ‘PauseProfilerEx’ is not a member of ‘v8::V8’
../profiler.cc: In function ‘void {anonymous}::init(v8::Handle<v8::Object>)’:
../profiler.cc:59:48: error: ‘PROFILER_MODULE_CPU’ was not declared in this scope
../profiler.cc:60:55: error: ‘PROFILER_MODULE_HEAP_STATS’ was not declared in this scope
../profiler.cc:61:58: error: ‘PROFILER_MODULE_HEAP_SNAPSHOT’ was not declared in this scope
../profiler.cc:62:60: error: ‘PROFILER_MODULE_JS_CONSTRUCTORS’ was not declared in this scope
Waf: Leaving directory `/home/dodo/code/javascript/libs/node-profiler/build'
Build failed: -> task failed (err #1):
{task: cxx profiler.cc -> profiler_1.o}
npm ERR! profiler@1.0.1 install: `node-waf build install`
npm ERR! `sh "-c" "node-waf build install"` failed with 1
npm ERR!
npm ERR! Failed at the profiler@1.0.1 install script.
npm ERR! This is most likely a problem with the profiler package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf build install
npm ERR! You can get their info via:
npm ERR! npm owner ls profiler
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.0.0-2-amd64
npm ERR! command "node" "/home/dodo/local/bin/npm" "i" "."
npm ERR! cwd /home/dodo/code/javascript/libs/node-profiler
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.101
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/dodo/code/javascript/libs/node-profiler/npm-debug.log
npm not ok
bnoordhuis commented
Do you have multiple versions of node or libv8 installed? The profiler API in V8 changed in recent times but the version that ships with Node 0.4.12 (V8 3.1.8.25) still has the old API.
dodo commented
i have libv8-3.4.14.21 installed
bnoordhuis commented
Right, that's likely the problem - the compiler finds the 3.4.14.21 headers before it finds the 3.1.8.25 headers. Bet you a sixpack that it works when you temporarily uninstall libv8?
dodo commented
unwillingly :(
because i have some dependencies on it (chromium, chromium-browser, coffeescript, libv8-dev, nodejs, nodejs-dev)
bnoordhuis commented
Right, I can see that. I'm closing the issue because it's a build environment problem, not a node-profiler bug. Not much I can do about that.