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 build #44

Open
mirek opened this issue Feb 13, 2015 · 3 comments
Open

Fails to build #44

mirek opened this issue Feb 13, 2015 · 3 comments

Comments

@mirek
Copy link

mirek commented Feb 13, 2015

mirekimac:pngtest mirek$ node -v
v0.12.0
mirekimac:pngtest mirek$ npm install png --save
child_process: customFds option is deprecated, use stdio instead.
  CXX(target) Release/obj.target/png/src/common.o
../src/common.cpp:10:17: error: calling a protected constructor of class 'v8::HandleScope'
    HandleScope scope;
                ^
/Users/mirek/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: note: declared protected here
  V8_INLINE HandleScope() {}
            ^
../src/common.cpp:11:37: error: no member named 'New' in 'v8::String'
    return Exception::Error(String::New(msg));
                            ~~~~~~~~^
../src/common.cpp:16:17: error: calling a protected constructor of class 'v8::HandleScope'
    HandleScope scope;
                ^
/Users/mirek/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: note: declared protected here
  V8_INLINE HandleScope() {}
            ^
../src/common.cpp:17:12: error: use of undeclared identifier 'ThrowException'; did you mean 'ErrorException'?
    return ThrowException(ErrorException(msg));
           ^~~~~~~~~~~~~~
           ErrorException
../src/common.cpp:8:1: note: 'ErrorException' declared here
ErrorException(const char *msg)
^
../src/common.cpp:17:27: error: no viable conversion from 'Handle<v8::Value>' to 'const char *'
    return ThrowException(ErrorException(msg));
                          ^~~~~~~~~~~~~~~~~~~
../src/common.cpp:8:28: note: passing argument to parameter 'msg' here
ErrorException(const char *msg)
                           ^
5 errors generated.
make: *** [Release/obj.target/png/src/common.o] Error 1
@hrdwdmrbl
Copy link

Oh, I get this one too!
I use:

  1. node 0.12.0
  2. npm 2.5.1
  3. OSX 10.9.5
  4. gcc Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)

Anything else I can provide to help?

@hrdwdmrbl
Copy link

If I drop back to using v0.10.37, then it works again. So, to anyone else with this problem, I would recommend using NVM to install and then use v0.10.37, install png, then switch back to 0.11.x or 0.12.x and run npm install again. It will pass, and you can continue on.

@brunobasto
Copy link

Not fixed yet for most recent versions of node?

@mirek mirek changed the title Fails to buil Fails to build Dec 3, 2016
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

No branches or pull requests

3 participants