Bug#828928: opencv: FTBFS with gcc-6 and glibc 2.23

Daniel Schepler dschepler at gmail.com
Wed Jun 29 02:57:53 UTC 2016


Source: opencv
Version: 2.4.9.1+dfsg-2
Severity: important

>From my pbuilder build log, using a chroot preferring gcc-defaults and
glibc from experimental:

...
/build/opencv-2.4.9.1+dfsg/modules/contrib/src/chamfermatching.cpp: In
member function 'void
cv::ChamferMatcher::Matching::computeDistanceTransform(cv::Mat&,
cv::Mat&, cv::Mat&, float, float, float)':
/build/opencv-2.4.9.1+dfsg/modules/contrib/src/chamfermatching.cpp:969:30:
error: the compiler can assume that the address of 'annotate_img' will
never be NULL [-Werror=address]
             if (&annotate_img!=NULL) {
                              ^
/build/opencv-2.4.9.1+dfsg/modules/contrib/src/chamfermatching.cpp:1016:34:
error: the compiler can assume that the address of 'annotate_img' will
never be NULL [-Werror=address]
                 if (&annotate_img!=NULL) {
                                  ^
/build/opencv-2.4.9.1+dfsg/modules/contrib/src/chamfermatching.cpp: In
member function 'cv::ChamferMatcher::Match*
cv::ChamferMatcher::Matching::localChamferDistance(cv::Point,
cv::Mat&, cv::Mat&, cv::ChamferMatcher::Template*, float)':
/build/opencv-2.4.9.1+dfsg/modules/contrib/src/chamfermatching.cpp:1111:25:
error: the compiler can assume that the address of 'orientation_img'
will never be NULL [-Werror=address]
     if (&orientation_img!=NULL) {
                         ^
/build/opencv-2.4.9.1+dfsg/modules/contrib/src/chamfermatching.cpp:1111:5:
warning: nonnull argument 'orientation_img' compared to NULL
[-Wnonnull-compare]
     if (&orientation_img!=NULL) {
     ^~
/build/opencv-2.4.9.1+dfsg/modules/contrib/src/chamfermatching.cpp: In
member function 'void
cv::ChamferMatcher::Matching::computeDistanceTransform(cv::Mat&,
cv::Mat&, cv::Mat&, float, float, float)':
/build/opencv-2.4.9.1+dfsg/modules/contrib/src/chamfermatching.cpp:1016:17:
warning: nonnull argument 'annotate_img' compared to NULL
[-Wnonnull-compare]
                 if (&annotate_img!=NULL) {
                 ^~
/build/opencv-2.4.9.1+dfsg/modules/contrib/src/chamfermatching.cpp:969:13:
warning: nonnull argument 'annotate_img' compared to NULL
[-Wnonnull-compare]
             if (&annotate_img!=NULL) {
             ^~
cc1plus: some warnings being treated as errors
modules/contrib/CMakeFiles/opencv_contrib.dir/build.make:377: recipe
for target 'modules/contrib/CMakeFiles/opencv_contrib.dir/src/chamfermatching.cpp.o'
failed
make[3]: *** [modules/contrib/CMakeFiles/opencv_contrib.dir/src/chamfermatching.cpp.o]
Error 1
make[3]: Leaving directory '/build/opencv-2.4.9.1+dfsg/obj-x86_64-linux-gnu'
CMakeFiles/Makefile2:1987: recipe for target
'modules/contrib/CMakeFiles/opencv_contrib.dir/all' failed
make[2]: *** [modules/contrib/CMakeFiles/opencv_contrib.dir/all] Error 2
make[2]: Leaving directory '/build/opencv-2.4.9.1+dfsg/obj-x86_64-linux-gnu'
Makefile:152: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/build/opencv-2.4.9.1+dfsg/obj-x86_64-linux-gnu'
dh_auto_build: make -j1 returned exit code 2
debian/rules:75: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
-- 
Daniel Schepler



More information about the debian-science-maintainers mailing list