Ask questionsNode gyp build fails on node v12.1.0
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
Cookbooks Version
7c2c6a6 https://github.com/travis-ci/travis-cookbooks/tree/7c2c6a6
git version
git version 2.15.1
bash version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
gcc version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ node --version
v12.1.0
$ npm --version
6.9.0
$ nvm --version
0.34.0
$ yarn --version
1.3.2
gyp info using node@12.1.0 | linux | x64
../ext/channel.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE grpc::node::Channel::GetConnectivityState(Nan::NAN_METHOD_ARGS_TYPE)’:
../ext/channel.cc:292:56: error: no matching function for call to ‘v8::Value::Equals(v8::Local<v8::Boolean>)’
int try_to_connect = (int)info[0]->Equals(Nan::True());
^
../ext/channel.cc:292:56: note: candidate is:
In file included from /home/travis/.node-gyp/12.1.0/include/node/node.h:63:0,
from ../../../../nan/nan.h:53,
from ../ext/channel.cc:23:
/home/travis/.node-gyp/12.1.0/include/node/v8.h:2572:37: note: v8::Maybe<bool> v8::Value::Equals(v8::Local<v8::Context>, v8::Local<v8::Value>) const
V8_WARN_UNUSED_RESULT Maybe<bool> Equals(Local<Context> context,
^
/home/travis/.node-gyp/12.1.0/include/node/v8.h:2572:37: note: candidate expects 2 arguments, 1 provided
make: *** [Release/obj.target/grpc_node/ext/channel.o] Error 1
More logs: https://travis-ci.org/kaliberjs/firebase-queue/jobs/526682043
Answer
questions
EECOLOR
@bnoordhuis Ahh, found it:-Dmodule_root_dir=/home/travis/build/kaliberjs/firebase-queue/node_modules/firebase-server/node_modules/grpc
https://github.com/grpc/grpc-node/issues/834
Related questions