FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Failure to Build nodegit at Commit 0aa9a3c120 on OS X 10.6.8 · Issue #92 · nodegit/nodegit · GitHub

Repository navigation

Failure to Build nodegit at Commit 0aa9a3c120 on OS X 10.6.8 #92

Description

$ git rev-parse HEAD
0aa9a3c1200d6f8939d5883b32ddb3808e04ba5e
$ cmake --version # from macports
cmake version 2.8.11.2 
$ node -v # via nvm build
v0.11.7
$$ npm run-script gen && npm install

> nodegit@0.1.0 gen /Users/alexanderstein/code/nodegit
> node gen.js


> nodegit@0.1.0 install /Users/alexanderstein/code/nodegit
> node install.js

[nodegit] Downloading libgit2 dependency.
[nodegit] Building libgit2 dependency.
zlib was not found; using bundled 3rd-party sources.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/alexanderstein/code/nodegit/vendor/libgit2/build
Scanning dependencies of target git2
[  0%] Building C object CMakeFiles/git2.dir/src/attr.c.o

... Skip the CMake build details for brevity; this wen fine.

Linking C shared library libgit2.dylib
[100%] Built target git2
[nodegit] Building native module.
  CXX(target) Release/obj.target/nodegit/src/base.o
  CXX(target) Release/obj.target/nodegit/src/blob.o
../src/blob.cc: In static member function ‘static void GitBlob::Initialize(v8::Handle<v8::Object>)’:
../src/blob.cc:32: warning: ‘New’ is deprecated (declared at /Users/alexanderstein/.node-gyp/0.11.7/deps/v8/include/v8.h:3354)
../src/blob.cc:37: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const v8::Arguments&)’ to ‘void (*)(const v8::FunctionCallbackInfo<v8::Value>&)’
../src/blob.cc:37: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate>, const char*, void (*)(const v8::FunctionCallbackInfo<v8::Value>&))’
../src/blob.cc:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const v8::Arguments&)’ to ‘void (*)(const v8::FunctionCallbackInfo<v8::Value>&)’
../src/blob.cc:38: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate>, const char*, void (*)(const v8::FunctionCallbackInfo<v8::Value>&))’
../src/blob.cc:39: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const v8::Arguments&)’ to ‘void (*)(const v8::FunctionCallbackInfo<v8::Value>&)’
../src/blob.cc:39: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate>, const char*, void (*)(const v8::FunctionCallbackInfo<v8::Value>&))’
../src/blob.cc:40: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const v8::Arguments&)’ to ‘void (*)(const v8::FunctionCallbackInfo<v8::Value>&)’
../src/blob.cc:40: error:   initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate>, const char*, void (*)(const v8::FunctionCallbackInfo<v8::Value>&))’
../src/blob.cc:43: error: no matching function for call to ‘v8::Persistent<v8::Function>::New(v8::Local<v8::Function>)’
/Users/alexanderstein/.node-gyp/0.11.7/deps/v8/include/v8.h:5701: note: candidates are: static T* v8::Persistent<T>::New(v8::Isolate*, T*) [with T = v8::Function]
../src/blob.cc:44: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Persistent<v8::Function>&)’
/Users/alexanderstein/.node-gyp/0.11.7/deps/v8/include/v8.h:2077: note: candidates are: bool v8::Object::Set(v8::Handle<v8::Value>, v8::Handle<v8::Value>, v8::PropertyAttribute)
/Users/alexanderstein/.node-gyp/0.11.7/deps/v8/include/v8.h:2079: note:                 bool v8::Object::Set(uint32_t, v8::Handle<v8::Value>)
../src/blob.cc: In static member function ‘static v8::Handle<v8::Value> GitBlob::New(const v8::Arguments&)’:
../src/blob.cc:54: error: ‘Unwrap’ is not a member of ‘v8::External’
/Users/alexanderstein/.node-gyp/0.11.7/deps/v8/include/v8.h: In static member function ‘static v8::Handle<v8::Value> GitBlob::New(void*)’:
/Users/alexanderstein/.node-gyp/0.11.7/deps/v8/include/v8.h:784: error: ‘T* v8::Persistent<T>::operator->() const [with T = v8::Function]’ is private
../src/blob.cc:63: error: within this context
make: *** [Release/obj.target/nodegit/src/blob.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/alexanderstein/.nvm/v0.11.7/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:106:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:827:12)
gyp ERR! System Darwin 10.8.0
gyp ERR! command "node" "/Users/alexanderstein/.nvm/v0.11.7/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /Users/alexanderstein/code/nodegit
gyp ERR! node -v v0.11.7
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0

I see there have been API changes, and maybe the node version is not compatible. Let me know if I can do anything else to help and troubleshoot the issue.

Activity

  1. tbranyen commented on Oct 4, 2013

    Member

    You're using an unstable version of Node. We do not support unstable versions. Try using a stable 0.10 version of Node.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL