Skip to content

ppc64le: build failure on GCC <= 7 and clang <= 6  #15506

@seiko2plus

Description

@seiko2plus
System information (version)
Detailed description
GCC ERROR (resovled by #15511)
In file included from /worker/buildbot/Power9_Linux_gcc-7__opencv/opencv/modules/core/src/matmul.dispatch.cpp:50:0:
/worker/buildbot/Power9_Linux_gcc-7__opencv/opencv/modules/core/src/matmul.simd.hpp: In function 'double cv::cpu_baseline::dotProd_32s(const int*, const int*, int)':
/worker/buildbot/Power9_Linux_gcc-7__opencv/opencv/modules/core/src/matmul.simd.hpp:2511:55: error: invalid parameter combination for AltiVec intrinsic __builtin_vec_mule
         a += v_cvt_f64(v_int64(vec_mule(s1.val, s2.val)));
                                                       ^
/worker/buildbot/Power9_Linux_gcc-7__opencv/opencv/modules/core/src/matmul.simd.hpp:2512:55: error: invalid parameter combination for AltiVec intrinsic __builtin_vec_mulo
         b += v_cvt_f64(v_int64(vec_mulo(s1.val, s2.val)));
                                                       ^
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:558: modules/core/CMakeFiles/opencv_core.dir/src/matmul.dispatch.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[  7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/source_context.pb.cc.o

CI:

CLANG ERROR (should be resolved by #15510 )
In file included from /worker/buildbot/Power8_Linux_clang-4__opencv/opencv/modules/core/src/matmul.dispatch.cpp:44:
In file included from /worker/buildbot/Power8_Linux_clang-4__opencv/opencv/modules/core/src/precomp.hpp:85:
In file included from /worker/buildbot/Power8_Linux_clang-4__opencv/opencv/modules/core/include/opencv2/core/hal/intrin.hpp:186:
/worker/buildbot/Power8_Linux_clang-4__opencv/opencv/modules/core/include/opencv2/core/hal/intrin_vsx.hpp:1047:10: error: invalid operand in inline asm: 'xvcvsxddp ${0:x},${1:x}'
__asm__ ("xvcvsxddp %x0,%x1" : "=wa"(out) : "wa"(a.val));
         ^
/worker/buildbot/Power8_Linux_clang-4__opencv/opencv/modules/core/include/opencv2/core/hal/intrin_vsx.hpp:1047:10: error: invalid operand in inline asm: 'xvcvsxddp ${0:x},${1:x}'
/worker/buildbot/Power8_Linux_clang-4__opencv/opencv/modules/core/include/opencv2/core/hal/intrin_vsx.hpp:1047:10: error: unknown operand
<inline asm>:1:12: note: instantiated into assembly here
        xvcvsxddp ,
                  ^
In file included from /worker/buildbot/Power8_Linux_clang-4__opencv/opencv/modules/core/src/matmul.dispatch.cpp:44:
In file included from /worker/buildbot/Power8_Linux_clang-4__opencv/opencv/modules/core/src/precomp.hpp:85:
In file included from /worker/buildbot/Power8_Linux_clang-4__opencv/opencv/modules/core/include/opencv2/core/hal/intrin.hpp:186:
/worker/buildbot/Power8_Linux_clang-4__opencv/opencv/modules/core/include/opencv2/core/hal/intrin_vsx.hpp:1047:10: error: invalid operand in inline asm: 'xvcvsxddp ${0:x},${1:x}'
__asm__ ("xvcvsxddp %x0,%x1" : "=wa"(out) : "wa"(a.val));
         ^
/worker/buildbot/Power8_Linux_clang-4__opencv/opencv/modules/core/include/opencv2/core/hal/intrin_vsx.hpp:1047:10: error: invalid operand in inline asm: 'xvcvsxddp ${0:x},${1:x}'
/worker/buildbot/Power8_Linux_clang-4__opencv/opencv/modules/core/include/opencv2/core/hal/intrin_vsx.hpp:1047:10: error: unknown operand
<inline asm>:1:12: note: instantiated into assembly here
        xvcvsxddp ,

CI:

Steps to reproduce

build OpenCV on ppc64le

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions