Public bug reported:
A build failure occurs when building OpenCV on riscv64: https://launchpad.net/ubuntu/+source/opencv/4.10.0+dfsg-6ubuntu1/+build/31403356 /<<PKGBUILDDIR>>/modules/core/include/opencv2/core/hal/intrin_rvv.hpp: In function ‘void cv::hal_baseline::v_rshr_pack_u_store(uchar*, const v_int16x8&)’: /<<PKGBUILDDIR>>/modules/core/include/opencv2/core/hal/intrin_rvv_010_compat_non-policy.hpp:18935:53: error: too few arguments to function ‘vuint8m1_t __riscv_vnclipu_wx_u8m1(vuint16m2_t, long unsigned int, unsigned int, long unsigned int)’ [-Wtemplate-body] 18935 | #define vnclipu_wx_u8m1(...) __riscv_vnclipu_wx_u8m1(__VA_ARGS__) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /<<PKGBUILDDIR>>/modules/core/include/opencv2/core/hal/intrin_rvv.hpp:2492:25: note: in expansion of macro ‘vnclipu_wx_u8m1’ 2492 | v_store(ptr, _Tpvec(rshr(cast(vmax_vx_##suffix##m2(vle##width##_v_##suffix##m2(arr, vl), 0, vl)), n, vl))); \ | ^~~~ /<<PKGBUILDDIR>>/modules/core/include/opencv2/core/hal/intrin_rvv.hpp:2495:1: note: in expansion of macro ‘OPENCV_HAL_IMPL_RVV_PACK_U’ 2495 | OPENCV_HAL_IMPL_RVV_PACK_U(v_uint8x16, uchar, v_int16x8, short, 8, 16, u8, i16, vnclipu_wx_u8m1, vreinterpret_v_i16m2_u16m2, 8, 16) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ** Affects: opencv (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2130009 Title: opencv fails to build on riscv64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/opencv/+bug/2130009/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
