neuroanatomy / BrainBox

BrainBox is a web application that lets you annotate and segment 3D brain imaging data in real time, collaboratively.
https://brainbox.pasteur.fr
Other
96 stars 46 forks source link

node-gyp build errors when trying to build/run using docker-compose #197

Open willfurnass opened 6 years ago

willfurnass commented 6 years ago

Errors seen after running sudo docker-compose up --build:

web_1  | 
web_1  | > utf-8-validate@1.2.2 install /brainbox/node_modules/livereload/node_modules/ws/node_modules/utf-8-validate
web_1  | > node-gyp rebuild
web_1  | 
web_1  | make: Entering directory '/brainbox/node_modules/livereload/node_modules/ws/node_modules/utf-8-validate/build'
web_1  |   CXX(target) Release/obj.target/validation/src/validation.o
web_1  | In file included from ../node_modules/nan/nan.h:190:0,
web_1  |                  from ../src/validation.cc:15:
web_1  | ../node_modules/nan/nan_maybe_43_inl.h: In function 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)':
web_1  | ../node_modules/nan/nan_maybe_43_inl.h:88:15: error: 'class v8::Object' has no member named 'ForceSet'
web_1  |    return obj->ForceSet(GetCurrentContext(), key, value, attribs);
web_1  |                ^
web_1  | In file included from ../src/validation.cc:15:0:
web_1  | ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)':
web_1  | ../node_modules/nan/nan.h:817:60: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated (declared at /root/.node-gyp/10.1.0/include/node/node.h:171): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
web_1  |          v8::Isolate::GetCurrent(), target, func, argc, argv);
web_1  |                                                             ^
web_1  | ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)':
web_1  | ../node_modules/nan/nan.h:831:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)' is deprecated (declared at /root/.node-gyp/10.1.0/include/node/node.h:164): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
web_1  |          v8::Isolate::GetCurrent(), target, symbol, argc, argv);
web_1  |                                                               ^
web_1  | ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)':
web_1  | ../node_modules/nan/nan.h:845:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)' is deprecated (declared at /root/.node-gyp/10.1.0/include/node/node.h:157): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
web_1  |          v8::Isolate::GetCurrent(), target, method, argc, argv);
web_1  |                                                               ^
web_1  | ../node_modules/nan/nan.h: In member function 'v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const':
web_1  | ../node_modules/nan/nan.h:1453:5: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated (declared at /root/.node-gyp/10.1.0/include/node/node.h:171): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
web_1  |      ));
web_1  |      ^
web_1  | make: *** [Release/obj.target/validation/src/validation.o] Error 1
web_1  | validation.target.mk:96: recipe for target 'Release/obj.target/validation/src/validation.o' failed
web_1  | make: Leaving directory '/brainbox/node_modules/livereload/node_modules/ws/node_modules/utf-8-validate/build'
web_1  | gyp ERR! build error 
web_1  | gyp ERR! stack Error: `make` failed with exit code: 2
web_1  | gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
web_1  | gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
web_1  | gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)
web_1  | gyp ERR! System Linux 4.16.7-1-ARCH
web_1  | gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
web_1  | gyp ERR! cwd /brainbox/node_modules/livereload/node_modules/ws/node_modules/utf-8-validate
web_1  | gyp ERR! node -v v10.1.0
web_1  | gyp ERR! node-gyp -v v3.6.2
web_1  | gyp ERR! not ok 
web_1  | 
web_1  | > bufferutil@1.2.1 install /brainbox/node_modules/livereload/node_modules/ws/node_modules/bufferutil
web_1  | > node-gyp rebuild
web_1  | 
web_1  | make: Entering directory '/brainbox/node_modules/livereload/node_modules/ws/node_modules/bufferutil/build'
web_1  |   CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
web_1  | In file included from ../../../../../../nan/nan.h:192:0,
web_1  |                  from ../src/bufferutil.cc:16:
web_1  | ../../../../../../nan/nan_maybe_43_inl.h: In function 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)':
web_1  | ../../../../../../nan/nan_maybe_43_inl.h:112:15: error: 'class v8::Object' has no member named 'ForceSet'
web_1  |    return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
web_1  |                ^
web_1  | In file included from ../src/bufferutil.cc:16:0:
web_1  | ../../../../../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)':
web_1  | ../../../../../../nan/nan.h:835:60: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated (declared at /root/.node-gyp/10.1.0/include/node/node.h:171): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
web_1  |          v8::Isolate::GetCurrent(), target, func, argc, argv);
web_1  |                                                             ^
web_1  | ../../../../../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)':
web_1  | ../../../../../../nan/nan.h:850:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)' is deprecated (declared at /root/.node-gyp/10.1.0/include/node/node.h:164): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
web_1  |          v8::Isolate::GetCurrent(), target, symbol, argc, argv);
web_1  |                                                               ^
web_1  | ../../../../../../nan/nan.h: In function 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)':
web_1  | ../../../../../../nan/nan.h:865:62: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)' is deprecated (declared at /root/.node-gyp/10.1.0/include/node/node.h:157): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
web_1  |          v8::Isolate::GetCurrent(), target, method, argc, argv);
web_1  |                                                               ^
web_1  | ../../../../../../nan/nan.h: In member function 'v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const':
web_1  | ../../../../../../nan/nan.h:1479:5: warning: 'v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated (declared at /root/.node-gyp/10.1.0/include/node/node.h:171): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
web_1  |      ));
web_1  |      ^
web_1  | bufferutil.target.mk:96: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
web_1  | make: Leaving directory '/brainbox/node_modules/livereload/node_modules/ws/node_modules/bufferutil/build'
web_1  | make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
web_1  | gyp ERR! build error 
web_1  | gyp ERR! stack Error: `make` failed with exit code: 2
web_1  | gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
web_1  | gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
web_1  | gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)
web_1  | gyp ERR! System Linux 4.16.7-1-ARCH
web_1  | gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
web_1  | gyp ERR! cwd /brainbox/node_modules/livereload/node_modules/ws/node_modules/bufferutil
web_1  | gyp ERR! node -v v10.1.0
web_1  | gyp ERR! node-gyp -v v3.6.2
web_1  | gyp ERR! not ok 
web_1  | npm WARN lifecycle brainbox@0.1.0~prepare: cannot run in wd %s %s (wd=%s) brainbox@0.1.0 source ./scripts/build.sh /brainbox
web_1  | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
web_1  | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
web_1  | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.2.2 (node_modules/livereload/node_modules/ws/node_modules/utf-8-validate):
web_1  | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.2.2 install: `node-gyp rebuild`
web_1  | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
web_1  | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 (node_modules/livereload/node_modules/ws/node_modules/bufferutil):
web_1  | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 install: `node-gyp rebuild`
web_1  | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
web_1  | 
web_1  | up to date in 3.898s
web_1  | the options [safe] is not supported
web_1  | the options [safe] is not supported
web_1  | [atlasMakerServer.js:19]  Use whitelist: false
web_1  | [atlasMakerServer.js:20]  { '1.2.3.4': true, '2.3.4.5': true }
web_1  | [atlasMakerServer.js:21]  Use blacklist: true
web_1  | [atlasMakerServer.js:22]  { '1.2.3.4': true, '2.3.4.5': true }
web_1  | dataSlices.js
web_1  | [atlasMakerServer.js:160]  initSocketConnection root
web_1  | [atlasMakerServer.js:2292]  atlasMakerServer.js
web_1  | [atlasMakerServer.js:2293]  date: 2018-05-10T16:44:31.945Z
web_1  | [atlasMakerServer.js:2295]  free memory 26104803328
web_1  | (node:72) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
web_1  | [atlasMakerServer.js:2567]  Listening on 8080 { address: '::', family: 'IPv6', port: 8080 }
web_1  | [app.js:316]  'anyone' user correctly configured.