Problem with compilation with --disable-sparsehash
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
andPython
?
Please replace this section with a brief summary of your issue.
Do not forget to supply the following information:
-
A minimal and self-contained example that shows the problem. -
Your operating system. Linux -
The Python version you are using. 3.9 -
If you compiled graph-tool manually: Your compiler version, as well as the version of Boost being used. gcc9, boost 1.83 -
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.
Do not forget to add code snippets and error messages using Markdown, i.e.
Graph-tool compilation error
src/graph/inference/blockmodel/../support/graph_state.hh:198:13: required from 'static void graph_tool::StateWrap<Factory, TRS>::dispatch(boost::python::api::object&, F&&, bool) [with TS = {boost::any&, boost::any&, boost::any&, boost::checked_vector_property_map<int, boost::adj_edge_index_property_map<long unsigned int> >, boost::checked_vector_property_map<int, boost::typed_identity_property_map<long unsigned int> >, boost::checked_vector_property_map<int, boost::typed_identity_property_map<long unsigned int> >, boost::checked_vector_property_map<int, boost::typed_identity_property_map<long unsigned int> >, boost::checked_vector_property_map<int, boost::typed_identity_property_map<long unsigned int> >, boost::checked_vector_property_map<int, boost::typed_identity_property_map<long unsigned int> >, boost::checked_vector_property_map<int, boost::typed_identity_property_map<long unsigned int> >, boost::checked_vector_property_map<std::vector<double, std::allocator<double> >, boost::typed_identity_property_map<long unsigned int> >, std::vector<double, std::allocator<double> >&, bool, std::vector<int, std::allocator<int> >, std::vector<boost::checked_vector_property_map<double, boost::adj_edge_index_property_map<long unsigned int> >, std::allocator<boost::checked_vector_property_map<double, boost::adj_edge_index_property_map<long unsigned int> > > >, std::vector<boost::checked_vector_property_map<double, boost::adj_edge_index_property_map<long unsigned int> >, std::allocator<boost::checked_vector_property_map<double, boost::adj_edge_index_property_map<long unsigned int> > > >, std::vector<boost::checked_vector_property_map<double, boost::adj_edge_index_property_map<long unsigned int> >, std::allocator<boost::checked_vector_property_map<double, boost::adj_edge_index_property_map<long unsigned int> > > >, std::vector<boost::checked_vector_property_map<double, boost::adj_edge_index_property_map<long unsigned int> >, std::allocator<boost::checked_vector_property_map<double, boost::adj_edge_index_property_map<long unsigned int> > > >, boost::checked_vector_property_map<double, boost::typed_identity_property_map<long unsigned int> >, std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double> > > >&, std::vector<double, std::allocator<double> >&, std::vector<double, std::allocator<double> >&, std::vector<double, std::allocator<double> >&}; F = do_gibbs_sweep(boost::python::api::object, boost::python::api::object, rng_t&)::<lambda(auto:207&)>&; Factory = graph_tool::StateFactory<graph_tool::BlockState>; TRS = {graph_tool::detail::all_graph_views, boost::mpl::vector1<std::integral_constant<bool, true> >, boost::mpl::vector2<std::integral_constant<bool, true>, std::integral_constant<bool, false> >, boost::mpl::vector1<std::integral_constant<bool, false> >}]'
src/graph/inference/blockmodel/graph_blockmodel_gibbs.cc:31:1: required from 'static void block_state::dispatch(boost::python::api::object, F&&, bool) [with F = do_gibbs_sweep(boost::python::api::object, boost::python::api::object, rng_t&)::<lambda(auto:207&)>&]'
src/graph/inference/blockmodel/graph_blockmodel_gibbs.cc:55:49: required from here
src/graph/inference/blockmodel/graph_blockmodel_emat.hh:121:12: error: 'graph_tool::EHash<boost::undirected_adaptor<boost::adj_list<long unsigned int> > >::ehash_t' {aka 'class gt_hash_map<long unsigned int, boost::detail::adj_edge_descriptor<long unsigned int>, std::hash<long unsigned int>, std::equal_to<long unsigned int>, std::allocator<std::pair<const long unsigned int, boost::detail::adj_edge_descriptor<long unsigned int> > > >'} has no member named 'min_load_factor'; did you mean 'max_load_factor'?
121 | _h.min_load_factor(.25);
| ~~~^~~~~~~~~~~~~~~
| max_load_factor
make[1]: *** [Makefile:3907: src/graph/inference/blockmodel/graph_blockmodel_gibbs.lo] Error 1
make[1]: Leaving directory '/work/06148/vsc31483/ls6/software/src/graph-tool'
make: *** [Makefile:2067: all] Error 2
You can erase any parts of this template not applicable to your Issue.
Please note we may immediately close your issue without comment if you do not fill out the issue template and provide the requested information.