-
-
Save natevw/7be2306060300a186db2 to your computer and use it in GitHub Desktop.
Errors building https://github.com/porsager/node-hid under atom-shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export npm_config_disturl=https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist | |
export npm_config_target=0.16.0 | |
export npm_config_arch=x64 | |
HOME=~/.atom-shell-gyp npm install module-name | |
postel:test-atom natevw$ HOME=~/.atom-shell-gyp npm install git+ssh://git@github.com:porsager/node-hid.git | |
npm WARN engine node-hid@0.3.1: wanted: {"node":">=1.2.0"} (current: {"node":"0.10.29","npm":"1.4.20"}) | |
> node-hid@0.3.1 preinstall /…/test-atom/node_modules/node-hid | |
> sh get-hidapi.sh | |
Cloning into 'hidapi'... | |
remote: Counting objects: 1965, done. | |
remote: Total 1965 (delta 0), reused 0 (delta 0) | |
Receiving objects: 100% (1965/1965), 2.79 MiB | 894.00 KiB/s, done. | |
Resolving deltas: 100% (1082/1082), done. | |
Checking connectivity... done. | |
/ | |
> node-hid@0.3.1 install /…/test-atom/node_modules/node-hid | |
> sh install.sh | |
CC(target) Release/obj.target/hidapi/hidapi/mac/hid.o | |
../hidapi/mac/hid.c:255:20: warning: comparison of integers of different signs: 'CFIndex' (aka 'long') and 'size_t' | |
(aka 'unsigned long') [-Wsign-compare] | |
if (chars_copied == len) | |
~~~~~~~~~~~~ ^ ~~~ | |
../hidapi/mac/hid.c:295:20: warning: comparison of integers of different signs: 'CFIndex' (aka 'long') and 'size_t' | |
(aka 'unsigned long') [-Wsign-compare] | |
if (used_buf_len == len) | |
~~~~~~~~~~~~ ^ ~~~ | |
2 warnings generated. | |
LIBTOOL-STATIC Release/hidapi.a | |
CXX(target) Release/obj.target/HID/src/HID.o | |
In file included from ../src/HID.cc:35: | |
../node_modules/nan/nan.h:339:13: error: no member named 'New' in 'v8::String' | |
return _NAN_ERROR(v8::Exception::Error, errmsg); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR' | |
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg)) | |
~~~~~~~~~~~~^ | |
../node_modules/nan/nan.h:343:5: error: no member named 'ThrowException' in namespace 'v8' | |
_NAN_THROW_ERROR(v8::Exception::Error, errmsg); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR' | |
v8::ThrowException(_NAN_ERROR(fun, errmsg)); \ | |
~~~~^ | |
../node_modules/nan/nan.h:343:5: error: no member named 'New' in 'v8::String' | |
_NAN_THROW_ERROR(v8::Exception::Error, errmsg); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR' | |
v8::ThrowException(_NAN_ERROR(fun, errmsg)); \ | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR' | |
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg)) | |
~~~~~~~~~~~~^ | |
../node_modules/nan/nan.h:348:9: error: no type named 'ThrowException' in namespace 'v8' | |
v8::ThrowException(error); | |
~~~~^ | |
../node_modules/nan/nan.h:355:65: error: no member named 'New' in 'v8::String' | |
v8::Local<v8::Value> err = v8::Exception::Error(v8::String::New(msg)); | |
~~~~~~~~~~~~^ | |
../node_modules/nan/nan.h:357:26: error: no member named 'New' in 'v8::String' | |
obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber)); | |
~~~~~~~~~~~~^ | |
../node_modules/nan/nan.h:369:12: error: no member named 'New' in 'v8::String' | |
return _NAN_ERROR(v8::Exception::TypeError, errmsg); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR' | |
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg)) | |
~~~~~~~~~~~~^ | |
../node_modules/nan/nan.h:373:5: error: no member named 'ThrowException' in namespace 'v8' | |
_NAN_THROW_ERROR(v8::Exception::TypeError, errmsg); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR' | |
v8::ThrowException(_NAN_ERROR(fun, errmsg)); \ | |
~~~~^ | |
../node_modules/nan/nan.h:373:5: error: no member named 'New' in 'v8::String' | |
_NAN_THROW_ERROR(v8::Exception::TypeError, errmsg); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR' | |
v8::ThrowException(_NAN_ERROR(fun, errmsg)); \ | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR' | |
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg)) | |
~~~~~~~~~~~~^ | |
../node_modules/nan/nan.h:377:12: error: no member named 'New' in 'v8::String' | |
return _NAN_ERROR(v8::Exception::RangeError, errmsg); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR' | |
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg)) | |
~~~~~~~~~~~~^ | |
../node_modules/nan/nan.h:381:5: error: no member named 'ThrowException' in namespace 'v8' | |
_NAN_THROW_ERROR(v8::Exception::RangeError, errmsg); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR' | |
v8::ThrowException(_NAN_ERROR(fun, errmsg)); \ | |
~~~~^ | |
../node_modules/nan/nan.h:381:5: error: no member named 'New' in 'v8::String' | |
_NAN_THROW_ERROR(v8::Exception::RangeError, errmsg); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR' | |
v8::ThrowException(_NAN_ERROR(fun, errmsg)); \ | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR' | |
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg)) | |
~~~~~~~~~~~~^ | |
../node_modules/nan/nan.h:727:49: error: too few arguments to function call, single argument 'isolate' was not | |
specified | |
v8::Local<v8::Object> obj = v8::Object::New(); | |
~~~~~~~~~~~~~~~ ^ | |
/Users/natevw/.atom-shell-gyp/.node-gyp/0.16.0/deps/v8/include/v8.h:2353:3: note: 'New' declared here | |
static Local<Object> New(Isolate* isolate); | |
^ | |
In file included from ../src/HID.cc:35: | |
../node_modules/nan/nan.h:733:49: error: too few arguments to function call, single argument 'isolate' was not | |
specified | |
v8::Local<v8::Object> obj = v8::Object::New(); | |
~~~~~~~~~~~~~~~ ^ | |
/Users/natevw/.atom-shell-gyp/.node-gyp/0.16.0/deps/v8/include/v8.h:2353:3: note: 'New' declared here | |
static Local<Object> New(Isolate* isolate); | |
^ | |
In file included from ../src/HID.cc:35: | |
../node_modules/nan/nan.h:740:12: error: no member named 'Dispose' in 'v8::Persistent<v8::Object, | |
v8::NonCopyablePersistentTraits<v8::Object> >' | |
handle.Dispose(); | |
~~~~~~ ^ | |
../node_modules/nan/nan.h:741:12: error: no member named 'Clear' in 'v8::Persistent<v8::Object, | |
v8::NonCopyablePersistentTraits<v8::Object> >' | |
handle.Clear(); | |
~~~~~~ ^ | |
../node_modules/nan/nan.h:746:39: error: no member named 'NewSymbol' in 'v8::String'; did you mean 'IsSymbol'? | |
NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn); | |
^~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:181:38: note: expanded from macro 'NanSymbol' | |
#define NanSymbol(value) v8::String::NewSymbol(value) | |
~~~~~~~~~~~~^ | |
/Users/natevw/.atom-shell-gyp/.node-gyp/0.16.0/deps/v8/include/v8.h:1341:8: note: 'IsSymbol' declared here | |
bool IsSymbol() const; | |
^ | |
In file included from ../src/HID.cc:35: | |
../node_modules/nan/nan.h:746:39: error: call to non-static member function without an object argument | |
NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn); | |
^~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:181:38: note: expanded from macro 'NanSymbol' | |
#define NanSymbol(value) v8::String::NewSymbol(value) | |
~~~~~~~~~~~~^~~~~~~~~ | |
../node_modules/nan/nan.h:750:46: error: no member named 'NewSymbol' in 'v8::String'; did you mean 'IsSymbol'? | |
return NanPersistentToLocal(handle)->Get(NanSymbol("callback")) | |
^~~~~~~~~~~~~~~~~~~~~ | |
../node_modules/nan/nan.h:181:38: note: expanded from macro 'NanSymbol' | |
#define NanSymbol(value) v8::String::NewSymbol(value) | |
~~~~~~~~~~~~^ | |
/Users/natevw/.atom-shell-gyp/.node-gyp/0.16.0/deps/v8/include/v8.h:1341:8: note: 'IsSymbol' declared here | |
bool IsSymbol() const; | |
^ | |
fatal error: too many errors emitted, stopping now [-ferror-limit=] | |
20 errors generated. | |
make: *** [Release/obj.target/HID/src/HID.o] Error 1 | |
gyp ERR! build error | |
gyp ERR! stack Error: `make` failed with exit code: 2 | |
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) | |
gyp ERR! stack at ChildProcess.emit (events.js:98:17) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12) | |
gyp ERR! System Darwin 13.4.0 | |
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "install" | |
gyp ERR! cwd /…/test-atom/node_modules/node-hid | |
gyp ERR! node -v v0.10.29 | |
gyp ERR! node-gyp -v v0.13.1 | |
gyp ERR! not ok | |
npm ERR! node-hid@0.3.1 install: `sh install.sh` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the node-hid@0.3.1 install script. | |
npm ERR! This is most likely a problem with the node-hid package, | |
npm ERR! not with npm itself. | |
npm ERR! Tell the author that this fails on your system: | |
npm ERR! sh install.sh | |
npm ERR! You can get their info via: | |
npm ERR! npm owner ls node-hid | |
npm ERR! There is likely additional logging output above. | |
npm ERR! System Darwin 13.4.0 | |
npm ERR! command "node" "/usr/local/bin/npm" "install" "git+ssh://git@github.com:porsager/node-hid.git" | |
npm ERR! cwd /…/test-atom | |
npm ERR! node -v v0.10.29 | |
npm ERR! npm -v 1.4.20 | |
npm ERR! code ELIFECYCLE | |
npm ERR! | |
npm ERR! Additional logging details can be found in: | |
npm ERR! /…/test-atom/npm-debug.log | |
npm ERR! not ok code 0 | |
postel:test-atom natevw$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment