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

conda-forge CI Failure end of January 2023 due to OpenCV 4.7.0 update #1328

Closed
traversaro opened this issue Jan 23, 2023 · 4 comments
Closed

Comments

@traversaro
Copy link
Member

Error in conda-forge CI, with high probability due to OpenCV 4.6.0 --> 4.7.0 update:

2023-01-23T03:24:17.0141618Z [103/215] Building CXX object src/Perception/CMakeFiles/PerceptionFeatures.dir/src/ArucoDetector.cpp.o
2023-01-23T03:24:17.0142151Z FAILED: src/Perception/CMakeFiles/PerceptionFeatures.dir/src/ArucoDetector.cpp.o 
2023-01-23T03:24:17.0147419Z /usr/share/miniconda3/envs/test/bin/x86_64-conda-linux-gnu-c++ -DFMT_SHARED -DPerceptionFeatures_EXPORTS -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -DSPDLOG_SHARED_LIB -D_USE_MATH_DEFINES -I/home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/include -I/home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/ParametersHandler/include -I/home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/GenericContainer/include -I/home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/TextLogging/include -I/home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Conversions/include -I/home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/System/include -isystem /home/runner/work/robotology-superbuild/robotology-superbuild/build/install/include -isystem /usr/share/miniconda3/envs/test/include/eigen3 -isystem /usr/share/miniconda3/envs/test/include/opencv4 -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /usr/share/miniconda3/envs/test/include -O3 -DNDEBUG -fPIC -MD -MT src/Perception/CMakeFiles/PerceptionFeatures.dir/src/ArucoDetector.cpp.o -MF src/Perception/CMakeFiles/PerceptionFeatures.dir/src/ArucoDetector.cpp.o.d -o src/Perception/CMakeFiles/PerceptionFeatures.dir/src/ArucoDetector.cpp.o -c /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp
2023-01-23T03:24:17.0151536Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:58:48: error: 'PREDEFINED_DICTIONARY_NAME' is not a member of 'cv::aruco'
2023-01-23T03:24:17.0152212Z    58 |     std::unordered_map<std::string, cv::aruco::PREDEFINED_DICTIONARY_NAME>
2023-01-23T03:24:17.0152573Z       |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0153341Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:58:74: error: template argument 2 is invalid
2023-01-23T03:24:17.0153967Z    58 |     std::unordered_map<std::string, cv::aruco::PREDEFINED_DICTIONARY_NAME>
2023-01-23T03:24:17.0154340Z       |                                                                          ^
2023-01-23T03:24:17.0155078Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:58:74: error: template argument 5 is invalid
2023-01-23T03:24:17.0156254Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:59:45: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0156925Z    59 |         availableDict{{"4X4_50", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_4X4_50},
2023-01-23T03:24:17.0157373Z       |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0158287Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:60:46: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0158937Z    60 |                       {"4X4_100", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_4X4_100},
2023-01-23T03:24:17.0159404Z       |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0160333Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:61:46: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0160983Z    61 |                       {"4X4_250", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_4X4_250},
2023-01-23T03:24:17.0161323Z       |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0162241Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:62:47: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0162884Z    62 |                       {"4X4_1000", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_4X4_1000},
2023-01-23T03:24:17.0163247Z       |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0164142Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:63:45: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0164850Z    63 |                       {"5X5_50", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_5X5_50},
2023-01-23T03:24:17.0165212Z       |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0166142Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:64:46: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0166869Z    64 |                       {"5X5_100", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_5X5_100},
2023-01-23T03:24:17.0167202Z       |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0168053Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:65:46: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0289391Z    65 |                       {"5X5_250", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_5X5_250},
2023-01-23T03:24:17.0289784Z       |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0290905Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:66:47: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0291582Z    66 |                       {"5X5_1000", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_5X5_1000},
2023-01-23T03:24:17.0291948Z       |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0292861Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:67:45: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0293513Z    67 |                       {"6X6_50", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_6X6_50},
2023-01-23T03:24:17.0293870Z       |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0294811Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:68:46: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0295742Z    68 |                       {"6X6_100", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_6X6_100},
2023-01-23T03:24:17.0296104Z       |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0297032Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:69:46: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0297674Z    69 |                       {"6X6_250", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_6X6_250},
2023-01-23T03:24:17.0298009Z       |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0298916Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:70:47: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0299558Z    70 |                       {"6X6_1000", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_6X6_1000},
2023-01-23T03:24:17.0299920Z       |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0300822Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:71:45: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0301468Z    71 |                       {"7X7_50", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_7X7_50},
2023-01-23T03:24:17.0301818Z       |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0302841Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:72:46: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0303503Z    72 |                       {"7X7_100", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_7X7_100},
2023-01-23T03:24:17.0303851Z       |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0304854Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:73:46: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0305456Z    73 |                       {"7X7_250", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_7X7_250},
2023-01-23T03:24:17.0305783Z       |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0306607Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:74:47: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0307213Z    74 |                       {"7X7_1000", cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_7X7_1000},
2023-01-23T03:24:17.0307552Z       |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0308398Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:76:35: error: 'cv::aruco::PREDEFINED_DICTIONARY_NAME' has not been declared
2023-01-23T03:24:17.0309187Z    76 |                        cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_ARUCO_ORIGINAL}};
2023-01-23T03:24:17.0309548Z       |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
2023-01-23T03:24:17.0310413Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:76:83: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization
2023-01-23T03:24:17.0311103Z    76 |                        cv::aruco::PREDEFINED_DICTIONARY_NAME::DICT_ARUCO_ORIGINAL}};
2023-01-23T03:24:17.0311456Z       |                                                                                   ^
2023-01-23T03:24:17.0312656Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp: In member function 'virtual bool BipedalLocomotion::Perception::ArucoDetector::initialize(std::weak_ptr<const BipedalLocomotion::ParametersHandler::IParametersHandler>)':
2023-01-23T03:24:17.0314811Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:105:32: error: request for member 'find' in '((BipedalLocomotion::Perception::ArucoDetector*)this)->BipedalLocomotion::Perception::ArucoDetector::m_pimpl.std::unique_ptr<BipedalLocomotion::Perception::ArucoDetector::Impl>::operator->()->BipedalLocomotion::Perception::ArucoDetector::Impl::availableDict', which is of non-class type 'int'
2023-01-23T03:24:17.0315993Z   105 |     if (m_pimpl->availableDict.find(dictName) == m_pimpl->availableDict.end())
2023-01-23T03:24:17.0316359Z       |                                ^~~~
2023-01-23T03:24:17.0317921Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:105:73: error: request for member 'end' in '((BipedalLocomotion::Perception::ArucoDetector*)this)->BipedalLocomotion::Perception::ArucoDetector::m_pimpl.std::unique_ptr<BipedalLocomotion::Perception::ArucoDetector::Impl>::operator->()->BipedalLocomotion::Perception::ArucoDetector::Impl::availableDict', which is of non-class type 'int'
2023-01-23T03:24:17.0319099Z   105 |     if (m_pimpl->availableDict.find(dictName) == m_pimpl->availableDict.end())
2023-01-23T03:24:17.0319491Z       |                                                                         ^~~
2023-01-23T03:24:17.0321135Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/bipedal-locomotion-framework/src/Perception/src/ArucoDetector.cpp:118:85: error: request for member 'at' in '((BipedalLocomotion::Perception::ArucoDetector*)this)->BipedalLocomotion::Perception::ArucoDetector::m_pimpl.std::unique_ptr<BipedalLocomotion::Perception::ArucoDetector::Impl>::operator->()->BipedalLocomotion::Perception::ArucoDetector::Impl::availableDict', which is of non-class type 'int'
2023-01-23T03:24:17.0322411Z   118 |     m_pimpl->dictionary = cv::aruco::getPredefinedDictionary(m_pimpl->availableDict.at(dictName));
2023-01-23T03:24:17.0322848Z       |                                                                                     ^~
2023-01-23T03:24:17.0323237Z [104/215] Building CXX object src/TSID/CMakeFiles/TSID.dir/src/QPFixedBaseTSID.cpp.o
2023-01-23T03:24:17.0323693Z [105/215] Building CXX object src/TSID/CMakeFiles/TSID.dir/src/QPTSID.cpp.o
2023-01-23T03:24:17.0324062Z ninja: build stopped: subcommand failed.
@traversaro
Copy link
Member Author

I am not sure how fast we can produce a fix for this. Probably we could just constraint opencv to opencv<4.6, and then fix it when we have time.

@traversaro
Copy link
Member Author

Downstream issue: ami-iit/bipedal-locomotion-framework#586 .

@traversaro
Copy link
Member Author

Fixed and removed all the workarounds in #1373 .

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

No branches or pull requests

1 participant