dainis/node-gcstats

Fails to build on Node 10.2.x

jmorrell opened this issue · 0 comments

It looks like this build fails with node 10.2.0 (which had issues with native modules) and 10.2.1 (where the issues should have been fixed).

From package.json:

  "dependencies": {
    "gc-stats": "^1.1.1",

Log:

❯ node --version
v10.2.1

❯ npm install        

> gc-stats@1.1.1 install /Users/jmorrell/workspace/heroku-nodejs-metrics-buildpack/node-metrics-plugin/node_modules/gc-stats
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://node-binaries.s3.amazonaws.com/gcstats/v1.1.1/Release/node-v64-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for gc-stats@1.1.1 and node@10.2.1 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp ERR! Pre-built binaries not installable for gc-stats@1.1.1 and node@10.2.1 (node-v64 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp ERR! Hit error Connection closed while downloading tarball file 
  CXX(target) Release/obj.target/gcstats/src/gcstats.o
  CXX(target) Release/obj.target/gcstats/src/gcstats.o
In file included from ../src/gcstats.cc:1:
../../nan/nan.h:839:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/gcstats.cc:1:
../../nan/nan.h:854:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:164:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/gcstats.cc:1:
../../nan/nan.h:869:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:157:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/gcstats.cc:1:
../../nan/nan.h:839:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/gcstats.cc:1:
../../nan/nan.h:854:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:164:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/gcstats.cc:1:
../../nan/nan.h:869:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:157:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/gcstats.cc:1:
../../nan/nan.h:1648:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return scope.Escape(node::MakeCallback(
                              ^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/gcstats.cc:1:
../../nan/nan.h:1648:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return scope.Escape(node::MakeCallback(
                              ^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/jmorrell/.node-gyp/10.2.1/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
../src/gcstats.cc:136:19: warning: 'Call' is deprecated [-Wdeprecated-declarations]
        afterGCCallback->Call(1, arguments);
                         ^
../../nan/nan.h:1567:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:98:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/gcstats.cc:136:19: warning: 'Call' is deprecated [-Wdeprecated-declarations]
        afterGCCallback->Call(1, arguments);
                         ^
../../nan/nan.h:1567:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:98:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
5 warnings generated.
5 warnings generated.
rm: ./Release/.deps/Release/obj.target/gcstats/src/gcstats.o.d.raw: No such file or directory
make: *** [Release/obj.target/gcstats/src/gcstats.o] Error 1
gyp  SOLINK_MODULE(target) Release/gcstats.node
 ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/jmorrell/.nvm/versions/node/v10.2.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command "/Users/jmorrell/.nvm/versions/node/v10.2.1/bin/node" "/Users/jmorrell/.nvm/versions/node/v10.2.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/jmorrell/workspace/heroku-nodejs-metrics-buildpack/node-metrics-plugin/node_modules/gc-stats/build/gcstats/v1.1.1/Release/node-v64-darwin-x64/gcstats.node" "--module_name=gcstats" "--module_path=/Users/jmorrell/workspace/heroku-nodejs-metrics-buildpack/node-metrics-plugin/node_modules/gc-stats/build/gcstats/v1.1.1/Release/node-v64-darwin-x64"
gyp ERR! cwd /Users/jmorrell/workspace/heroku-nodejs-metrics-buildpack/node-metrics-plugin/node_modules/gc-stats
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/Users/jmorrell/.nvm/versions/node/v10.2.1/bin/node /Users/jmorrell/.nvm/versions/node/v10.2.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/jmorrell/workspace/heroku-nodejs-metrics-buildpack/node-metrics-plugin/node_modules/gc-stats/build/gcstats/v1.1.1/Release/node-v64-darwin-x64/gcstats.node --module_name=gcstats --module_path=/Users/jmorrell/workspace/heroku-nodejs-metrics-buildpack/node-metrics-plugin/node_modules/gc-stats/build/gcstats/v1.1.1/Release/node-v64-darwin-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/jmorrell/workspace/heroku-nodejs-metrics-buildpack/node-metrics-plugin/node_modules/gc-stats/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:961:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
node-pre-gyp ERR! System Darwin 17.5.0
node-pre-gyp ERR! command "/Users/jmorrell/.nvm/versions/node/v10.2.1/bin/node" "/Users/jmorrell/workspace/heroku-nodejs-metrics-buildpack/node-metrics-plugin/node_modules/gc-stats/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/jmorrell/workspace/heroku-nodejs-metrics-buildpack/node-metrics-plugin/node_modules/gc-stats
node-pre-gyp ERR! node -v v10.2.1
node-pre-gyp ERR! node-pre-gyp -v v0.7.0
node-pre-gyp ERR! not ok 
Failed to execute '/Users/jmorrell/.nvm/versions/node/v10.2.1/bin/node /Users/jmorrell/.nvm/versions/node/v10.2.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/jmorrell/workspace/heroku-nodejs-metrics-buildpack/node-metrics-plugin/node_modules/gc-stats/build/gcstats/v1.1.1/Release/node-v64-darwin-x64/gcstats.node --module_name=gcstats --module_path=/Users/jmorrell/workspace/heroku-nodejs-metrics-buildpack/node-metrics-plugin/node_modules/gc-stats/build/gcstats/v1.1.1/Release/node-v64-darwin-x64' (1)
  COPY /Users/jmorrell/workspace/heroku-nodejs-metrics-buildpack/node-metrics-plugin/node_modules/gc-stats/build/gcstats/v1.1.1/Release/node-v64-darwin-x64/gcstats.node
  TOUCH Release/obj.target/action_after_build.stamp
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gc-stats@1.1.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the gc-stats@1.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.