summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-04-24 14:19:16 -0700
committerKhem Raj <raj.khem@gmail.com>2022-04-24 17:50:57 -0700
commit51890a67c72aeddbb19b4e0fc5ca34fef716e098 (patch)
treedf523dd28f661c649ca963f86f70b23228bbde5b /conf
parent02daae4d37d795f505116d2badf26e8a74d93ec0 (diff)
downloadmeta-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>
Diffstat (limited to 'conf')
-rw-r--r--conf/nonclangable.conf9
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"
304TUNE_CCARGS:remove:pn-tesseract:toolchain-clang = "-Qunused-arguments" 304TUNE_CCARGS:remove:pn-tesseract:toolchain-clang = "-Qunused-arguments"
305TUNE_CCARGS:remove:pn-pulseaudio:toolchain-clang = "-Qunused-arguments" 305TUNE_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
312TUNE_CCARGS:pn-ceres-solver:append:toolchain-clang:powerpc = " -mno-altivec"
313TUNE_CCARGS:pn-opencv:append:toolchain-clang:powerpc = " -mno-altivec"
314CXXFLAGS: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)
309COMPILER_RT:pn-ruby:toolchain-clang:runtime-gnu = "-rtlib=compiler-rt ${UNWINDLIB}" 318COMPILER_RT:pn-ruby:toolchain-clang:runtime-gnu = "-rtlib=compiler-rt ${UNWINDLIB}"