-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Description
System Information
After the merge 4a9b0f2 which upgraded TBB version, OpenCV cant be compiled.
I'm compiling it in Ubuntu 22.04
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Detailed description
[ 3%] Building CXX object 3rdparty/tbb/CMakeFiles/tbb.dir/oneTBB-2021.11.0/src/tbb/arena.cpp.o
In file included from /usr/lib/gcc/x86_64-linux-gnu/11/include/x86gprintrin.h:89,
from /usr/lib/gcc/x86_64-linux-gnu/11/include/immintrin.h:27,
from /tf/opencv/build/3rdparty/tbb/oneTBB-2021.11.0/include/oneapi/tbb/detail/_machine.h:44,
from /tf/opencv/build/3rdparty/tbb/oneTBB-2021.11.0/include/oneapi/tbb/detail/_utils.h:27,
from /tf/opencv/build/3rdparty/tbb/oneTBB-2021.11.0/src/tbb/task_dispatcher.h:20,
from /tf/opencv/build/3rdparty/tbb/oneTBB-2021.11.0/src/tbb/arena.cpp:17:
/usr/lib/gcc/x86_64-linux-gnu/11/include/waitpkgintrin.h: In function ‘void tbb::detail::r1::prolonged_pause()’:
/usr/lib/gcc/x86_64-linux-gnu/11/include/waitpkgintrin.h:53:1: error: inlining failed in call to ‘always_inline’ ‘unsigned char _tpause(unsigned int, long long unsigned int)’: target specific option mismatch
Steps to reproduce
clone repository
cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D INSTALL_C_EXAMPLES=OFF
-D INSTALL_PYTHON_EXAMPLES=OFF
-D OPENCV_GENERATE_PKGCONFIG=ON
-D OPENCV_EXTRA_MODULES_PATH=/tf/opencv_contrib/modules
-D BUILD_EXAMPLES=OFF ..
-D WITH_OPENMP=ON
-D WITH_FFMPEG=ON
-D WITH_OPENCL=OFF
-D BUILD_ZLIB=ON
-D BUILD_TIFF=ON
-D WITH_FFMPEG=ON
-D WITH_TBB=ON
-D BUILD_TBB=ON
-D BUILD_TESTS=OFF
-D WITH_EIGEN=OFF
-D WITH_GSTREAMER=ON
-D WITH_V4L=ON
-D WITH_LIBV4L=ON
-D WITH_VTK=OFF
-D WITH_GTK=ON
-D WITH_QT=OFF
-D ENABLE_CXX11=ON
-D OPENCV_ENABLE_NONFREE=ON
-D OPENCV_GENERATE_PKGCONFIG=ON
-D ENABLE_NEON=OFF
-D BUILD_TIFF=ON
-D WITH_PROTOBUF=ON
-D BUILD_PROTOBUF=OFF
-D PROTOBUF_UPDATE_FILES=ON
-D OPENCV_ENABLE_NONFREE=ON
-D PYTHON3_PACKAGES_PATH=/usr/lib/python3/dist-packages
-D WITH_CUDA=ON
-D CUDNN_LIBRARY="/usr/local/cuda/lib64/libcudnn.so"
-D CUDNN_INCLUDE_DIR="/usr/local/cuda/include"
-D BUILD_opencv_cudacodec=ON
-D WITH_CUDNN=ON
-D OPENCV_DNN_CUDA=ON
-D ENABLE_FAST_MATH=1
-D CUDA_FAST_MATH=1
-D CUDA_ARCH_BIN=8.6
-D WITH_CUBLAS=1
make
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- I updated to the latest OpenCV version and the issue is still there
- There is reproducer code and related data files (videos, images, onnx, etc)