Debian package and boost at compile-time

This has not been fixed in ubuntu yet (much less in 14.04, which is
quite old). I have reported this to ubuntu already, but got no reaction:

   https://bugs.launchpad.net/ubuntu/+source/boost-defaults/+bug/1529289

I think the Debian fix will trickle down to ubuntu at some point, but I
have no idea when.

Note that this has nothing to do with graph-tool, it is a bug with
*boost*. Hence, unfortunately, the only option in Ubuntu is to compile
boost yourself.

Best,
Tiago

Hi,

I'm running Ubuntu 14.04 (I realise this discussion is about Debian,
should I open a new one?). Is there any way for me to make the routine
work?

This has not been fixed in ubuntu yet (much less in 14.04, which is
quite old). I have reported this to ubuntu already, but got no reaction:

   Bug #1529289 “The boost-coroutine library is only compiled as a ...” : Bugs : boost1.54 package : Ubuntu

I think the Debian fix will trickle down to ubuntu at some point, but I
have no idea when.

Note that this has nothing to do with graph-tool, it is a bug with
*boost*. Hence, unfortunately, the only option in Ubuntu is to compile
boost yourself.

I'm one of the boost maintainers in both Debian and Ubuntu.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802509 was just
fixed in Debian, so next merge will see it fixed in xenial (16.04).

Note that trusty has boost 1.54 -> was co-routine already a library
back then?! My memory is fuzzy, but was it not a headers-only library
back then?

If someone prepares a patch for boost1.54 trusty source package, I'm
happy to sponsor such an upload. It should do what the fix in svn for
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802509 did.

Regards,

Dimitri.

I'm not sure if it was headers only, but it was definitely there:

    http://www.boost.org/doc/libs/1_54_0/libs/coroutine/doc/html/index.html

Note however that the API is completely different and incompatible with
what came with 1.56 and after:

    http://www.boost.org/doc/libs/1_56_0/libs/coroutine/doc/html/index.html

which is used by graph-tool. So using coroutines in trusty does not seem
possible, other than backporting the whole boost >= 1.56.

Best,
Tiago

Not being entirely familiar with the intricacies of Linux yet and much less
so with those of C++ and Boost might I follow up on this? What is the
outcome of this discussion? Is there a way for me to make it work on my
Ubuntu 14.04 machine or, Dimitri, do you foresee the problem being fixed in
the Boost libraries soon?

Cheers,

Philipp

It is not possible. The features needed by graph-tool were only
introduced in version 1.56 of Boost, and Ubuntu 14.04 only includes
version 1.54.

(Strictly, it is possible, but you would have to compile and install
Boost >= 1.56 yourself. It is much simpler just to upgrade your Ubuntu
version. But even then you would have to wait a bit before the bug I
mentioned gets fixed in Ubuntu as well.)

Best,
Tiago

I am running 14.04.4 LTS which I presume is the latest version of 14.04. I
don't want to change to 15.10 as it is not a LTS version so I guess
compiling Boost myself is my only chance then.

My guess is that point 5.1 on this page
(http://www.boost.org/doc/libs/1_60_0/more/getting_started/unix-variants.html
) contains the instructions that I need to follow. Which libraries do I need
to build? Or do you reckon I am best off just building them all?

Once I have done that how do I get graph-tool to use the correct Boost
libraries? Will it automatically figure that out or do I need to re-install
it/compile it from scratch again?

Best wishes,

Philipp

My guess is that point 5.1 on this page
(Boost Getting Started on Unix Variants - 1.60.0
) contains the instructions that I need to follow. Which libraries do I need
to build? Or do you reckon I am best off just building them all?

It doesn't make it easier to compile only some libraries, quite on the
contrary. It is simpler to just compile them all.

Once I have done that how do I get graph-tool to use the correct Boost
libraries? Will it automatically figure that out or do I need to re-install
it/compile it from scratch again?

You need to recompile it.

Best,
Tiago

Thank you for all the advice. I shall compile them all then. Do the currently installed boos libraries need deleting?

Simply uninstalling and then re-installing graph-tool with apt-get will not pick up the correct libraries presuming I have installed them beforehand I take it?

Best,

Philipp