Skip to content

Instantly share code, notes, and snippets.

@ErisDS
Last active December 20, 2015 09:49
Show Gist options
  • Save ErisDS/6111388 to your computer and use it in GitHub Desktop.
Save ErisDS/6111388 to your computer and use it in GitHub Desktop.
node-sqlite3 2.1.14 build failure on node 0.11.4
$ npm install sqlite3
npm http GET https://registry.npmjs.org/sqlite3/2.1.14
npm http 304 https://registry.npmjs.org/sqlite3/2.1.14
npm WARN engine sqlite3@2.1.14: wanted: {"node":">= 0.6.13 && < 0.11.0"} (current: {"node":"v0.11.4","npm":"1.3.4"})
> sqlite3@2.1.14 install /Users/hannah/Ghost/Ghost/node_modules/sqlite3
> node-gyp rebuild
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3071700/sqlite3.c
TOUCH Release/obj.target/deps/action_before_build.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3071700/sqlite3.o
LIBTOOL-STATIC Release/sqlite3.a
CXX(target) Release/obj.target/node_sqlite3/src/database.o
In file included from ../src/database.cc:5:
../src/database.h:28:36: error: 'operator->' is a private member of 'v8::Persistent<v8::FunctionTemplate>'
return constructor_template->HasInstance(obj);
~~~~~~~~~~~~~~~~~~~~^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:771:16: note: declared private here
V8_INLINE(T* operator->() const) { return val_; }
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
In file included from ../src/database.cc:5:
../src/database.h:42:46: error: 'New' is a private member of 'v8::Persistent<v8::Function>'
callback = Persistent<Function>::New(cb_);
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:782:23: note: declared private here
V8_INLINE(static T* New(Isolate* isolate, T* that));
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
In file included from ../src/database.cc:5:
../src/database.h:42:53: error: too few arguments to function call, expected 2, have 1
callback = Persistent<Function>::New(cb_);
~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:782:3: note: 'New' declared here
V8_INLINE(static T* New(Isolate* isolate, T* that));
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:31: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
In file included from ../src/database.cc:6:
../src/statement.h:90:46: error: 'New' is a private member of 'v8::Persistent<v8::Function>'
callback = Persistent<Function>::New(cb_);
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:782:23: note: declared private here
V8_INLINE(static T* New(Isolate* isolate, T* that));
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
In file included from ../src/database.cc:6:
../src/statement.h:90:53: error: too few arguments to function call, expected 2, have 1
callback = Persistent<Function>::New(cb_);
~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:782:3: note: 'New' declared here
V8_INLINE(static T* New(Isolate* isolate, T* that));
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:31: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
../src/database.cc:15:51: warning: 'New' is deprecated [-Wdeprecated-declarations]
Local<FunctionTemplate> t = FunctionTemplate::New(New);
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:3263:48: note: 'New' declared here
V8_DEPRECATED(static Local<FunctionTemplate> New(
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:88:35: note: expanded from macro 'V8_DEPRECATED'
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
^
../src/database.cc:17:58: error: 'New' is a private member of 'v8::Persistent<v8::FunctionTemplate>'
constructor_template = Persistent<FunctionTemplate>::New(t);
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:782:23: note: declared private here
V8_INLINE(static T* New(Isolate* isolate, T* that));
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
../src/database.cc:17:63: error: too few arguments to function call, expected 2, have 1
constructor_template = Persistent<FunctionTemplate>::New(t);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:782:3: note: 'New' declared here
V8_INLINE(static T* New(Isolate* isolate, T* that));
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:31: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
../src/database.cc:18:25: error: 'operator->' is a private member of 'v8::Persistent<v8::FunctionTemplate>'
constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
~~~~~~~~~~~~~~~~~~~~^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:771:16: note: declared private here
V8_INLINE(T* operator->() const) { return val_; }
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
../src/database.cc:19:25: error: 'operator->' is a private member of 'v8::Persistent<v8::FunctionTemplate>'
constructor_template->SetClassName(String::NewSymbol("Database"));
~~~~~~~~~~~~~~~~~~~~^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:771:16: note: declared private here
V8_INLINE(T* operator->() const) { return val_; }
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
../src/database.cc:21:31: error: no viable conversion from 'Persistent<v8::FunctionTemplate>' to 'v8::Handle<v8::FunctionTemplate>'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "close", Close);
^~~~~~~~~~~~~~~~~~~~
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:249:26: note: candidate constructor (the implicit copy constructor) not viable: no known conversion
from 'Persistent<v8::FunctionTemplate>' to 'const v8::Handle<v8::FunctionTemplate> &' for 1st argument
template <class T> class Handle {
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:273:32: note: candidate template ignored: failed template argument deduction
template <class S> V8_INLINE(Handle(Handle<S> that))
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
/Users/hannah/.node-gyp/0.11.4/src/node.h:150:72: note: passing argument to parameter 'recv' here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
^
../src/database.cc:22:31: error: no viable conversion from 'Persistent<v8::FunctionTemplate>' to 'v8::Handle<v8::FunctionTemplate>'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "exec", Exec);
^~~~~~~~~~~~~~~~~~~~
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:249:26: note: candidate constructor (the implicit copy constructor) not viable: no known conversion
from 'Persistent<v8::FunctionTemplate>' to 'const v8::Handle<v8::FunctionTemplate> &' for 1st argument
template <class T> class Handle {
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:273:32: note: candidate template ignored: failed template argument deduction
template <class S> V8_INLINE(Handle(Handle<S> that))
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
/Users/hannah/.node-gyp/0.11.4/src/node.h:150:72: note: passing argument to parameter 'recv' here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
^
../src/database.cc:23:31: error: no viable conversion from 'Persistent<v8::FunctionTemplate>' to 'v8::Handle<v8::FunctionTemplate>'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "wait", Wait);
^~~~~~~~~~~~~~~~~~~~
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:249:26: note: candidate constructor (the implicit copy constructor) not viable: no known conversion
from 'Persistent<v8::FunctionTemplate>' to 'const v8::Handle<v8::FunctionTemplate> &' for 1st argument
template <class T> class Handle {
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:273:32: note: candidate template ignored: failed template argument deduction
template <class S> V8_INLINE(Handle(Handle<S> that))
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
/Users/hannah/.node-gyp/0.11.4/src/node.h:150:72: note: passing argument to parameter 'recv' here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
^
../src/database.cc:24:31: error: no viable conversion from 'Persistent<v8::FunctionTemplate>' to 'v8::Handle<v8::FunctionTemplate>'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "loadExtension", LoadExtension);
^~~~~~~~~~~~~~~~~~~~
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:249:26: note: candidate constructor (the implicit copy constructor) not viable: no known conversion
from 'Persistent<v8::FunctionTemplate>' to 'const v8::Handle<v8::FunctionTemplate> &' for 1st argument
template <class T> class Handle {
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:273:32: note: candidate template ignored: failed template argument deduction
template <class S> V8_INLINE(Handle(Handle<S> that))
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
/Users/hannah/.node-gyp/0.11.4/src/node.h:150:72: note: passing argument to parameter 'recv' here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
^
../src/database.cc:25:31: error: no viable conversion from 'Persistent<v8::FunctionTemplate>' to 'v8::Handle<v8::FunctionTemplate>'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "serialize", Serialize);
^~~~~~~~~~~~~~~~~~~~
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:249:26: note: candidate constructor (the implicit copy constructor) not viable: no known conversion
from 'Persistent<v8::FunctionTemplate>' to 'const v8::Handle<v8::FunctionTemplate> &' for 1st argument
template <class T> class Handle {
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:273:32: note: candidate template ignored: failed template argument deduction
template <class S> V8_INLINE(Handle(Handle<S> that))
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
/Users/hannah/.node-gyp/0.11.4/src/node.h:150:72: note: passing argument to parameter 'recv' here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
^
../src/database.cc:26:31: error: no viable conversion from 'Persistent<v8::FunctionTemplate>' to 'v8::Handle<v8::FunctionTemplate>'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "parallelize", Parallelize);
^~~~~~~~~~~~~~~~~~~~
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:249:26: note: candidate constructor (the implicit copy constructor) not viable: no known conversion
from 'Persistent<v8::FunctionTemplate>' to 'const v8::Handle<v8::FunctionTemplate> &' for 1st argument
template <class T> class Handle {
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:273:32: note: candidate template ignored: failed template argument deduction
template <class S> V8_INLINE(Handle(Handle<S> that))
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
/Users/hannah/.node-gyp/0.11.4/src/node.h:150:72: note: passing argument to parameter 'recv' here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
^
../src/database.cc:27:31: error: no viable conversion from 'Persistent<v8::FunctionTemplate>' to 'v8::Handle<v8::FunctionTemplate>'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "configure", Configure);
^~~~~~~~~~~~~~~~~~~~
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:249:26: note: candidate constructor (the implicit copy constructor) not viable: no known conversion
from 'Persistent<v8::FunctionTemplate>' to 'const v8::Handle<v8::FunctionTemplate> &' for 1st argument
template <class T> class Handle {
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:273:32: note: candidate template ignored: failed template argument deduction
template <class S> V8_INLINE(Handle(Handle<S> that))
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
/Users/hannah/.node-gyp/0.11.4/src/node.h:150:72: note: passing argument to parameter 'recv' here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
^
../src/database.cc:29:5: error: 'operator->' is a private member of 'v8::Persistent<v8::FunctionTemplate>'
NODE_SET_GETTER(constructor_template, "open", OpenGetter);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.h:86:13: note: expanded from macro 'NODE_SET_GETTER'
(target)->InstanceTemplate() \
~~~~~~~~^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:771:16: note: declared private here
V8_INLINE(T* operator->() const) { return val_; }
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
../src/database.cc:29:5: warning: 'SetAccessor' is deprecated [-Wdeprecated-declarations]
NODE_SET_GETTER(constructor_template, "open", OpenGetter);
^
../src/macros.h:87:11: note: expanded from macro 'NODE_SET_GETTER'
->SetAccessor(String::NewSymbol(name), (function));
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:3388:22: note: 'SetAccessor' declared here
V8_DEPRECATED(void SetAccessor(Handle<String> name,
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:88:35: note: expanded from macro 'V8_DEPRECATED'
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
^
../src/database.cc:32:29: error: 'operator->' is a private member of 'v8::Persistent<v8::FunctionTemplate>'
constructor_template->GetFunction());
~~~~~~~~~~~~~~~~~~~~^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:771:16: note: declared private here
V8_INLINE(T* operator->() const) { return val_; }
^
/Users/hannah/.node-gyp/0.11.4/deps/v8/include/v8.h:80:69: note: expanded from macro 'V8_INLINE'
#define V8_INLINE(declarator) inline __attribute__((always_inline)) declarator
^
../src/database.cc:37:9: error: use of undeclared identifier 'NODE_PSYMBOL'
EXCEPTION(String::New("Database handle is closed"), SQLITE_MISUSE, exception);
^
../src/macros.h:106:22: note: expanded from macro 'EXCEPTION'
name ##_obj->Set(NODE_PSYMBOL("errno"), Integer::New(errno)); \
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make: *** [Release/obj.target/node_sqlite3/src/database.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/hannah/.nave/installed/0.11.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:103:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 12.3.0
gyp ERR! command "node" "/Users/hannah/.nave/installed/0.11.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/hannah/Ghost/Ghost/node_modules/sqlite3
gyp ERR! node -v v0.11.4
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment