Skip to content

Doesn't compile on windows #87

@kungfutse

Description

@kungfutse

Node-gyp fails with the following error when compiling on windows using visual studio 2017 build tools:

> [email protected] install C:\Path\to\project\node_modules\pprof
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://storage.googleapis.com/cloud-profiler/pprof-nodejs/release/v1.1.0/node-v72-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  profiler.cc
  win_delay_load_hook.cc
C:\Path\to\project\node_modules\pprof\bindings\profiler.cc(140): error C2131: expression did not evaluate to a constant  [C:\Path\to\project\node_modules\pprof\build\pprof.vcxproj]
  C:\Path\to\project\node_modules\pprof\bindings\profiler.cc(140): note: failure was caused by a read of a variable out
  side its lifetime
  C:\Path\to\project\node_modules\pprof\bindings\profiler.cc(140): note: see usage of 'hitLineCount'
C:\Path\to\project\node_modules\pprof\bindings\profiler.cc(148): error C2065: 'entry': undeclared identifier [C:\Users\ tonis\Repositories\verkkokauppa\richrelevance-api\node_modules\pprof\build\pprof.vcxproj]
C:\Path\to\project\node_modules\pprof\bindings\profiler.cc(149): error C2065: 'entry': undeclared identifier [C:\Users\ tonis\Repositories\verkkokauppa\richrelevance-api\node_modules\pprof\build\pprof.vcxproj]
C:\Path\to\project\node_modules\pprof\bindings\profiler.cc(145): error C2660: 'CreateTimeNode': function does not take
5 arguments [C:\Path\to\project\node_modules\pprof\build\pprof.vcxproj]
  C:\Path\to\project\node_modules\pprof\bindings\profiler.cc(108): note: see declaration of 'CreateTimeNode'
C:\Path\to\project\node_modules\pprof\bindings\profiler.cc(144): error C2661: 'Nan::Set': no overloaded function takes
2 arguments [C:\Path\to\project\node_modules\pprof\build\pprof.vcxproj]
C:\Path\to\project\node_modules\pprof\bindings\profiler.cc(189): error C2131: expression did not evaluate to a constant  [C:\Path\to\project\node_modules\pprof\build\pprof.vcxproj]
  C:\Path\to\project\node_modules\pprof\bindings\profiler.cc(189): note: failure was caused by a read of a variable out
  side its lifetime
  C:\Path\to\project\node_modules\pprof\bindings\profiler.cc(189): note: see usage of 'count'
C:\Path\to\project\node_modules\pprof\bindings\profiler.cc(194): error C3863: array type 'v8::Local<v8::Array> [count]'  is not assignable [C:\Path\to\project\node_modules\pprof\build\pprof.vcxproj]
gyp ERR! build error

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions