Package: src:node-opencv Version: 6.0.0-2 Severity: serious Tags: ftbfs Hello Mattia.
I tried to build this package in sid but it failed: -------------------------------------------------------------------------------- [...] debian/rules build-arch dh build-arch --with nodejs dh_update_autotools_config -a dh_autoreconf -a debian/rules override_dh_auto_configure make[1]: Entering directory '/<<PKGBUILDDIR>>' find /<<PKGBUILDDIR>> -name '*.xml' -exec chmod a-x {} \; find /<<PKGBUILDDIR>> -name '*.html' -exec chmod a-x {} \; find /<<PKGBUILDDIR>> -name '*.gyp' -exec chmod a-x {} \; find /<<PKGBUILDDIR>> -name '*.md' -exec chmod a-x {} \; find /<<PKGBUILDDIR>> -name '*.png' -exec chmod a-x {} \; find /<<PKGBUILDDIR>> -name '*.jpg' -exec chmod a-x {} \; find /<<PKGBUILDDIR>> -name '*.h' -exec chmod a-x {} \; chmod a-x examples/make-example-files.sh [... snipped ...] ../src/Matrix.cc:2633:69: warning: 'v8::Local<v8::Object> v8::Value::ToObject() const' is deprecated: Use maybe version [-Wdeprecated-declarations] Matrix *other = Nan::ObjectWrap::Unwrap<Matrix>(info[0]->ToObject()); ^ In file included from ../src/OpenCV.h:14, from ../src/Contours.h:1, from ../src/Matrix.cc:1: /usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const { ^~~~~ /usr/include/nodejs/deps/v8/include/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]': /usr/include/nodejs/src/node_object_wrap.h:85:78: required from here /usr/include/nodejs/deps/v8/include/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type] reinterpret_cast<Callback>(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/nodejs/deps/v8/include/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]': /usr/include/nan_object_wrap.h:66:61: required from here /usr/include/nodejs/deps/v8/include/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type] make[2]: *** [opencv.target.mk:122: Release/obj.target/opencv/src/Matrix.o] Error 1 make[2]: Leaving directory '/<<PKGBUILDDIR>>/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Linux 4.9.0-8-amd64 gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "build" "--module=/<<PKGBUILDDIR>>/build/opencv/v6.0.0/Release/node-v64-linux-x64/opencv.node" "--module_name=opencv" "--module_path=/<<PKGBUILDDIR>>/build/opencv/v6.0.0/Release/node-v64-linux-x64" "--napi_version=3" "--node_abi_napi=napi" gyp ERR! cwd /<<PKGBUILDDIR>> gyp ERR! node -v v10.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp build --module=/<<PKGBUILDDIR>>/build/opencv/v6.0.0/Release/node-v64-linux-x64/opencv.node --module_name=opencv --module_path=/<<PKGBUILDDIR>>/build/opencv/v6.0.0/Release/node-v64-linux-x64 --napi_version=3 --node_abi_napi=napi' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/nodejs/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) node-pre-gyp ERR! System Linux 4.9.0-8-amd64 node-pre-gyp ERR! command "/usr/bin/node" "/usr/bin/node-pre-gyp" "build" node-pre-gyp ERR! cwd /<<PKGBUILDDIR>> node-pre-gyp ERR! node -v v10.15.0 node-pre-gyp ERR! node-pre-gyp -v v0.10.2 node-pre-gyp ERR! not ok Failed to execute 'node-gyp build --module=/<<PKGBUILDDIR>>/build/opencv/v6.0.0/Release/node-v64-linux-x64/opencv.node --module_name=opencv --module_path=/<<PKGBUILDDIR>>/build/opencv/v6.0.0/Release/node-v64-linux-x64 --napi_version=3 --node_abi_napi=napi' (1) make[1]: *** [debian/rules:26: override_dh_auto_build] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:8: build-arch] Error 2 dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2 -------------------------------------------------------------------------------- This is just how the build ends and maybe not the most relevant part, so I've put the full build log here: https://people.debian.org/~sanvila/build-logs/node-opencv/ A very similar error happens here in the official buildds: https://buildd.debian.org/status/package.php?p=node%2dopencv I guess the time elapsed between it was uploaded and it was accepted by ftpmaster has something to do with this. If this is really a bug in one of the build-depends, please use reassign and affects, so that this is still visible in the BTS web page for this package. Thanks.