diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-04-24 14:19:16 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-04-24 17:50:57 -0700 |
commit | 51890a67c72aeddbb19b4e0fc5ca34fef716e098 (patch) | |
tree | df523dd28f661c649ca963f86f70b23228bbde5b | |
parent | 02daae4d37d795f505116d2badf26e8a74d93ec0 (diff) | |
download | meta-clang-51890a67c72aeddbb19b4e0fc5ca34fef716e098.tar.gz |
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 <raj.khem@gmail.com>
-rw-r--r-- | conf/nonclangable.conf | 9 |
1 files changed, 9 insertions, 0 deletions
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" | |||
304 | TUNE_CCARGS:remove:pn-tesseract:toolchain-clang = "-Qunused-arguments" | 304 | TUNE_CCARGS:remove:pn-tesseract:toolchain-clang = "-Qunused-arguments" |
305 | TUNE_CCARGS:remove:pn-pulseaudio:toolchain-clang = "-Qunused-arguments" | 305 | TUNE_CCARGS:remove:pn-pulseaudio:toolchain-clang = "-Qunused-arguments" |
306 | 306 | ||
307 | # Disable altivec on ppc32 | ||
308 | #/usr/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h:1345:32: error: use of undeclared identifier 'vec_sqrt'; did you mean 'vec_rsqrt'? | ||
309 | # BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a); | ||
310 | # ^~~~~~~~ | ||
311 | # vec_rsqrt | ||
312 | TUNE_CCARGS:pn-ceres-solver:append:toolchain-clang:powerpc = " -mno-altivec" | ||
313 | TUNE_CCARGS:pn-opencv:append:toolchain-clang:powerpc = " -mno-altivec" | ||
314 | CXXFLAGS:pn-libeigen:append:toolchain-clang:powerpc = " -DEIGEN_ALTIVEC_DISABLE_MMA" | ||
315 | |||
307 | #| /usr/src/debug/ruby/2.5.1-r0/build/../ruby-2.5.1/process.c:7073: undefined reference to `__mulodi4' | 316 | #| /usr/src/debug/ruby/2.5.1-r0/build/../ruby-2.5.1/process.c:7073: undefined reference to `__mulodi4' |
308 | #| clang-7: error: linker command failed with exit code 1 (use -v to see invocation) | 317 | #| clang-7: error: linker command failed with exit code 1 (use -v to see invocation) |
309 | COMPILER_RT:pn-ruby:toolchain-clang:runtime-gnu = "-rtlib=compiler-rt ${UNWINDLIB}" | 318 | COMPILER_RT:pn-ruby:toolchain-clang:runtime-gnu = "-rtlib=compiler-rt ${UNWINDLIB}" |