Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Contextify fails to install in Node 4.2.1 on OSX 10.11 (El Capitan). #188

Closed
chevcast opened this issue Oct 16, 2015 · 47 comments
Closed

Contextify fails to install in Node 4.2.1 on OSX 10.11 (El Capitan). #188

chevcast opened this issue Oct 16, 2015 · 47 comments

Comments

@chevcast
Copy link

Reproduction steps:

  1. Ensure you have node 4.x installed.
  2. Create an empty directory so you know for sure there are no other conflicts occurring.
  3. Run npm install contextify.
  4. Note the following build error:
> contextify@0.1.14 install /Users/chev/code/sandbox/node_modules/contextify
> node-gyp rebuild

  CXX(target) Release/obj.target/contextify/src/contextify.o
In file included from ../src/contextify.cc:3:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                        ^
../node_modules/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                        ^
../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace 'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/chev/.node-gyp/4.2.1/include/node/node_buffer.h:31:40: note: candidate function not viable: no known conversion from 'uint32_t' (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/chev/.node-gyp/4.2.1/include/node/node_buffer.h:43:40: note: candidate function not viable: 2nd argument ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/chev/.node-gyp/4.2.1/include/node/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/chev/.node-gyp/4.2.1/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
In file included from ../src/contextify.cc:3:
../node_modules/nan/nan.h:676:12: error: no viable conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&' for 1st argument
class Local {
      ^
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S *' against 'v8::MaybeLocal<v8::Object>'
  V8_INLINE Local(S* that)
            ^
In file included from ../src/contextify.cc:3:
../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace 'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
In file included from ../src/contextify.cc:1:
In file included from /Users/chev/.node-gyp/4.2.1/include/node/node.h:42:
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:414:12: note: in instantiation of function template specialization 'v8::Local<v8::Primitive>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/contextify.cc:1:
In file included from /Users/chev/.node-gyp/4.2.1/include/node/node.h:42:
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:221:5: error: assigning to 'v8::Boolean *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:424:12: note: in instantiation of function template specialization 'v8::Local<v8::Boolean>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/contextify.cc:1:
In file included from /Users/chev/.node-gyp/4.2.1/include/node/node.h:42:
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:221:5: error: assigning to 'v8::Function *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1514:12: note: in instantiation of function template specialization 'v8::Local<v8::Function>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/contextify.cc:1:
In file included from /Users/chev/.node-gyp/4.2.1/include/node/node.h:42:
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:221:5: error: assigning to 'v8::Object *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1632:12: note: in instantiation of function template specialization 'v8::Local<v8::Object>::Local<v8::Value>' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/contextify.cc:1:
In file included from /Users/chev/.node-gyp/4.2.1/include/node/node.h:42:
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:221:5: error: assigning to 'v8::Value *volatile' from incompatible type 'v8::Context *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:267:10: note: in instantiation of function template specialization 'v8::Local<v8::Value>::Local<v8::Context>' requested here
  return NanNew(val);
         ^
../src/contextify.cc:159:16: note: in instantiation of function template specialization '_NanEnsureLocal<v8::Local<v8::Context> >' requested here
        return NanEscapeScope(NanNew<Context>(
               ^
../node_modules/nan/nan.h:398:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                                          ^
In file included from ../src/contextify.cc:1:
In file included from /Users/chev/.node-gyp/4.2.1/include/node/node.h:42:
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:221:5: error: assigning to 'v8::Context *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../src/contextify.cc:159:16: note: in instantiation of function template specialization 'v8::Local<v8::Context>::Local<v8::Value>' requested here
        return NanEscapeScope(NanNew<Context>(
               ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/contextify.cc:1:
In file included from /Users/chev/.node-gyp/4.2.1/include/node/node.h:42:
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:7380:3: error: assigning to 'v8::Integer *volatile' from incompatible type 'v8::Value *'
  TYPE_CHECK(T, S);
  ^~~~~~~~~~~~~~~~
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../src/contextify.cc:211:13: note: in instantiation of function template specialization 'v8::ReturnValue<v8::Integer>::Set<v8::Value>' requested here
            NanReturnValue(NanNew<Integer>(None));
            ^
../node_modules/nan/nan.h:401:61: note: expanded from macro 'NanReturnValue'
# define NanReturnValue(value) return args.GetReturnValue().Set(_NanEnsureLocal(value))
                                                            ^
In file included from ../src/contextify.cc:1:
In file included from /Users/chev/.node-gyp/4.2.1/include/node/node.h:42:
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:7380:3: error: assigning to 'v8::Boolean *volatile' from incompatible type 'v8::Value *'
  TYPE_CHECK(T, S);
  ^~~~~~~~~~~~~~~~
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../src/contextify.cc:225:13: note: in instantiation of function template specialization 'v8::ReturnValue<v8::Boolean>::Set<v8::Value>' requested here
            NanReturnValue(NanNew<Boolean>(false));
            ^
../node_modules/nan/nan.h:401:61: note: expanded from macro 'NanReturnValue'
# define NanReturnValue(value) return args.GetReturnValue().Set(_NanEnsureLocal(value))
                                                            ^
In file included from ../src/contextify.cc:1:
In file included from /Users/chev/.node-gyp/4.2.1/include/node/node.h:42:
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:7380:3: error: assigning to 'v8::Array *volatile' from incompatible type 'v8::Value *'
  TYPE_CHECK(T, S);
  ^~~~~~~~~~~~~~~~
/Users/chev/.node-gyp/4.2.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../src/contextify.cc:236:13: note: in instantiation of function template specialization 'v8::ReturnValue<v8::Array>::Set<v8::Value>' requested here
            NanReturnValue(blank);
            ^
../node_modules/nan/nan.h:401:61: note: expanded from macro 'NanReturnValue'
# define NanReturnValue(value) return args.GetReturnValue().Set(_NanEnsureLocal(value))
                                                            ^
14 errors generated.
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/chev/.nvm/versions/node/v4.2.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "/Users/chev/.nvm/versions/node/v4.2.1/bin/node" "/Users/chev/.nvm/versions/node/v4.2.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/chev/code/sandbox/node_modules/contextify
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Darwin 15.0.0
npm ERR! argv "/Users/chev/.nvm/versions/node/v4.2.1/bin/node" "/Users/chev/.nvm/versions/node/v4.2.1/bin/npm" "install" "contextify"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE

npm ERR! contextify@0.1.14 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.14 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify 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 their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/chev/code/sandbox/npm-debug.log

I've tried everything I could think of to get this working but nothing seems to help. I tried updating Xcode, re-installing node, re-installing NVM, re-installing homebrew, installing node manually, etc. Nothing seems to get this installing in Node 4.x. It does work if I downgrade to node 0.12.x, but our project is already taking advantage of some things in Node 4.x. This is the only module in our dependency tree that is failing in Node 4.

I've also opened an issue in the node-gyp tracker as well: nodejs/node-gyp#774

@HowardPautz
Copy link

Confirming error
I get the identical series of errors as chevex posts. Clearly looks like nan.h related issue.
Although chain of errors is the same, I'm attempting the compile on an older version of OS X: Lion 10.7.5.

@chevex : So, I don't think it's your Mac, at least; nor XCode, as I probably have a slightly older version of it than you do (Xcode 4.6.2), but I'm getting the same errors.

@ivitivan
Copy link

I have the same thing on my Ubuntu

@kkarimi
Copy link

kkarimi commented Oct 20, 2015

same on OS X El Capitan running Node 4.2.1

@sp00ne
Copy link

sp00ne commented Oct 20, 2015

+1 same here. Referenced it earlier here:
#162

Try downgrading to node 0.12.7 , that oughta work. If you use homebrew do the following. Ensure you have homebrew/versions installed:

brew tap homebrew/versions

Unlink your current node if necessary

brew unlink node

Install 0.12.7

brrew install node012

@gravidThoughts
Copy link

This is an issue with Node 4.x requiring Nan 2.x
See #180
Pull request that looks DOA at #181

@donniev
Copy link

donniev commented Oct 22, 2015

Same issue here.

@nmarshall-cst
Copy link

Reproducible on CentOS release 6.7 (Final) as well.

@mmccaff
Copy link

mmccaff commented Oct 22, 2015

+1 same here, on El Capitan and Node v4.2.1

@nflint
Copy link

nflint commented Oct 22, 2015

+1 for Downgrading to node 0.12.7 working. Thanks sp00ne
On OSX el Cap 10.11.1 and X-Code 7.1

@ar1g
Copy link

ar1g commented Oct 23, 2015

+1 same issue, downgrading to 0.12 worked

@geyang
Copy link

geyang commented Oct 25, 2015

+1 waiting for this to be closed to upgrade to 4x.

@sstefoss
Copy link

+1 for 4x.

@bpeeters
Copy link

+1

@HowardPautz
Copy link

+1 for bumping up to 4x. (Although downgrading to 0.12.7 may work for some, I'm stuck with 4x :)

@idoby
Copy link
Collaborator

idoby commented Oct 27, 2015

My 4.0.0 port #190 doesn't seem to compile on @brianmcd's CI server, but it should work if you have a C++11 compiler (required by the new NAN).

@houli
Copy link

houli commented Oct 27, 2015

@idoby branch-point/mas@93e6d9c might be useful in getting C++11 working on travis

@idoby
Copy link
Collaborator

idoby commented Oct 28, 2015

@houli Thanks, I got it to pass and learned something about Travis CI!
I fixed the PR for node versions 0.12 and 4. Getting it to work with 0.10 doesn't seem worth the effort to me.

@GabLeRoux
Copy link

Had same issue, rebooting did nothing, I tried to symlink libgcc_s.10.5.dylib as explained in Homebrew/legacy-homebrew/issues/40653 mentioned in stackoverlfow's answer in last comment of facebook/react-native/issues/1527 thinking it could help.

cd /usr/local/lib
sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.5.dylib
sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.4.dylib

didn't work. I tried updating xcode, didn't work, Uninstalled xcode and used only cli tools, failed, installed a fresh xcode Version 7.1 (7B91b), still not working.

uname -a
Darwin hexbook.telenetinfo.com 15.0.0 Darwin Kernel Version 15.0.0: Sat Sep 19 15:53:46 PDT 2015; root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64

I tried with both system and stable node versions using nvm

nvm use system
Now using system version of node: v4.2.1 (npm v2.12.1)
nvm use stable
Now using node v4.2.1 (npm v2.14.7)

I always get something like this;

npm install contextify
/
> contextify@0.1.14 install /Users/gableroux/repos/temp/node_modules/contextify
> node-gyp rebuild

2015-10-28 09:18:29.817 xcodebuild[29736:231436] [MT] PluginLoading: Required plug-in compatibility UUID 7265231C-39B4-402C-89E1-16167C4CC990 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs
  CXX(target) Release/obj.target/contextify/src/contextify.o
In file included from ../src/contextify.cc:3:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                        ^
../node_modules/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                        ^
../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace 'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/gableroux/.node-gyp/4.2.1/src/node_buffer.h:31:40: note: candidate function not viable: no known conversion
      from 'uint32_t' (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/gableroux/.node-gyp/4.2.1/src/node_buffer.h:43:40: note: candidate function not viable: 2nd argument
      ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/gableroux/.node-gyp/4.2.1/src/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments,
      but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/gableroux/.node-gyp/4.2.1/src/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments,
      but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
In file included from ../src/contextify.cc:3:
../node_modules/nan/nan.h:676:12: error: no viable conversion from 'v8::MaybeLocal<v8::Object>' to
      'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:210:7: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to
      'const v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:210:7: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to
      'v8::Local<v8::Object> &&' for 1st argument
class Local {
      ^
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:214:13: note: candidate template ignored: could not match
      'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:326:13: note: candidate template ignored: could not match 'S *'
      against 'v8::MaybeLocal<v8::Object>'
  V8_INLINE Local(S* that)
            ^
In file included from ../src/contextify.cc:3:
../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace 'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
In file included from ../src/contextify.cc:1:
In file included from /Users/gableroux/.node-gyp/4.2.1/src/node.h:42:
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from
      incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:414:12: note: in instantiation of function template specialization
      'v8::Local<v8::Primitive>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/contextify.cc:1:
In file included from /Users/gableroux/.node-gyp/4.2.1/src/node.h:42:
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Boolean *volatile' from
      incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:424:12: note: in instantiation of function template specialization
      'v8::Local<v8::Boolean>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/contextify.cc:1:
In file included from /Users/gableroux/.node-gyp/4.2.1/src/node.h:42:
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Function *volatile' from
      incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1514:12: note: in instantiation of function template specialization
      'v8::Local<v8::Function>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/contextify.cc:1:
In file included from /Users/gableroux/.node-gyp/4.2.1/src/node.h:42:
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Object *volatile' from
      incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1632:12: note: in instantiation of function template specialization
      'v8::Local<v8::Object>::Local<v8::Value>' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/contextify.cc:1:
In file included from /Users/gableroux/.node-gyp/4.2.1/src/node.h:42:
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Value *volatile' from
      incompatible type 'v8::Context *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:267:10: note: in instantiation of function template specialization
      'v8::Local<v8::Value>::Local<v8::Context>' requested here
  return NanNew(val);
         ^
../src/contextify.cc:159:16: note: in instantiation of function template specialization
      '_NanEnsureLocal<v8::Local<v8::Context> >' requested here
        return NanEscapeScope(NanNew<Context>(
               ^
../node_modules/nan/nan.h:398:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                                          ^
In file included from ../src/contextify.cc:1:
In file included from /Users/gableroux/.node-gyp/4.2.1/src/node.h:42:
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Context *volatile' from
      incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../src/contextify.cc:159:16: note: in instantiation of function template specialization
      'v8::Local<v8::Context>::Local<v8::Value>' requested here
        return NanEscapeScope(NanNew<Context>(
               ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/contextify.cc:1:
In file included from /Users/gableroux/.node-gyp/4.2.1/src/node.h:42:
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:7380:3: error: assigning to 'v8::Integer *volatile' from
      incompatible type 'v8::Value *'
  TYPE_CHECK(T, S);
  ^~~~~~~~~~~~~~~~
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../src/contextify.cc:211:13: note: in instantiation of function template specialization
      'v8::ReturnValue<v8::Integer>::Set<v8::Value>' requested here
            NanReturnValue(NanNew<Integer>(None));
            ^
../node_modules/nan/nan.h:401:61: note: expanded from macro 'NanReturnValue'
# define NanReturnValue(value) return args.GetReturnValue().Set(_NanEnsureLocal(value))
                                                            ^
In file included from ../src/contextify.cc:1:
In file included from /Users/gableroux/.node-gyp/4.2.1/src/node.h:42:
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:7380:3: error: assigning to 'v8::Boolean *volatile' from
      incompatible type 'v8::Value *'
  TYPE_CHECK(T, S);
  ^~~~~~~~~~~~~~~~
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../src/contextify.cc:225:13: note: in instantiation of function template specialization
      'v8::ReturnValue<v8::Boolean>::Set<v8::Value>' requested here
            NanReturnValue(NanNew<Boolean>(false));
            ^
../node_modules/nan/nan.h:401:61: note: expanded from macro 'NanReturnValue'
# define NanReturnValue(value) return args.GetReturnValue().Set(_NanEnsureLocal(value))
                                                            ^
In file included from ../src/contextify.cc:1:
In file included from /Users/gableroux/.node-gyp/4.2.1/src/node.h:42:
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:7380:3: error: assigning to 'v8::Array *volatile' from
      incompatible type 'v8::Value *'
  TYPE_CHECK(T, S);
  ^~~~~~~~~~~~~~~~
/Users/gableroux/.node-gyp/4.2.1/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../src/contextify.cc:236:13: note: in instantiation of function template specialization
      'v8::ReturnValue<v8::Array>::Set<v8::Value>' requested here
            NanReturnValue(blank);
            ^
../node_modules/nan/nan.h:401:61: note: expanded from macro 'NanReturnValue'
# define NanReturnValue(value) return args.GetReturnValue().Set(_NanEnsureLocal(value))
                                                            ^
14 errors generated.
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/gableroux/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "/usr/local/Cellar/node/4.2.1/bin/node" "/Users/gableroux/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/gableroux/repos/temp/node_modules/contextify
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/Cellar/node/4.2.1/bin/node" "/Users/gableroux/local/bin/npm" "install" "contextify"
npm ERR! node v4.2.1
npm ERR! npm  v2.12.1
npm ERR! code ELIFECYCLE

npm ERR! contextify@0.1.14 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.14 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify 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 their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/gableroux/repos/temp/npm-debug.log

tldr

Found current issue, Thanks @sp00ne

brew tap homebrew/versions
brew unlink node
brew install node012
nvm use system
Now using system version of node: v0.12.7 (npm v2.12.1)

npm install contextify
|
> contextify@0.1.14 install /Users/gableroux/repos/temp/node_modules/contextify
> node-gyp rebuild

2015-10-28 09:36:13.594 xcodebuild[34765:268660] [MT] PluginLoading: Required plug-in compatibility UUID 7265231C-39B4-402C-89E1-16167C4CC990 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs
  CXX(target) Release/obj.target/contextify/src/contextify.o
  SOLINK_MODULE(target) Release/contextify.node
contextify@0.1.14 node_modules/contextify
├── bindings@1.2.1
└── nan@1.8.4

:D

@diko4096
Copy link

+1 on ArchLinux, Node 4.2.1. Looking forward for fix.

@broAir
Copy link

broAir commented Oct 30, 2015

same on El Capitan +1

@georgevreilly
Copy link

Also happening with Node 5. 0 on OS X 10.11.

@Niksko
Copy link

Niksko commented Nov 3, 2015

Still occurring on ArchLinux with Node 5.0

@Coobaha
Copy link

Coobaha commented Nov 3, 2015

+1 node 5.0 El Capitan

@mrayinteractive
Copy link

+1 node 5.0 Yosemite and El Capitan

@hogaur
Copy link

hogaur commented Nov 5, 2015

+1 Faced the same issue with node v5.0.0 on El Capitan.

@nfantone
Copy link

nfantone commented Nov 5, 2015

Same over here. Any plans on supporting Node 4.0.0+?

@qrohlf
Copy link

qrohlf commented Nov 5, 2015

Just FYI to folks who are here because contextify is being pulled in as a dep of JSdom - the latest version of JSdom no longer has a dependency on contextify. Bumping JSdom versions may fix your problem.

@broAir
Copy link

broAir commented Nov 6, 2015

@qrohlf thganks man!:)

@sinaler
Copy link

sinaler commented Nov 6, 2015

+1 node 5.0 El Capitan

@sebilasse
Copy link

might be a dup of #171

@gnestor
Copy link

gnestor commented Nov 10, 2015

+1 for OS X 10.11 running Node 4.1.2 and Node 5. It installs fine running Node 0.10.36.

@MartinMoizard
Copy link

+1

@brianmcd
Copy link
Owner

Fixed in 0.1.15

@pke
Copy link

pke commented Mar 4, 2016

Still have that on Windows and node 0.12.7

gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack     at failNoPython (c:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:114:14)
gyp ERR! stack     at c:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:69:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "jsdom@3.1.2" "--save-dev"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE

@brianmcd
Copy link
Owner

brianmcd commented Mar 4, 2016

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

@pke
Copy link

pke commented Mar 5, 2016

Does it really need to compile binaries?

@brianmcd
Copy link
Owner

brianmcd commented Mar 5, 2016

It does. This is a C++ module.

@pke
Copy link

pke commented Mar 5, 2016

Ah ok. Never needed python to install npm packages so far, they always had a non native fallback.
Installed python (<3.0) and all is well now.
Thanks!

@brianmcd
Copy link
Owner

brianmcd commented Mar 6, 2016

Great, glad it's working for you.

@venil7
Copy link

venil7 commented Apr 19, 2016

still getting this error:
npm ERR! node v5.10.1 npm ERR! npm v3.8.3 npm ERR! code ELIFECYCLE npm ERR! contextify@0.1.15 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the contextify@0.1.15 install script 'node-gyp rebuild'.

@nmcalabroso
Copy link

nmcalabroso commented Apr 22, 2016

even for node v4.2.6 and npm v3.8.7 on ubuntu 14.04

23:17:42 npm ERR! contextify@0.1.15 install: `node-gyp rebuild`
23:17:42 npm ERR! spawn ENOENT
23:17:42 npm ERR! 
23:17:42 npm ERR! Failed at the contextify@0.1.15 install script 'node-gyp rebuild'.
23:17:42 npm ERR! Make sure you have the latest version of node.js and npm installed.
23:17:42 npm ERR! If you do, this is most likely a problem with the contextify package,
23:17:42 npm ERR! not with npm itself.
23:17:42 npm ERR! Tell the author that this fails on your system:
23:17:42 npm ERR!     node-gyp rebuild
23:17:42 npm ERR! You can get information on how to open an issue for this project with:
23:17:42 npm ERR!     npm bugs contextify
23:17:42 npm ERR! Or if that isn't available, you can get their info via:
23:17:42 npm ERR!     npm owner ls contextify
23:17:42 npm ERR! There is likely additional logging output above.

@nmcalabroso
Copy link

I just put node-gyp as part of my devDependencies then it worked for me

@Joe-Withey
Copy link

I'm running Ubuntu 14.04 run: sudo apt-get -y install g++ and it'll solve it on v4.2.1

Well... It did for me! :)

@ummahusla
Copy link

Still getting this error.

Windows 10
Node v4.5.0
Npm v2.15.9

@vnenkpet
Copy link

I'm running Ubuntu 14.04 and sudo apt-get -y install g++ didn't work for me either.. I have node 7.4.0 though...

@OpakAlex
Copy link

Вот вы же заебали, этим надо node 0.12, другому дураку только 6.9.2, вот я как ебучий пролетарий ебучего кода что должен делать по вашему? Какого хуя эти пизда зависит от цен на пиво, а не от инженерных мыслей? Вот какого хуя?

@cyberdude
Copy link

Not working on the newest version

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests