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

node-gyp build fails with io.js #46

Open
ghost opened this issue Feb 21, 2015 · 0 comments
Open

node-gyp build fails with io.js #46

ghost opened this issue Feb 21, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 21, 2015

I am unsure as to whether the issue is with io.js or node-png, but as io.js is supposedly 100% compatible with node.js, I am posting this here.

I have correctly installed the node-gyp headers for io.js, so no problems there.

node-png correctly configures, as can be seen here:

[REDACTED]@[REDACTED] ~/projects/[REDACTED]/node_modules/png $ node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.2
gyp info using node@1.3.0 | linux | x64
child_process: customFds option is deprecated, use stdio instead.
gyp info spawn python
gyp info spawn args [ '/usr/local/npm/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/[REDACTED]/projects/[REDACTED]/node_modules/png/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/npm/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/[REDACTED]/.node-gyp/1.3.0/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/[REDACTED]/.node-gyp/1.3.0',
gyp info spawn args   '-Dmodule_root_dir=/home/[REDACTED]/projects/[REDACTED]/node_modules/png',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok 

However, when I attempt to run node-gyp build, I receive the following errors:

[REDACTED]@[REDACTED] ~/projects/[REDACTED]/node_modules/png $ node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.2
gyp info using node@1.3.0 | linux | x64
child_process: customFds option is deprecated, use stdio instead.
gyp info spawn make
make: Entering directory `/home/[REDACTED]/projects/[REDACTED]/node_modules/png/build'
gyp  CXX(target) Release/obj.target/png/src/common.o
 info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
In file included from /home/[REDACTED]/.node-gyp/1.3.0/src/node.h:40:0,
                 from ../src/common.h:4,
                 from ../src/common.cpp:3:
/home/[REDACTED]/.node-gyp/1.3.0/deps/v8/include/v8.h: In function ‘v8::Handle<v8::Value> ErrorException(const char*)’:
/home/[REDACTED]/.node-gyp/1.3.0/deps/v8/include/v8.h:878:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/common.cpp:10:17: error: within this context
     HandleScope scope;
                 ^
../src/common.cpp:11:29: error: ‘New’ is not a member of ‘v8::String’
     return Exception::Error(String::New(msg));
                             ^
In file included from /home/[REDACTED]/.node-gyp/1.3.0/src/node.h:40:0,
                 from ../src/common.h:4,
                 from ../src/common.cpp:3:
/home/[REDACTED]/.node-gyp/1.3.0/deps/v8/include/v8.h: In function ‘v8::Handle<v8::Value> VException(const char*)’:
/home/[REDACTED]/.node-gyp/1.3.0/deps/v8/include/v8.h:878:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/common.cpp:16:17: error: within this context
     HandleScope scope;
                 ^
../src/common.cpp:17:46: error: ‘ThrowException’ was not declared in this scope
     return ThrowException(ErrorException(msg));
                                              ^
../src/common.cpp: In function ‘v8::Handle<v8::Value> ErrorException(const char*)’:
../src/common.cpp:12:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/common.cpp: In function ‘v8::Handle<v8::Value> VException(const char*)’:
../src/common.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make: *** [Release/obj.target/png/src/common.o] Error 1
make: Leaving directory `/home/[REDACTED]/projects/[REDACTED]/node_modules/png/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/npm/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:169:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1044:12)
gyp ERR! System Linux 3.13.0-37-generic
gyp ERR! command "node" "/usr/local/npm/bin/node-gyp" "build"
gyp ERR! cwd /home/[REDACTED]/projects/[REDACTED]/node_modules/png
gyp ERR! node -v v1.3.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 

Once again, apologies if this is not the correct place to post this error.

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

0 participants