In file included from /usr/include/boost/bind.hpp:30, from /var/tmp/portage/sci-electronics/gazebo-10.1.0/work/gazebo-10.1.0/gazebo/gui/model/ModelEditor.cc:18: /usr/include/boost/bind.hpp:36:1: note: #pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior. 36 | BOOST_PRAGMA_MESSAGE( | ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sci-electronics/gazebo-10.1.0/work/gazebo-10.1.0/gazebo/gui/model/ModelTreeWidget.cc: In constructor ‘gazebo::gui::ModelTreeWidget::ModelTreeWidget(QWidget*)’: /var/tmp/portage/sci-electronics/gazebo-10.1.0/work/gazebo-10.1.0/gazebo/gui/model/ModelTreeWidget.cc:165:56: error: ‘_1’ was not declared in this scope 165 | boost::bind(&ModelTreeWidget::OnSaveModel, this, _1))); | The message is pretty clear in that boost-1.73 made some incompatible changes to the boost::bind API. I'm investigating whether these things have been fixed in gazebo-11. For the time being the dependencies on the existing ebuild should be updated so it depends on <dev-libs/boost-1.73. Reproducible: Always
I'm currently in the process of updating all the ignition-* dependencies required by gazebo-11.0.0, and I'm currently stuck with this issue: https://github.com/ignitionrobotics/ign-transport/issues/138 Haven't investigated deeply, maybe upstream can resolve it quickly...
Created attachment 639106 [details, diff] boost-1.73 fix for gazebo-10 Attached a patch that fixes the gazebo-10 build against boost-1.73. It should work with both 10.1.0 and 10.2.0. I'd suggest bumping to 10.2.0 since it fixes the qtmoc issue and probably other stuff as well, and doesn't require any new dependencies. Bumping to gazebo-11 is for the longer term since that pulls in all these new version of the various ignition packages, some of which seem a little smelly atm.
Strangely, the ebuild now fails at the final linker stage for me, while a plain cmake build (outside of portage) works fine :-/
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9262d3d7017a92783514e2f642edc5a2d94cf55 commit b9262d3d7017a92783514e2f642edc5a2d94cf55 Author: Alexis Ballier <aballier@gentoo.org> AuthorDate: 2020-05-15 11:44:58 +0000 Commit: Alexis Ballier <aballier@gentoo.org> CommitDate: 2020-05-15 16:33:45 +0000 sci-electronics/gazebo: bump to 11.0.0 Fix build with boost 1.73 and cmake 3.17 Closes: https://bugs.gentoo.org/723106 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alexis Ballier <aballier@gentoo.org> sci-electronics/gazebo/Manifest | 1 + sci-electronics/gazebo/files/boost173.patch | 135 ++++++++++++++++++++++++++++ sci-electronics/gazebo/files/cmake.patch | 24 +++++ sci-electronics/gazebo/gazebo-11.0.0.ebuild | 80 +++++++++++++++++ 4 files changed, 240 insertions(+)