Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst]"iobroker ERR! build error" im Log.

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    [gelöst]"iobroker ERR! build error" im Log.

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

      Hallo Zusammen,

      ich bekomme bei jeder Neuinstallation oder Update eines Adapter die Fehlermeldung "iobroker ERR! build error" im Log.

      Die eigentlich Installation oder das Update läuft aber dann durch und ich kann den Adapter ohne Probleme nutzen.

      Hier mal die Programm-Versionen

      pi@HomeAutomation:~ $ npm -v
      3.10.10
      pi@HomeAutomation:~ $ node -v
      v6.11.5
      pi@HomeAutomation:~ $ node-gyp -v
      v3.4.0
      
      

      Ich habe mal ein Beispiel angehängt (Update des socket.io Adapters).

      Achtung: Listing zeitlich von unten nach oben lesen (wie stelle ich das im Log um?).

      ! ````
      web.0 2017-11-04 13:20:05.085 info http server listening on port 8082
      web.0 2017-11-04 13:20:05.082 info socket.io server listening on port 8082
      web.0 2017-11-04 13:20:04.003 info starting. Version 2.1.8 in /opt/iobroker/node_modules/iobroker.web, node: v6.11.5
      host.HomeAutomation 2017-11-04 13:20:00.329 info iobroker npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.web"
      host.HomeAutomation 2017-11-04 13:20:00.329 info instance system.adapter.web.0 started with pid 4233
      host.HomeAutomation 2017-11-04 13:20:00.328 info "system.adapter.web.0" enabled
      host.HomeAutomation 2017-11-04 13:20:00.327 info object change system.adapter.web.0
      host.HomeAutomation 2017-11-04 13:20:00.215 info iobroker host.HomeAutomation Adapter "system.adapter.web.0" is started
      host.HomeAutomation 2017-11-04 13:20:00.122 info iobroker WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules/bufferutil):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install: node-gyp rebuild npm WARN o
      host.HomeAutomation 2017-11-04 13:20:00.122 info iobroker npm
      host.HomeAutomation 2017-11-04 13:20:00.121 info iobroker WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none was installed.
      host.HomeAutomation 2017-11-04 13:20:00.120 info iobroker npm
      host.HomeAutomation 2017-11-04 13:19:51.987 info iobroker ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/utf-8-validate gyp ERR! node -v v6.11.5 gyp ERR
      host.HomeAutomation 2017-11-04 13:19:51.963 info iobroker stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)gyp ERR! System Linux 4.9.59-v7+ gyp
      host.HomeAutomation 2017-11-04 13:19:51.962 info iobroker gyp ERR! stack Error: make failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emit
      host.HomeAutomation 2017-11-04 13:19:51.948 info iobroker ERR! build error
      host.HomeAutomation 2017-11-04 13:19:51.933 info iobroker gyp
      host.HomeAutomation 2017-11-04 13:19:51.911 info iobroker make: *** [Release/obj.target/validation/src/validation.o] Fehler 1
      host.HomeAutomation 2017-11-04 13:19:51.547 info iobroker ../src/validation.cc: In static member function ‘static void Validation::Initialize(v8::Handle)’:../src/validation.cc:112:62: error: call of overloaded ‘NODE_SET_METHOD(v8::Local<
      host.HomeAutomation 2017-11-04 13:19:51.383 info iobroker ../node_modules/nan/nan.h: In function ‘v8::Local NanCompileScript(v8::Local, const v8::ScriptOrigin&)’:../node_modules/nan/nan.h:710:74: warning: ‘static v8::Local
      host.HomeAutomation 2017-11-04 13:19:51.364 info iobroker ../node_modules/nan/nan.h: In function ‘v8::Local NanNewBufferHandle(const char*, uint32_t)’:../node_modules/nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘cha
      host.HomeAutomation 2017-11-04 13:19:51.363 info iobroker ../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared , node::smalloc::FreeCallback callback ^~~~~~~ ../node_modules/nan/nan.h:661:35: error: expecte
      host.HomeAutomation 2017-11-04 13:19:51.320 info iobroker In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:473:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void
      host.HomeAutomation 2017-11-04 13:19:51.307 info iobroker In file included from /root/.node-gyp/6.11.5/include/node/v8.h:25:0, from ../src/validation.cc:7: /root/.node-gyp/6.11.5/include/node/v8.h:6116:22: note: declared here
      host.HomeAutomation 2017-11-04 13:19:51.307 info iobroker ../node_modules/nan/nan.h: In function ‘bool NanIdleNotification(int)’:../node_modules/nan/nan.h:289:71: warning: ‘bool v8::Isolate::IdleNotification(int)’ is deprecated: use IdleNotification
      host.HomeAutomation 2017-11-04 13:19:51.305 info iobroker In file included from ../src/validation.cc:15:0:../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:261:25: error: redefinition of ‘template v8::Local _NanEnsure
      host.HomeAutomation 2017-11-04 13:19:51.249 info iobroker In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:82, from ../src/validation.cc:15: ../node_modules/nan/nan_implementa
      host.HomeAutomation 2017-11-04 13:19:51.242 info iobroker In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:82, from ../src/validation.cc:15: ../node_modules/nan/nan_implementa
      host.HomeAutomation 2017-11-04 13:19:51.233 info iobroker In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:82, from ../src/validation.cc:15: ../node_modules/nan/nan_implementa
      host.HomeAutomation 2017-11-04 13:19:51.232 info iobroker In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:82, from ../src/validation.cc:15: ../node_modules/nan/nan_implementa
      host.HomeAutomation 2017-11-04 13:19:51.209 info iobroker In file included from ../node_modules/nan/nan_new.h:189:0, from ../node_modules/nan/nan.h:82, from ../src/validation.cc:15: ../node_modules/nan/nan_implementa
      host.HomeAutomation 2017-11-04 13:19:51.200 info iobroker In file included from ../src/validation.cc:7:0:/root/.node-gyp/6.11.5/include/node/v8.h:8208:15: note: declared here Local Value::ToUint32() const { ^~~~~
      host.HomeAutomation 2017-11-04 13:19:51.185 info iobroker In file included from ../node_modules/nan/nan.h:82:0, from ../src/validation.cc:15: ../node_modules/nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handle
      host.HomeAutomation 2017-11-04 13:19:51.185 info iobroker In file included from ../src/validation.cc:7:0:/root/.node-gyp/6.11.5/include/node/v8.h:8214:14: note: declared here Local Value::ToInt32() const { ^~~~~
      host.HomeAutomation 2017-11-04 13:19:51.184 info iobroker In file included from ../node_modules/nan/nan.h:82:0, from ../src/validation.cc:15: ../node_modules/nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handle
      host.HomeAutomation 2017-11-04 13:19:44.766 info iobroker gyp ERR! stack Error: make failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emit
      host.HomeAutomation 2017-11-04 13:19:44.747 info iobroker ERR! build error
      host.HomeAutomation 2017-11-04 13:19:44.733 info iobroker gyp
      host.HomeAutomation 2017-11-04 13:19:44.706 info iobroker make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Fehler 1
      host.HomeAutomation 2017-11-04 13:19:44.300 info iobroker ../src/bufferutil.cc: In static member function ‘static void BufferUtil::Initialize(v8::Handle)’:../src/bufferutil.cc:30:52: error: call of overloaded ‘NODE_SET_METHOD(v8::Local
      host.HomeAutomation 2017-11-04 13:19:44.112 info iobroker ../node_modules/nan/nan.h: In function ‘v8::Local NanCompileScript(v8::Local, const v8::ScriptOrigin&)’:../node_modules/nan/nan.h:710:74: warning: ‘static v8::Local
      host.HomeAutomation 2017-11-04 13:19:44.096 info iobroker ../node_modules/nan/nan.h: In function ‘v8::Local NanNewBufferHandle(const char*, uint32_t)’:../node_modules/nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘cha
      host.HomeAutomation 2017-11-04 13:19:44.096 info iobroker ../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared , node::smalloc::FreeCallback callback ^~~~~~~ ../node_modules/nan/nan.h:661:35: error: expecte
      host.HomeAutomation 2017-11-04 13:19:44.048 info iobroker In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:473:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void
      host.HomeAutomation 2017-11-04 13:19:44.015 info iobroker In file included from /root/.node-gyp/6.11.5/include/node/v8.h:25:0, from ../src/bufferutil.cc:7: /root/.node-gyp/6.11.5/include/node/v8.h:6116:22: note: declared here
      host.HomeAutomation 2017-11-04 13:19:44.014 info iobroker ../node_modules/nan/nan.h: In function ‘bool NanIdleNotification(int)’:../node_modules/nan/nan.h:289:71: warning: ‘bool v8::Isolate::IdleNotification(int)’ is deprecated: use IdleNotification
      host.HomeAutomation 2017-11-04 13:19:44.014 info iobroker ../node_modules/nan/nan.h:256:25: note: ‘template v8::Local _NanEnsureLocal(v8::Handle)’ previously declared here NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) {
      host.HomeAutomation 2017-11-04 13:19:44.012 info iobroker In file included from ../src/bufferutil.cc:16:0:../node_modules/nan/nan.h: At global scope: ../node_modules/nan/nan.h:261:25: error: redefinition of ‘template v8::Local _NanEnsure
      host.HomeAutomation 2017-11-04 13:19:43.901 info iobroker 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_implementa
      host.HomeAutomation 2017-11-04 13:19:43.897 info iobroker 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_implementa
      host.HomeAutomation 2017-11-04 13:19:43.884 info iobroker 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_implementa
      host.HomeAutomation 2017-11-04 13:19:43.884 info iobroker 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_implementa
      host.HomeAutomation 2017-11-04 13:19:43.871 info iobroker In file included from /root/.node-gyp/6.11.5/include/node/v8.h:25:0, from ../src/bufferutil.cc:7: /root/.node-gyp/6.11.5/include/node/v8.h:1354:21: note: declared here
      host.HomeAutomation 2017-11-04 13:19:43.870 info iobroker 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_implementa
      host.HomeAutomation 2017-11-04 13:19:43.869 info iobroker In file included from /root/.node-gyp/6.11.5/include/node/v8.h:25:0, from ../src/bufferutil.cc:7: /root/.node-gyp/6.11.5/include/node/v8.h:1354:21: note: declared here
      host.HomeAutomation 2017-11-04 13:19:43.868 info iobroker 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_implementa
      host.HomeAutomation 2017-11-04 13:19:43.828 info iobroker In file included from /root/.node-gyp/6.11.5/include/node/v8.h:25:0, from ../src/bufferutil.cc:7: /root/.node-gyp/6.11.5/include/node/v8.h:4009:56: note: declared here V8_D
      host.HomeAutomation 2017-11-04 13:19:43.826 info iobroker 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_implementa
      host.HomeAutomation 2017-11-04 13:19:43.790 info iobroker In file included from ../src/bufferutil.cc:7:0:/root/.node-gyp/6.11.5/include/node/v8.h:8208:15: note: declared here Local Value::ToUint32() const { ^~~~~
      host.HomeAutomation 2017-11-04 13:19:43.790 info iobroker In file included from ../src/bufferutil.cc:7:0:/root/.node-gyp/6.11.5/include/node/v8.h:8214:14: note: declared here Local Value::ToInt32() const { ^~~~~ In file include
      host.HomeAutomation 2017-11-04 13:19:43.788 info iobroker 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::Handle
      host.HomeAutomation 2017-11-04 13:18:33.489 info instance system.adapter.web.0 terminated with code 0 (OK)
      host.HomeAutomation 2017-11-04 13:18:33.426 info iobroker npm install iobroker.web@2.1.8 --production --prefix "/opt/iobroker" (System call)
      host.HomeAutomation 2017-11-04 13:18:33.421 info stopInstance system.adapter.web.0 killing pid 662
      host.HomeAutomation 2017-11-04 13:18:33.420 info stopInstance system.adapter.web.0
      host.HomeAutomation 2017-11-04 13:18:33.420 info "system.adapter.web.0" disabled
      host.HomeAutomation 2017-11-04 13:18:33.418 info object change system.adapter.web.0
      host.HomeAutomation 2017-11-04 13:18:33.331 info iobroker host.HomeAutomation Adapter "system.adapter.web.0" is stopped.
      host.HomeAutomation 2017-11-04 13:18:29.995 info iobroker upgrade web

      Kann mir jemand sagen, woran dieser make-Prozess scheitert und was ich machen kann? Bzw. es hat offenbar keine Auswirkungen be ider Funktion?
      
      Danke für die Hilfe!
      
      Tim
      1 Reply Last reply Reply Quote 0
      • T
        ts020339 last edited by

        das Gleiche auch z.B. bei der Installation des ical Kalenders (der scheint aber auch zu funktionieren):

        iobroker	2017-11-04 13:55:26.426	info	^
        iobroker	2017-11-04 13:55:26.426	info	To(v8::Handle i) { return i->ToInt32(); }
        iobroker	2017-11-04 13:55:26.426	info	../node_modules/nan/nan_new.h:34:64: warning: ‘v8::Local v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
        iobroker	2017-11-04 13:55:26.426	info	../node_modules/nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handle) [with T = v8::Int32; v8::Handle = v8::Local]’:
        iobroker	2017-11-04 13:55:26.426	info	In file included from ../node_modules/nan/nan.h:82:0, from ../src/validation.cc:15:
        iobroker	2017-11-04 13:55:22.405	info	ERR! not ok
        iobroker	2017-11-04 13:55:22.402	info	gyp
        iobroker	2017-11-04 13:55:22.402	info	gyp ERR! node-gyp -v v3.4.0
        iobroker	2017-11-04 13:55:22.402	info	gyp ERR! cwd /opt/iobroker/node_modules/bufferutilgyp ERR! node -v v6.11.5
        iobroker	2017-11-04 13:55:22.399	info	ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
        iobroker	2017-11-04 13:55:22.397	info	gyp ERR! System Linux 4.9.59-v7+gyp
        iobroker	2017-11-04 13:55:22.393	info	gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
        iobroker	2017-11-04 13:55:22.393	info	gyp ERR! stack at ChildProcess.emit (events.js:191:7)
        iobroker	2017-11-04 13:55:22.393	info	gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)gyp ERR! stack at emitTwo (events.js:106:13)
        iobroker	2017-11-04 13:55:22.391	info	gyp ERR! stack Error: `make` failed with exit code: 2
        iobroker	2017-11-04 13:55:22.374	info	ERR! build error
        iobroker	2017-11-04 13:55:22.371	info	
        iobroker	2017-11-04 13:55:22.366	info	gyp
        iobroker	2017-11-04 13:55:22.345	info	make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Fehler 1
        
        1 Reply Last reply Reply Quote 0
        • Bluefox
          Bluefox last edited by

          Viele Module haben zwei Möglichkeiten zum Laufen:

          • native (c++ code übersetzt)

          • javascript (fallback Strategie)

          Falls die Übersetzung (warum auch immer) fehlschlägt, dann wird fallback benutzt.

          Geschwindigkeit ist ein bisschen niedrige, aber alles muss gehen.

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

            das könnte die Erklärung sein, warum die Module trotzdem laufen.

            Hast Du eine Idee, in welche Richtung ich suchen kann, warum der Build-Prozess scheitert?

            Mir sagt der Fehler sehr wenig, bzw. ich kenn mich in dem Bereich überhaupt nicht aus und Google gibt auch sehr wenig her (bzw. soviel verschiedenes, dass es sich so nicht eingrenzen lässt).

            Danke auf jede Fall für die Antwort.

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

              so, kurzes Update für diejenigen, die doch nochmal über ein ähnliches Problem stolpern.

              Mein Problem war offenbar, dass ich ioBroker über den User "pi" und "sudo" installiert habe und nicht extra einen root Account genutzt habe. Das wurde in den von mir benutzen Installationsanleitungen nicht erwähnt und ich bin nur zufällig über die Anleitung, die hier im Forum zum Pi3 verlinkt ist, gestolpert. Ich habe zuwenig Linux-Kenntnisse um zu erklären, warum das einen Unterscheid macht, ABER eine komplette Neuinstallation mit dem User "root" hat geholfen und alle Module installieren jetzt ohne Fehlermeldung und laufen offenbar auch nicht im Backup-Mode als javascript, wie Bluefox erklärt hat.

              Gruß,

              Tim

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

              Support us

              ioBroker
              Community Adapters
              Donate

              976
              Online

              31.6k
              Users

              79.4k
              Topics

              1.3m
              Posts

              2
              5
              976
              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