Compilation problem, GCC 8.0

Bug reports:

Please follow the general troubleshooting steps first:

  • Are you running the latest graph-tool version?
  • Do you observe the problem with the current git version?
  • Are you using Macports or Homebrew? If yes, please submit an issue there instead: https://github.com/Homebrew/brew/issues and https://trac.macports.org/newticket
  • Did you compile graph-tool manually?
  • If you answered yes above, did you use the exact same compiler to build graph-tool, boost-python and Python?

I get an error when compiling, using GCC 8.1.1 and Fedora 28, boost 1.66. I get the same error using the latest git and the latest release. I've tried with both python 2.7.14 and 3.6.5:

../../../src/graph/graph_util.hh:193:24: error: call of overloaded ‘vertex(size_t&, const boost::reversed_graph<boost::adj_list<long unsigned int>, const boost::adj_list<long unsigned int>&>&)’ is ambiguous
         auto v = vertex(i, g);
                  ~~~~~~^~~~~~
In file included from ../../../src/graph/graph_filtering.hh:48,
                 from graph_betweenness.cc:18:
../../../src/graph/graph_reverse.hh:172:1: note: candidate: ‘typename boost::graph_traits<G>::vertex_descriptor boost::vertex(typename boost::graph_traits<Graph>::vertices_size_type, const boost::reversed_graph<BidirectionalGraph, GraphRef>&) [with BidirectionalGraph = boost::adj_list<long unsigned int>; GRef = const boost::adj_list<long unsigned int>&; typename boost::graph_traits<G>::vertex_descriptor = long unsigned int; typename boost::graph_traits<Graph>::vertices_size_type = long unsigned int]’
 vertex(const typename graph_traits<BidirectionalGraph>::vertices_size_type v,
 ^~~~~~
../../../src/graph/graph_reverse.hh:279:1: note: candidate: ‘typename boost::graph_traits<boost::reversed_graph<BidirectionalGraph, GraphRef> >::vertex_descriptor boost::vertex(size_t, const boost::reversed_graph<BidirectionalGraph, GraphRef>&) [with BidirectionalGraph = boost::adj_list<long unsigned int>; GRef = const boost::adj_list<long unsigned int>&; typename boost::graph_traits<boost::reversed_graph<BidirectionalGraph, GraphRef> >::vertex_descriptor = long unsigned int; size_t = long unsigned int]’
 vertex(size_t i, const reversed_graph<BidirectionalGraph,GRef>& g)
 ^~~~~~

Do not forget to supply the following information:

  • A minimal and self-contained example that shows the problem.
  • Your operating system.
  • The Python version you are using.
  • If you compiled graph-tool manually: Your compiler version, as well as the version of Boost being used.
  • If you are reporting a compilation error, please provide the entire ./configure output, as well as the entire contents of the config.log file and the entire compilation output.

I've attached the compilation/configure outputs here.

configure.out

config.log

make.out