Compilation fails with ambiguous call to `vertex()` error
- [Y] Are you running the latest
graph-tool
version? - [Y] Do you observe the problem with the current git version?
- [Y] Did you compile
graph-tool
manually? - [N] If you answered yes above, did you use the exact same compiler to build
graph-tool
,boost-python
andPython
?
Compiling graph-tool (./configure && make && make install
) from the AUR, the latest release on the website, and 'master' branch of git fails with the following compile error:
../../../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)
^~~~~~
I'm attaching a file with the full configure
and make
output (when compiling the git master), as well as config.log
.
Environment:
- OS: Arch Linux latest
- Python 3.6.5 (default, Apr 14 2018, 13:17:30); [GCC 7.3.1 20180406] on linux
- Compiler: g++ (GCC) 8.1.0
- Boost: boost 1.66.0-2; boost-libs 1.66.0-2