conda-forge / opencv-feedstock

A conda-smithy repository for opencv.
BSD 3-Clause "New" or "Revised" License
65 stars 60 forks source link

Rebuild libopenvino dev2024 0 1 h50e462 #399

Closed ilya-lavrenov closed 8 months ago

ilya-lavrenov commented 8 months ago

Replacement for https://github.com/conda-forge/opencv-feedstock/pull/397 Ported PR from OpenCV upstream https://github.com/opencv/opencv/pull/25199

Checklist

conda-forge-webservices[bot] commented 8 months ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

ilya-lavrenov commented 8 months ago
Encountered problems while solving:
  - package libopenvino-dev-2024.0.0-hd5fc58b_0 requires libopenvino-tensorflow-frontend 2024.0.0 he1e0747_0, but none of the providers can be installed
hmaarrfk commented 8 months ago

@conda-forge-admin please rerender

hmaarrfk commented 8 months ago

sorry, lets remove the dual protobuf builds, i think it caused some uploads to fail. I'll make the PR to openvino now

hmaarrfk commented 8 months ago

@conda-forge-admin please rerender

hmaarrfk commented 8 months ago

The "real" failure seems to be:

[428/1322] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/mvn_layer.cpp.o
[429/1322] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o
FAILED: modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o 
$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++ -DCVAPI_EXPORTS -DENABLE_PLUGINS -DHAVE_DNN_NGRAPH -DHAVE_FLATBUFFERS=1 -DHAVE_INF_ENGINE -DHAVE_NGRAPH -DHAVE_PROTOBUF=1 -DIE_THREAD=IE_THREAD_TBB -DINF_ENGINE_RELEASE=2024000000 -DOPENCV_DNN_EXTERNAL_PROTOBUF=1 -DOV_THREAD=OV_THREAD_TBB -DPROTOBUF_USE_DLLS -DTBB_PREVIEW_WAITING_FOR_WORKERS=1 -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I$SRC_DIR/build/3rdparty/ippicv/ippicv_lnx/icv/include -I$SRC_DIR/build/3rdparty/ippicv/ippicv_lnx/iw/include -I$SRC_DIR/build -I$SRC_DIR/modules/dnn/include -I$SRC_DIR/build/modules/dnn -I$SRC_DIR/modules/core/include -I$SRC_DIR/modules/imgproc/include -I$SRC_DIR/modules/dnn/misc/tflite -isystem $PREFIX/include/eigen3 -isystem $SRC_DIR/3rdparty/flatbuffers/include -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/libopencv-4.9.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -D__STDC_CONSTANT_MACROS   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wundef -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 -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fopenmp -Wno-deprecated -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter -Wno-sign-compare -Wno-invalid-offsetof -O3 -DNDEBUG  -DNDEBUG -std=c++17 -fPIC -Wno-error=deprecated-declarations -MD -MT modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o -MF modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o.d -o modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o -c $SRC_DIR/modules/dnn/src/layers/nary_eltwise_layers.cpp
$SRC_DIR/modules/dnn/src/layers/nary_eltwise_layers.cpp: In member function 'virtual cv::Ptr<cv::dnn::dnn4_v20231225::BackendNode> cv::dnn::NaryEltwiseLayerImpl::initNgraph(const std::vector<cv::Ptr<cv::dnn::dnn4_v20231225::BackendWrapper> >&, const std::vector<cv::Ptr<cv::dnn::dnn4_v20231225::BackendNode> >&)':
$SRC_DIR/modules/dnn/src/layers/nary_eltwise_layers.cpp:934:35: error: 'FMOD' is not a member of 'cv::dnn::NaryEltwiseLayerImpl::OPERATION'; did you mean 'MOD'?
  934 |         else if (op == OPERATION::FMOD)
      |                                   ^~~~
      |                                   MOD
[430/1322] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/normalize_bbox_layer.cpp.o
h-vetinari commented 8 months ago

AFAICT, OPERATION::FMOD got added in https://github.com/opencv/opencv/commit/c955564cb3f8b28915a3ebe7e5f04d9fb78926bb, which hasn't been in a release yet. Not sure if it's possible to backport that commit as well.

ilya-lavrenov commented 8 months ago

The "real" failure seems to be:

[428/1322] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/mvn_layer.cpp.o
[429/1322] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o
FAILED: modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o 
$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++ -DCVAPI_EXPORTS -DENABLE_PLUGINS -DHAVE_DNN_NGRAPH -DHAVE_FLATBUFFERS=1 -DHAVE_INF_ENGINE -DHAVE_NGRAPH -DHAVE_PROTOBUF=1 -DIE_THREAD=IE_THREAD_TBB -DINF_ENGINE_RELEASE=2024000000 -DOPENCV_DNN_EXTERNAL_PROTOBUF=1 -DOV_THREAD=OV_THREAD_TBB -DPROTOBUF_USE_DLLS -DTBB_PREVIEW_WAITING_FOR_WORKERS=1 -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I$SRC_DIR/build/3rdparty/ippicv/ippicv_lnx/icv/include -I$SRC_DIR/build/3rdparty/ippicv/ippicv_lnx/iw/include -I$SRC_DIR/build -I$SRC_DIR/modules/dnn/include -I$SRC_DIR/build/modules/dnn -I$SRC_DIR/modules/core/include -I$SRC_DIR/modules/imgproc/include -I$SRC_DIR/modules/dnn/misc/tflite -isystem $PREFIX/include/eigen3 -isystem $SRC_DIR/3rdparty/flatbuffers/include -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/libopencv-4.9.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -D__STDC_CONSTANT_MACROS   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wundef -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 -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fopenmp -Wno-deprecated -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter -Wno-sign-compare -Wno-invalid-offsetof -O3 -DNDEBUG  -DNDEBUG -std=c++17 -fPIC -Wno-error=deprecated-declarations -MD -MT modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o -MF modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o.d -o modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o -c $SRC_DIR/modules/dnn/src/layers/nary_eltwise_layers.cpp
$SRC_DIR/modules/dnn/src/layers/nary_eltwise_layers.cpp: In member function 'virtual cv::Ptr<cv::dnn::dnn4_v20231225::BackendNode> cv::dnn::NaryEltwiseLayerImpl::initNgraph(const std::vector<cv::Ptr<cv::dnn::dnn4_v20231225::BackendWrapper> >&, const std::vector<cv::Ptr<cv::dnn::dnn4_v20231225::BackendNode> >&)':
$SRC_DIR/modules/dnn/src/layers/nary_eltwise_layers.cpp:934:35: error: 'FMOD' is not a member of 'cv::dnn::NaryEltwiseLayerImpl::OPERATION'; did you mean 'MOD'?
  934 |         else if (op == OPERATION::FMOD)
      |                                   ^~~~
      |                                   MOD
[430/1322] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/normalize_bbox_layer.cpp.o

Great catch! Updated the patch

hmaarrfk commented 8 months ago
[1141/1322] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/ie/giebackend.cpp.o
FAILED: modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/ie/giebackend.cpp.o 
$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++ -DCVAPI_EXPORTS -DHAVE_DNN_NGRAPH -DHAVE_INF_ENGINE -DHAVE_NGRAPH -DIE_THREAD=IE_THREAD_TBB -DINF_ENGINE_RELEASE=2024000000 -DOPENCV_WITH_ITT=1 -DOV_THREAD=OV_THREAD_TBB -DTBB_PREVIEW_WAITING_FOR_WORKERS=1 -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I$SRC_DIR/build/3rdparty/ippicv/ippicv_lnx/icv/include -I$SRC_DIR/build/3rdparty/ippicv/ippicv_lnx/iw/include -I$SRC_DIR/build -I$SRC_DIR/modules/gapi/include -I$SRC_DIR/build/modules/gapi -I$SRC_DIR/modules/core/include -I$SRC_DIR/modules/flann/include -I$SRC_DIR/modules/imgproc/include -I$SRC_DIR/modules/dnn/include -I$SRC_DIR/modules/features2d/include -I$SRC_DIR/modules/calib3d/include -I$SRC_DIR/modules/video/include -I$SRC_DIR/modules/gapi/src -I$SRC_DIR/modules/gapi/src/3rdparty/vasot/include -I$SRC_DIR/3rdparty/ittnotify/include -I$SRC_DIR/build/3rdparty/ade/ade-0.1.2d/sources/ade/include -isystem $PREFIX/include/eigen3 -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/libopencv-4.9.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -D__STDC_CONSTANT_MACROS   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -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 -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fopenmp -O3 -DNDEBUG  -DNDEBUG -std=c++17 -fPIC -Wno-error=deprecated-declarations -MD -MT modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/ie/giebackend.cpp.o -MF modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/ie/giebackend.cpp.o.d -o modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/ie/giebackend.cpp.o -c $SRC_DIR/modules/gapi/src/backends/ie/giebackend.cpp
In file included from $SRC_DIR/modules/gapi/src/backends/ie/giebackend.cpp:11:
$SRC_DIR/modules/gapi/src/backends/ie/giebackend.hpp:18:10: fatal error: inference_engine.hpp: No such file or directory
   18 | #include <inference_engine.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[1142/1322] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/ocl/goclcore.cpp.o
ninja: build stopped: subcommand failed.
hmaarrfk commented 8 months ago

@conda-forge-admin please rerender

github-actions[bot] commented 8 months ago

Hi! This is the friendly conda-forge automerge bot!

I considered the following status checks when analyzing this PR:

Thus the PR was passing and merged! Have a great day!

hmaarrfk commented 8 months ago

why was this merged? only python 3.11 was built.

ilya-lavrenov commented 8 months ago

Good question, for some reason replacement PR https://github.com/conda-forge/opencv-feedstock/pull/397 was also merged

hmaarrfk commented 8 months ago

The "why" it was merged was more: "why did you add auto-merge for the bot to merge it automatically".

It was a "nice" way to ask if you forgot to rerender after removing the skips.

397 was likely merged because github detected similarity???

hmaarrfk commented 8 months ago

https://github.com/conda-forge/opencv-feedstock/pull/403 should address the missing builds.