Node.js 6.x support
See original GitHub issueHi
Is linux supported? I’m getting the following issue with s2geometry-node but can’t find any more details about…
➜ Pokemon-GO-node-api git:(master) npm i
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
> s2geometry-node@1.1.3 install /home/bencevans/Code/Pokemon-GO-node-api/node_modules/s2geometry-node
> node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/home/bencevans/Code/Pokemon-GO-node-api/node_modules/s2geometry-node/build'
CXX(target) Release/obj.target/NativeExtension/src/NativeExtension.o
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<float>::IsFinite(MathLimits<float>::Type)’:
../geometry/util/math/mathlimits.h:194:55: error: ‘isinf’ was not declared in this scope
static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:229:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(float, FLT)
^
../geometry/util/math/mathlimits.h:194:55: note: suggested alternative:
static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:229:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(float, FLT)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:621:5: note: ‘std::isinf’
isinf(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h:194:70: error: ‘isnan’ was not declared in this scope
static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:229:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(float, FLT)
^
../geometry/util/math/mathlimits.h:194:70: note: suggested alternative:
static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:229:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(float, FLT)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:641:5: note: ‘std::isnan’
isnan(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<float>::IsNaN(MathLimits<float>::Type)’:
../geometry/util/math/mathlimits.h:195:51: error: ‘isnan’ was not declared in this scope
static bool IsNaN(const Type x) { return isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:229:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(float, FLT)
^
../geometry/util/math/mathlimits.h:195:51: note: suggested alternative:
static bool IsNaN(const Type x) { return isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:229:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(float, FLT)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:641:5: note: ‘std::isnan’
isnan(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<float>::IsInf(MathLimits<float>::Type)’:
../geometry/util/math/mathlimits.h:196:51: error: ‘isinf’ was not declared in this scope
static bool IsInf(const Type x) { return isinf(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:229:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(float, FLT)
^
../geometry/util/math/mathlimits.h:196:51: note: suggested alternative:
static bool IsInf(const Type x) { return isinf(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:229:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(float, FLT)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:621:5: note: ‘std::isinf’
isinf(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<float>::IsPosInf(MathLimits<float>::Type)’:
../geometry/util/math/mathlimits.h:197:54: error: ‘isinf’ was not declared in this scope
static bool IsPosInf(const Type x) { return isinf(x) && x > 0; } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:229:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(float, FLT)
^
../geometry/util/math/mathlimits.h:197:54: note: suggested alternative:
static bool IsPosInf(const Type x) { return isinf(x) && x > 0; } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:229:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(float, FLT)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:621:5: note: ‘std::isinf’
isinf(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<float>::IsNegInf(MathLimits<float>::Type)’:
../geometry/util/math/mathlimits.h:198:54: error: ‘isinf’ was not declared in this scope
static bool IsNegInf(const Type x) { return isinf(x) && x < 0; }
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:229:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(float, FLT)
^
../geometry/util/math/mathlimits.h:198:54: note: suggested alternative:
static bool IsNegInf(const Type x) { return isinf(x) && x < 0; }
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:229:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(float, FLT)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:621:5: note: ‘std::isinf’
isinf(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<double>::IsFinite(MathLimits<double>::Type)’:
../geometry/util/math/mathlimits.h:194:55: error: ‘isinf’ was not declared in this scope
static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:230:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(double, DBL)
^
../geometry/util/math/mathlimits.h:194:55: note: suggested alternative:
static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:230:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(double, DBL)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:621:5: note: ‘std::isinf’
isinf(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h:194:70: error: ‘isnan’ was not declared in this scope
static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:230:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(double, DBL)
^
../geometry/util/math/mathlimits.h:194:70: note: suggested alternative:
static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:230:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(double, DBL)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:641:5: note: ‘std::isnan’
isnan(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<double>::IsNaN(MathLimits<double>::Type)’:
../geometry/util/math/mathlimits.h:195:51: error: ‘isnan’ was not declared in this scope
static bool IsNaN(const Type x) { return isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:230:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(double, DBL)
^
../geometry/util/math/mathlimits.h:195:51: note: suggested alternative:
static bool IsNaN(const Type x) { return isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:230:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(double, DBL)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:641:5: note: ‘std::isnan’
isnan(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<double>::IsInf(MathLimits<double>::Type)’:
../geometry/util/math/mathlimits.h:196:51: error: ‘isinf’ was not declared in this scope
static bool IsInf(const Type x) { return isinf(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:230:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(double, DBL)
^
../geometry/util/math/mathlimits.h:196:51: note: suggested alternative:
static bool IsInf(const Type x) { return isinf(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:230:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(double, DBL)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:621:5: note: ‘std::isinf’
isinf(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<double>::IsPosInf(MathLimits<double>::Type)’:
../geometry/util/math/mathlimits.h:197:54: error: ‘isinf’ was not declared in this scope
static bool IsPosInf(const Type x) { return isinf(x) && x > 0; } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:230:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(double, DBL)
^
../geometry/util/math/mathlimits.h:197:54: note: suggested alternative:
static bool IsPosInf(const Type x) { return isinf(x) && x > 0; } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:230:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(double, DBL)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:621:5: note: ‘std::isinf’
isinf(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<double>::IsNegInf(MathLimits<double>::Type)’:
../geometry/util/math/mathlimits.h:198:54: error: ‘isinf’ was not declared in this scope
static bool IsNegInf(const Type x) { return isinf(x) && x < 0; }
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:230:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(double, DBL)
^
../geometry/util/math/mathlimits.h:198:54: note: suggested alternative:
static bool IsNegInf(const Type x) { return isinf(x) && x < 0; }
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:230:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(double, DBL)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:621:5: note: ‘std::isinf’
isinf(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<long double>::IsFinite(MathLimits<long double>::Type)’:
../geometry/util/math/mathlimits.h:194:55: error: ‘isinf’ was not declared in this scope
static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:231:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(long double, LDBL)
^
../geometry/util/math/mathlimits.h:194:55: note: suggested alternative:
static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:231:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(long double, LDBL)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:621:5: note: ‘std::isinf’
isinf(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h:194:70: error: ‘isnan’ was not declared in this scope
static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:231:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(long double, LDBL)
^
../geometry/util/math/mathlimits.h:194:70: note: suggested alternative:
static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:231:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(long double, LDBL)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:641:5: note: ‘std::isnan’
isnan(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<long double>::IsNaN(MathLimits<long double>::Type)’:
../geometry/util/math/mathlimits.h:195:51: error: ‘isnan’ was not declared in this scope
static bool IsNaN(const Type x) { return isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:231:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(long double, LDBL)
^
../geometry/util/math/mathlimits.h:195:51: note: suggested alternative:
static bool IsNaN(const Type x) { return isnan(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:231:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(long double, LDBL)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:641:5: note: ‘std::isnan’
isnan(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<long double>::IsInf(MathLimits<long double>::Type)’:
../geometry/util/math/mathlimits.h:196:51: error: ‘isinf’ was not declared in this scope
static bool IsInf(const Type x) { return isinf(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:231:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(long double, LDBL)
^
../geometry/util/math/mathlimits.h:196:51: note: suggested alternative:
static bool IsInf(const Type x) { return isinf(x); } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:231:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(long double, LDBL)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:621:5: note: ‘std::isinf’
isinf(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<long double>::IsPosInf(MathLimits<long double>::Type)’:
../geometry/util/math/mathlimits.h:197:54: error: ‘isinf’ was not declared in this scope
static bool IsPosInf(const Type x) { return isinf(x) && x > 0; } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:231:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(long double, LDBL)
^
../geometry/util/math/mathlimits.h:197:54: note: suggested alternative:
static bool IsPosInf(const Type x) { return isinf(x) && x > 0; } \
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:231:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(long double, LDBL)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:621:5: note: ‘std::isinf’
isinf(_Tp __x)
^
In file included from ../geometry/util/math/mathutil.h:22:0,
from ../geometry/util/math/vector3-inl.h:40,
from ../geometry/s2.h:19,
from ../src/point.h:7,
from ../src/NativeExtension.cc:2:
../geometry/util/math/mathlimits.h: In static member function ‘static bool MathLimits<long double>::IsNegInf(MathLimits<long double>::Type)’:
../geometry/util/math/mathlimits.h:198:54: error: ‘isinf’ was not declared in this scope
static bool IsNegInf(const Type x) { return isinf(x) && x < 0; }
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:231:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(long double, LDBL)
^
../geometry/util/math/mathlimits.h:198:54: note: suggested alternative:
static bool IsNegInf(const Type x) { return isinf(x) && x < 0; }
^
../geometry/util/math/mathlimits.h:226:3: note: in expansion of macro ‘DECL_FP_LIMIT_FUNCS’
DECL_FP_LIMIT_FUNCS \
^
../geometry/util/math/mathlimits.h:231:1: note: in expansion of macro ‘DECL_FP_LIMITS’
DECL_FP_LIMITS(long double, LDBL)
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from ../../nan/nan.h:50,
from ../src/point.h:6,
from ../src/NativeExtension.cc:2:
/usr/include/c++/5/cmath:621:5: note: ‘std::isinf’
isinf(_Tp __x)
^
NativeExtension.target.mk:137: recipe for target 'Release/obj.target/NativeExtension/src/NativeExtension.o' failed
make: *** [Release/obj.target/NativeExtension/src/NativeExtension.o] Error 1
make: Leaving directory '/home/bencevans/Code/Pokemon-GO-node-api/node_modules/s2geometry-node/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/bencevans/.nvm/versions/node/v6.3.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 4.4.0-31-generic
gyp ERR! command "/home/bencevans/.nvm/versions/node/v6.3.0/bin/node" "/home/bencevans/.nvm/versions/node/v6.3.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/bencevans/Code/Pokemon-GO-node-api/node_modules/s2geometry-node
gyp ERR! node -v v6.3.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
pokemon-go-node-api@1.3.0 /home/bencevans/Code/Pokemon-GO-node-api
├─┬ bytebuffer@5.0.1
│ └── long@3.1.0
├── events@1.1.1
├─┬ geocoder@0.2.2
│ ├─┬ request@2.11.1
│ │ ├─┬ form-data@0.0.3
│ │ │ ├── async@0.1.9
│ │ │ └─┬ combined-stream@0.0.3
│ │ │ └── delayed-stream@0.0.5
│ │ └── mime@1.2.7
│ ├── underscore@1.3.3
│ └─┬ xml2js@0.2.0
│ └── sax@1.2.1
├─┬ gpsoauthnode@0.0.5
│ └── crypto-js@3.1.6
├─┬ istanbul@0.4.4
│ ├── abbrev@1.0.9
│ ├── async@1.5.2
│ ├─┬ escodegen@1.8.0
│ │ ├── estraverse@1.9.3
│ │ ├── esutils@2.0.2
│ │ ├─┬ optionator@0.8.1
│ │ │ ├── deep-is@0.1.3
│ │ │ ├── fast-levenshtein@1.1.3
│ │ │ ├── levn@0.3.0
│ │ │ ├── prelude-ls@1.1.2
│ │ │ └── type-check@0.3.2
│ │ └─┬ source-map@0.2.0
│ │ └── amdefine@1.0.0
│ ├── esprima@2.7.2
│ ├─┬ fileset@0.2.1
│ │ └─┬ minimatch@2.0.10
│ │ └─┬ brace-expansion@1.1.6
│ │ ├── balanced-match@0.4.2
│ │ └── concat-map@0.0.1
│ ├─┬ handlebars@4.0.5
│ │ ├─┬ optimist@0.6.1
│ │ │ ├── minimist@0.0.10
│ │ │ └── wordwrap@0.0.3
│ │ ├── source-map@0.4.4
│ │ └─┬ uglify-js@2.7.0
│ │ ├── async@0.2.10
│ │ ├── source-map@0.5.6
│ │ └── uglify-to-browserify@1.0.2
│ ├─┬ js-yaml@3.6.1
│ │ └─┬ argparse@1.0.7
│ │ └── sprintf-js@1.0.3
│ ├─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ ├── nopt@3.0.6
│ ├─┬ once@1.3.3
│ │ └── wrappy@1.0.2
│ ├── resolve@1.1.7
│ ├─┬ supports-color@3.1.2
│ │ └── has-flag@1.0.0
│ ├─┬ which@1.2.10
│ │ └── isexe@1.1.2
│ └── wordwrap@1.0.0
├─┬ protobufjs@5.0.1
│ ├─┬ ascli@1.0.0
│ │ ├── colour@0.7.1
│ │ └── optjs@3.2.2
│ ├─┬ glob@5.0.15
│ │ ├── inflight@1.0.5
│ │ └── path-is-absolute@1.0.0
│ └─┬ yargs@3.10.0
│ ├── camelcase@1.2.1
│ ├─┬ cliui@2.1.0
│ │ ├─┬ center-align@0.1.3
│ │ │ ├─┬ align-text@0.1.4
│ │ │ │ ├─┬ kind-of@3.0.3
│ │ │ │ │ └── is-buffer@1.1.3
│ │ │ │ ├── longest@1.0.1
│ │ │ │ └── repeat-string@1.5.4
│ │ │ └── lazy-cache@1.0.4
│ │ ├── right-align@0.1.3
│ │ └── wordwrap@0.0.2
│ ├── decamelize@1.2.0
│ └── window-size@0.1.0
├─┬ request@2.73.0
│ ├── aws-sign2@0.6.0
│ ├── aws4@1.4.1
│ ├─┬ bl@1.1.2
│ │ └─┬ readable-stream@2.0.6
│ │ ├── core-util-is@1.0.2
│ │ ├── isarray@1.0.0
│ │ ├── process-nextick-args@1.0.7
│ │ ├── string_decoder@0.10.31
│ │ └── util-deprecate@1.0.2
│ ├── caseless@0.11.0
│ ├─┬ combined-stream@1.0.5
│ │ └── delayed-stream@1.0.0
│ ├── extend@3.0.0
│ ├── forever-agent@0.6.1
│ ├── form-data@1.0.0-rc4
│ ├─┬ har-validator@2.0.6
│ │ ├─┬ chalk@1.1.3
│ │ │ ├── ansi-styles@2.2.1
│ │ │ ├── escape-string-regexp@1.0.5
│ │ │ ├─┬ has-ansi@2.0.0
│ │ │ │ └── ansi-regex@2.0.0
│ │ │ ├── strip-ansi@3.0.1
│ │ │ └── supports-color@2.0.0
│ │ ├─┬ commander@2.9.0
│ │ │ └── graceful-readlink@1.0.1
│ │ ├─┬ is-my-json-valid@2.13.1
│ │ │ ├── generate-function@2.0.0
│ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ └── is-property@1.0.2
│ │ │ ├── jsonpointer@2.0.0
│ │ │ └── xtend@4.0.1
│ │ └─┬ pinkie-promise@2.0.1
│ │ └── pinkie@2.0.4
│ ├─┬ hawk@3.1.3
│ │ ├── boom@2.10.1
│ │ ├── cryptiles@2.0.5
│ │ ├── hoek@2.16.3
│ │ └── sntp@1.0.9
│ ├─┬ http-signature@1.1.1
│ │ ├── assert-plus@0.2.0
│ │ ├─┬ jsprim@1.3.0
│ │ │ ├── extsprintf@1.0.2
│ │ │ ├── json-schema@0.2.2
│ │ │ └── verror@1.3.6
│ │ └─┬ sshpk@1.8.3
│ │ ├── asn1@0.2.3
│ │ ├── assert-plus@1.0.0
│ │ ├─┬ dashdash@1.14.0
│ │ │ └── assert-plus@1.0.0
│ │ ├── ecc-jsbn@0.1.1
│ │ ├─┬ getpass@0.1.6
│ │ │ └── assert-plus@1.0.0
│ │ ├── jodid25519@1.0.2
│ │ ├── jsbn@0.1.0
│ │ └── tweetnacl@0.13.3
│ ├── is-typedarray@1.0.0
│ ├── isstream@0.1.2
│ ├── json-stringify-safe@5.0.1
│ ├─┬ mime-types@2.1.11
│ │ └── mime-db@1.23.0
│ ├── node-uuid@1.4.7
│ ├── oauth-sign@0.8.2
│ ├── qs@6.2.1
│ ├── stringstream@0.0.5
│ ├── tough-cookie@2.2.2
│ └── tunnel-agent@0.4.3
└─┬ tape@4.6.0
├── deep-equal@1.0.1
├── defined@1.0.0
├── function-bind@1.1.0
├─┬ glob@7.0.5
│ ├── fs.realpath@1.0.0
│ └── minimatch@3.0.2
├── has@1.0.1
├── inherits@2.0.1
├── minimist@1.2.0
├── object-inspect@1.2.1
├── resumer@0.0.0
├─┬ string.prototype.trim@1.1.2
│ ├─┬ define-properties@1.1.2
│ │ ├── foreach@2.0.5
│ │ └── object-keys@1.0.11
│ └─┬ es-abstract@1.5.1
│ ├─┬ es-to-primitive@1.1.1
│ │ ├── is-date-object@1.0.1
│ │ └── is-symbol@1.0.1
│ ├── is-callable@1.1.3
│ └── is-regex@1.0.3
└── through@2.3.8
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/home/bencevans/.nvm/versions/node/v6.3.0/bin/node" "/home/bencevans/.nvm/versions/node/v6.3.0/bin/npm" "i"
npm ERR! node v6.3.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! s2geometry-node@1.1.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the s2geometry-node@1.1.3 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the s2geometry-node package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs s2geometry-node
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls s2geometry-node
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/bencevans/Code/Pokemon-GO-node-api/npm-debug.log
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Node.js 6 is approaching End-of-Life – upgrade your AWS ...
After April 30, security releases will no longer be applied to Node.js 6, increasing the potential for malicious attacks. Software ...
Read more >Node.js - endoflife.date
Release Released Active Support Se...
19 2 months and 1 week ago. (18 Oct 2022) Ends in 3 months. (01 Apr 2023) En...
18 (...
Read more >Previous Releases - Node.js
Version Date V8 npm NODE_MODULE_VERSION
Node.js 19.3.0 2022‑12‑14 10.8.168.21 9.2.0 111 Downloads C...
Node.js 19.2.0 2022‑11‑29 10.8.168.20 8.19.3 111 Downloads C...
Node.js 19.1.0 2022‑11‑14 10.7.193.20 8.19.3...
Read more >Node 6.x and 8.x Deprecation Timeline for Apache Cordova
Currently, node 12.x is pending for release on April 23rd, 2019. JavaScript files in plugins themselves are unaffected since the JavaScript ...
Read more >Node.js versions 6.x, 8.x & 10.x Retirement FAQ
As a result, Acquia is ending support for Node.js versions 6.x, 8.x, and 10.x in favor of newer versions on Monday, 20 September...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Switched to Node 4 and it worked. Didn’t work on 6.
Try now, we removed all the ES6 from our code