Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error on Ubuntu 14.04 and boost 1.54 #2

Closed
cdeepakroy opened this issue Jul 27, 2017 · 8 comments
Closed

Build error on Ubuntu 14.04 and boost 1.54 #2

cdeepakroy opened this issue Jul 27, 2017 · 8 comments
Labels

Comments

@cdeepakroy
Copy link

I am getting the following error when i try to build dionysus on an Ubuntu 14.04 machine with the default boost 1.54 installed using apt-get

Scanning dependencies of target wasserstein
[  4%] Building CXX object ext_build/hera/wasserstein/CMakeFiles/wasserstein.dir/src/auction_oracle.cpp.o
[  9%] Building CXX object ext_build/hera/wasserstein/CMakeFiles/wasserstein.dir/src/auction_runner_gs.cpp.o
[ 14%] Building CXX object ext_build/hera/wasserstein/CMakeFiles/wasserstein.dir/src/auction_runner_jac.cpp.o
[ 19%] Building CXX object ext_build/hera/wasserstein/CMakeFiles/wasserstein.dir/src/basic_defs.cpp.o
[ 23%] Building CXX object ext_build/hera/wasserstein/CMakeFiles/wasserstein.dir/src/wasserstein.cpp.o
[ 28%] Linking CXX static library libwasserstein.a
[ 28%] Built target wasserstein
Scanning dependencies of target wasserstein_dist
[ 33%] Building CXX object ext_build/hera/wasserstein/CMakeFiles/wasserstein_dist.dir/example/wasserstein_dist.cpp.o
[ 38%] Linking CXX executable wasserstein_dist
[ 38%] Built target wasserstein_dist
Scanning dependencies of target _dionysus
[ 42%] Building CXX object bindings/python/CMakeFiles/_dionysus.dir/dionysus.cpp.o
[ 47%] Building CXX object bindings/python/CMakeFiles/_dionysus.dir/filtration.cpp.o
In file included from /home/cdeepakroy/work/Libs/dionysus/bindings/python/filtration.h:3:0,
                 from /home/cdeepakroy/work/Libs/dionysus/bindings/python/filtration.cpp:7:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/filtration.h: In instantiation of ‘void dionysus::Filtration<Cell_, CellLookupIndex_>::emplace_back(Args&& ...) [with Args = {const dionysus::Simplex<int, float>&}; Cell_ = dionysus::Simplex<int, float>; CellLookupIndex_ = boost::multi_index::hashed_unique<boost::multi_index::identity<dionysus::Simplex<int, float> >, mpl_::na, mpl_::na, mpl_::na>]’:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/filtration.h:66:135:   required from ‘size_t dionysus::Filtration<Cell_, CellLookupIndex_>::add(const Cell&) [with Cell_ = dionysus::Simplex<int, float>; CellLookupIndex_ = boost::multi_index::hashed_unique<boost::multi_index::identity<dionysus::Simplex<int, float> >, mpl_::na, mpl_::na, mpl_::na>; size_t = long unsigned int; dionysus::Filtration<Cell_, CellLookupIndex_>::Cell = dionysus::Simplex<int, float>]’
/home/cdeepakroy/work/Libs/dionysus/bindings/python/filtration.cpp:18:90:   required from here
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/filtration.h:71:83: error: ‘boost::multi_index::multi_index_container<dionysus::Simplex<int, float>, boost::multi_index::indexed_by<boost::multi_index::hashed_unique<boost::multi_index::identity<dionysus::Simplex<int, float> >, mpl_::na, mpl_::na, mpl_::na>, boost::multi_index::random_access<boost::multi_index::tag<dionysus::Filtration<dionysus::Simplex<int, float> >::order, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na> >, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator<dionysus::Simplex<int, float> > >::index<dionysus::Filtration<dionysus::Simplex<int, float> >::order>::type’ has no member named ‘emplace_back’
         void                emplace_back(Args&&... args)                        { cells_.template get<order>().emplace_back(std::forward<Args>(args)...); }
                                                                                   ^
make[2]: *** [bindings/python/CMakeFiles/_dionysus.dir/filtration.cpp.o] Error 1
make[1]: *** [bindings/python/CMakeFiles/_dionysus.dir/all] Error 2
make: *** [all] Error 2

Any ideas to fix this?

What is the minimum version of boost for dionysus?

@mrzv
Copy link
Owner

mrzv commented Jul 27, 2017

Looking at the boost documentation, it appears that emplace_back() was added to that class in 1.55. Whether that's enough, I'm not sure. In any case, this would be too painful to fix, and I don't see much reason to support 4-year old versions of Boost.

@mrzv mrzv closed this as completed Jul 27, 2017
@mrzv mrzv added the wontfix label Jul 27, 2017
@mrzv
Copy link
Owner

mrzv commented Jul 27, 2017

I just tested with Boost 1.55, and everything compiles. So I guess we can consider that to be the minimum required version.

@cdeepakroy
Copy link
Author

cdeepakroy commented Aug 9, 2017

@mrzv Thank you for the reply. I just tried to build it against boost 1.65 and i get the following error:

Scanning dependencies of target zigzag-filtration-persistence
[  2%] Building CXX object examples/filtration/CMakeFiles/zigzag-filtration-persistence.dir/zigzag-filtration-persistence.cpp.o
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:182:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp: In instantiation of ‘dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]’:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.hpp:11:53:   required from ‘dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::add_impl(const ChainRange&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index = int]’
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:50:39:   required from ‘dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::add(const ChainRange&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index = int]’
/home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:42:114:   required from here
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: error: no matching function for call to ‘dionysus::Reduction<std::tuple<int, int> >::reduce(dionysus::SparseRowMatrix<dionysus::ZpField<>, int, std::less<int>, std::vector>::Column&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda3&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda4&, dionysus::SparseRowMatrix<dionysus::ZpField<>, int, std::less<int>, std::vector>::Field&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda5&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda2&)’
                         field_, addto, row_cmp);
                                               ^
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: note: candidates are:
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:12:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:40:11: note: template<class Chain1, class ChainsLookup, class LowLookup, class Field, class Comparison> static dionysus::Reduction<Index_>::Index dionysus::Reduction<Index_>::reduce(Chain1&, const ChainsLookup&, const LowLookup&, const Field&, dionysus::Reduction<Index_>::AddtoVisitor<Field>&, const Comparison&) [with Chain1 = Chain1; ChainsLookup = ChainsLookup; LowLookup = LowLookup; Field = Field; Comparison = Comparison; Index_ = std::tuple<int, int>]
     Index reduce(Chain1&                     c,
           ^
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:40:11: note:   template argument deduction/substitution failed:
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:182:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: note:   ‘dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda5’ is not derived from ‘dionysus::Reduction<std::tuple<int, int> >::AddtoVisitor<Field>’
                         field_, addto, row_cmp);
                                               ^
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:12:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:76:11: note: template<class Chain1, class Chain2, class Field, class Comparison> static dionysus::Reduction<Index_>::Index dionysus::Reduction<Index_>::reduce(Chain1&, const std::vector<Chain2>&, const std::vector<_RealType>&, const Field&, dionysus::Reduction<Index_>::AddtoVisitor<Field>&, const Comparison&) [with Chain1 = Chain1; Chain2 = Chain2; Field = Field; Comparison = Comparison; Index_ = std::tuple<int, int>]
     Index reduce(Chain1&                     c,
           ^
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:76:11: note:   template argument deduction/substitution failed:
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:182:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: note:   ‘dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda3’ is not derived from ‘const std::vector<Chain2, std::allocator<_T2> >’
                         field_, addto, row_cmp);
                                               ^
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp: In instantiation of ‘dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]’:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.hpp:15:58:   required from ‘dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::add_impl(const ChainRange&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index = int]’
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:50:39:   required from ‘dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::add(const ChainRange&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index = int]’
/home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:42:114:   required from here
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: error: no matching function for call to ‘dionysus::Reduction<std::tuple<int, int> >::reduce(dionysus::SparseRowMatrix<dionysus::ZpField<>, int, std::less<int>, std::deque>::Column&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda3&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda4&, dionysus::SparseRowMatrix<dionysus::ZpField<>, int, std::less<int>, std::deque>::Field&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda5&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda2&)’
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: note: candidates are:
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:12:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:40:11: note: template<class Chain1, class ChainsLookup, class LowLookup, class Field, class Comparison> static dionysus::Reduction<Index_>::Index dionysus::Reduction<Index_>::reduce(Chain1&, const ChainsLookup&, const LowLookup&, const Field&, dionysus::Reduction<Index_>::AddtoVisitor<Field>&, const Comparison&) [with Chain1 = Chain1; ChainsLookup = ChainsLookup; LowLookup = LowLookup; Field = Field; Comparison = Comparison; Index_ = std::tuple<int, int>]
     Index reduce(Chain1&                     c,
           ^
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:40:11: note:   template argument deduction/substitution failed:
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:182:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: note:   ‘dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda5’ is not derived from ‘dionysus::Reduction<std::tuple<int, int> >::AddtoVisitor<Field>’
                         field_, addto, row_cmp);
                                               ^
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:12:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:76:11: note: template<class Chain1, class Chain2, class Field, class Comparison> static dionysus::Reduction<Index_>::Index dionysus::Reduction<Index_>::reduce(Chain1&, const std::vector<Chain2>&, const std::vector<_RealType>&, const Field&, dionysus::Reduction<Index_>::AddtoVisitor<Field>&, const Comparison&) [with Chain1 = Chain1; Chain2 = Chain2; Field = Field; Comparison = Comparison; Index_ = std::tuple<int, int>]
     Index reduce(Chain1&                     c,
           ^
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:76:11: note:   template argument deduction/substitution failed:
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:182:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: note:   ‘dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda3’ is not derived from ‘const std::vector<Chain2, std::allocator<_T2> >’
                         field_, addto, row_cmp);
                                               ^
make[2]: *** [examples/filtration/CMakeFiles/zigzag-filtration-persistence.dir/zigzag-filtration-persistence.cpp.o] Error 1
make[1]: *** [examples/filtration/CMakeFiles/zigzag-filtration-persistence.dir/all] Error 2
make: *** [all] Error 2

@mrzv
Copy link
Owner

mrzv commented Aug 9, 2017

What compiler are you using?

@cdeepakroy
Copy link
Author

It is using g++ version 4.8.4

Below is the output of the cmake command

 cmake -D PYTHON_EXECUTABLE=~/anaconda/bin/python2.7 ../
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.65.0
-- Boost version: 1.65.0
-- Found PythonInterp: /home/cdeepakroy/anaconda/bin/python2.7 (found version "2.7.13") 
-- Found PythonLibs: /home/cdeepakroy/anaconda/lib/libpython2.7.so
-- pybind11 v2.1.1
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Failed
-- Performing Test HAS_CPP11_FLAG
-- Performing Test HAS_CPP11_FLAG - Success
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- LTO enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cdeepakroy/work/Libs/dionysus/build

The CXX compiler /usr/bin/c++ it detects is symlinked to /usr/bin/g++

@mrzv
Copy link
Owner

mrzv commented Aug 9, 2017

That's an old compiler. Is there no way to use something more recent? In another issue, somebody successfully compiled the code with GCC 5.4, which is also old, but not quite as old.

@cdeepakroy
Copy link
Author

I rebuilt with version 5.4.1 and it works! Thanks for all the help!

@mrzv
Copy link
Owner

mrzv commented Aug 9, 2017

Glad to hear it! And thanks for understanding: it would be too much effort to support very old compilers and libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants