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

ROBOTOLOGY_USES_IGNITION compilation error in CI #898

Closed
traversaro opened this issue Oct 5, 2021 · 1 comment · Fixed by #899
Closed

ROBOTOLOGY_USES_IGNITION compilation error in CI #898

traversaro opened this issue Oct 5, 2021 · 1 comment · Fixed by #899

Comments

@traversaro
Copy link
Member

See https://github.com/robotology/robotology-superbuild/runs/3802090222?check_suite_focus=true .

2021-10-05T10:53:31.9101990Z -- Looking for ignition-fuel_tools5 -- found version 5.1.1
2021-10-05T10:53:31.9103027Z -- Found SWIG: /usr/bin/swig4.0 (found suitable version "4.0.1", minimum required is "4.0")  
2021-10-05T10:53:31.9103828Z -- Configuring done
2021-10-05T10:53:31.9104432Z -- Generating done
2021-10-05T10:53:31.9105657Z -- Build files have been written to: /home/runner/work/robotology-superbuild/robotology-superbuild/build/src/gym-ignition
2021-10-05T10:54:20.3564005Z [243/368] Performing build step for 'gym-ignition'
2021-10-05T10:54:20.3566121Z FAILED: src/gym-ignition/CMakeFiles/YCMStamp/gym-ignition-build /home/runner/work/robotology-superbuild/robotology-superbuild/build/src/gym-ignition/CMakeFiles/YCMStamp/gym-ignition-build 
2021-10-05T10:54:20.3579971Z cd /home/runner/work/robotology-superbuild/robotology-superbuild/build/src/gym-ignition && /usr/share/miniconda3/envs/test/bin/cmake --build . && /usr/share/miniconda3/envs/test/bin/cmake -E touch /home/runner/work/robotology-superbuild/robotology-superbuild/build/src/gym-ignition/CMakeFiles/YCMStamp/gym-ignition-build
2021-10-05T10:54:20.3583057Z [1/30] Building CXX object scenario/deps/CMakeFiles/tiny-process-library.dir/__/__/_deps/tinyprocesslibrary-src/process.cpp.o
2021-10-05T10:54:20.3584432Z [2/30] Building CXX object scenario/src/core/CMakeFiles/CoreUtils.dir/src/utils.cpp.o
2021-10-05T10:54:20.3585473Z [3/30] Building CXX object scenario/src/core/CMakeFiles/CoreUtils.dir/src/signals.cpp.o
2021-10-05T10:54:20.3586374Z [4/30] Linking CXX shared library lib/libCoreUtils.so
2021-10-05T10:54:20.3587846Z [5/30] Building CXX object scenario/deps/CMakeFiles/tiny-process-library.dir/__/__/_deps/tinyprocesslibrary-src/process_unix.cpp.o
2021-10-05T10:54:20.3589272Z [6/30] Building CXX object scenario/src/gazebo/CMakeFiles/ScenarioGazebo.dir/src/World.cpp.o
2021-10-05T10:54:20.3590394Z FAILED: scenario/src/gazebo/CMakeFiles/ScenarioGazebo.dir/src/World.cpp.o 
2021-10-05T10:54:20.3604270Z /usr/share/miniconda3/envs/test/bin/x86_64-conda-linux-gnu-c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_QML_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DScenarioGazebo_EXPORTS -I/home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/gazebo/include -I/home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/core/include -isystem /usr/share/miniconda3/envs/test/include/ignition/gazebo4 -isystem /usr/share/miniconda3/envs/test/include/ignition/math6 -isystem /usr/share/miniconda3/envs/test/include/ignition/plugin1 -isystem /usr/share/miniconda3/envs/test/include/ignition/cmake2 -isystem /usr/share/miniconda3/envs/test/include/ignition/common3 -isystem /usr/share/miniconda3/envs/test/include/uuid -isystem /usr/share/miniconda3/envs/test/include/ignition/fuel_tools5 -isystem /usr/share/miniconda3/envs/test/include/ignition/msgs6 -isystem /usr/share/miniconda3/envs/test/include/ignition/gui4 -isystem /usr/share/miniconda3/envs/test/include/eigen3 -isystem /usr/share/miniconda3/envs/test/include/ignition/transport9 -isystem /usr/share/miniconda3/envs/test/include/qt -isystem /usr/share/miniconda3/envs/test/include/qt/QtCore -isystem /usr/share/miniconda3/envs/test/./mkspecs/linux-g++ -isystem /usr/share/miniconda3/envs/test/include/qt/QtQml -isystem /usr/share/miniconda3/envs/test/include/qt/QtNetwork -isystem /usr/share/miniconda3/envs/test/include/qt/QtQuick -isystem /usr/share/miniconda3/envs/test/include/qt/QtGui -isystem /usr/share/miniconda3/envs/test/include/qt/QtQuickControls2 -isystem /usr/share/miniconda3/envs/test/include/qt/QtWidgets -isystem /usr/share/miniconda3/envs/test/include/sdformat-10.5/sdf/.. -isystem /usr/share/miniconda3/envs/test/include/ignition/physics3 -fvisibility-inlines-hidden -std=c++17 -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 -I/usr/share/miniconda3/envs/test/include/uuid -I/usr/share/miniconda3/envs/test/include -fPIC -std=c++17 -MD -MT scenario/src/gazebo/CMakeFiles/ScenarioGazebo.dir/src/World.cpp.o -MF scenario/src/gazebo/CMakeFiles/ScenarioGazebo.dir/src/World.cpp.o.d -o scenario/src/gazebo/CMakeFiles/ScenarioGazebo.dir/src/World.cpp.o -c /home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/gazebo/src/World.cpp
2021-10-05T10:54:20.3618506Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/gazebo/src/World.cpp: In member function 'bool scenario::gazebo::World::Impl::insertModel(const std::shared_ptr<sdf::v10::Root>&, const scenario::core::Pose&, const string&, scenario::gazebo::World&)':
2021-10-05T10:54:20.3621603Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/gazebo/src/World.cpp:88:50: error: 'using element_type = class sdf::v10::Root' {aka 'class sdf::v10::Root'} has no member named 'Model'
2021-10-05T10:54:20.3623476Z    88 |             finalModelEntityName = modelSdfRoot->Model()->Name();
2021-10-05T10:54:20.3624157Z       |                                                  ^~~~~
2021-10-05T10:54:20.3626102Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/gazebo/src/World.cpp:108:47: error: 'using element_type = class sdf::v10::Root' {aka 'class sdf::v10::Root'} has no member named 'Model'
2021-10-05T10:54:20.3627868Z   108 |         const_cast<sdf::Model*>(modelSdfRoot->Model())
2021-10-05T10:54:20.3628424Z       |                                               ^~~~~
2021-10-05T10:54:20.3630350Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/gazebo/src/World.cpp:127:66: error: 'using element_type = class sdf::v10::Root' {aka 'class sdf::v10::Root'} has no member named 'Model'
2021-10-05T10:54:20.3632117Z   127 |             this->sdfEntityCreator->CreateEntities(modelSdfRoot->Model());
2021-10-05T10:54:20.3632877Z       |                                                                  ^~~~~
2021-10-05T10:54:20.3634813Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/gazebo/src/World.cpp:134:54: error: 'using element_type = class sdf::v10::Root' {aka 'class sdf::v10::Root'} has no member named 'Model'
2021-10-05T10:54:20.3636646Z   134 |             std::string modelNameSDF = modelSdfRoot->Model()->Name();
2021-10-05T10:54:20.3637292Z       |                                                      ^~~~~
2021-10-05T10:54:20.3638205Z [7/30] Building CXX object scenario/src/gazebo/CMakeFiles/GazeboSimulator.dir/src/GazeboSimulator.cpp.o
2021-10-05T10:54:20.3639639Z FAILED: scenario/src/gazebo/CMakeFiles/GazeboSimulator.dir/src/GazeboSimulator.cpp.o 
2021-10-05T10:54:20.3654527Z /usr/share/miniconda3/envs/test/bin/x86_64-conda-linux-gnu-c++ -DGazeboSimulator_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_QML_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -I/home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/gazebo/include -I/home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/core/include -I/home/runner/work/robotology-superbuild/robotology-superbuild/build/src/gym-ignition/_deps/tinyprocesslibrary-src -isystem /usr/share/miniconda3/envs/test/include/ignition/gazebo4 -isystem /usr/share/miniconda3/envs/test/include/ignition/math6 -isystem /usr/share/miniconda3/envs/test/include/ignition/plugin1 -isystem /usr/share/miniconda3/envs/test/include/ignition/cmake2 -isystem /usr/share/miniconda3/envs/test/include/ignition/common3 -isystem /usr/share/miniconda3/envs/test/include/uuid -isystem /usr/share/miniconda3/envs/test/include/ignition/fuel_tools5 -isystem /usr/share/miniconda3/envs/test/include/ignition/msgs6 -isystem /usr/share/miniconda3/envs/test/include/ignition/gui4 -isystem /usr/share/miniconda3/envs/test/include/eigen3 -isystem /usr/share/miniconda3/envs/test/include/ignition/transport9 -isystem /usr/share/miniconda3/envs/test/include/qt -isystem /usr/share/miniconda3/envs/test/include/qt/QtCore -isystem /usr/share/miniconda3/envs/test/./mkspecs/linux-g++ -isystem /usr/share/miniconda3/envs/test/include/qt/QtQml -isystem /usr/share/miniconda3/envs/test/include/qt/QtNetwork -isystem /usr/share/miniconda3/envs/test/include/qt/QtQuick -isystem /usr/share/miniconda3/envs/test/include/qt/QtGui -isystem /usr/share/miniconda3/envs/test/include/qt/QtQuickControls2 -isystem /usr/share/miniconda3/envs/test/include/qt/QtWidgets -isystem /usr/share/miniconda3/envs/test/include/sdformat-10.5/sdf/.. -fvisibility-inlines-hidden -std=c++17 -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 -I/usr/share/miniconda3/envs/test/include/uuid -I/usr/share/miniconda3/envs/test/include -fPIC -std=c++17 -MD -MT scenario/src/gazebo/CMakeFiles/GazeboSimulator.dir/src/GazeboSimulator.cpp.o -MF scenario/src/gazebo/CMakeFiles/GazeboSimulator.dir/src/GazeboSimulator.cpp.o.d -o scenario/src/gazebo/CMakeFiles/GazeboSimulator.dir/src/GazeboSimulator.cpp.o -c /home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/gazebo/src/GazeboSimulator.cpp
2021-10-05T10:54:20.3667887Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/gazebo/src/GazeboSimulator.cpp: In member function 'std::shared_ptr<ignition::gazebo::v4::Server> scenario::gazebo::GazeboSimulator::Impl::getServer()':
2021-10-05T10:54:20.3672648Z /home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/gazebo/src/GazeboSimulator.cpp:726:47: error: cannot convert 'std::shared_ptr<scenario::gazebo::detail::ECMProvider>' to 'const SystemPluginPtr&' {aka 'const ignition::plugin::TemplatePluginPtr<ignition::plugin::SpecializedPlugin<ignition::gazebo::v4::System, ignition::gazebo::v4::ISystemConfigure, ignition::gazebo::v4::ISystemPreUpdate, ignition::gazebo::v4::ISystemUpdate, ignition::gazebo::v4::ISystemPostUpdate> >&'}
2021-10-05T10:54:20.3675749Z   726 |         if (const auto ok = server->AddSystem(provider, worldIdx); !ok) {
2021-10-05T10:54:20.3676387Z       |                                               ^~~~~~~~
2021-10-05T10:54:20.3676808Z       |                                               |
2021-10-05T10:54:20.3677435Z       |                                               std::shared_ptr<scenario::gazebo::detail::ECMProvider>
2021-10-05T10:54:20.3679144Z In file included from /home/runner/work/robotology-superbuild/robotology-superbuild/src/gym-ignition/scenario/src/gazebo/src/GazeboSimulator.cpp:38:
2021-10-05T10:54:20.3681724Z /usr/share/miniconda3/envs/test/include/ignition/gazebo4/ignition/gazebo/Server.hh:218:42: note:   initializing argument 1 of 'std::optional<bool> ignition::gazebo::v4::Server::AddSystem(const SystemPluginPtr&, unsigned int)'
2021-10-05T10:54:20.3683088Z   218 |                   const SystemPluginPtr &_system,
2021-10-05T10:54:20.3683628Z       |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
2021-10-05T10:54:20.3684466Z [8/30] Building CXX object scenario/src/gazebo/CMakeFiles/ScenarioGazebo.dir/src/Model.cpp.o
2021-10-05T10:54:20.3685376Z ninja: build stopped: subcommand failed.
@traversaro traversaro changed the title ROBOTOLOGY_USES_IGNITION compilation error ROBOTOLOGY_USES_IGNITION compilation error in CI Oct 5, 2021
@diegoferigo
Copy link
Member

Currently there are no tags defined for gym-ignition, therefore master is cloned for both stable and unstable versions. Yesterday I released v1.3.0 that support Fortress instead of Edifice, this might be the source of the problem.

We can either:

  • Disable temporarily ignition in the superbuild waiting that fortress lands in conda-forge (we need it here).
  • Revert to the v1.2.2 tag while waiting things to get aligned.

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

Successfully merging a pull request may close this issue.

2 participants