hanslovsky

nifty python build failure

Aug 23rd, 2016
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.47 KB | None | 0 0
  1. hanslovskyp@saalfelds-ws2 ~/git/nifty/build (git)-[master] % make
  2. [  4%] Built target test_marray
  3. [  8%] Built target test_depth_first_search
  4. [ 13%] Built target test_undirected_graph
  5. [ 17%] Built target test_shortest_path_dijkstra
  6. [ 22%] Built target test_shortest_path_bellman_ford
  7. [ 26%] Built target test_edge_weighted_watersheds
  8. [ 31%] Built target test_breadth_first_search
  9. [ 35%] Built target test_array
  10. Scanning dependencies of target _nifty
  11. [ 37%] Building CXX object src/python/lib/CMakeFiles/_nifty.dir/nifty.cxx.o
  12. [ 40%] Building CXX object src/python/lib/CMakeFiles/_nifty.dir/graph/graph.cxx.o
  13. [ 42%] Building CXX object src/python/lib/CMakeFiles/_nifty.dir/graph/undirected_list_graph.cxx.o
  14. In file included from /home/hanslovskyp/local/include/pybind11/attr.h:13:0,
  15.                  from /home/hanslovskyp/local/include/pybind11/pybind11.h:32,
  16.                  from /home/hanslovskyp/git/nifty/src/python/lib/graph/undirected_list_graph.cxx:1:
  17. /home/hanslovskyp/local/include/pybind11/cast.h: In instantiation of ‘class pybind11::detail::type_caster_base<const nifty::graph::UndirectedGraph<>&>’:
  18. /home/hanslovskyp/local/include/pybind11/cast.h:310:56:   required from ‘class pybind11::detail::type_caster<const nifty::graph::UndirectedGraph<>&, void>’
  19. /home/hanslovskyp/local/include/pybind11/cast.h:836:72:   required by substitution of ‘template<class T> typename std::enable_if<std::integral_constant<bool, ((! pybind11::detail::move_always<T>::value) && (! pybind11::detail::move_if_unreferenced<T>::value))>::value, T>::type pybind11::cast(pybind11::object&&) [with T = const nifty::graph::UndirectedGraph<>&]’
  20. /home/hanslovskyp/local/include/pybind11/cast.h:919:74:   required from ‘T pybind11::object::cast() const & [with T = const nifty::graph::UndirectedGraph<>&]’
  21. /home/hanslovskyp/git/nifty/src/python/lib/graph/export_undirected_graph_class_api.hxx:91:53:   required from ‘nifty::graph::exportUndirectedGraphClassAPI(pybind11::module&, CLS_T&, const string&)::<lambda(pybind11::object)> [with G = nifty::graph::UndirectedGraph<>; CLS_T = pybind11::class_<nifty::graph::UndirectedGraph<> >]’
  22. /home/hanslovskyp/git/nifty/src/python/lib/graph/export_undirected_graph_class_api.hxx:90:28:   required from ‘struct nifty::graph::exportUndirectedGraphClassAPI(pybind11::module&, CLS_T&, const string&) [with G = nifty::graph::UndirectedGraph<>; CLS_T = pybind11::class_<nifty::graph::UndirectedGraph<> >; std::__cxx11::string = std::__cxx11::basic_string<char>]::<lambda(class pybind11::object)>’
  23. /home/hanslovskyp/git/nifty/src/python/lib/graph/export_undirected_graph_class_api.hxx:94:14:   required from ‘void nifty::graph::exportUndirectedGraphClassAPI(pybind11::module&, CLS_T&, const string&) [with G = nifty::graph::UndirectedGraph<>; CLS_T = pybind11::class_<nifty::graph::UndirectedGraph<> >; std::__cxx11::string = std::__cxx11::basic_string<char>]’
  24. /home/hanslovskyp/git/nifty/src/python/lib/graph/undirected_list_graph.cxx:68:85:   required from here
  25. /home/hanslovskyp/local/include/pybind11/cast.h:270:19: error: ‘static pybind11::handle pybind11::detail::type_caster_base<type>::cast(type&&, pybind11::return_value_policy, pybind11::handle) [with type = const nifty::graph::UndirectedGraph<>&]’ cannot be overloaded
  26.      static handle cast(type &&src, return_value_policy policy, handle parent) {
  27.                    ^~~~
  28. /home/hanslovskyp/local/include/pybind11/cast.h:264:19: error: with ‘static pybind11::handle pybind11::detail::type_caster_base<type>::cast(const type&, pybind11::return_value_policy, pybind11::handle) [with type = const nifty::graph::UndirectedGraph<>&]’
  29.      static handle cast(const type &src, return_value_policy policy, handle parent) {
  30.                    ^~~~
  31. /home/hanslovskyp/local/include/pybind11/cast.h:276:19: error: forming pointer to reference type ‘const nifty::graph::UndirectedGraph<>&’
  32.      static handle cast(const type *src, return_value_policy policy, handle parent) {
  33.                    ^~~~
  34. /home/hanslovskyp/local/include/pybind11/cast.h:284:5: error: forming pointer to reference type ‘const nifty::graph::UndirectedGraph<>&’
  35.      operator type*() { return (type *) value; }
  36.      ^~~~~~~~
  37. make[2]: *** [src/python/lib/CMakeFiles/_nifty.dir/build.make:111: src/python/lib/CMakeFiles/_nifty.dir/graph/undirected_list_graph.cxx.o] Error 1
  38. make[1]: *** [CMakeFiles/Makefile2:581: src/python/lib/CMakeFiles/_nifty.dir/all] Error 2
  39. make: *** [Makefile:95: all] Error 2
  40. make  7.35s user 0.60s system 98% cpu 8.092 total
Advertisement
Add Comment
Please, Sign In to add comment