You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 [email protected]
gyp info using [email protected] | 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 [email protected]
gyp info using [email protected] | 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.
The text was updated successfully, but these errors were encountered:
I am unsure as to whether the issue is with
io.js
ornode-png
, but asio.js
is supposedly 100% compatible withnode.js
, I am posting this here.I have correctly installed the
node-gyp
headers forio.js
, so no problems there.node-png correctly configures, as can be seen here:
However, when I attempt to run
node-gyp build
, I receive the following errors:Once again, apologies if this is not the correct place to post this error.
The text was updated successfully, but these errors were encountered: