abandonware / node-bluetooth-hci-socket

MIT License
42 stars 47 forks source link

Imposible install #36

Open freddygl opened 2 years ago

freddygl commented 2 years ago

root@homebridge:/home/pi# root@homebridge:/home/pi# npm i @abandonware/bluetooth-hci-socket npm ERR! code 1 npm ERR! path /home/pi/node_modules/@abandonware/bluetooth-hci-socket npm ERR! command failed npm ERR! command sh -c node-pre-gyp install --fallback-to-build npm ERR! make: Entering directory '/home/pi/node_modules/@abandonware/bluetooth-hci-socket/build' npm ERR! CXX(target) Release/obj.target/bluetooth_hci_socket/src/BluetoothHciSocket.o npm ERR! make: Leaving directory '/home/pi/node_modules/@abandonware/bluetooth-hci-socket/build' npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/bluetooth_hci_socket.node --module_name=bluetooth_hci_socket --module_path=/home/pi/node_modules/@abandonware/bluetooth-hci-socket/lib/binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1) npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using node-pre-gyp@1.0.8 npm ERR! node-pre-gyp info using node@16.13.1 | linux | arm npm ERR! node-pre-gyp info check checked for "/home/pi/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/bluetooth_hci_socket.node" (not found) npm ERR! node-pre-gyp http GET https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-8/bluetooth_hci_socket-0.5.3-8-node-v93-linux-arm.tar.gz npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-8/bluetooth_hci_socket-0.5.3-8-node-v93-linux-arm.tar.gz npm ERR! node-pre-gyp WARN Pre-built binaries not installable for @abandonware/bluetooth-hci-socket@0.5.3-8 and node@16.13.1 (node-v93 ABI, glibc) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-8/bluetooth_hci_socket-0.5.3-8-node-v93-linux-arm.tar.gz npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.3.0 npm ERR! gyp info using node@16.13.1 | linux | arm npm ERR! gyp info ok npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.3.0 npm ERR! gyp info using node@16.13.1 | linux | arm npm ERR! gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3" npm ERR! gyp WARN EACCES current user ("pi") does not have permission to access the dev dir "/root/.cache/node-gyp/16.13.1" npm ERR! gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/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 '/home/pi/node_modules/@abandonware/bluetooth-hci-socket/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/tmp/.node-gyp/16.13.1/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=/tmp/.node-gyp/16.13.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/tmp/.node-gyp/16.13.1/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/pi/node_modules/@abandonware/bluetooth-hci-socket', 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 ok npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.3.0 npm ERR! gyp info using node@16.13.1 | linux | arm npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! In file included from /usr/include/stdio.h:39, npm ERR! from /tmp/.node-gyp/16.13.1/include/node/v8.h:20, npm ERR! from /tmp/.node-gyp/16.13.1/include/node/node.h:63, npm ERR! from /tmp/.node-gyp/16.13.1/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /usr/include/arm-linux-gnueabihf/bits/types/fpos_t.h:1:2: error: invalid preprocessing directive #avndef; did you mean #ifndef? npm ERR! #avndef ___fpos_t_defaned npm ERR! ^~ npm ERR! ifndef npm ERR! /usr/include/arm-linux-gnueabihf/bits/types/fpos_t.h:2:2: error: invalid preprocessing directive #defing; did you mean #define? npm ERR! #defing ]fpos_t_defined 1 npm ERR! ^~ npm ERR! define npm ERR! /usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h:5:2: error: invalid preprocessing directive #inglude; did you mean #include? npm ERR! #inglude 8bits/types/mbstate_t.h>J npm ERR! ^~~ npm ERR! include npm ERR! /usr/include/arm-linux-gnueabihf/bits/types/fpos_t.h:10:1: error: stray ‘\177’ in program npm ERR!
npm ERR! ^ npm ERR! /usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h:13:12: error: stray ‘\212’ in program npm ERR! }
fpos_t;� npm ERR! ^ npm ERR! /usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h:14:2: error: #endif without #if npm ERR! #endif npm ERR! ^~~~~ npm ERR! In file included from /usr/include/stdlib.h:566, npm ERR! from /usr/include/c++/8/cstdlib:75, npm ERR! from /usr/include/c++/8/ext/string_conversions.h:41, npm ERR! from /usr/include/c++/8/bits/basic_string.h:6400, npm ERR! from /usr/include/c++/8/string:52, npm ERR! from /usr/include/c++/8/stdexcept:39, npm ERR! from /usr/include/c++/8/array:39, npm ERR! from /usr/include/c++/8/tuple:39, npm ERR! from /usr/include/c++/8/bits/unique_ptr.h:37, npm ERR! from /usr/include/c++/8/memory:80, npm ERR! from /tmp/.node-gyp/16.13.1/include/node/v8.h:23, npm ERR! from /tmp/.node-gyp/16.13.1/include/node/node.h:63, npm ERR! from /tmp/.node-gyp/16.13.1/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /usr/include/alloca.h:15:2: error: stray ‘#’ in program npm ERR! J#ifnddf _ALLOCA_H npm ERR! ^ npm ERR! /usr/include/alloca.h:18:2: error: invalid preprocessing directive #includ; did you mean #include? npm ERR! #includ% npm ERR! ^~ npm ERR! include npm ERR! /usr/include/alloca.h:20:1: error: missing terminating " character npm ERR! "dedile __need_size_t npm ERR! ^~~~~ npm ERR! /usr/include/alloca.h:21:10: fatal error: stdd%f.h: No such file or directory npm ERR! #include <stdd%f.h> npm ERR! ^~~~~~ npm ERR! compilation terminated. npm ERR! make: *** [bluetooth_hci_socket.target.mk:111: Release/obj.target/bluetooth_hci_socket/src/BluetoothHciSocket.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: make failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) npm ERR! gyp ERR! System Linux 5.10.63-v7+ npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/pi/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/bluetooth_hci_socket.node" "--module_name=bluetooth_hci_socket" "--module_path=/home/pi/node_modules/@abandonware/bluetooth-hci-socket/lib/binding" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93" npm ERR! gyp ERR! cwd /home/pi/node_modules/@abandonware/bluetooth-hci-socket npm ERR! gyp ERR! node -v v16.13.1 npm ERR! gyp ERR! node-gyp -v v8.3.0 npm ERR! gyp ERR! not ok npm ERR! node-pre-gyp ERR! build error npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/bluetooth_hci_socket.node --module_name=bluetooth_hci_socket --module_path=/home/pi/node_modules/@abandonware/bluetooth-hci-socket/lib/binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1) npm ERR! node-pre-gyp ERR! stack at ChildProcess. (/home/pi/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23) npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:390:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1064:16) npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) npm ERR! node-pre-gyp ERR! System Linux 5.10.63-v7+ npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/home/pi/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" npm ERR! node-pre-gyp ERR! cwd /home/pi/node_modules/@abandonware/bluetooth-hci-socket npm ERR! node-pre-gyp ERR! node -v v16.13.1 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.8 npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-12-22T12_21_21_309Z-debug.log

rzr commented 2 years ago

Please provide more details and idealy a dockerfile to replicate

freddygl commented 2 years ago

After years of using @ abandonware / bluetooth-hci-socket with the Hygrothermograph plugin on Homebrigde it has stopped working. When checking the log I see this message ...

[22/12/2021, 13:17:12] Loaded plugin: homebridge-mi-hygrothermograph@3.1.0 [22/12/2021, 13:17:12] ==================== [22/12/2021, 13:17:12] ERROR INITIALIZING PLUGIN homebridge-mi-hygrothermograph: [22/12/2021, 13:17:13] Error: Cannot find module '@abandonware/bluetooth-hci-socket' Require stack:

And when I try to reinstall it returns the error that you can see above. Could it be a problem caused by the node version?

Sistema Operativo Raspbian GNU/Linux Buster (10) Hostname homebridge Versión de Node.js v16.13.1 Versión de npm v8.1.2

rzr commented 2 years ago

may you try to downgrade version to compare

freddygl commented 2 years ago

Which version do you recommend?

Un saludo.

Alfredo García Lago

El 23 dic 2021, a las 10:13, Philippe Coval @.***> escribió:

may you try to downgrade version to compare

freddygl commented 2 years ago

Downgraded to v14.18.2. Now i have another errors but the same result.

I will try to reinstall homebridge complete.

fearlesschicken commented 2 years ago

Running into the same issue as freddygl On Debian 11 and Node 16

1 info using npm@8.1.2
2 info using node@v16.13.1
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 3ms
5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 4ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:/usr/lib/.npmrc Completed in 1ms
10 timing config:load:project Completed in 2ms
11 timing config:load:file:/root/.npmrc Completed in 2ms
12 timing config:load:user Completed in 2ms
13 timing config:load:file:/usr/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 2ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 18ms
19 timing npm:load:configload Completed in 18ms
20 timing npm:load:setTitle Completed in 1ms
21 timing npm:load:setupLog Completed in 0ms
22 timing config:load:flatten Completed in 6ms
23 timing npm:load:cleanupLog Completed in 4ms
24 timing npm:load:configScope Completed in 0ms
25 timing npm:load:projectScope Completed in 0ms
26 timing npm:load Completed in 35ms
27 timing arborist:ctor Completed in 1ms
28 timing build:queue Completed in 199ms
29 timing build:link:node_modules/node-gyp Completed in 13ms
30 timing build:link:node_modules/corepack Completed in 15ms
31 timing build:link:node_modules/npm Completed in 12ms
32 timing build:link:node_modules/node-pre-gyp Completed in 13ms
33 timing build:link:node_modules/n Completed in 13ms
34 timing build:link:node_modules/homebridge-mi-hygrothermograph/node_modules/@mapbox/node-pre-gyp Completed in 13ms
35 timing build:link:node_modules/homebridge-mi-hygrothermograph/node_modules/color-support Completed in 12ms
36 timing build:link:node_modules/homebridge-mi-hygrothermograph/node_modules/detect-libc Completed in 12ms
37 timing build:link:node_modules/homebridge-mi-hygrothermograph/node_modules/google-p12-pem Completed in 12ms
38 timing build:link:node_modules/homebridge-mi-hygrothermograph/node_modules/mkdirp Completed in 12ms
39 timing build:link:node_modules/homebridge-mi-hygrothermograph/node_modules/mqtt Completed in 11ms
40 timing build:link:node_modules/homebridge-mi-hygrothermograph/node_modules/node-gyp-build Completed in 11ms
41 timing build:link:node_modules/homebridge-mi-hygrothermograph/node_modules/nopt Completed in 11ms
42 timing build:link:node_modules/homebridge-mi-hygrothermograph/node_modules/rimraf Completed in 11ms
43 timing build:link:node_modules/homebridge-mi-hygrothermograph/node_modules/semver Completed in 10ms
44 timing build:link:node_modules/homebridge-mi-hygrothermograph/node_modules/uuid Completed in 10ms
45 timing build:link:node_modules/node-gyp/node_modules/color-support Completed in 10ms
46 timing build:link:node_modules/node-gyp/node_modules/mkdirp Completed in 10ms
47 timing build:link:node_modules/node-gyp/node_modules/nopt Completed in 10ms
48 timing build:link:node_modules/node-gyp/node_modules/rimraf Completed in 10ms
49 timing build:link:node_modules/node-gyp/node_modules/semver Completed in 10ms
50 timing build:link:node_modules/node-gyp/node_modules/which Completed in 9ms
51 timing build:link:node_modules/node-pre-gyp/node_modules/mkdirp Completed in 9ms
52 timing build:link:node_modules/node-pre-gyp/node_modules/rc Completed in 10ms
53 timing build:link:node_modules/node-pre-gyp/node_modules/rimraf Completed in 10ms
54 timing build:link:node_modules/node-pre-gyp/node_modules/semver Completed in 10ms
55 timing build:link:node_modules/node-pre-gyp/node_modules/detect-libc Completed in 10ms
56 timing build:link:node_modules/node-pre-gyp/node_modules/needle Completed in 10ms
57 timing build:link:node_modules/node-pre-gyp/node_modules/nopt Completed in 10ms
58 timing build:link:node_modules/npm/node_modules/@npmcli/installed-package-contents Completed in 9ms
59 timing build:link:node_modules/npm/node_modules/node-gyp Completed in 9ms
60 timing build:link:node_modules/npm/node_modules/@npmcli/arborist Completed in 10ms
61 timing build:link:node_modules/npm/node_modules/color-support Completed in 9ms
62 timing build:link:node_modules/npm/node_modules/mkdirp Completed in 9ms
63 timing build:link:node_modules/npm/node_modules/nopt Completed in 9ms
64 timing build:link:node_modules/npm/node_modules/pacote Completed in 9ms
65 timing build:link:node_modules/npm/node_modules/rimraf Completed in 9ms
66 timing build:link:node_modules/npm/node_modules/opener Completed in 9ms
67 timing build:link:node_modules/npm/node_modules/semver Completed in 9ms
68 timing build:link:node_modules/npm/node_modules/qrcode-terminal Completed in 9ms
69 timing build:link:node_modules/npm/node_modules/npm-packlist Completed in 9ms
70 timing build:link:node_modules/puppeteer-core/node_modules/extract-zip Completed in 8ms
71 timing build:link:node_modules/puppeteer-core/node_modules/mime Completed in 8ms
72 timing build:link:node_modules/puppeteer-core/node_modules/rimraf Completed in 8ms
73 timing build:link:node_modules/puppeteer-core/node_modules/mkdirp Completed in 8ms
74 timing build:link:node_modules/npm/node_modules/which Completed in 8ms
75 timing build:link:node_modules/usb/node_modules/detect-libc Completed in 8ms
76 timing build:link:node_modules/usb/node_modules/mkdirp Completed in 8ms
77 timing build:link:node_modules/usb/node_modules/needle Completed in 7ms
78 timing build:link:node_modules/usb/node_modules/node-pre-gyp Completed in 7ms
79 timing build:link:node_modules/usb/node_modules/nopt Completed in 8ms
80 timing build:link:node_modules/usb/node_modules/rc Completed in 8ms
81 timing build:link:node_modules/usb/node_modules/rimraf Completed in 8ms
82 timing build:link:node_modules/homebridge-mi-hygrothermograph/node_modules/make-dir/node_modules/semver Completed in 8ms
83 timing build:link:node_modules/usb/node_modules/semver Completed in 8ms
84 timing build:link Completed in 19ms
85 info run puppeteer-core@1.20.0 install node_modules/puppeteer-core node install.js
86 info run usb@1.5.0 install node_modules/usb node-pre-gyp install --fallback-to-build
87 info run @abandonware/bluetooth-hci-socket@0.5.3-8 install node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/bluetooth-hci-socket node-pre-gyp install --fallback-to-build
88 info run @abandonware/noble@1.9.2-13 install node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble node-gyp rebuild
89 info run puppeteer-core@1.20.0 install { code: 0, signal: null }
90 timing build:run:install:node_modules/puppeteer-core Completed in 110ms
91 info run usb@1.9.2 install node_modules/homebridge-mi-hygrothermograph/node_modules/usb node-gyp-build
92 info run usb@1.9.2 install { code: 0, signal: null }
93 timing build:run:install:node_modules/homebridge-mi-hygrothermograph/node_modules/usb Completed in 303ms
94 info run bluetooth-hci-socket@0.5.1 install node_modules/noble/node_modules/bluetooth-hci-socket node-gyp rebuild
95 info run usb@1.5.0 install { code: 0, signal: null }
96 timing build:run:install:node_modules/usb Completed in 414ms
97 info run @abandonware/bluetooth-hci-socket@0.5.3-8 install { code: 0, signal: null }
98 timing build:run:install:node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/bluetooth-hci-socket Completed in 478ms
99 info run @abandonware/noble@1.9.2-13 install { code: 0, signal: null }
100 timing build:run:install:node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble Completed in 896ms
101 info run bluetooth-hci-socket@0.5.1 install { code: 1, signal: null }
102 timing command:rebuild Completed in 4262ms
103 verbose stack Error: command failed
103 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
103 verbose stack     at ChildProcess.emit (node:events:390:28)
103 verbose stack     at maybeClose (node:internal/child_process:1064:16)
103 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
104 verbose pkgid bluetooth-hci-socket@0.5.1
105 verbose cwd /usr/lib/node_modules
106 verbose Linux 5.10.0-10-amd64
107 verbose argv "/usr/bin/node" "/usr/bin/npm" "rebuild" "--unsafe-perm"
108 verbose node v16.13.1
109 verbose npm  v8.1.2
110 error code 1
111 error path /usr/lib/node_modules/noble/node_modules/bluetooth-hci-socket
112 error command failed
113 error command sh -c node-gyp rebuild
114 error make: Entering directory '/usr/lib/node_modules/noble/node_modules/bluetooth-hci-socket/build'
114 error   CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
114 error make: Leaving directory '/usr/lib/node_modules/noble/node_modules/bluetooth-hci-socket/build'
115 error gyp info it worked if it ends with ok
115 error gyp info using node-gyp@8.4.1
115 error gyp info using node@16.13.1 | linux | x64
115 error gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
115 error gyp info spawn /usr/bin/python3
115 error gyp info spawn args [
115 error gyp info spawn args   '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py',
115 error gyp info spawn args   'binding.gyp',
115 error gyp info spawn args   '-f',
115 error gyp info spawn args   'make',
115 error gyp info spawn args   '-I',
115 error gyp info spawn args   '/usr/lib/node_modules/noble/node_modules/bluetooth-hci-socket/build/config.gypi',
115 error gyp info spawn args   '-I',
115 error gyp info spawn args   '/usr/lib/node_modules/node-gyp/addon.gypi',
115 error gyp info spawn args   '-I',
115 error gyp info spawn args   '/root/.cache/node-gyp/16.13.1/include/node/common.gypi',
115 error gyp info spawn args   '-Dlibrary=shared_library',
115 error gyp info spawn args   '-Dvisibility=default',
115 error gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/16.13.1',
115 error gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp',
115 error gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/16.13.1/<(target_arch)/node.lib',
115 error gyp info spawn args   '-Dmodule_root_dir=/usr/lib/node_modules/noble/node_modules/bluetooth-hci-socket',
115 error gyp info spawn args   '-Dnode_engine=v8',
115 error gyp info spawn args   '--depth=.',
115 error gyp info spawn args   '--no-parallel',
115 error gyp info spawn args   '--generator-output',
115 error gyp info spawn args   'build',
115 error gyp info spawn args   '-Goutput_dir=.'
115 error gyp info spawn args ]
115 error gyp info spawn make
115 error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
115 error In file included from ../../nan/nan_converters.h:67,
115 error                  from ../../nan/nan.h:221,
115 error                  from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
115 error ../../nan/nan_converters_43_inl.h:18:49: error: cannot convert ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
115 error    18 |       val->To ## TYPE(isolate->GetCurrentContext())                            \
115 error       |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
115 error       |                                                 |
115 error       |                                                 v8::Local<v8::Context>
115 error ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
115 error    22 | X(Boolean)
115 error       | ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3086:37: note:   initializing argument 1 of ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’
115 error  3086 |   Local<Boolean> ToBoolean(Isolate* isolate) const;
115 error       |                            ~~~~~~~~~^~~~~~~
115 error In file included from ../../nan/nan_converters.h:67,
115 error                  from ../../nan/nan.h:221,
115 error                  from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
115 error ../../nan/nan_converters_43_inl.h:37:55: error: cannot convert ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
115 error    37 |   return val->NAME ## Value(isolate->GetCurrentContext());                     \
115 error       |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
115 error       |                                                       |
115 error       |                                                       v8::Local<v8::Context>
115 error ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
115 error    40 | X(bool, Boolean)
115 error       | ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3096:30: note:   initializing argument 1 of ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
115 error  3096 |   bool BooleanValue(Isolate* isolate) const;
115 error       |                     ~~~~~~~~~^~~~~~~
115 error In file included from ../../nan/nan_new.h:189,
115 error                  from ../../nan/nan.h:222,
115 error                  from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
115 error ../../nan/nan_implementation_12_inl.h:103:42: error: cannot convert ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
115 error   103 |   return scope.Escape(v8::Function::New( isolate
115 error       |                                          ^~~~~~~
115 error       |                                          |
115 error       |                                          v8::Isolate*
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4754:22: note:   initializing argument 1 of ‘static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)’
115 error  4754 |       Local<Context> context, FunctionCallback callback,
115 error       |       ~~~~~~~~~~~~~~~^~~~~~~
115 error In file included from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
115 error ../../nan/nan.h:1064:76: error: cannot convert ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
115 error  1064 |       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
115 error       |                                                     ~~~~~~~~~~~~~~~~~~~~~~~^~
115 error       |                                                                            |
115 error       |                                                                            v8::Isolate*
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3049:22: note:   initializing argument 1 of ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
115 error  3049 |       Local<Context> context) const;
115 error       |       ~~~~~~~~~~~~~~~^~~~~~~
115 error In file included from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
115 error ../../nan/nan.h:1855:64: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, const v8::Local<v8::Value>&)’
115 error  1855 |     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
115 error       |                                                                ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
115 error  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
115 error       |                                     ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
115 error  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
115 error       |                                     ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
115 error In file included from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
115 error ../../nan/nan.h:1861:42: error: no matching function for call to ‘v8::Object::Set(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’
115 error  1861 |     New(persistentHandle)->Set(key, value);
115 error       |                                          ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
115 error  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
115 error       |                                     ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
115 error  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
115 error       |                                     ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
115 error In file included from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
115 error ../../nan/nan.h:1867:44: error: no matching function for call to ‘v8::Object::Set(uint32_t&, const v8::Local<v8::Value>&)’
115 error  1867 |     New(persistentHandle)->Set(index, value);
115 error       |                                            ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
115 error  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
115 error       |                                     ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
115 error  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
115 error       |                                     ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
115 error In file included from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
115 error ../../nan/nan.h:1873:61: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
115 error  1873 |         New(persistentHandle)->Get(New(key).ToLocalChecked()));
115 error       |                                                             ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
115 error  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
115 error       |                                           ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
115 error  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
115 error       |                                           ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
115 error In file included from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
115 error ../../nan/nan.h:1879:55: error: no matching function for call to ‘v8::Object::Get(const v8::Local<v8::String>&)’
115 error  1879 |     return scope.Escape(New(persistentHandle)->Get(key));
115 error       |                                                       ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
115 error  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
115 error       |                                           ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
115 error  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
115 error       |                                           ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
115 error In file included from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
115 error ../../nan/nan.h:1884:57: error: no matching function for call to ‘v8::Object::Get(uint32_t&)’
115 error  1884 |     return scope.Escape(New(persistentHandle)->Get(index));
115 error       |                                                         ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
115 error  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
115 error       |                                           ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
115 error  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
115 error       |                                           ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
115 error In file included from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
115 error ../../nan/nan.h:2208:7: 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]
115 error  2208 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
115 error       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
115 error In file included from /usr/include/c++/10/cassert:44,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_object_wrap.h:26,
115 error                  from ../../nan/nan.h:54,
115 error                  from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
115 error ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
115 error    24 |     assert(persistent().IsNearDeath());
115 error       |                         ^~~~~~~~~~~
115 error In file included from ../../nan/nan.h:2698,
115 error                  from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
115 error ../../nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’
115 error    67 |     persistent().MarkIndependent();
115 error       |                  ^~~~~~~~~~~~~~~
115 error In file included from /usr/include/c++/10/cassert:44,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_object_wrap.h:26,
115 error                  from ../../nan/nan.h:54,
115 error                  from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
115 error ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
115 error   124 |     assert(wrap->handle_.IsNearDeath());
115 error       |                          ^~~~~~~~~~~
115 error ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
115 error ../src/BluetoothHciSocket.cpp:128:82: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
115 error   128 |   target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction());
115 error       |                                                                                  ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:6802:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
115 error  6802 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
115 error       |                                              ^~~~~~~~~~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:6802:46: note:   candidate expects 1 argument, 0 provided
115 error ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’:
115 error ../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
115 error   251 |     Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
115 error       |                                                                                               ^
115 error In file included from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan.h:979:46: note: declared here
115 error   979 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
115 error       |                                              ^~~~~~~~~~~~
115 error ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’:
115 error ../src/BluetoothHciSocket.cpp:269:109: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
115 error   269 |   Local<Function> errorConstructor = Local<Function>::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked()));
115 error       |                                                                                                             ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
115 error  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
115 error       |                                           ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
115 error  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
115 error       |                                           ^~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
115 error ../src/BluetoothHciSocket.cpp:275:72: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local<v8::Value> [1])’
115 error   275 |   Local<Value> error = errorConstructor->NewInstance(1, constructorArgs);
115 error       |                                                                        ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4759:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’
115 error  4759 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
115 error       |                                            ^~~~~~~~~~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4759:44: note:   candidate expects 3 arguments, 2 provided
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4762:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’
115 error  4762 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
115 error       |                                            ^~~~~~~~~~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:4762:44: note:   candidate expects 1 argument, 2 provided
115 error ../src/BluetoothHciSocket.cpp:282:93: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
115 error   282 |   Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
115 error       |                                                                                             ^
115 error In file included from ../src/BluetoothHciSocket.cpp:8:
115 error ../../nan/nan.h:979:46: note: declared here
115 error   979 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
115 error       |                                              ^~~~~~~~~~~~
115 error ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’:
115 error ../src/BluetoothHciSocket.cpp:395:34: error: no matching function for call to ‘v8::Value::IntegerValue()’
115 error   395 |       devId = arg0->IntegerValue();
115 error       |                                  ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3101:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
115 error  3101 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
115 error       |                                        ^~~~~~~~~~~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3101:40: note:   candidate expects 1 argument, 0 provided
115 error ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’:
115 error ../src/BluetoothHciSocket.cpp:417:34: error: no matching function for call to ‘v8::Value::IntegerValue()’
115 error   417 |       devId = arg0->IntegerValue();
115 error       |                                  ^
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
115 error                  from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3101:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
115 error  3101 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
115 error       |                                        ^~~~~~~~~~~~
115 error /root/.cache/node-gyp/16.13.1/include/node/v8.h:3101:40: note:   candidate expects 1 argument, 0 provided
115 error In file included from /root/.cache/node-gyp/16.13.1/include/node/node_buffer.h:25,
115 error                  from ../src/BluetoothHciSocket.cpp:7:
115 error ../src/BluetoothHciSocket.cpp: At global scope:
115 error /root/.cache/node-gyp/16.13.1/include/node/node.h:821:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
115 error   821 |       (node::addon_register_func) (regfunc),                          \
115 error       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
115 error /root/.cache/node-gyp/16.13.1/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’
115 error   855 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
115 error       |   ^~~~~~~~~~~~~
115 error ../src/BluetoothHciSocket.cpp:499:1: note: in expansion of macro ‘NODE_MODULE’
115 error   499 | NODE_MODULE(binding, BluetoothHciSocket::Init);
115 error       | ^~~~~~~~~~~
115 error make: *** [binding.target.mk:113: Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1
115 error gyp ERR! build error
115 error gyp ERR! stack Error: `make` failed with exit code: 2
115 error gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194:23)
115 error gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
115 error gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
115 error gyp ERR! System Linux 5.10.0-10-amd64
115 error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/.bin/node-gyp" "rebuild"
115 error gyp ERR! cwd /usr/lib/node_modules/noble/node_modules/bluetooth-hci-socket
115 error gyp ERR! node -v v16.13.1
115 error gyp ERR! node-gyp -v v8.4.1
115 error gyp ERR! not ok
116 verbose exit 1
asdasddffgthhjtreresf commented 2 years ago

I have issues too. Tried with older node-gyp and python2.7, but neither worked. Now with python3.9 and newest gyp still not working.

npm install bluetooth-hci-socket npm ERR! code 1 npm ERR! path /home/pi/.node-red/node_modules/bluetooth-hci-socket npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/home/pi/.node-red/node_modules/bluetooth-hci-socket/build' npm ERR! CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o npm ERR! make: Leaving directory '/home/pi/.node-red/node_modules/bluetooth-hci-socket/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@12.22.5 | linux | arm npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3.9" npm ERR! gyp info spawn /usr/bin/python3.9 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/home/pi/.node-red/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 '/home/pi/.node-red/node_modules/bluetooth-hci-socket/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/pi/.node-red/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/pi/.cache/node-gyp/12.22.5/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=/home/pi/.cache/node-gyp/12.22.5', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/pi/.node-red/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/pi/.cache/node-gyp/12.22.5/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/pi/.node-red/node_modules/bluetooth-hci-socket', 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 ../../nan/nan.h:190, npm ERR! from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Local, v8::Local, v8::Local, v8::PropertyAttribute)’: npm ERR! ../../nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’ npm ERR! 88 | return obj->ForceSet(GetCurrentContext(), key, value, attribs); npm ERR! | ^~~~ npm ERR! In file included from ../../nan/nan_converters.h:59, npm ERR! from ../../nan/nan.h:195, npm ERR! from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Local)’: npm ERR! ../../nan/nan_converters_43_inl.h:15:45: warning: ‘v8::MaybeLocal v8::Value::ToBoolean(v8::Local) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations] npm ERR! 15 | return val->To ## TYPE(GetCurrentContext()); \ npm ERR! | ^ npm ERR! ../../nan/nan_converters_43_inl.h:18:1: note: in expansion of macro ‘X’ npm ERR! 18 | X(Boolean) npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:2664:59: note: declared here npm ERR! 2664 | V8_WARN_UNUSED_RESULT MaybeLocal ToBoolean( npm ERR! | ^~~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../../nan/nan_converters.h:59, npm ERR! from ../../nan/nan.h:195, npm ERR! from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Local)’: npm ERR! ../../nan/nan_converters_43_inl.h:31:48: warning: ‘v8::Maybe v8::Value::BooleanValue(v8::Local) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations] npm ERR! 31 | return val->NAME ## Value(GetCurrentContext()); \ npm ERR! | ^ npm ERR! ../../nan/nan_converters_43_inl.h:34:1: note: in expansion of macro ‘X’ npm ERR! 34 | X(bool, Boolean) npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:2702:51: note: declared here npm ERR! 2702 | V8_WARN_UNUSED_RESULT Maybe BooleanValue( npm ERR! | ^~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../../nan/nan_new.h:189, npm ERR! from ../../nan/nan.h:196, npm ERR! from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(Nan::FunctionCallback, v8::Local)’: npm ERR! ../../nan/nan_implementation_12_inl.h:107:42: error: cannot convert ‘v8::Isolate’ to ‘v8::Local’ npm ERR! 107 | return scope.Escape(v8::Function::New( isolate npm ERR! | ^~~ npm ERR! | | npm ERR! | v8::Isolate npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:4276:22: note: initializing argument 1 of ‘static v8::MaybeLocal v8::Function::New(v8::Local, v8::FunctionCallback, v8::Local, int, v8::ConstructorBehavior, v8::SideEffectType)’ npm ERR! 4276 | Local context, FunctionCallback callback, npm ERR! | ~~~^~~ npm ERR! In file included from ../../nan/nan_new.h:189, npm ERR! from ../../nan/nan.h:196, npm ERR! from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(v8::Local)’: npm ERR! ../../nan/nan_implementation_12_inl.h:345:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local&)’ npm ERR! 345 | return v8::StringObject::New(value).As(); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:5531:23: note: candidate: ‘static v8::Local v8::StringObject::New(v8::Isolate, v8::Local)’ npm ERR! 5531 | static Local New(Isolate isolate, Local value); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:5531:23: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../../nan/nan_new.h:189, npm ERR! from ../../nan/nan.h:196, npm ERR! from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan_implementation_12_inl.h:345:58: error: expected primary-expression before ‘>’ token npm ERR! 345 | return v8::StringObject::New(value).As(); npm ERR! | ^ npm ERR! ../../nan/nan_implementation_12_inl.h:345:60: error: expected primary-expression before ‘)’ token npm ERR! 345 | return v8::StringObject::New(value).As(); npm ERR! | ^ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)’: npm ERR! ../../nan/nan.h:817:60: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 817 | v8::Isolate::GetCurrent(), target, func, argc, argv); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:183:50: note: declared here npm ERR! 183 | NODE_EXTERN v8::Local MakeCallback( npm ERR! | ^~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:102:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 102 | attribute((deprecated(message))) declarator npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)’: npm ERR! ../../nan/nan.h:831:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 831 | v8::Isolate::GetCurrent(), target, symbol, argc, argv); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:176:50: note: declared here npm ERR! 176 | NODE_EXTERN v8::Local MakeCallback( npm ERR! | ^~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:102:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 102 | attribute((deprecated(message))) declarator npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, const char, int, v8::Local)’: npm ERR! ../../nan/nan.h:845:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, const char, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 845 | v8::Isolate::GetCurrent(), target, method, argc, argv); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:169:50: note: declared here npm ERR! 169 | NODE_EXTERN v8::Local MakeCallback( npm ERR! | ^~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:102:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 102 | attribute((deprecated(message))) declarator npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local)’: npm ERR! ../../nan/nan.h:890:53: error: no matching function for call to ‘v8::Value::ToString()’ npm ERR! 890 | v8::Local string = from->ToString(); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:2668:44: note: candidate: ‘v8::MaybeLocal v8::Value::ToString(v8::Local) const’ npm ERR! 2668 | V8_WARN_UNUSED_RESULT MaybeLocal ToString( npm ERR! | ^~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:2684:31: note: candidate: ‘v8::Local v8::Value::ToString(v8::Isolate) const’ npm ERR! 2684 | Local ToString(Isolate isolate) const); npm ERR! | ^~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided npm ERR! 2684 | Local ToString(Isolate isolate) const); npm ERR! | ^~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h:900:37: error: cannot convert ‘char’ to ‘v8::Isolate’ npm ERR! 900 | length = string->WriteUtf8(str_, static_cast(len), 0, flags); npm ERR! | ^~~~ npm ERR! | | npm ERR! | char npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:2878:26: note: initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate, char, int, int, int) const’ npm ERR! 2878 | int WriteUtf8(Isolate isolate, char buffer, int length = -1, npm ERR! | ~~~^~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In member function ‘bool Nan::Callback::operator==(const Nan::Callback&) const’: npm ERR! ../../nan/nan.h:1371:61: warning: ‘v8::Local v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations] npm ERR! 1371 | v8::Local a = New(handle)->Get(kCallbackIndex); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:3557:51: note: declared here npm ERR! 3557 | V8_DEPRECATED("Use maybe version", Local Get(uint32_t index)); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h:1372:67: warning: ‘v8::Local v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations] npm ERR! 1372 | v8::Local b = New(other.handle)->Get(kCallbackIndex); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:3557:51: note: declared here npm ERR! 3557 | V8_DEPRECATED("Use maybe version", Local Get(uint32_t index)); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In member function ‘v8::Local Nan::Callback::GetFunction() const’: npm ERR! ../../nan/nan.h:1403:56: warning: ‘v8::Local v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations] npm ERR! 1403 | return scope.Escape(New(handle)->Get(kCallbackIndex) npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:3557:51: note: declared here npm ERR! 3557 | V8_DEPRECATED("Use maybe version", Local Get(uint32_t index)); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In member function ‘bool Nan::Callback::IsEmpty() const’: npm ERR! ../../nan/nan.h:1409:43: warning: ‘v8::Local v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations] npm ERR! 1409 | return New(handle)->Get(kCallbackIndex)->IsUndefined(); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:3557:51: note: declared here npm ERR! 3557 | V8_DEPRECATED("Use maybe version", Local Get(uint32_t index)); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In member function ‘v8::Local Nan::Callback::Call(v8::Isolate, v8::Local, int, v8::Local) const’: npm ERR! ../../nan/nan.h:1447:27: warning: ‘v8::Local v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations] npm ERR! 1447 | Get(kCallbackIndex).As(); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:3557:51: note: declared here npm ERR! 3557 | V8_DEPRECATED("Use maybe version", Local Get(uint32_t index)); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h:1463:5: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 1463 | )); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:183:50: note: declared here npm ERR! 183 | NODE_EXTERN v8::Local MakeCallback( npm ERR! | ^~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:102:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 102 | attribute((deprecated(message))) declarator npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char, const v8::Local&)’: npm ERR! ../../nan/nan.h:1518:64: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] npm ERR! 1518 | New(persistentHandle)->Set(New(key).ToLocalChecked(), value); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:3499:22: note: declared here npm ERR! 3499 | bool Set(Local key, Local value)); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local&, const v8::Local&)’: npm ERR! ../../nan/nan.h:1524:42: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] npm ERR! 1524 | New(persistentHandle)->Set(key, value); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:3499:22: note: declared here npm ERR! 3499 | bool Set(Local key, Local value)); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local&)’: npm ERR! ../../nan/nan.h:1530:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] npm ERR! 1530 | New(persistentHandle)->Set(index, value); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:3508:22: note: declared here npm ERR! 3508 | bool Set(uint32_t index, Local value)); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In member function ‘v8::Local Nan::AsyncWorker::GetFromPersistent(const char) const’: npm ERR! ../../nan/nan.h:1536:61: warning: ‘v8::Local v8::Object::Get(v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] npm ERR! 1536 | New(persistentHandle)->Get(New(key).ToLocalChecked())); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:3553:51: note: declared here npm ERR! 3553 | V8_DEPRECATED("Use maybe version", Local Get(Local key)); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In member function ‘v8::Local Nan::AsyncWorker::GetFromPersistent(const v8::Local&) const’: npm ERR! ../../nan/nan.h:1542:55: warning: ‘v8::Local v8::Object::Get(v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] npm ERR! 1542 | return scope.Escape(New(persistentHandle)->Get(key)); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:3553:51: note: declared here npm ERR! 3553 | V8_DEPRECATED("Use maybe version", Local Get(Local key)); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In member function ‘v8::Local Nan::AsyncWorker::GetFromPersistent(uint32_t) const’: npm ERR! ../../nan/nan.h:1547:57: warning: ‘v8::Local v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations] npm ERR! 1547 | return scope.Escape(New(persistentHandle)->Get(index)); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:3557:51: note: declared here npm ERR! 3557 | V8_DEPRECATED("Use maybe version", Local Get(uint32_t index)); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker)’: npm ERR! ../../nan/nan.h:1706:7: 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] npm ERR! 1706 | , reinterpret_cast(AsyncExecuteComplete) npm ERR! | ^~~~~~~~~~~~ npm ERR! In file included from /usr/include/c++/10/cassert:44, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_object_wrap.h:26, npm ERR! from ../../nan/nan.h:49, npm ERR! from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’: npm ERR! ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent’ has no member named ‘IsNearDeath’ npm ERR! 24 | assert(persistent().IsNearDeath()); npm ERR! | ^~~ npm ERR! In file included from ../../nan/nan.h:2192, npm ERR! from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’: npm ERR! ../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations] npm ERR! 67 | persistent().MarkIndependent(); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:570:22: note: declared here npm ERR! 570 | V8_INLINE void MarkIndependent()); npm ERR! | ^~~~~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! In file included from /usr/include/c++/10/cassert:44, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_object_wrap.h:26, npm ERR! from ../../nan/nan.h:49, npm ERR! from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo&)’: npm ERR! ../../nan/nan_objectwrap.h:124:26: error: ‘class Nan::Persistent’ has no member named ‘IsNearDeath’ npm ERR! 124 | assert(wrap->handle.IsNearDeath()); npm ERR! | ^~~ npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:128:82: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ npm ERR! 128 | target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction()); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’ npm ERR! 6126 | V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’: npm ERR! ../src/BluetoothHciSocket.cpp:269:109: warning: ‘v8::Local v8::Object::Get(v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations] npm ERR! 269 | Local errorConstructor = Local::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked())); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/v8-internal.h:14, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:27, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:3553:51: note: declared here npm ERR! 3553 | V8_DEPRECATED("Use maybe version", Local Get(Local key)); npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ npm ERR! 328 | declarator attribute((deprecated(message))) npm ERR! | ^~~~~~ npm ERR! ../src/BluetoothHciSocket.cpp:275:72: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local [1])’ npm ERR! 275 | Local error = errorConstructor->NewInstance(1, constructorArgs); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:4281:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local) const’ npm ERR! 4281 | V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:4281:44: note: candidate expects 3 arguments, 2 provided npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:4284:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local) const’ npm ERR! 4284 | V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( npm ERR! | ^~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:4284:44: note: candidate expects 1 argument, 2 provided npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:395:34: error: no matching function for call to ‘v8::Value::IntegerValue()’ npm ERR! 395 | devId = arg0->IntegerValue(); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:2705:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ npm ERR! 2705 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( npm ERR! | ^~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:417:34: error: no matching function for call to ‘v8::Value::IntegerValue()’ npm ERR! 417 | devId = arg0->IntegerValue(); npm ERR! | ^ npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:67, npm ERR! from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:2705:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ npm ERR! 2705 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( npm ERR! | ^~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided npm ERR! In file included from /home/pi/.cache/node-gyp/12.22.5/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! ../src/BluetoothHciSocket.cpp: At global scope: npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:736:7: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Local, v8::Local, void)’} [-Wcast-function-type] npm ERR! 736 | (node::addon_register_func) (regfunc), \ npm ERR! | ^~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/12.22.5/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’ npm ERR! 770 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) npm ERR! | ^~~~~ npm ERR! ../src/BluetoothHciSocket.cpp:499:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! 499 | NODE_MODULE(binding, BluetoothHciSocket::Init); npm ERR! | ^~~ npm ERR! make: *** [binding.target.mk:107: Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: make failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/pi/.node-red/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:314:20) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) npm ERR! gyp ERR! System Linux 5.10.89-v7l+ npm ERR! gyp ERR! command "/usr/bin/node" "/home/pi/.node-red/node_modules/.bin/node-gyp" "rebuild" npm ERR! gyp ERR! cwd /home/pi/.node-red/node_modules/bluetooth-hci-socket npm ERR! gyp ERR! node -v v12.22.5 npm ERR! gyp ERR! node-gyp -v v8.4.1 npm ERR! gyp ERR! not ok

rzr commented 1 year ago

did you try to rebuild from git too ?

kjyv commented 1 year ago

Seems like the nan dependency needs to be updated

rzr commented 1 year ago

Feel free to update it and also commit a "Release change" see history

Fourthbus commented 1 year ago

Ran into the same issue

Running post-install scripts...

> @abandonware/bluetooth-hci-socket@0.5.3-8 install
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! install response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-8/bluetooth_hci_socket-0.5.3-8-node-v93-linux-arm64.tar.gz 
make: Entering directory '/var/lib/homebridge/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/bluetooth-hci-socket/build'
  CXX(target) Release/obj.target/bluetooth_hci_socket/src/BluetoothHciSocket.o
In file included from /home/homebridge/.cache/node-gyp/16.18.0/include/node/node_buffer.h:25,
                 from ../src/BluetoothHciSocket.cpp:7:
/home/homebridge/.cache/node-gyp/16.18.0/include/node/node.h:887:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
  887 |       (node::addon_register_func) (regfunc),                          \
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/homebridge/.cache/node-gyp/16.18.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/BluetoothHciSocket.cpp:635:1: note: in expansion of macro ‘NODE_MODULE’
  635 | NODE_MODULE(binding, BluetoothHciSocket::Init);
      | ^~~~~~~~~~~
Apollon77 commented 1 year ago

@Fourthbus Sorry but whereis an issue? There are some notices, yes and the "404 Not FOund" is also ok ... so I do not see any issue in your post

Apollon77 commented 1 year ago

For rest: There is a PR for a new release ... maybe it could be retried after that being released

Apollon77 commented 1 year ago

Please recheck with latest release