Bug#1116253: opencv fails to build on ppc64el

Patrick Franz <[email protected]>
Newsgroups gmane.linux.debian.ports.powerpc
Message-ID <175873985544.1106293.14896993871590199424.reportbug__39920.17170401$1758739892$gmane$org@treadstone-71>
Source: opencv
Version: 4.10.0+dfsg-5
Severity: serious
X-Debbugs-Cc: [email protected], [email protected]
User: [email protected]
Usertags: ppc64el

Dear Maintainer,

opencv fails to build on ppc64el with the following error:

---
/usr/bin/c++ -DCVAPI_EXPORTS -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/obj-powerpc64le-linux-gnu -I/home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/include -I/home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/obj-powerpc64le-linux-gnu/modules/core -I/usr/include/CL -isystem /usr/include/gdal -isystem /usr/include/eigen3 -g -O2 -ffile-prefix-map=/home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -mcpu=power8 -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security  -DNDEBUG -std=c++11 -fPIC -MD -MT modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.o -MF modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.o.d -o modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.o -c /home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/src/arithm.cpp
In file included from /home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/include/opencv2/core/base.hpp:661,
                 from /home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/include/opencv2/core.hpp:53,
                 from /home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/include/opencv2/core/utility.hpp:56,
                 from /home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/src/precomp.hpp:53,
                 from /home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/src/arithm.cpp:50:
/home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/include/opencv2/core/vsx_utils.hpp: In function ‘vec_float4 vec_cvfo(const vec_double2&)’:
/home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/include/opencv2/core/vsx_utils.hpp:260:54: error: ‘__builtin_vsx_xvcvdpsp’ was not declared in this scope; did you mean ‘__builtin_vsx_xscvdpsp’?
  260 | VSX_REDIRECT_1RG(vec_float4,  vec_double2, vec_cvfo, __builtin_vsx_xvcvdpsp)
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~
/home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/include/opencv2/core/vsx_utils.hpp:102:43: note: in definition of macro ‘VSX_REDIRECT_1RG’
  102 | VSX_FINLINE(rt) fnm(const rg& a) { return fn2(a); }
      |                                           ^~~
/home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/include/opencv2/core/vsx_utils.hpp: In function ‘vec_double2 vec_cvfo(const vec_float4&)’:
/home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/include/opencv2/core/vsx_utils.hpp:261:54: error: ‘__builtin_vsx_xvcvspdp’ was not declared in this scope; did you mean ‘__builtin_vsx_xscvspdp’?
  261 | VSX_REDIRECT_1RG(vec_double2, vec_float4,  vec_cvfo, __builtin_vsx_xvcvspdp)
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~
/home/deltaone/opencv_sid_ppc64el/opencv-4.10.0+dfsg/modules/core/include/opencv2/core/vsx_utils.hpp:102:43: note: in definition of macro ‘VSX_REDIRECT_1RG’
  102 | VSX_FINLINE(rt) fnm(const rg& a) { return fn2(a); }
---

This affects reverse dependencies as they cannot be built either.


-- 
Med vänliga hälsningar

Patrick Franz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.