System information (version)
- OpenCV => master, 834c992
- Operating System / Platform => Ubuntu 18.04, Power 9
- Compiler => clang version 10.0.0 (git@github.com:llvm/llvm-project.git 2f51a43f8c2b117e69a45eae6a7c849e035a793b)
Detailed description
On compilation, clang fails to compile due to an ambiguous call to vec_popcntu. Cut down error message follows but I can prepare a longer dump if need be:
In file included from .../opencv/modules/core/src/algorithm.cpp:43:
In file included from .../opencv/modules/core/src/precomp.hpp:85:
In file included from .../opencv/modules/core/include/opencv2/core/hal/intrin.hpp:186:
.../opencv/modules/core/include/opencv2/core/hal/intrin_vsx.hpp:841:21: error: call to 'vec_popcntu' is ambiguous
{ return v_uint64x2(vec_popcntu(a.val)); }
^~~~~~~~~~~
.../opencv/modules/core/include/opencv2/core/vsx_utils.hpp:363:1: note: candidate function
^
In file included from .../opencv/modules/core/src/algorithm.cpp:43:
In file included from .../opencv/modules/core/src/precomp.hpp:85:
In file included from .../opencv/modules/core/include/opencv2/core/hal/intrin.hpp:186:
.../opencv/modules/core/include/opencv2/core/hal/intrin_vsx.hpp:843:21: error: call to 'vec_popcntu' is ambiguous
{ return v_uint64x2(vec_popcntu(a.val)); }
I've prepared a solution, pull request to follow.
Steps to reproduce
- Checkout opencv.
- Make build directory.
cmake <path to source> -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
make -j###
- Receive above error message.
System information (version)
Detailed description
On compilation, clang fails to compile due to an ambiguous call to vec_popcntu. Cut down error message follows but I can prepare a longer dump if need be:
I've prepared a solution, pull request to follow.
Steps to reproduce
cmake <path to source> -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clangmake -j###