Skip to content

Build error on NodeJS 10.10.0 #38

Description

@nishidayuya

Building via npm with NodeJS 10.10.0 gets "gyp ERR! build error".

yuya@yoshiyuki|19:29:30|0% git rev-parse HEAD
46feeca7c6b8d5263e1069190f229df475e1fbda
yuya@yoshiyuki|19:29:39|0% uname -r
4.15.0-34-generic
yuya@yoshiyuki|19:30:10|0% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic
yuya@yoshiyuki|19:30:50|0% node --version
v10.10.0
yuya@yoshiyuki|19:30:59|0% npm --version
6.4.1
yuya@yoshiyuki|19:31:03|0% COLUMNS=100 dpkg -l libgeos++-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version        Architecture   Description
+++-===================-==============-==============-===========================================
ii  libgeos++-dev       3.6.2-1build2  amd64          Geometry engine for GIS - C++ development f
yuya@yoshiyuki|19:32:21|0% npm install

> geos@0.0.4 install /home/yuya/src/github.com/kashif/node-geos
> ./node_modules/coffee-script/bin/cake install

make: Entering directory '/home/yuya/src/github.com/kashif/node-geos/build'
(node:25542) [DEP0026] DeprecationWarning: util.print is deprecated. Use console.log instead.
  CXX(target) Release/obj.target/geos/src/cpp/binding.o
  CXX(target) Release/obj.target/geos/src/cpp/geometry.o
../src/cpp/geometry.cpp: In static member function 'static v8::Handle<v8::Value> Geometry::New(geos::geom::Geometry*)':
../src/cpp/geometry.cpp:80:51: error: no matching function for call to 'v8::Function::NewInstance(int, v8::Handle<v8::Value>*)'
     Handle<Object> obj = cons->NewInstance(1, &ext);
                                                   ^
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:3989:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                                            ^~~~~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:3989:44: note:   candidate expects 3 arguments, 2 provided
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:3992:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                                            ^~~~~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:3992:44: note:   candidate expects 1 argument, 2 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::IsSimpleAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:31:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:183:1: note: in expansion of macro 'NODE_GEOS_UNARY_PREDICATE'
 NODE_GEOS_UNARY_PREDICATE(IsSimple, isSimple);
 ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::IsValidAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:31:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:184:1: note: in expansion of macro 'NODE_GEOS_UNARY_PREDICATE'
 NODE_GEOS_UNARY_PREDICATE(IsValid, isValid);
 ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::IsEmptyAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:31:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:185:1: note: in expansion of macro 'NODE_GEOS_UNARY_PREDICATE'
 NODE_GEOS_UNARY_PREDICATE(IsEmpty, isEmpty);
 ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::IsRectangleAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:31:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:186:1: note: in expansion of macro 'NODE_GEOS_UNARY_PREDICATE'
 NODE_GEOS_UNARY_PREDICATE(IsRectangle, isRectangle);
 ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::DisjointAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:99:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:189:1: note: in expansion of macro 'NODE_GEOS_BINARY_PREDICATE'
 NODE_GEOS_BINARY_PREDICATE(Disjoint, disjoint);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::TouchesAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:99:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:190:1: note: in expansion of macro 'NODE_GEOS_BINARY_PREDICATE'
 NODE_GEOS_BINARY_PREDICATE(Touches, touches);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::IntersectsAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:99:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:191:1: note: in expansion of macro 'NODE_GEOS_BINARY_PREDICATE'
 NODE_GEOS_BINARY_PREDICATE(Intersects, intersects);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::CrossesAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:99:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:192:1: note: in expansion of macro 'NODE_GEOS_BINARY_PREDICATE'
 NODE_GEOS_BINARY_PREDICATE(Crosses, crosses);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::WithinAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:99:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:193:1: note: in expansion of macro 'NODE_GEOS_BINARY_PREDICATE'
 NODE_GEOS_BINARY_PREDICATE(Within, within);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::ContainsAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:99:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:194:1: note: in expansion of macro 'NODE_GEOS_BINARY_PREDICATE'
 NODE_GEOS_BINARY_PREDICATE(Contains, contains);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::OverlapsAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:99:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:195:1: note: in expansion of macro 'NODE_GEOS_BINARY_PREDICATE'
 NODE_GEOS_BINARY_PREDICATE(Overlaps, overlaps);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::EqualsAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:99:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:196:1: note: in expansion of macro 'NODE_GEOS_BINARY_PREDICATE'
 NODE_GEOS_BINARY_PREDICATE(Equals, equals);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::CoversAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:99:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:197:1: note: in expansion of macro 'NODE_GEOS_BINARY_PREDICATE'
 NODE_GEOS_BINARY_PREDICATE(Covers, covers);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
In file included from ../src/cpp/geometry.cpp:1:0:
../src/cpp/geometry.cpp: In static member function 'static void Geometry::CoveredByAsyncComplete(uv_work_t*, int)':
../src/cpp/geometry.hpp:99:18: error: no matching function for call to 'v8::TryCatch::TryCatch()'
         TryCatch tryCatch;                                                              \
                  ^
../src/cpp/geometry.cpp:198:1: note: in expansion of macro 'NODE_GEOS_BINARY_PREDICATE'
 NODE_GEOS_BINARY_PREDICATE(CoveredBy, coveredBy);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/cpp/binding.hpp:4:0,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note: candidate: v8::TryCatch::TryCatch(v8::Isolate*)
   explicit TryCatch(Isolate* isolate);
            ^~~~~~~~
/home/yuya/.node-gyp/10.10.0/include/node/v8.h:8530:12: note:   candidate expects 1 argument, 0 provided
geos.target.mk:106: recipe for target 'Release/obj.target/geos/src/cpp/geometry.o' failed
make: *** [Release/obj.target/geos/src/cpp/geometry.o] Error 1
make: Leaving directory '/home/yuya/src/github.com/kashif/node-geos/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/yuya/src/github.com/kashif/node-geos/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 4.15.0-34-generic
gyp ERR! command "/home/yuya/.anyenv/envs/ndenv/versions/v10.10.0/bin/node" "/home/yuya/src/github.com/kashif/node-geos/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/yuya/src/github.com/kashif/node-geos
gyp ERR! node -v v10.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm notice created a lockfile as package-lock.json. You should commit this file.
audited 200 packages in 2.857s
found 0 vulnerabilities

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions