Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Build error bei Adapter Update

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    Build error bei Adapter Update

    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      ts020339 last edited by

      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>

      1 Reply Last reply Reply Quote 0
      • apollon77
        apollon77 last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • T
          ts020339 last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Support us

            ioBroker
            Community Adapters
            Donate

            1.0k
            Online

            31.6k
            Users

            79.5k
            Topics

            1.3m
            Posts

            2
            4
            405
            Loading More Posts
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes
            Reply
            • Reply as topic
            Log in to reply
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
            The ioBroker Community 2014-2023
            logo