Skip to content

type mismatch Error on install #35

Description

@sourcevault
npm install ConnectionSystems/node-udev

output on Raspberry Pi :

npm WARN deprecated node-pre-gyp@0.14.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future

> udev@0.7.0 install /home/pi/auto-usb/node_modules/udev
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for udev@0.7.0 and node@14.17.2 (node-v83 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error Invalid URI "https:///node-v83-linux-arm.tar.gz"
make: Entering directory '/home/pi/auto-usb/node_modules/udev/build'
  CXX(target) Release/obj.target/udev/udev.o
In file included from ../../nan/nan.h:56,
                 from ../udev.cc:2:
/home/pi/.cache/node-gyp/14.17.2/include/node/node.h:758:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
       (node::addon_register_func) (regfunc),                          \
                                           ^
/home/pi/.cache/node-gyp/14.17.2/include/node/node.h:792:3: note: in expansion of macro ‘NODE_MODULE_X’
   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
   ^~~~~~~~~~~~~
../udev.cc:295:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(udev, Init)
 ^~~~~~~~~~~
In file included from ../udev.cc:1:
/home/pi/.cache/node-gyp/14.17.2/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/pi/.cache/node-gyp/14.17.2/include/node/node_object_wrap.h:85:78:   required from here
/home/pi/.cache/node-gyp/14.17.2/include/node/v8.h:10874:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                reinterpret_cast<Callback>(callback), type);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/.cache/node-gyp/14.17.2/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61:   required from here
/home/pi/.cache/node-gyp/14.17.2/include/node/v8.h:10874:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
  SOLINK_MODULE(target) Release/obj.target/udev.node
  COPY Release/udev.node
  COPY /home/pi/auto-usb/node_modules/udev/build/node-v83-linux-arm/udev.node
  TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/home/pi/auto-usb/node_modules/udev/build'
+ udev@0.7.0
added 29 packages from 16 contributors and audited 177 packages in 27.159s

6 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

for now udev is working, but what to do about the type mismatch ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions