NEWS
Build error bei Adapter Update
-
Hallo Zusammen,
ich bekomme jetzt bei jeder Installation eines neuen Adapters bzw. dem Update eines existierenden Adapters einen "gyp ERR! build error" im Log.
Reproduzierbar mit jedem Adapter. Hier mal das komplette Log des Discovery-Adapters, sieht so genauso aber bei jedem anderen Adapter aus.
Das ist nur leider so weit jenseits meiner Kenntnisse und auch Google gibt undendlich viele Treffer aus, dass ich einfach nicht weiterkommen. Vielleicht kann sich ja mal jemand das Log anschauen und mich zumindest in die richtige Richtung stoßen…
! ````
Update discovery from @1.0.1 to @1.1.0
npm install iobroker.discovery@1.1.0 --production --prefix "/opt/iobroker" (System call)
In file included from ../node_modules/nan/nan.h:82:0,
from ../src/bufferutil.cc:16:
../node_modules/nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handlev8::integer) [with T = v8::Int32; v8::Handle v8::integer= v8::Localv8::integer]’:
../node_modules/nan/nan_new.h:34:64: warning: ‘v8::Local v8::int32v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Tov8::int32(v8::Handle v8::integeri) { return i->ToInt32(); }
^
In file included from ../src/bufferutil.cc:7:0:
/root/.node-gyp/6.12.3/include/node/v8.h:8214:14: note: declared here
Local <int32>Value::ToInt32() const {
^~~~~
In file included from ../node_modules/nan/nan.h:82:0,
from ../src/bufferutil.cc:16:
../node_modules/nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handlev8::integer) [with T = v8::Uint32; v8::Handle v8::integer= v8::Localv8::integer]’:
../node_modules/nan/nan_new.h:39:65: warning: ‘v8::Local v8::uint32v8::Value::ToUint32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Tov8::uint32(v8::Handle v8::integeri) { return i->ToUint32(); }
^
In file included from ../src/bufferutil.cc:7:0:
/root/.node-gyp/6.12.3/include/node/v8.h:8208:15: note: declared here
Local <uint32>Value::ToUint32() const {
^~~~~
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:82,
from ../src/bufferutil.cc:16:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::booleanobject::return_t NanIntern::Factoryv8::booleanobject::New(bool)’:
../node_modules/nan/nan_implementation_12_inl.h:49:38: warning: ‘static v8::Local v8::valuev8::BooleanObject::New(bool)’ is deprecated: Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).Asv8::booleanobject();
^
In file included from /root/.node-gyp/6.12.3/include/node/v8.h:25:0,
from ../src/bufferutil.cc:7:
/root/.node-gyp/6.12.3/include/node/v8.h:4009:56: note: declared here
V8_DEPRECATED("Pass an isolate", static Local <value>New(bool value));
^
/root/.node-gyp/6.12.3/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:82,
from ../src/bufferutil.cc:16:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::script::return_t NanIntern::Factoryv8::script::New(v8::Localv8::string)’:
../node_modules/nan/nan_implementation_12_inl.h:166:69: warning: ‘static v8::Local v8::scriptv8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /root/.node-gyp/6.12.3/include/node/v8.h:25:0,
from ../src/bufferutil.cc:7:
/root/.node-gyp/6.12.3/include/node/v8.h:1354:21: note: declared here
Local</v8::script></v8::string></v8::script></v8::script></value></v8::booleanobject></v8::value></v8::booleanobject></v8::booleanobject></uint32></v8::integer></v8::uint32></v8::uint32></v8::integer></v8::integer></v8::integer></int32></v8::integer></v8::int32></v8::int32></v8::integer></v8::integer></v8::integer> -
Das meiste sind optionale Pakete. Es ist ok wenn die fehlschlagen. Npm ab 3 prüft jedes Mal alle Abhängigkeiten und versucht damit quasi jedes Mal das fehlende nachzuinstallieren … blöd aber ist aktuell leider so.
-
danke fürs anschauen!
und dieser "gyp build error" ? (ziemlich weit unten im Log)
... gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 ...
bzw. kann ich irgendwie nachschauen, ob ein Adapter korrekt kompiliert wurde (d.h. native c++ code übersetzt) oder in dem javascript mode läuft?
-
Wenn es eine optionale Library ist die den Fehler verursacht hat ist alles gut
wenn im Adapter was nicht tut merkst du wenn du ihn benutzt …
In dem Fall kam es wohl vom Modul validation