Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencv/modules/core/src/parallel.cpp: expected type-specifier before ‘split’ include tbb_stddef.h #19298

Open
xiedeacc opened this issue Jan 9, 2021 · 3 comments

Comments

@xiedeacc
Copy link

xiedeacc commented Jan 9, 2021

  • 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

@xiedeacc
Copy link
Author

xiedeacc commented Jan 9, 2021

split is a class, it seems tbb implement type convert function rightly, so what's wrong?

@xiedeacc
Copy link
Author

xiedeacc commented Jan 9, 2021

it seems caused another tbb under intel oneapi

@asmorkalov
Copy link
Contributor

@xiedeacc Could you bring more details about your setup and CMake cache content related to TBB?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants