linux-corsair-lighting-node-core-control icon indicating copy to clipboard operation
linux-corsair-lighting-node-core-control copied to clipboard

Won't compile, but even after errors, it leaves detritus instead of cleaning up

Open rabinnh opened this issue 3 years ago • 0 comments

In file included from /root/.cache/node-gyp/16.19.0/include/node/v8.h:30, from ../src/node_usb.h:12, from ../src/node_usb.cc:1: /root/.cache/node-gyp/16.19.0/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’: /root/.cache/node-gyp/16.19.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 492 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data); | ^~~~~~~~~~~ | remove_cv /root/.cache/node-gyp/16.19.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 492 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data); | ^~~~~~~~~~~ | remove_cv /root/.cache/node-gyp/16.19.0/include/node/v8-internal.h:492:50: error: template argument 2 is invalid 492 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data); | ^ /root/.cache/node-gyp/16.19.0/include/node/v8-internal.h:492:63: error: ‘::Perform’ has not been declared 492 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data); | ^~~~~~~ In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/node_usb.cc:1: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../../nan/nan.h:2232: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] 2232 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | ^ In file included from ../src/node_usb.h:14, from ../src/node_usb.cc:1: ../src/node_usb.cc: At global scope: /root/.cache/node-gyp/16.19.0/include/node/node.h:887:43: warning: cast between incompatible function types from ‘void ()(v8::Localv8::Object)’ to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void*)’} [-Wcast-function-type] 887 | (node::addon_register_func) (regfunc),
| ^ /root/.cache/node-gyp/16.19.0/include/node/node.h:921:3: note: in expansion of macro ‘NODE_MODULE_X’ 921 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | ^~~~~~~~~~~~~ ../src/node_usb.cc:95:1: note: in expansion of macro ‘NODE_MODULE’ 95 | NODE_MODULE(usb_bindings, Initialize) | ^~~~~~~~~~~ ../src/node_usb.cc: In function ‘void handleHotplug(std::pair<libusb_device*, libusb_hotplug_event>)’: ../src/node_usb.cc:151:58: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated [-Wdeprecated-declarations] 151 | Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv); | ^ In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/node_usb.cc:1: ../../nan/nan.h:1001:46: note: declared here 1001 | NAN_DEPRECATED inline v8::Localv8::Value MakeCallback( | ^~~~~~~~~~~~ ../src/node_usb.cc:151:58: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char, int, v8::Localv8::Value*)’ is deprecated [-Wdeprecated-declarations] 151 | Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv); | ^ In file included from ../src/helpers.h:3, from ../src/node_usb.h:21, from ../src/node_usb.cc:1: ../../nan/nan.h:1001:46: note: declared here 1001 | NAN_DEPRECATED inline v8::Localv8::Value MakeCallback( | ^~~~~~~~~~~~ make: *** [usb_bindings.target.mk:124: Release/obj.target/usb_bindings/src/node_usb.o] Error 1 make: Leaving directory '/etc/linux-corsair-lighting-node-core-control/node_modules/usb/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23) gyp ERR! stack at ChildProcess.emit (node:events:513:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12) gyp ERR! System Linux 5.4.0-135-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /etc/linux-corsair-lighting-node-core-control/node_modules/usb gyp ERR! node -v v16.19.0 gyp ERR! node-gyp -v v9.1.0 gyp ERR! not ok info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. Created symlink /etc/systemd/system/multi-user.target.wants/computer-lights.service → /etc/systemd/system/computer-lights.service. Finished. If you would like to change the colors, animation, period, brightness, ledsPerFan, numberFans, or any other configuration option, please edit the /usr/bin/computer-lights file

rabinnh avatar Jan 06 '23 01:01 rabinnh