Compile error in graph_blockmodel_dynamics_epidemics.lo
Bug reports:
Please follow the general troubleshooting steps first:
-
Are you running the latest graph-tool
version? -
Did you compile graph-tool
manually? -
If you answered yes above, did you use the exact same compiler to build graph-tool
,boost-python
andPython
?
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 theconfig.log
file and the entire compilation output.
Description
I am trying to compile graph-tool release 2.28 (checked out the release tag) on my Fedora 30, using Python 3.7.3. I am compiling using gcc, Python 3 was built using gcc, so was boost (retrieved from Fedora's packaging info). I'm running GCC 9.0.1, Boost 1.69.
I ran configure --disable-cairo
, output see configure.log. Attaching config.log.
There was one warning from configure:
configure: WARNING: C++17 is not yet standardized, so the checks may change in incompatible ways anytime
I got an error when the make
reached uncertain/graph_blockmodel_dynamics_epidemics.lo
, output bellow (unfortunately lost full output when re-running configure, one of them threw some warning IIRC). I can re-run the whole thing from clean if necessary.
$ make
make all-recursive
make[1]: Entering directory '/home/miki/oss/graph-tool'
Making all in src
make[2]: Entering directory '/home/miki/oss/graph-tool/src'
Making all in graph
make[3]: Entering directory '/home/miki/oss/graph-tool/src/graph'
Making all in centrality
make[4]: Entering directory '/home/miki/oss/graph-tool/src/graph/centrality'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/miki/oss/graph-tool/src/graph/centrality'
Making all in clustering
make[4]: Entering directory '/home/miki/oss/graph-tool/src/graph/clustering'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/miki/oss/graph-tool/src/graph/clustering'
Making all in correlations
make[4]: Entering directory '/home/miki/oss/graph-tool/src/graph/correlations'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/miki/oss/graph-tool/src/graph/correlations'
Making all in draw
make[4]: Entering directory '/home/miki/oss/graph-tool/src/graph/draw'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/miki/oss/graph-tool/src/graph/draw'
Making all in dynamics
make[4]: Entering directory '/home/miki/oss/graph-tool/src/graph/dynamics'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/miki/oss/graph-tool/src/graph/dynamics'
Making all in flow
make[4]: Entering directory '/home/miki/oss/graph-tool/src/graph/flow'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/miki/oss/graph-tool/src/graph/flow'
Making all in generation
make[4]: Entering directory '/home/miki/oss/graph-tool/src/graph/generation'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/miki/oss/graph-tool/src/graph/generation'
Making all in inference
make[4]: Entering directory '/home/miki/oss/graph-tool/src/graph/inference'
CXX uncertain/graph_blockmodel_dynamics_epidemics.lo
In file included from uncertain/graph_blockmodel_dynamics_epidemics.cc:27:
uncertain/graph_blockmodel_dynamics_discrete.hh: In member function ‘void graph_tool::SIState::set_params(boost::python::dict)’:
uncertain/graph_blockmodel_dynamics_discrete.hh:620:120: error: call of overloaded ‘any_cast<graph_tool::SIState::amap_t>(boost::python::extract<boost::any>)’ is ambiguous
620 | _active.push_back(boost::any_cast<amap_t>(python::extract<boost::any>(active[i].attr("_get_any")())).get_unchecked());
| ^
In file included from /usr/include/boost/property_map/dynamic_property_map.hpp:24,
from ../../../src/graph/graph_properties.hh:34,
from ../../../src/graph/graph.hh:35,
from ../../../src/graph/graph_tool.hh:21,
from uncertain/graph_blockmodel_dynamics_epidemics.cc:21:
/usr/include/boost/any.hpp:291:22: note: candidate: ‘ValueType boost::any_cast(const boost::any&) [with ValueType = boost::checked_vector_property_map<std::vector<unsigned char>, boost::typed_identity_property_map<long unsigned int> >]’
291 | inline ValueType any_cast(const any & operand)
| ^~~~~~~~
/usr/include/boost/any.hpp:299:22: note: candidate: ‘ValueType boost::any_cast(boost::any&&) [with ValueType = boost::checked_vector_property_map<std::vector<unsigned char>, boost::typed_identity_property_map<long unsigned int> >]’
299 | inline ValueType any_cast(any&& operand)
| ^~~~~~~~
In file included from uncertain/graph_blockmodel_dynamics_epidemics.cc:27:
uncertain/graph_blockmodel_dynamics_discrete.hh:634:105: error: call of overloaded ‘any_cast<graph_tool::SIState::hmap_t>(boost::python::extract<boost::any>)’ is ambiguous
634 | _r_v = boost::any_cast<hmap_t>(python::extract<boost::any>(params["r_v"].attr("_get_any")())).get_unchecked();
| ^
In file included from /usr/include/boost/property_map/dynamic_property_map.hpp:24,
from ../../../src/graph/graph_properties.hh:34,
from ../../../src/graph/graph.hh:35,
from ../../../src/graph/graph_tool.hh:21,
from uncertain/graph_blockmodel_dynamics_epidemics.cc:21:
/usr/include/boost/any.hpp:291:22: note: candidate: ‘ValueType boost::any_cast(const boost::any&) [with ValueType = boost::checked_vector_property_map<double, boost::typed_identity_property_map<long unsigned int> >]’
291 | inline ValueType any_cast(const any & operand)
| ^~~~~~~~
/usr/include/boost/any.hpp:299:22: note: candidate: ‘ValueType boost::any_cast(boost::any&&) [with ValueType = boost::checked_vector_property_map<double, boost::typed_identity_property_map<long unsigned int> >]’
299 | inline ValueType any_cast(any&& operand)
| ^~~~~~~~
In file included from uncertain/graph_blockmodel_dynamics_epidemics.cc:27:
uncertain/graph_blockmodel_dynamics_discrete.hh: In member function ‘void graph_tool::IsingBaseState::set_params(boost::python::dict, size_t)’:
uncertain/graph_blockmodel_dynamics_discrete.hh:747:104: error: call of overloaded ‘any_cast<graph_tool::IsingBaseState::hmap_t>(boost::python::extract<boost::any>)’ is ambiguous
747 | _h[n] = boost::any_cast<hmap_t>(python::extract<boost::any>(params["h"].attr("_get_any")())).get_unchecked();
| ^
In file included from /usr/include/boost/property_map/dynamic_property_map.hpp:24,
from ../../../src/graph/graph_properties.hh:34,
from ../../../src/graph/graph.hh:35,
from ../../../src/graph/graph_tool.hh:21,
from uncertain/graph_blockmodel_dynamics_epidemics.cc:21:
/usr/include/boost/any.hpp:291:22: note: candidate: ‘ValueType boost::any_cast(const boost::any&) [with ValueType = boost::checked_vector_property_map<double, boost::typed_identity_property_map<long unsigned int> >]’
291 | inline ValueType any_cast(const any & operand)
| ^~~~~~~~
/usr/include/boost/any.hpp:299:22: note: candidate: ‘ValueType boost::any_cast(boost::any&&) [with ValueType = boost::checked_vector_property_map<double, boost::typed_identity_property_map<long unsigned int> >]’
299 | inline ValueType any_cast(any&& operand)
| ^~~~~~~~
In file included from uncertain/graph_blockmodel_dynamics_epidemics.cc:27:
uncertain/graph_blockmodel_dynamics_discrete.hh:749:107: error: call of overloaded ‘any_cast<graph_tool::IsingBaseState::hmap_t>(boost::python::extract<boost::any>)’ is ambiguous
749 | _h[n] = boost::any_cast<hmap_t>(python::extract<boost::any>(params["h"][n].attr("_get_any")())).get_unchecked();
| ^
In file included from /usr/include/boost/property_map/dynamic_property_map.hpp:24,
from ../../../src/graph/graph_properties.hh:34,
from ../../../src/graph/graph.hh:35,
from ../../../src/graph/graph_tool.hh:21,
from uncertain/graph_blockmodel_dynamics_epidemics.cc:21:
/usr/include/boost/any.hpp:291:22: note: candidate: ‘ValueType boost::any_cast(const boost::any&) [with ValueType = boost::checked_vector_property_map<double, boost::typed_identity_property_map<long unsigned int> >]’
291 | inline ValueType any_cast(const any & operand)
| ^~~~~~~~
/usr/include/boost/any.hpp:299:22: note: candidate: ‘ValueType boost::any_cast(boost::any&&) [with ValueType = boost::checked_vector_property_map<double, boost::typed_identity_property_map<long unsigned int> >]’
299 | inline ValueType any_cast(any&& operand)
| ^~~~~~~~
make[4]: *** [Makefile:979: uncertain/graph_blockmodel_dynamics_epidemics.lo] Error 1
make[4]: Leaving directory '/home/miki/oss/graph-tool/src/graph/inference'
make[3]: *** [Makefile:809: all-recursive] Error 1
make[3]: Leaving directory '/home/miki/oss/graph-tool/src/graph'
make[2]: *** [Makefile:422: all-recursive] Error 1
make[2]: Leaving directory '/home/miki/oss/graph-tool/src'
make[1]: *** [Makefile:599: all-recursive] Error 1
make[1]: Leaving directory '/home/miki/oss/graph-tool'
make: *** [Makefile:486: all] Error 2