-
Notifications
You must be signed in to change notification settings - Fork 487
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 ERR #231
Comments
I am facing similar issues while trying to either use npm to install stf or build from code. |
I was able to get it to install on MacOS by using sudo npm install -g @devicefarmer/stf --unsafe |
Hi guyz i have this error, i've tried on mac and now in ubuntu, but i have the same problem, tried different version of node, 8.0 / 8.17 and 8.9.3 too. Someone can help me ?
make: ingresso nella directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/dtrace-provider/build»
TOUCH Release/obj.target/DTraceProviderStub.stamp
make: uscita dalla directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/dtrace-provider/build»
make: ingresso nella directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/bufferutil/build»
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:7:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool ()(v8::Localv8::Context)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool ()(v8::Localv8::Context, v8::Localv8::String)’} [-Wcast-function-type]
10304 | callback));
| ^
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10349 | reinterpret_castIsolate::GCCallback(callback));
| ^
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10356 | reinterpret_castIsolate::GCCallback(callback));
| ^
In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../node_modules/nan/nan.h:1704:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
1704 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
In file included from ../src/bufferutil.cc:8:
../src/bufferutil.cc: At global scope:
/home/capo/.cache/node-gyp/8.17.0/include/node/node.h:505:43: warning: cast between incompatible function types from ‘void ()(v8::Handlev8::Object)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
505 | (node::addon_register_func) (regfunc),
| ^
/home/capo/.cache/node-gyp/8.17.0/include/node/node.h:536:3: note: in expansion of macro ‘NODE_MODULE_X’
536 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/bufferutil.cc:164:1: note: in expansion of macro ‘NODE_MODULE’
164 | NODE_MODULE(bufferutil, init)
| ^~~~~~~~~~~
In file included from ../src/bufferutil.cc:7:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/capo/.cache/node-gyp/8.17.0/include/node/node_object_wrap.h:85:78: required from here
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:9313:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
9313 | reinterpret_cast(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../node_modules/nan/nan_object_wrap.h:66:61: required from here
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:9313:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
COPY Release/bufferutil.node
make: uscita dalla directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/bufferutil/build»
make: ingresso nella directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/utf-8-validate/build»
CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../src/validation.cc:7:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool ()(v8::Localv8::Context)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool ()(v8::Localv8::Context, v8::Localv8::String)’} [-Wcast-function-type]
10304 | callback));
| ^
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10349 | reinterpret_castIsolate::GCCallback(callback));
| ^
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10356 | reinterpret_castIsolate::GCCallback(callback));
| ^
In file included from ../src/validation.cc:15:
../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../node_modules/nan/nan.h:1704:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
1704 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
In file included from ../src/validation.cc:8:
../src/validation.cc: At global scope:
/home/capo/.cache/node-gyp/8.17.0/include/node/node.h:505:43: warning: cast between incompatible function types from ‘void ()(v8::Handlev8::Object)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
505 | (node::addon_register_func) (regfunc),
| ^
/home/capo/.cache/node-gyp/8.17.0/include/node/node.h:536:3: note: in expansion of macro ‘NODE_MODULE_X’
536 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/validation.cc:146:1: note: in expansion of macro ‘NODE_MODULE’
146 | NODE_MODULE(validation, init)
| ^~~~~~~~~~~
In file included from ../src/validation.cc:7:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/capo/.cache/node-gyp/8.17.0/include/node/node_object_wrap.h:85:78: required from here
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:9313:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
9313 | reinterpret_cast(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo
::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../node_modules/nan/nan_object_wrap.h:66:61: required from here
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:9313:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
../src/validation.cc: In function ‘int is_valid_utf8(size_t, char)’:
../src/validation.cc:81:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
81 | case 5 : ch += (uint8_t) value[i++]; ch <<= 6;
| ~~~^~~~~
../src/validation.cc:82:7: note: here
82 | case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
| ^~~~
../src/validation.cc:82:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
82 | case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
| ~~~^~~~~
../src/validation.cc:83:7: note: here
83 | case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
| ^~~~
../src/validation.cc:83:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
83 | case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
| ~~~^~~~~
../src/validation.cc:84:7: note: here
84 | case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
| ^~~~
../src/validation.cc:84:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
84 | case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
| ~~~^~~~~
../src/validation.cc:85:7: note: here
85 | case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
| ^~~~
../src/validation.cc:85:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
85 | case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
| ~~~^~~~~
../src/validation.cc:86:7: note: here
86 | case 0 : ch += (uint8_t) value[i];
| ^~~~
../src/validation.cc: In function ‘int isLegalUTF8(const uint8_t*, int)’:
../src/validation.cc:51:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
51 | case 4: if ((a = (--srcptr)) < 0x80 || a > 0xBF) return 0;
| ^~
../src/validation.cc:52:5: note: here
52 | case 3: if ((a = (--srcptr)) < 0x80 || a > 0xBF) return 0;
| ^~~~
../src/validation.cc:52:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
52 | case 3: if ((a = (--srcptr)) < 0x80 || a > 0xBF) return 0;
| ^~
../src/validation.cc:53:5: note: here
53 | case 2: if ((a = (--srcptr)) < 0x80 || a > 0xBF) return 0;
| ^~~~
../src/validation.cc:54:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
54 | switch (*source) {
| ^~~~~~
../src/validation.cc:62:5: note: here
62 | case 1: if (*source >= 0x80 && *source < 0xC2) return 0;
| ^~~~
SOLINK_MODULE(target) Release/obj.target/validation.node
COPY Release/validation.node
make: uscita dalla directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/utf-8-validate/build»
make: ingresso nella directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/zmq/build»
CXX(target) Release/obj.target/zmq/binding.o
../binding.cc:28:10: fatal error: zmq.h: File o directory non esistente
28 | #include <zmq.h>
| ^~~~~~~
compilation terminated.
make: *** [zmq.target.mk:101: Release/obj.target/zmq/binding.o] Errore 1
make: uscita dalla directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/zmq/build»
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 5.8.0-43-generic
gyp ERR! command "/home/capo/.nvm/versions/node/v8.17.0/bin/node" "/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/zmq
gyp ERR! node -v v8.17.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN ws@7.4.4 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.4.4 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.4.4 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.4.4 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zmq@2.15.3 install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.15.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/capo/.npm/_logs/2021-04-11T18_51_50_807Z-debug.log
What is the issue or idea you have?
Does it only happen on a specific device? Please run
adb devices -l
and paste the corresponding row.Please provide the steps to reproduce the issue.
What is the expected behavior?
Do you see errors or warnings in the
stf local
output? If so, please paste them or the full log here.Please run
stf doctor
and paste the output here.The text was updated successfully, but these errors were encountered: