othiym23 / bug-clinic

a nodeschool.io-style workshopper for learning how to debug Node.js apps
https://npmjs.org/package/bug-clinic
BSD 2-Clause "Simplified" License
175 stars 49 forks source link

Errors installing bug-clinic #22

Open meadow-kun opened 8 years ago

meadow-kun commented 8 years ago

I get this output when trying to install on node v4.2.5

Philips-MacBook-Pro-2:tutorials Phil$ npm install -g bug-clinic npm WARN deprecated win-spawn@2.0.0: use cross-spawn or cross-spawn-async instead. WARN engine async-listener@0.2.2: wanted: {"node":"<0.11.7"} (current: {"node":"4.2.5","npm":"2.14.12"}) npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

dtrace-provider@0.2.8 install /usr/local/lib/node_modules/bug-clinic/node_modules/bunyan/node_modules/dtrace-provider node-gyp rebuild

ACTION binding_gyp_libusdt_target_build_libusdt . Building libusdt for x8664 rm -f .gch rm -f .o rm -f libusdt.a rm -f test_usdt rm -f test_usdt32 rm -f test_usdt64 rm -f test_mem_usage gcc -O2 -arch x86_64 -c -o usdt.o usdt.c usdt.c:212:9: warning: implicit declaration of function 'usdt_dof_section_free' is invalid in C99 [-Wimplicit-function-declaration] usdt_dof_section_free(&strtab); ^ usdt.c:238:9: warning: implicit declaration of function 'usdt_dof_file_free' is invalid in C99 [-Wimplicit-function-declaration] usdt_dof_file_free(provider->file); ^ 2 warnings generated. gcc -O2 -arch x86_64 -c -o usdt_dof_file.o usdt_dof_file.c gcc -arch x86_64 -o usdt_tracepoints.o -c usdt_tracepoints_x86_64.s gcc -O2 -arch x86_64 -c -o usdt_probe.o usdt_probe.c gcc -O2 -arch x86_64 -c -o usdt_dof.o usdt_dof.c gcc -O2 -arch x86_64 -c -o usdt_dof_sections.o usdt_dof_sections.c rm -f libusdt.a ar cru libusdt.a usdt.o usdt_dof_file.o usdt_tracepoints.o usdt_probe.o usdt_dof.o usdt_dof_sections.o ranlib libusdt.a TOUCH Release/obj.target/libusdt.stamp CXX(target) Release/obj.target/DTraceProviderBindings/dtrace_provider.o In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:69:44: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value New(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Phil/.node-gyp/4.2.5/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:70:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value Fire(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Phil/.node-gyp/4.2.5/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:87:44: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value New(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Phil/.node-gyp/4.2.5/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:88:49: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value AddProbe(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Phil/.node-gyp/4.2.5/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:89:52: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value RemoveProbe(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Phil/.node-gyp/4.2.5/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:90:47: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value Enable(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Phil/.node-gyp/4.2.5/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:91:48: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value Disable(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Phil/.node-gyp/4.2.5/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../dtrace_provider.cc:1: ../dtrace_provider.h:92:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value Fire(const v8::Arguments& args); ^~~~~ v8::internal::Arguments /Users/Phil/.node-gyp/4.2.5/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ ../dtrace_provider.cc:23:17: error: calling a protected constructor of class 'v8::HandleScope' HandleScope scope; ^ /Users/Phil/.node-gyp/4.2.5/include/node/v8.h:885:13: note: declared protected here V8_INLINE HandleScope() {} ^ ../dtrace_provider.cc:25:55: error: cannot initialize a parameter of type 'v8::Isolate ' with an lvalue of type 'v8::Handlev8::Value (const v8::internal::Arguments &)' (aka 'v8::Localv8::Value (const v8::internal::Arguments &)') Local t = FunctionTemplate::New(DTraceProvider::New); ^~~~~~~ /Users/Phil/.node-gyp/4.2.5/include/node/v8.h:4350:16: note: passing argument to parameter 'isolate' here Isolate_ isolate, FunctionCallback callback = 0, ^ ../dtrace_provider.cc:26:58: error: 'New' is a private member of 'v8::PersistentBasev8::FunctionTemplate' constructor_template = Persistent::New(t); ^ /Users/Phil/.node-gyp/4.2.5/include/node/v8.h:639:23: note: declared private here V8_INLINE static T* New(Isolate* isolate, T* that); ^ ../dtrace_provider.cc:26:28: error: too few arguments to function call, expected 2, have 1; did you mean 'DTraceProbe::New'? constructor_template = Persistent::New(t); ^~~~~~ DTraceProbe::New ../dtrace_provider.h:69:34: note: 'DTraceProbe::New' declared here static v8::Handlev8::Value New(const v8::Arguments& args); ^ ../dtrace_provider.cc:27:25: error: member reference type 'Persistentv8::FunctionTemplate' is not a pointer; did you mean to use '.'? constructor_template->InstanceTemplate()->SetInternalFieldCount(1);


                        .
../dtrace_provider.cc:27:27: error: no member named 'InstanceTemplate' in
      'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
    constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
    ~~~~~~~~~~~~~~~~~~~~  ^
../dtrace_provider.cc:28:25: error: member reference type 'Persistentv8::FunctionTemplate' is not a
      pointer; did you mean to use '.'?
    constructor_template->SetClassName(String::NewSymbol("DTraceProvider"));
    ~~~~~~~~~~~~~~~~~~~~^~
                        .
../dtrace_provider.cc:28:27: error: no member named 'SetClassName' in
      'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
    constructor_template->SetClassName(String::NewSymbol("DTraceProvider"));
    ~~~~~~~~~~~~~~~~~~~~  ^
../dtrace_provider.cc:28:48: error: no member named 'NewSymbol' in 'v8::String'
    constructor_template->SetClassName(String::NewSymbol("DTraceProvider"));
                                       ~~~~~~~~^
../dtrace_provider.cc:30:31: error: no viable conversion from 'Persistentv8::FunctionTemplate' to
      'v8::Localv8::FunctionTemplate'
    NODE_SET_PROTOTYPE_METHOD(constructor_template, "addProbe", DTraceProvider::AddProbe);
                              ^~~~~~~~~~~~~~~~~~~~
/Users/Phil/.node-gyp/4.2.5/include/node/v8.h:210:7: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from
      'Persistentv8::FunctionTemplate' to 'const v8::Localv8::FunctionTemplate &' for 1st
      argument
class Local {
      ^
/Users/Phil/.node-gyp/4.2.5/include/node/v8.h:210:7: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from
      'Persistentv8::FunctionTemplate' to 'v8::Localv8::FunctionTemplate &&' for 1st argument
/Users/Phil/.node-gyp/4.2.5/include/node/v8.h:214:13: note: candidate template ignored: could not
      match 'Local' against 'Persistent'
  V8_INLINE Local(Local<S> that)
            ^
/Users/Phil/.node-gyp/4.2.5/include/node/v8.h:326:13: note: candidate template ignored: could not
      match 'S _' against 'Persistentv8::FunctionTemplate'
  V8_INLINE Local(S_ that)
            ^
/Users/Phil/.node-gyp/4.2.5/include/node/node.h:252:71: note: passing argument to parameter 'recv'
      here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Localv8::FunctionTemplate recv,
                                                                      ^
../dtrace_provider.cc:31:31: error: no viable conversion from 'Persistentv8::FunctionTemplate' to
      'v8::Localv8::FunctionTemplate'
    NODE_SET_PROTOTYPE_METHOD(constructor_template, "removeProbe", DTraceProvider::RemoveProbe);
                              ^~~~~~~~~~~~~~~~~~~~
/Users/Phil/.node-gyp/4.2.5/include/node/v8.h:210:7: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from
      'Persistentv8::FunctionTemplate' to 'const v8::Localv8::FunctionTemplate &' for 1st
      argument
class Local {
      ^
/Users/Phil/.node-gyp/4.2.5/include/node/v8.h:210:7: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from
      'Persistentv8::FunctionTemplate' to 'v8::Localv8::FunctionTemplate &&' for 1st argument
/Users/Phil/.node-gyp/4.2.5/include/node/v8.h:214:13: note: candidate template ignored: could not
      match 'Local' against 'Persistent'
  V8_INLINE Local(Local<S> that)
            ^
/Users/Phil/.node-gyp/4.2.5/include/node/v8.h:326:13: note: candidate template ignored: could not
      match 'S _' against 'Persistentv8::FunctionTemplate'
  V8_INLINE Local(S_ that)
            ^
/Users/Phil/.node-gyp/4.2.5/include/node/node.h:252:71: note: passing argument to parameter 'recv'
      here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Localv8::FunctionTemplate recv,
                                                                      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: **\* [Release/obj.target/DTraceProviderBindings/dtrace_provider.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/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/bug-clinic/node_modules/bunyan/node_modules/dtrace-provider
gyp ERR! node -v v4.2.5
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN optional dep failed, continuing dtrace-provider@0.2.8
/usr/local/bin/bug-clinic -> /usr/local/lib/node_modules/bug-clinic/bin/cmd.js
bug-clinic@1.1.5 /usr/local/lib/node_modules/bug-clinic
├── default-pager@1.1.0
├── win-spawn@2.0.0
├── replify@1.2.0
├── minimist@0.2.0
├── graceful-fs@3.0.10 (natives@1.0.2)
├── resumer@0.0.0 (through@2.3.8)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── concat-stream@1.5.1 (inherits@2.0.1, typedarray@0.0.6, readable-stream@2.0.6)
├── terminal-menu@0.3.5 (inherits@2.0.1, charm@0.1.2, visualwidth@0.0.1)
├── repl-client@0.3.0 (optimist@0.3.7)
├── stackup@0.0.3 (async-listener@0.2.2)
├── jstrace@0.3.0 (commander@2.1.0, debug@0.7.4, escape-regexp@0.0.1, backo@1.0.1, batch@0.5.3, actorify@1.0.0)
├── adventure@2.11.0 (inherits@2.0.1, x256@0.0.2, split@0.3.3, through2@0.5.1, terminal-menu@2.1.1)
├── adventure-verify@2.2.0 (tap-parser@0.5.0, tap-colorize@1.2.0, tape@2.14.1)
├── moment@2.14.1
├── eslint@0.6.2 (strip-json-comments@0.1.3, estraverse@1.3.2, text-table@0.2.0, doctrine@0.5.2, chalk@0.4.0, escope@1.0.3, esprima@1.2.5, optionator@0.4.0, cssauron-esprima@0.0.1, glob@3.2.11, js-yaml@3.0.2)
├── jshint@2.9.3 (strip-json-comments@1.0.4, exit@0.1.2, console-browserify@1.1.0, shelljs@0.3.0, minimatch@3.0.3, cli@1.0.0, htmlparser2@3.8.3, lodash@3.7.0)
├── replpad@0.11.9 (hasinternet@0.0.0, opener@1.3.0, ansistyles@0.1.3, ansicolors@0.2.1, anchor-markdown-header@0.3.8, find-parent-dir@0.1.0, marked@0.2.10, require-like@0.1.2, function-comment@0.2.2, mkdirp@0.3.5, esprima@1.0.4, readline-matchtoken@0.1.0, readline-vim@0.3.2, escodegen@0.0.15, xtend@2.0.6, cardinal@0.4.4, hermit@0.2.2, msee@0.1.0-alpha.3, request@2.12.0, readdirp@0.2.5, findex@0.2.3, scriptie-talkie@0.4.7)
├── request@2.74.0 (aws-sign2@0.6.0, tunnel-agent@0.4.3, oauth-sign@0.8.2, forever-agent@0.6.1, is-typedarray@1.0.0, caseless@0.11.0, stringstream@0.0.5, aws4@1.4.1, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, tough-cookie@2.3.1, qs@6.2.1, node-uuid@1.4.7, combined-stream@1.0.5, mime-types@2.1.11, bl@1.1.2, hawk@3.1.3, http-signature@1.1.1, har-validator@2.0.6, form-data@1.0.1)
└── bunyan@0.23.1 (mv@2.1.1)
Philips-MacBook-Pro-2:tutorials Phil$ node --v
node: bad option: --v
Philips-MacBook-Pro-2:tutorials Phil$ node -v
v4.2.5
Philips-MacBook-Pro-2:tutorials Phil$