Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to install with iojs@3.0.0 #110

Closed
daviddias opened this issue Aug 27, 2015 · 7 comments
Closed

Fails to install with iojs@3.0.0 #110

daviddias opened this issue Aug 27, 2015 · 7 comments

Comments

@daviddias
Copy link

I'm being unable to install jsonld with iojs@3.0.0, it seems that the problem with contextify (#86) is back or still present:

/Users/david/.node-gyp/3.0.0/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/david/.node-gyp/3.0.0/include/node/node.h:42:
/Users/david/.node-gyp/3.0.0/include/node/v8.h:7070:3: error: assigning to 'v8::Integer *volatile' from incompatible type 'v8::Value *'
  TYPE_CHECK(T, S);
  ^~~~~~~~~~~~~~~~
/Users/david/.node-gyp/3.0.0/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/david/.node-gyp/3.0.0/include/node/node.h:42:
/Users/david/.node-gyp/3.0.0/include/node/v8.h:7070:3: error: assigning to 'v8::Boolean *volatile' from incompatible type 'v8::Value *'
  TYPE_CHECK(T, S);
  ^~~~~~~~~~~~~~~~
/Users/david/.node-gyp/3.0.0/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/david/.node-gyp/3.0.0/include/node/node.h:42:
/Users/david/.node-gyp/3.0.0/include/node/v8.h:7070:3: error: assigning to 'v8::Array *volatile' from incompatible type 'v8::Value *'
  TYPE_CHECK(T, S);
  ^~~~~~~~~~~~~~~~
/Users/david/.node-gyp/3.0.0/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
@jasnell
Copy link

jasnell commented Aug 28, 2015

Until this issue is fixed, a workaround is to grab a copy of the Node v0.12 source (git clone http://github.com/joyent/node then git checkout v0.12) and use the --nodedir option on the npm install, e.g. npm install --nodedir=~/node jsonld to install. Once installed, things should work fine.

@davidlehn
Copy link
Member

It's not the same contextify bug, I think it's a new one related to newer nan version: brianmcd/contextify#173

@p-janik
Copy link

p-janik commented Sep 9, 2015

Had same issue. Rolled out to iojs-v2.5.0 (with node-gyp 3.0.1) and everything works fine.

@davidlehn
Copy link
Member

I split "request" extension into https://github.com/digitalbazaar/jsonld-request and cli tool into https://github.com/digitalbazaar/jsonld-cli which may fix dependency issues if you are just using the core library.

dlongley referenced this issue Sep 13, 2015
- Move "request" extension to jsonld-request module.
- Move jsonld tool to jsonld-cli module.
- Update to use() call to require jsonld-request module.
- Add CHANGELOG.
- Update dependencies and README.
@dlongley
Copy link
Member

Version 0.4 now runs in iojs; closing this. An issue can be opened on jsonld-request or jsonld-cli if iojs support is needed over there.

@ghost
Copy link

ghost commented Nov 17, 2017

Still broke as hell.

@davidlehn
Copy link
Member

@TheRoboKitten What is broken on which platform?

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

Successfully merging a pull request may close this issue.

5 participants