Hey guys. I’m still struggling with this error, no Homekit for a long time now (my wife isn’t amused). But to be honest, I’m not looking forward to setting up everything from scratch again.
Because I’m using an SSD with my Pi and read the following in this thread:
One thing you need to keep track off is the difference in kernel versions between the boot code on the SD card and the file system on the USB drive when you apt-get upgrade. The original kernel software on the SD card may get out of synchronization with the newer boot files on the DOS partition. One way to fix that is to revert back to the SD card and also update that file system with apt-get upgrade.
…I did just that - unfortunately without any progress.
So just a couple of minutes ago I installed pimatic-ble (for my Mi-Flora sensor), and saw an error that looks quite similar to the one before:
18:42:08.628 [pimatic] info: Installing: "pimatic-ble@0.9.3" from npm-registry.
18:42:17.184 [pimatic, ppm] info: WARN optional dep failed, continuing xpc-connection@0.1.4
18:42:54.110 [pimatic, ppm] info: > usb@1.3.1 install /home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb
18:42:54.115 [pimatic, ppm] info: > node-pre-gyp install --fallback-to-build
18:42:58.697 [pimatic, ppm] info: node-pre-gyp ERR! Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.3.1/usb_bindings-v1.3.1-node-v46-linux-arm.tar.gz
18:42:58.705 [pimatic, ppm] info: node-pre-gyp ERR! Pre-built binaries not found for usb@1.3.1 and node@4.6.0 (node-v46 ABI, glibc) (falling back to source compile with node-gyp)
18:43:06.405 [pimatic, ppm] info: make: Entering directory '/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/build'
18:43:06.417 [pimatic, ppm] info: CC(target) Release/obj.target/libusb/libusb/libusb/core.o
18:43:06.865 [pimatic, ppm] info: ../libusb/libusb/core.c: In function ‘atoi’:
18:43:06.876 [pimatic, ppm] info: ../libusb/libusb/core.c:2342:1: internal compiler error: Ungültiger Maschinenbefehl
18:43:06.879 [pimatic, ppm] info: }
18:43:06.882 [pimatic, ppm] info: ^
18:43:06.909 [pimatic, ppm] info: Please submit a full bug report,
18:43:06.913 [pimatic, ppm] info: with preprocessed source if appropriate.
18:43:06.916 [pimatic, ppm] info: See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
18:43:08.073 [pimatic, ppm] info: Preprocessed source stored into /tmp/ccvV03wJ.out file, please attach this to your bugreport.
18:43:08.081 [pimatic, ppm] info: make: *** [Release/obj.target/libusb/libusb/libusb/core.o] Error 1
18:43:08.089 [pimatic, ppm] info: libusb.target.mk:133: recipe for target 'Release/obj.target/libusb/libusb/libusb/core.o' failed
18:43:08.092 [pimatic, ppm] info: make: Leaving directory '/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/build'
18:43:08.115 [pimatic, ppm] info: gyp ERR! build error
18:43:08.140 [pimatic, ppm] info: gyp ERR! stack Error: `make` failed with exit code: 2
18:43:08.151 [pimatic, ppm] info: gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
18:43:08.158 [pimatic, ppm] info: gyp ERR! stack at emitTwo (events.js:87:13)
18:43:08.162 [pimatic, ppm] info: gyp ERR! stack at ChildProcess.emit (events.js:172:7)
18:43:08.176 [pimatic, ppm] info: gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
18:43:08.184 [pimatic, ppm] info: gyp ERR! System Linux 4.9.35-v7+
18:43:08.187 [pimatic, ppm] info: 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/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding"
18:43:08.190 [pimatic, ppm] info: gyp ERR! cwd /home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb
18:43:08.194 [pimatic, ppm] info: gyp ERR! node -v v4.6.0
18:43:08.198 [pimatic, ppm] info: gyp ERR! node-gyp -v v3.4.0
18:43:08.204 [pimatic, ppm] info: gyp ERR! not ok
18:43:08.230 [pimatic, ppm] info: node-pre-gyp ERR! build error
18:43:08.233 [pimatic, ppm] info: 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/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding' (1)
18:43:08.236 [pimatic, ppm] info: node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
18:43:08.248 [pimatic, ppm] info: node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
18:43:08.252 [pimatic, ppm] info: node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
18:43:08.256 [pimatic, ppm] info: node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:829:16)
18:43:08.260 [pimatic, ppm] info: node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
18:43:08.263 [pimatic, ppm] info: node-pre-gyp ERR! System Linux 4.9.35-v7+
18:43:08.266 [pimatic, ppm] info: node-pre-gyp ERR! command "/usr/local/bin/node" "/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
18:43:08.270 [pimatic, ppm] info: node-pre-gyp ERR! cwd /home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb
18:43:08.273 [pimatic, ppm] info: node-pre-gyp ERR! node -v v4.6.0
18:43:08.279 [pimatic, ppm] info: node-pre-gyp ERR! node-pre-gyp -v v0.6.39
18:43:08.282 [pimatic, ppm] info: node-pre-gyp ERR! not ok
18:43:08.296 [pimatic, ppm] info: 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/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding' (1)
18:43:08.304 [pimatic, ppm] info: > bluetooth-hci-socket@0.5.1 install /home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket
18:43:08.307 [pimatic, ppm] info: > node-gyp rebuild
18:43:08.356 [pimatic, ppm] info: WARN optional dep failed, continuing usb@1.3.1
18:43:12.955 [pimatic, ppm] info: make: Entering directory '/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/build'
18:43:12.964 [pimatic, ppm] info: CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
18:43:22.730 [pimatic, ppm] info: SOLINK_MODULE(target) Release/obj.target/binding.node
18:43:23.209 [pimatic, ppm] info: COPY Release/binding.node
18:43:23.244 [pimatic, ppm] info: make: Leaving directory '/home/pi/pimatic-app/node_modules/pimatic-ble/node_modules/noble/node_modules/bluetooth-hci-socket/build'
18:43:55.892 [pimatic, ppm] info: pimatic-ble@0.9.3 node_modules/pimatic-ble
18:43:55.896 [pimatic, ppm] info: └── noble@1.9.0 (bplist-parser@0.0.6, debug@2.2.0, bluetooth-hci-socket@0.5.1)
Is there any chance you have an idea what might be the reason for this? Seems to be independent of the plugin (although I’m not having any problems at all with other plugins). Still hoping this can be fixed.
Thanks, Sebastian