From 51890a67c72aeddbb19b4e0fc5ca34fef716e098 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 24 Apr 2022 14:19:16 -0700 Subject: libeigen,opencv,ceres-solver: Disable altivec on ppc32 It does not compile with altivec TOPDIR/build/tmp/work/ppc7400-yoe-linux-musl/opencv/4.5.5-r0/recipe-sysroot/usr/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h:1345:32: error: use of undeclared identifier 'vec_sqrt'; did you mean 'vec_rsqrt'? BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a); ^~~~~~~~ vec_rsqrt Signed-off-by: Khem Raj --- conf/nonclangable.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 60f052d..ecf5fb6 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -304,6 +304,15 @@ TUNE_CCARGS:remove:pn-pipewire:toolchain-clang = "-Qunused-arguments" TUNE_CCARGS:remove:pn-tesseract:toolchain-clang = "-Qunused-arguments" TUNE_CCARGS:remove:pn-pulseaudio:toolchain-clang = "-Qunused-arguments" +# Disable altivec on ppc32 +#/usr/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h:1345:32: error: use of undeclared identifier 'vec_sqrt'; did you mean 'vec_rsqrt'? +# BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a); +# ^~~~~~~~ +# vec_rsqrt +TUNE_CCARGS:pn-ceres-solver:append:toolchain-clang:powerpc = " -mno-altivec" +TUNE_CCARGS:pn-opencv:append:toolchain-clang:powerpc = " -mno-altivec" +CXXFLAGS:pn-libeigen:append:toolchain-clang:powerpc = " -DEIGEN_ALTIVEC_DISABLE_MMA" + #| /usr/src/debug/ruby/2.5.1-r0/build/../ruby-2.5.1/process.c:7073: undefined reference to `__mulodi4' #| clang-7: error: linker command failed with exit code 1 (use -v to see invocation) COMPILER_RT:pn-ruby:toolchain-clang:runtime-gnu = "-rtlib=compiler-rt ${UNWINDLIB}" -- cgit v1.2.3-54-g00ecf