Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • graph-tool graph-tool
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Please use the issue tracker only to report bugs (i.e. errors in the library that need to be fixed) or feature requests.

For questions about how to compile, install or use the library, please use instead the web forum at https://forum.skewed.de/c/graph-tool.


(If unsure, use the forum first.)


IMPORTANT: When opening new issues, please choose the BUG template from the drop-down menu, and fill out the required information.

  • Tiago Peixoto
  • graph-toolgraph-tool
  • Issues
  • #576
Closed
Open
Issue created Apr 02, 2019 by Mark Moll@mmoll5 of 10 checklist items completed5/10 checklist items

latest release doesn't compile with clang-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?

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.
  • 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 have locally added a clang8.0 variant to my py-graph-tool port in MacPorts. I get this error:

:info:build In file included from graph_closeness.cc:18:
:info:build In file included from ../../../src/graph/graph_filtering.hh:21:
:info:build In file included from ../../../src/graph/graph.hh:23:
:info:build In file included from /opt/local/include/boost/python/object.hpp:9:
:info:build In file included from /opt/local/include/boost/python/object_core.hpp:14:
:info:build In file included from /opt/local/include/boost/python/call.hpp:15:
:info:build In file included from /opt/local/include/boost/python/converter/arg_to_python.hpp:10:
:info:build In file included from /opt/local/include/boost/python/to_python_indirect.hpp:10:
:info:build In file included from /opt/local/include/boost/python/object/pointer_holder.hpp:14:
:info:build In file included from /opt/local/include/boost/python/instance_holder.hpp:11:
:info:build In file included from /opt/local/include/boost/python/type_id.hpp:14:
:info:build In file included from /opt/local/libexec/llvm-8.0/bin/../include/c++/v1/ostream:138:
:info:build In file included from /opt/local/libexec/llvm-8.0/bin/../include/c++/v1/ios:216:
:info:build In file included from /opt/local/libexec/llvm-8.0/bin/../include/c++/v1/__locale:15:
:info:build In file included from /opt/local/libexec/llvm-8.0/bin/../include/c++/v1/string:505:
:info:build In file included from /opt/local/libexec/llvm-8.0/bin/../include/c++/v1/string_view:176:
:info:build In file included from /opt/local/libexec/llvm-8.0/bin/../include/c++/v1/__string:57:
:info:build /opt/local/libexec/llvm-8.0/bin/../include/c++/v1/algorithm:2494:5: error: static_assert failed due to requirement '__is_forward_iterator<boost::adj_list<unsigned long>::edge_iterator>::value' "std::max_element requires a ForwardIterator"
:info:build     static_assert(__is_forward_iterator<_ForwardIterator>::value,
:info:build     ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build ../../../src/graph/graph_adjacency.hh:452:26: note: in instantiation of function template specialization 'std::__1::max_element<boost::adj_list<unsigned long>::edge_iterator, (lambda at ../../../src/graph/graph_adjacency.hh:453:38)>' requested here
:info:build         auto iter = std::max_element(erange.first, erange.second,
:info:build                          ^
:info:build ../../../src/graph/graph.hh:109:33: note: in instantiation of member function 'boost::adj_list<unsigned long>::shrink_to_fit' requested here
:info:build     void shrink_to_fit() { _mg->shrink_to_fit(); }
:info:build                                 ^
:info:build 2 warnings and 1 error generated.

I am using Boost 1.69, Python 3.7, Clang 8.0.

main.log

config.log

Assignee
Assign to
Time tracking