NEWS
Testinstallation unter Node 12.6.0
-
Dann beekomme ich das:
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:203:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) node-pre-gyp ERR! System Linux 4.19.57-rockchip node-pre-gyp ERR! command "/usr/bin/node" "/root/node_modules/@abandonware/bluetooth-hci-socket/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /root/node_modules/@abandonware/bluetooth-hci-socket node-pre-gyp ERR! node -v v12.6.0 node-pre-gyp ERR! node-pre-gyp -v v0.12.0 node-pre-gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @abandonware/bluetooth-hci-socket@0.5.3-1 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @abandonware/bluetooth-hci-socket@0.5.3-1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-07-18T04_44_00_892Z-debug.log
Gruß,
Mathias -
@MathiasJ Wenn der Log anfängt mit
stack at ...
ist er nicht vollständig Ich brauche alles ab Befehlseingabe -
Mache ich, wenn ich wieder zuhause bin.
Dann wiederhole ich den Befehl und sende es Dir....
Nun hopp hopp zur Arbeit -
Sehe ich da nicht schon wieder in seinem Log-Schnipsel:
command "/usr/bin/node" "/root/node_modules/@abandonware/bluetooth-hci-socket/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
Also den /root-User Ordner?
-
@Stabilostick Hast Recht
-
dann stimmt aber etwas anderes nicht. ich habe 2 mal den befehl ausgeführt:
cd /opt/iobroker, dann erst Euren Befehl.
Als Anhang der komplette Log als txt-Datei.
Gruß,
Mathias -
@MathiasJ
Hattest Du das schon mal vorher ausgeführt?sudo apt-get install libbluetooth-dev
Steht in https://github.com/song940/node-bluetooth
Da steht auch, dass sie vor 10 Monaten Node 10 Kompatibilität eingebaut haben. -
@Stabilostick
ist schon die neueste Version.root@tinkerboard:~# sudo apt-get install libbluetooth-dev Reading package lists... Done Building dependency tree Reading state information... Done libbluetooth-dev is already the newest version (5.43-2+deb9u1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@tinkerboard:~#
Gruß,
Mathias -
Na, hat niemand eine Idee?
Ansonsten muß icch dann die testinstallation einstampfen.
Die produktive Installation läuft ja unter Node 10. -
Da ist der interessante Part:
@abandonware/bluetooth-hci-socket@0.5.3-1 install /opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket
node-pre-gyp install --fallback-to-buildnode-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/sandeepmistry/node-bluetooth-hci-socket/releases/download/0.5.3-1/binding-0.5.3-1-node-v72-linux-arm.tar.gz
node-pre-gyp WARN Pre-built binaries not found for @abandonware/bluetooth-hci-socket@0.5.3-1 and node@12.6.0 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory '/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/build'
CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
../src/BluetoothHciSocket.cpp: In static member function 'static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)':
../src/BluetoothHciSocket.cpp:129:82: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()'
target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction());
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:5948:46: note: candidate: v8::MaybeLocalv8::Function v8::FunctionTemplate::GetFunction(v8::Localv8::Context)
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^~~~~~~~~~~
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:5948:46: note: candidate expects 1 argument, 0 provided
../src/BluetoothHciSocket.cpp: In member function 'void BluetoothHciSocket::poll()':
../src/BluetoothHciSocket.cpp:252:95: warning: 'v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
In file included from ../src/BluetoothHciSocket.cpp:8:0:
../../../nan/nan.h:1045:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
../src/BluetoothHciSocket.cpp: In member function 'void BluetoothHciSocket::emitErrnoError()':
../src/BluetoothHciSocket.cpp:270:109: warning: 'v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Function> errorConstructor = Local<Function>::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked()));
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3412:55: note: declared here
V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/BluetoothHciSocket.cpp:283:93: warning: 'v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
In file included from ../src/BluetoothHciSocket.cpp:8:0:
../../../nan/nan.h:1045:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
../src/BluetoothHciSocket.cpp: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)':
../src/BluetoothHciSocket.cpp:396:34: error: no matching function for call to 'v8::Value::IntegerValue()'
devId = arg0->IntegerValue();
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:2565:40: note: candidate: v8::Maybe<long long int> v8::Value::IntegerValue(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^~~~~~~~~~~~
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:2565:40: note: candidate expects 1 argument, 0 provided
../src/BluetoothHciSocket.cpp: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)':
../src/BluetoothHciSocket.cpp:418:34: error: no matching function for call to 'v8::Value::IntegerValue()'
devId = arg0->IntegerValue();
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:2565:40: note: candidate: v8::Maybe<long long int> v8::Value::IntegerValue(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^~~~~~~~~~~~
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:2565:40: note: candidate expects 1 argument, 0 provided
../src/BluetoothHciSocket.cpp: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::GetDeviceList(Nan::NAN_METHOD_ARGS_TYPE)':
../src/BluetoothHciSocket.cpp:471:77: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(Nan::New("devId").ToLocalChecked(), Nan::New<Number>(devId));
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/BluetoothHciSocket.cpp:472:78: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(Nan::New("devUp").ToLocalChecked(), Nan::New<Boolean>(devUp));
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/BluetoothHciSocket.cpp:473:68: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(Nan::New("idVendor").ToLocalChecked(), Nan::Null());
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/BluetoothHciSocket.cpp:474:69: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(Nan::New("idProduct").ToLocalChecked(), Nan::Null());
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/BluetoothHciSocket.cpp:475:69: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(Nan::New("busNumber").ToLocalChecked(), Nan::Null());
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/BluetoothHciSocket.cpp:476:73: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->Set(Nan::New("deviceAddress").ToLocalChecked(), Nan::Null());
^
In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^
/home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
declarator attribute((deprecated(message)))
^~~~~~~~~~
binding.target.mk:105: recipe for target 'Release/obj.target/binding/src/BluetoothHciSocket.o' failed
make: *** [Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1
make: Leaving directory '/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/build'
gyp ERR! build error
gyp ERR! stack Error:make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:203:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.19.57-rockchip
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node" "--module_name=binding" "--module_path=/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/binding" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
gyp ERR! cwd /opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket
gyp ERR! node -v v12.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not okDabei handelt es sich tatsächlich um einen Fehler bei der Kompilierung. Node 12 geht also wohl doch noch nicht.
-
@AlCalzone
Sagte ich doch!
Dann kann ich mein Testsystem beruhigt wieder abbauen.
Gruß,
Mathias -
@MathiasJ Dankeschön!
-
@AlCalzone sagte in Testinstallation unter Node 12.6.0:
Node 12 geht also wohl doch noch nicht.
Bei mir läuft node12 einwandfrei seit mehreren Tagen auf meinem Testsystem !
-
@Segway Und nutzt du auch den BLE-Adapter?
-
@Segway
und den Adapter Radar2 nutzt Du auch unter node 12.6.0 nicht?
Der läuft auf Node 12.6.0 nämlich auch nur mit hcitool only. -
Nein benutze ich nicht ... brauche das so nicht bzw. habe es anders gelöst.
Hätte deutlicher schreiben sollen dass grundsätzlich node 12 funktioniert nur halt mit einigen Adaptern (noch) nicht. Das wird schnell überlesen und wenn dann nur noch sowas steht@AlCalzone sagte in Testinstallation unter Node 12.6.0:
Dabei handelt es sich tatsächlich um einen Fehler bei der Kompilierung. Node 12 geht also wohl doch noch nicht.
dann gilt das lediglich für den Adapter aber nicht für das gesamte System oder andere Adapter ist ja nicht umsonst der Hinweis. Aber viele Standard-Adapter gehen ja bereits.
-
@Segway
Bei mir lief die Testinstallation auch unter Node 12.
Nur die Adapter Radar2 mit noble und eben BLE nicht.
Das habe ich ja mehrfach erwähnt. -
@Segway meine Aussage war bezogen auf Matthias tests mit BLE, nicht auf node12 ansich