Open Federix320 opened 3 years ago
I am facing similar issues while trying to either use npm to install stf or build from code.
What is the issue you have: getting npm gyp errors during installation of stf on macOS big sure.
Please provide steps to reproduce the issue: I have downloaded all the dependencies, cloned the repo and then run npm install. I get a big error log related to the various npm gyp errors
Do you see errors: npm WARN using --force Recommended protections disabled.
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: webpack@1.15.0
npm WARN node_modules/webpack
npm WARN dev webpack@"^1.12.11" from the root project
npm WARN 3 more (extract-text-webpack-plugin, karma-webpack, sass-loader)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer webpack@"^4.0.0" from webpack-dev-server@3.1.11
npm WARN node_modules/webpack-dev-server
npm WARN dev webpack-dev-server@"^3.1.11" from the root project
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: webpack@1.15.0
npm WARN node_modules/webpack
npm WARN dev webpack@"^1.12.11" from the root project
npm WARN 3 more (extract-text-webpack-plugin, karma-webpack, sass-loader)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer webpack@"^4.0.0" from webpack-dev-middleware@3.4.0
npm WARN node_modules/webpack-dev-server/node_modules/webpack-dev-middleware
npm WARN webpack-dev-middleware@"3.4.0" from webpack-dev-server@3.1.11
npm WARN node_modules/webpack-dev-server
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: webpack@1.15.0
npm WARN node_modules/webpack
npm WARN dev webpack@"^1.12.11" from the root project
npm WARN 3 more (extract-text-webpack-plugin, karma-webpack, sass-loader)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer webpack@"^4.0.0" from webpack-dev-middleware@3.4.0
npm WARN node_modules/webpack-dev-server/node_modules/webpack-dev-middleware
npm WARN webpack-dev-middleware@"3.4.0" from webpack-dev-server@3.1.11
npm WARN node_modules/webpack-dev-server
npm WARN deprecated fsevents@1.2.11: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated natives@1.1.0: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
npm WARN deprecated xmldom@0.1.19: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated har-validator@2.0.6: this library is no longer supported
npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated constantinople@3.0.2: Please update to at least constantinople 3.1.1
npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated ejs@0.8.8: Critical security bugs fixed in 2.5.5
npm WARN deprecated samsam@1.1.2: This package has been deprecated in favour of @sinonjs/samsam
npm WARN deprecated formatio@1.1.1: This package is unmaintained. Use @sinonjs/formatio instead
npm WARN deprecated coa@1.0.3: Please upgrade to 1.0.4 for node 0.10, 0.12, or to 2.0+ for node 4+
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated constantinople@3.1.0: Please update to at least constantinople 3.1.1
npm WARN deprecated flatten@1.0.2: I wrote this module a very long time ago; you should use something else.
npm WARN deprecated clone@1.0.2: XSS vulnerability fixed in v1.0.3
npm WARN deprecated mkdirp@0.5.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated is-buffer@1.1.5: This version of 'is-buffer' is out-of-date. You must update to v1.1.6 or newer
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated xmldom@0.1.27: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated circular-json@0.3.1: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated highlight.js@9.15.10: Version no longer supported. Upgrade to @latest
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated buffer@5.0.6: This version of 'buffer' is out-of-date. You must update to v5.0.8 or newer
npm WARN deprecated request@2.79.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated phantomjs-prebuilt@2.1.14: this package is now deprecated
npm WARN deprecated request@2.81.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated core-js@2.6.9: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated har-validator@4.2.1: this library is no longer supported
npm WARN deprecated buffer@4.9.1: This version of 'buffer' is out-of-date. You must update to v4.9.2 or newer
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated gulp-protractor@3.0.0: major security issue https://github.com/dominictarr/event-stream/issues/116 issue in v4.1.1
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated gulp-util@3.0.7: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated extract-text-webpack-plugin@1.0.1: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin
npm WARN deprecated bower@1.8.8: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
npm WARN deprecated @slack/client@3.10.0: v3.x and lower are no longer supported. see migration guide: https://github.com/slackapi/node-slack-sdk/wiki/Migration-Guide-for-v4
npm WARN deprecated buffer@4.9.1: This version of 'buffer' is out-of-date. You must update to v4.9.2 or newer
npm ERR! code 1
npm ERR! path /Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/utf-8-validate
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! CXX(target) Release/obj.target/validation/src/validation.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@16.0.0 | darwin | x64
npm ERR! gyp http GET https://nodejs.org/download/release/v16.0.0/node-v16.0.0-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.0.0/node-v16.0.0-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v16.0.0/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.0.0/SHASUMS256.txt
npm ERR! (node:40201) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use node --trace-deprecation ...
to show where the warning was created)
npm ERR! gyp info spawn /usr/bin/python2
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/utf-8-validate/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/sandeepsingh/.node-gyp/16.0.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/sandeepsingh/.node-gyp/16.0.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/sandeepsingh/.node-gyp/16.0.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/utf-8-validate',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/validation.cc:7:
npm ERR! In file included from /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:30:
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8-internal.h:452:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
npm ERR! !std::is_same<Data, std::remove_cv_t~^~~
npm ERR! remove_cv
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:697:50: note: 'remove_cv' declared here
npm ERR! template ~~~~~
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:15:26: note: expanded from macro 'X'
npm ERR! return val->To ## TYPE(GetCurrentContext()); \
npm ERR! ^~~~~~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3057:37: note: passing argument to parameter 'isolate' here
npm ERR! Local~~~
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:31:29: note: expanded from macro 'X'
npm ERR! return val->NAME ## Value(GetCurrentContext()); \
npm ERR! ^~~~~~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3067:30: note: passing argument to parameter 'isolate' here
npm ERR! bool BooleanValue(Isolate isolate) const;
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! In file included from ../node_modules/nan/nan.h:196:
npm ERR! In file included from ../node_modules/nan/nan_new.h:189:
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:107:42: error: no viable conversion from 'v8::Isolate ' to 'Local~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:199:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate that)
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:4717:22: note: passing argument to parameter 'context' here
npm ERR! Local~~~~~ ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:6153:3: note: 'New' declared here
npm ERR! static Local~~~~~~ ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3019:3: note: 'ToString' declared here
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal~~~~~^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3926:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe~~~~~^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3926:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe~~~~~^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3926:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe~~~~~^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3973:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal~~~~~^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3973:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal~~~~~^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3973:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal~~~~ ^
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
npm ERR! (builtin_expect(!(e), 0) ? __assert_rtn(func, FILE, LINE, #e) : (void)0)
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! In file included from ../node_modules/nan/nan.h:2190:
npm ERR! ../node_modules/nan/nan_object_wrap.h:67:18: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits~~~~ ^
npm ERR! ../node_modules/nan/nan_objectwrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits~~~~~ ^
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
npm ERR! (~~~~~~ ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:6750:3: note: 'GetFunction' declared here
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocalmake
failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/node-gyp/lib/build.js:262:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:365:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 20.3.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/16.0.0_1/bin/node" "/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/utf-8-validate
npm ERR! gyp ERR! node -v v16.0.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
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::Local)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool ( )(v8::Local, v8::Local)’} [-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_cast(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_cast(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(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::Handle)’ {aka ‘void ()(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void ( )(v8::Local, v8::Local, 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)
| ^::SetWeak(P , typename v8::WeakCallbackInfo
~~~~ ../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::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfo&)]’:
/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::WeakCallbackInfo::Callback’ {aka ‘void ( )(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
9313 | reinterpret_cast(callback), type);
| ^::SetWeak(P , typename v8::WeakCallbackInfo
~~~~~~~/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfo&)]’:
../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::WeakCallbackInfo::Callback’ {aka ‘void ( )(const v8::WeakCallbackInfo&)’} 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::Local)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool ( )(v8::Local, v8::Local)’} [-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_cast(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_cast(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(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::Handle)’ {aka ‘void ()(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void ( )(v8::Local, v8::Local, 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)
| ^::SetWeak(P , typename v8::WeakCallbackInfo
~~~~ ../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::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfo&)]’:
/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::WeakCallbackInfo::Callback’ {aka ‘void ( )(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
9313 | reinterpret_cast(callback), type);
| ^::SetWeak(P , typename v8::WeakCallbackInfo
~~~~~~~/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo
::Callback = void ()(const v8::WeakCallbackInfo&)]’:
../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::WeakCallbackInfo::Callback’ {aka ‘void ( )(const v8::WeakCallbackInfo&)’} 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
| ^
~~ 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: 2 gyp 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.