Repository: opencv
Issue: opencv/modules/core/src/parallel.cpp: expected type-specifier before ‘split’  include tbb_stddef.h
Labels: category: build/install,incomplete

- OpenCV => 4.5
- Operating System / Platform => ubuntu20.04
- Compiler => gcc9.3.0


cd /data/software/opencv/build/modules/core && /usr/bin/ccache /usr/bin/c++  -DBOOST_DISABLE_ASSERTS -DCVAPI_EXPORTS -DCV_COLLECT_IMPL_DATA -DHPX_DISABLE_ASSERTS -DHPX_LIBRARY_EXPORTS -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE="long long" -DOPENCV_WITH_ITT=1 -DVK_NO_PROTOTYPES -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/data/software/opencv/build/3rdparty/ippicv/ippicv_lnx/icv/include -I/data/software/opencv/build/3rdparty/ippicv/ippicv_lnx/iw/include -I/data/software/opencv/build -I/data/software/opencv/3rdparty/include -I/data/software/opencv/modules/core/include -I/data/software/opencv/build/modules/core -I/data/software/opencv_contrib/modules/cudev/include -I/data/software/opencv/3rdparty/include/opencl/1.2 -I/data/software/opencv/3rdparty/ittnotify/include -I/data/software/opencv/modules/ts/include -I/data/software/opencv/modules/imgcodecs/include -I/data/software/opencv/modules/videoio/include -I/data/software/opencv/modules/imgproc/include -I/data/software/opencv/modules/highgui/include -I/data/software/opencv/build/modules/core/test -I/usr/lib/x86_64-linux-gnu/libboost_filesystem.so -I/usr/lib/x86_64-linux-gnu/libboost_regex.so -I/usr/lib/x86_64-linux-gnu/libboost_thread.so -I/usr/lib/x86_64-linux-gnu/libboost_python.so -I/usr/lib/x86_64-linux-gnu/libboost_system.so -I/usr/lib/x86_64-linux-gnu/libboost_chrono.so -I/usr/lib/x86_64-linux-gnu/libboost_date_time.so -I/usr/lib/x86_64-linux-gnu/libboost_atomic.so -isystem /usr/include/gdal -isystem /usr/include/coin -isystem /data/bin/intel/oneapi/mkl/latest/include -isystem /usr/local/cuda/include -isystem /usr/include/eigen3  -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread  -pg -g --coverage  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -Wno-undef -Wno-enum-compare -Wno-unused-function -Wno-shadow -O3 -DNDEBUG  -DNDEBUG -fPIC   -w -std=c++11 -o CMakeFiles/opencv_core.dir/src/parallel.cpp.o -c /data/software/opencv/modules/core/src/parallel.cpp


In file included from /data/software/opencv/modules/core/src/parallel.cpp:104:
/usr/include/tbb/tbb_stddef.h:434:14: error: expected type-specifier before ‘split’
  434 |     operator split() const { return split(); }
      |              ^~~~~
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:841: modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/data/software/opencv/build'
make[1]: *** [CMakeFiles/Makefile2:6192: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make[1]: Leaving directory '/data/software/opencv/build'
make: *** [Makefile:166: all] Error 2