graph-tool 1.37 fails to compile on macOS 11 with link errors
graph-tool version 1.37 fails to compile on macOS 11 with multiple link errors.
I am attempting to update the MacPorts Portfile to compile the latest graph-tool version 2.37 and encounter this issue, which apparently appeared in version 2.33. Also please see https://trac.macports.org/ticket/61583.
I believe that this is a graph-tool issue, not a MacPorts issue.
Error (log attached below) using the Portfile modified to build version 2.37:
:info:build CXXLD libgraph_tool_centrality.la
…
:info:build Undefined symbols for architecture x86_64:
:info:build "graph_tool::ActionNotFound::ActionNotFound(std::type_info const&, std::__1::vector<std::type_info const*, std::__1::allocator<std::type_info const*> > const&)", referenced from:
:info:build betweenness(graph_tool::GraphInterface&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&, boost::any, boost::any, boost::any) in graph_betweenness.o
:info:build norm_betweenness(graph_tool::GraphInterface&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&, boost::any, boost::any) in graph_betweenness.o
:info:build central_point(graph_tool::GraphInterface&, boost::any) in graph_betweenness.o
:info:build do_get_closeness(graph_tool::GraphInterface&, boost::any, boost::any, bool, bool) in graph_closeness.o
:info:build eigentrust(graph_tool::GraphInterface&, boost::any, boost::any, double, unsigned long) in graph_eigentrust.o
:info:build eigenvector(graph_tool::GraphInterface&, boost::any, boost::any, double, unsigned long) in graph_eigenvector.o
:info:build hits(graph_tool::GraphInterface&, boost::any, boost::any, boost::any, double, unsigned long) in graph_hits.o
:info:build ...
This also contains the error typeinfo for graph_tool::ValueException
encountered in https://trac.macports.org/ticket/61583.
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
Ticket exists since version 2.33. Please see https://trac.macports.org/ticket/61583
-
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
?