Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723106 - sci-electronics/gazebo-10.1.0 fails to build against dev-libs/boost-1.73.0
Summary: sci-electronics/gazebo-10.1.0 fails to build against dev-libs/boost-1.73.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-14 22:07 UTC by Victor Mataré
Modified: 2020-05-15 16:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
boost-1.73 fix for gazebo-10 (boost.patch,1.46 KB, patch)
2020-05-15 02:08 UTC, Victor Mataré
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Mataré 2020-05-14 22:07:37 UTC
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
Comment 1 Victor Mataré 2020-05-15 01:03:47 UTC
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...
Comment 2 Victor Mataré 2020-05-15 02:08:27 UTC
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.
Comment 3 Victor Mataré 2020-05-15 15:31:16 UTC
Strangely, the ebuild now fails at the final linker stage for me, while a plain cmake build (outside of portage) works fine :-/
Comment 4 Larry the Git Cow gentoo-dev 2020-05-15 16:34:10 UTC
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(+)