-
-
Notifications
You must be signed in to change notification settings - Fork 48
Description
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% <features.h>
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