Giter Site home page Giter Site logo

Comments (5)

lyskov avatar lyskov commented on May 18, 2024

Please post exact error log. As far i can tell new version it is working for my project (~3M LOC). Have you updated pybind11 to the correct version? (fa6a4241326a361fc23915f6a82c1e48667de668)

from binder.

aalavandhaann avatar aalavandhaann commented on May 18, 2024
ARGUMENTS LIST ::::  ['setup.py', 'build']
running build
running build_ext
clang++ -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c /tmp/tmp_idvierh.cpp -o tmp/tmp_idvierh.o -std=c++14
clang++ -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c /tmp/tmps2_391om.cpp -o tmp/tmps2_391om.o -fvisibility=hidden
building 'chenhancc' extension
clang++ -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I./chenhancc/includes/pybind11/include/ -I./chenhancc/includes/pybinder/ -I./chenhancc/ -I/usr/include/python3.4m -c chenhancc/chenhancc.cpp -o build/temp.linux-x86_64-3.4/chenhancc/chenhancc.o -DVERSION_INFO="0.0.5" -std=c++14 -fvisibility=hidden
In file included from chenhancc/chenhancc.cpp:7:
./chenhancc/ExactMethodForDGP.hpp:326:13: warning: unused variable 'ptIntersection' [-Wunused-variable]
                        CPoint3D ptIntersection = CRichModel::CombineTwoNormalsTo(pt1, 1 - proportion, pt2, proportion);
                                 ^
./chenhancc/ExactMethodForDGP.hpp:312:12: warning: unused variable 'pt' [-Wunused-variable]
                CPoint3D pt = model.ComputeShiftPoint(lastVert);
                         ^
./chenhancc/ExactMethodForDGP.hpp:348:11: warning: unused variable 'pt' [-Wunused-variable]
        CPoint3D pt = model.ComputeShiftPoint(indexOfSourceVert);
                 ^
In file included from chenhancc/chenhancc.cpp:24:
./chenhancc/PreviousCH.hpp:172:6: warning: unused variable 'rightVert' [-Wunused-variable]
        int rightVert = model.Edge(indexOfParentOfParent).indexOfRightVert;
            ^
In file included from chenhancc/chenhancc.cpp:598:
In file included from ./chenhancc/includes/pybind11/include/pybind11/pybind11.h:43:
In file included from ./chenhancc/includes/pybind11/include/pybind11/detail/../attr.h:13:
./chenhancc/includes/pybind11/include/pybind11/cast.h:1380:5: error: static_assert failed "Holder classes are only supported for custom types"
    static_assert(std::is_base_of<base, type_caster<type>>::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybind11/include/pybind11/cast.h:1454:48: note: in instantiation of template class 'pybind11::detail::copyable_holder_caster<std::set<int, std::less<int>, std::allocator<int> >, std::shared_ptr<std::set<int, std::less<int>, std::allocator<int> > > >' requested here
class type_caster<std::shared_ptr<T>> : public copyable_holder_caster<T, std::shared_ptr<T>> { };
                                               ^
/usr/lib/gcc/x86_64-linux-gnu/5.4.1/../../../../include/c++/5.4.1/type_traits:1460:66: note: in instantiation of template class 'pybind11::detail::type_caster<std::shared_ptr<std::set<int, std::less<int>, std::allocator<int> > >, void>' requested here
    : public integral_constant<bool, __is_base_of(_Base, _Derived)>
                                                                 ^
./chenhancc/includes/pybind11/include/pybind11/cast.h:1491:5: note: in instantiation of template class 'std::is_base_of<pybind11::detail::copyable_holder_caster<std::set<int, std::less<int>, std::allocator<int> >, std::shared_ptr<std::set<int, std::less<int>, std::allocator<int> > > >, pybind11::detail::type_caster<std::shared_ptr<std::set<int, std::less<int>, std::allocator<int> > >, void> >' requested here
    std::is_base_of<detail::type_caster_holder<base, holder>, detail::type_caster<holder>> {};
    ^
./chenhancc/includes/pybind11/include/pybind11/detail/common.h:563:49: note: in instantiation of template class 'pybind11::detail::is_holder_type<std::set<int, std::less<int>, std::allocator<int> >, std::shared_ptr<std::set<int, std::less<int>, std::allocator<int> > > >' requested here
    static constexpr auto found = constexpr_sum(Predicate<Ts>::value...);
                                                ^
./chenhancc/includes/pybind11/include/pybind11/detail/common.h:573:1: note: in instantiation of template class 'pybind11::detail::exactly_one<is_holder, std::unique_ptr<std::set<int, std::less<int>, std::allocator<int> >, std::default_delete<std::set<int, std::less<int>, std::allocator<int> > > >, std::shared_ptr<std::set<int, std::less<int>, std::allocator<int> > > >' requested here
using exactly_one_t = typename exactly_one<Predicate, Default, Ts...>::type;
^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1018:33: note: in instantiation of template type alias 'exactly_one_t' requested here
    using holder_type = detail::exactly_one_t<is_holder, std::unique_ptr<type>, options...>;
                                ^
chenhancc/chenhancc.cpp:690:67: note: in instantiation of template class 'pybind11::class_<std::set<int, std::less<int>, std::allocator<int> >, std::shared_ptr<std::set<int, std::less<int>, std::allocator<int> > > >' requested here
                pybind11::class_<std::set<int>, std::shared_ptr<std::set<int>>> cl(M("std"), "set_int_t", "");
                                                                                ^
In file included from chenhancc/chenhancc.cpp:598:
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1020:5: error: static_assert failed "Unknown/invalid class_ template parameters provided"
    static_assert(detail::all_of<is_valid_class_option<options>...>::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
chenhancc/chenhancc.cpp:690:67: note: in instantiation of template class 'pybind11::class_<std::set<int, std::less<int>, std::allocator<int> >, std::shared_ptr<std::set<int, std::less<int>, std::allocator<int> > > >' requested here
                pybind11::class_<std::set<int>, std::shared_ptr<std::set<int>>> cl(M("std"), "set_int_t", "");
                                                                                ^
chenhancc/chenhancc.cpp:910:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:952:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:964:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:989:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:1008:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:1722:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:1740:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:1755:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:1768:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:1796:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:1807:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:1826:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:1835:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:1843:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
chenhancc/chenhancc.cpp:1851:20: warning: unused variable 'cl_type' [-Wunused-variable]
                pybind11::handle cl_type = cl;
                                 ^
In file included from chenhancc/chenhancc.cpp:598:
In file included from ./chenhancc/includes/pybind11/include/pybind11/pybind11.h:43:
In file included from ./chenhancc/includes/pybind11/include/pybind11/detail/../attr.h:13:
./chenhancc/includes/pybind11/include/pybind11/cast.h:1380:5: error: static_assert failed "Holder classes are only supported for custom types"
    static_assert(std::is_base_of<base, type_caster<type>>::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybind11/include/pybind11/cast.h:1454:48: note: in instantiation of template class 'pybind11::detail::copyable_holder_caster<std::vector<CPoint3D, std::allocator<CPoint3D> >, std::shared_ptr<std::vector<CPoint3D, std::allocator<CPoint3D> > > >' requested here
class type_caster<std::shared_ptr<T>> : public copyable_holder_caster<T, std::shared_ptr<T>> { };
                                               ^
/usr/lib/gcc/x86_64-linux-gnu/5.4.1/../../../../include/c++/5.4.1/type_traits:1460:66: note: in instantiation of template class 'pybind11::detail::type_caster<std::shared_ptr<std::vector<CPoint3D, std::allocator<CPoint3D> > >, void>' requested here
    : public integral_constant<bool, __is_base_of(_Base, _Derived)>
                                                                 ^
./chenhancc/includes/pybind11/include/pybind11/cast.h:1491:5: note: in instantiation of template class 'std::is_base_of<pybind11::detail::copyable_holder_caster<std::vector<CPoint3D, std::allocator<CPoint3D> >, std::shared_ptr<std::vector<CPoint3D, std::allocator<CPoint3D> > > >, pybind11::detail::type_caster<std::shared_ptr<std::vector<CPoint3D, std::allocator<CPoint3D> > >, void> >' requested here
    std::is_base_of<detail::type_caster_holder<base, holder>, detail::type_caster<holder>> {};
    ^
./chenhancc/includes/pybind11/include/pybind11/detail/common.h:563:49: note: in instantiation of template class 'pybind11::detail::is_holder_type<std::vector<CPoint3D, std::allocator<CPoint3D> >, std::shared_ptr<std::vector<CPoint3D, std::allocator<CPoint3D> > > >' requested here
    static constexpr auto found = constexpr_sum(Predicate<Ts>::value...);
                                                ^
./chenhancc/includes/pybind11/include/pybind11/detail/common.h:573:1: note: in instantiation of template class 'pybind11::detail::exactly_one<is_holder, std::unique_ptr<std::vector<CPoint3D, std::allocator<CPoint3D> >, std::default_delete<std::vector<CPoint3D, std::allocator<CPoint3D> > > >, std::shared_ptr<std::vector<CPoint3D, std::allocator<CPoint3D> > > >' requested here
using exactly_one_t = typename exactly_one<Predicate, Default, Ts...>::type;
^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1018:33: note: in instantiation of template type alias 'exactly_one_t' requested here
    using holder_type = detail::exactly_one_t<is_holder, std::unique_ptr<type>, options...>;
                                ^
./chenhancc/includes/pybinder/stl_binders.hpp:38:15: note: in instantiation of template class 'pybind11::class_<std::vector<CPoint3D, std::allocator<CPoint3D> >, std::shared_ptr<std::vector<CPoint3D, std::allocator<CPoint3D> > > >' requested here
                Class_ cl = pybind11::bind_vector<Vector, holder_type>(m, "vector_"+name);
                            ^
chenhancc/chenhancc.cpp:613:2: note: in instantiation of member function 'binder::vector_binder<CPoint3D, std::allocator<CPoint3D> >::vector_binder' requested here
        binder::vector_binder<CPoint3D,std::allocator<CPoint3D>>(M("std"), "CPoint3D", "std_allocator_CPoint3D_t");
        ^
In file included from chenhancc/chenhancc.cpp:598:
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1020:5: error: static_assert failed "Unknown/invalid class_ template parameters provided"
    static_assert(detail::all_of<is_valid_class_option<options>...>::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybinder/stl_binders.hpp:38:15: note: in instantiation of template class 'pybind11::class_<std::vector<CPoint3D, std::allocator<CPoint3D> >, std::shared_ptr<std::vector<CPoint3D, std::allocator<CPoint3D> > > >' requested here
                Class_ cl = pybind11::bind_vector<Vector, holder_type>(m, "vector_"+name);
                            ^
chenhancc/chenhancc.cpp:613:2: note: in instantiation of member function 'binder::vector_binder<CPoint3D, std::allocator<CPoint3D> >::vector_binder' requested here
        binder::vector_binder<CPoint3D,std::allocator<CPoint3D>>(M("std"), "CPoint3D", "std_allocator_CPoint3D_t");
        ^
In file included from chenhancc/chenhancc.cpp:600:
In file included from ./chenhancc/includes/pybinder/stl_binders.hpp:17:
./chenhancc/includes/pybind11/include/pybind11/stl_bind.h:383:12: error: no matching constructor for initialization of 'Class_' (aka 'class_<std::vector<CPoint3D, std::allocator<CPoint3D> >, std::shared_ptr<std::vector<CPoint3D, std::allocator<CPoint3D> > > >')
    Class_ cl(scope, name.c_str(), pybind11::module_local(local), std::forward<Args>(args)...);
           ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybinder/stl_binders.hpp:38:25: note: in instantiation of function template specialization 'pybind11::bind_vector<std::vector<CPoint3D, std::allocator<CPoint3D> >, std::shared_ptr<std::vector<CPoint3D, std::allocator<CPoint3D> > >>' requested here
                Class_ cl = pybind11::bind_vector<Vector, holder_type>(m, "vector_"+name);
                                      ^
chenhancc/chenhancc.cpp:613:2: note: in instantiation of member function 'binder::vector_binder<CPoint3D, std::allocator<CPoint3D> >::vector_binder' requested here
        binder::vector_binder<CPoint3D,std::allocator<CPoint3D>>(M("std"), "CPoint3D", "std_allocator_CPoint3D_t");
        ^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1006:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
class class_ : public detail::generic_type {
      ^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1006:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 3 were provided
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1006:7: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 3 were provided
In file included from chenhancc/chenhancc.cpp:598:
In file included from ./chenhancc/includes/pybind11/include/pybind11/pybind11.h:43:
In file included from ./chenhancc/includes/pybind11/include/pybind11/detail/../attr.h:13:
./chenhancc/includes/pybind11/include/pybind11/cast.h:1380:5: error: static_assert failed "Holder classes are only supported for custom types"
    static_assert(std::is_base_of<base, type_caster<type>>::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybind11/include/pybind11/cast.h:1454:48: note: in instantiation of template class 'pybind11::detail::copyable_holder_caster<std::vector<CFace, std::allocator<CFace> >, std::shared_ptr<std::vector<CFace, std::allocator<CFace> > > >' requested here
class type_caster<std::shared_ptr<T>> : public copyable_holder_caster<T, std::shared_ptr<T>> { };
                                               ^
/usr/lib/gcc/x86_64-linux-gnu/5.4.1/../../../../include/c++/5.4.1/type_traits:1460:66: note: in instantiation of template class 'pybind11::detail::type_caster<std::shared_ptr<std::vector<CFace, std::allocator<CFace> > >, void>' requested here
    : public integral_constant<bool, __is_base_of(_Base, _Derived)>
                                                                 ^
./chenhancc/includes/pybind11/include/pybind11/cast.h:1491:5: note: in instantiation of template class 'std::is_base_of<pybind11::detail::copyable_holder_caster<std::vector<CFace, std::allocator<CFace> >, std::shared_ptr<std::vector<CFace, std::allocator<CFace> > > >, pybind11::detail::type_caster<std::shared_ptr<std::vector<CFace, std::allocator<CFace> > >, void> >' requested here
    std::is_base_of<detail::type_caster_holder<base, holder>, detail::type_caster<holder>> {};
    ^
./chenhancc/includes/pybind11/include/pybind11/detail/common.h:563:49: note: in instantiation of template class 'pybind11::detail::is_holder_type<std::vector<CFace, std::allocator<CFace> >, std::shared_ptr<std::vector<CFace, std::allocator<CFace> > > >' requested here
    static constexpr auto found = constexpr_sum(Predicate<Ts>::value...);
                                                ^
./chenhancc/includes/pybind11/include/pybind11/detail/common.h:573:1: note: in instantiation of template class 'pybind11::detail::exactly_one<is_holder, std::unique_ptr<std::vector<CFace, std::allocator<CFace> >, std::default_delete<std::vector<CFace, std::allocator<CFace> > > >, std::shared_ptr<std::vector<CFace, std::allocator<CFace> > > >' requested here
using exactly_one_t = typename exactly_one<Predicate, Default, Ts...>::type;
^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1018:33: note: in instantiation of template type alias 'exactly_one_t' requested here
    using holder_type = detail::exactly_one_t<is_holder, std::unique_ptr<type>, options...>;
                                ^
./chenhancc/includes/pybinder/stl_binders.hpp:38:15: note: in instantiation of template class 'pybind11::class_<std::vector<CFace, std::allocator<CFace> >, std::shared_ptr<std::vector<CFace, std::allocator<CFace> > > >' requested here
                Class_ cl = pybind11::bind_vector<Vector, holder_type>(m, "vector_"+name);
                            ^
chenhancc/chenhancc.cpp:616:2: note: in instantiation of member function 'binder::vector_binder<CFace, std::allocator<CFace> >::vector_binder' requested here
        binder::vector_binder<CFace,std::allocator<CFace>>(M("std"), "CFace", "std_allocator_CFace_t");
        ^
In file included from chenhancc/chenhancc.cpp:598:
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1020:5: error: static_assert failed "Unknown/invalid class_ template parameters provided"
    static_assert(detail::all_of<is_valid_class_option<options>...>::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybinder/stl_binders.hpp:38:15: note: in instantiation of template class 'pybind11::class_<std::vector<CFace, std::allocator<CFace> >, std::shared_ptr<std::vector<CFace, std::allocator<CFace> > > >' requested here
                Class_ cl = pybind11::bind_vector<Vector, holder_type>(m, "vector_"+name);
                            ^
chenhancc/chenhancc.cpp:616:2: note: in instantiation of member function 'binder::vector_binder<CFace, std::allocator<CFace> >::vector_binder' requested here
        binder::vector_binder<CFace,std::allocator<CFace>>(M("std"), "CFace", "std_allocator_CFace_t");
        ^
In file included from chenhancc/chenhancc.cpp:600:
In file included from ./chenhancc/includes/pybinder/stl_binders.hpp:17:
./chenhancc/includes/pybind11/include/pybind11/stl_bind.h:383:12: error: no matching constructor for initialization of 'Class_' (aka 'class_<std::vector<CFace, std::allocator<CFace> >, std::shared_ptr<std::vector<CFace, std::allocator<CFace> > > >')
    Class_ cl(scope, name.c_str(), pybind11::module_local(local), std::forward<Args>(args)...);
           ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybinder/stl_binders.hpp:38:25: note: in instantiation of function template specialization 'pybind11::bind_vector<std::vector<CFace, std::allocator<CFace> >, std::shared_ptr<std::vector<CFace, std::allocator<CFace> > >>' requested here
                Class_ cl = pybind11::bind_vector<Vector, holder_type>(m, "vector_"+name);
                                      ^
chenhancc/chenhancc.cpp:616:2: note: in instantiation of member function 'binder::vector_binder<CFace, std::allocator<CFace> >::vector_binder' requested here
        binder::vector_binder<CFace,std::allocator<CFace>>(M("std"), "CFace", "std_allocator_CFace_t");
        ^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1006:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
class class_ : public detail::generic_type {
      ^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1006:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 3 were provided
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1006:7: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 3 were provided
In file included from chenhancc/chenhancc.cpp:598:
In file included from ./chenhancc/includes/pybind11/include/pybind11/pybind11.h:43:
In file included from ./chenhancc/includes/pybind11/include/pybind11/detail/../attr.h:13:
./chenhancc/includes/pybind11/include/pybind11/cast.h:1380:5: error: static_assert failed "Holder classes are only supported for custom types"
    static_assert(std::is_base_of<base, type_caster<type>>::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybind11/include/pybind11/cast.h:1454:48: note: in instantiation of template class 'pybind11::detail::copyable_holder_caster<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > >, std::shared_ptr<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > > > >' requested here
class type_caster<std::shared_ptr<T>> : public copyable_holder_caster<T, std::shared_ptr<T>> { };
                                               ^
/usr/lib/gcc/x86_64-linux-gnu/5.4.1/../../../../include/c++/5.4.1/type_traits:1460:66: note: in instantiation of template class 'pybind11::detail::type_caster<std::shared_ptr<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > > >, void>' requested here
    : public integral_constant<bool, __is_base_of(_Base, _Derived)>
                                                                 ^
./chenhancc/includes/pybind11/include/pybind11/cast.h:1491:5: note: in instantiation of template class 'std::is_base_of<pybind11::detail::copyable_holder_caster<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > >, std::shared_ptr<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > > > >, pybind11::detail::type_caster<std::shared_ptr<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > > >, void> >' requested here
    std::is_base_of<detail::type_caster_holder<base, holder>, detail::type_caster<holder>> {};
    ^
./chenhancc/includes/pybind11/include/pybind11/detail/common.h:563:49: note: in instantiation of template class 'pybind11::detail::is_holder_type<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > >, std::shared_ptr<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > > > >' requested here
    static constexpr auto found = constexpr_sum(Predicate<Ts>::value...);
                                                ^
./chenhancc/includes/pybind11/include/pybind11/detail/common.h:573:1: note: in instantiation of template class 'pybind11::detail::exactly_one<is_holder, std::unique_ptr<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > >, std::default_delete<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > > > >, std::shared_ptr<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > > > >' requested here
using exactly_one_t = typename exactly_one<Predicate, Default, Ts...>::type;
^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1018:33: note: in instantiation of template type alias 'exactly_one_t' requested here
    using holder_type = detail::exactly_one_t<is_holder, std::unique_ptr<type>, options...>;
                                ^
./chenhancc/includes/pybinder/stl_binders.hpp:38:15: note: in instantiation of template class 'pybind11::class_<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > >, std::shared_ptr<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > > > >' requested here
                Class_ cl = pybind11::bind_vector<Vector, holder_type>(m, "vector_"+name);
                            ^
chenhancc/chenhancc.cpp:619:2: note: in instantiation of member function 'binder::vector_binder<std::pair<int, double>, std::allocator<std::pair<int, double> > >::vector_binder' requested here
        binder::vector_binder<std::pair<int, double>,std::allocator<std::pair<int, double> >>(M("std"), "std_pair_int_double_t", "std_allocator_std_pair_int_double_t");
        ^
In file included from chenhancc/chenhancc.cpp:598:
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1020:5: error: static_assert failed "Unknown/invalid class_ template parameters provided"
    static_assert(detail::all_of<is_valid_class_option<options>...>::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybinder/stl_binders.hpp:38:15: note: in instantiation of template class 'pybind11::class_<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > >, std::shared_ptr<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > > > >' requested here
                Class_ cl = pybind11::bind_vector<Vector, holder_type>(m, "vector_"+name);
                            ^
chenhancc/chenhancc.cpp:619:2: note: in instantiation of member function 'binder::vector_binder<std::pair<int, double>, std::allocator<std::pair<int, double> > >::vector_binder' requested here
        binder::vector_binder<std::pair<int, double>,std::allocator<std::pair<int, double> >>(M("std"), "std_pair_int_double_t", "std_allocator_std_pair_int_double_t");
        ^
In file included from chenhancc/chenhancc.cpp:600:
In file included from ./chenhancc/includes/pybinder/stl_binders.hpp:17:
./chenhancc/includes/pybind11/include/pybind11/stl_bind.h:383:12: error: no matching constructor for initialization of 'Class_' (aka 'class_<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > >, std::shared_ptr<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > > > >')
    Class_ cl(scope, name.c_str(), pybind11::module_local(local), std::forward<Args>(args)...);
           ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybinder/stl_binders.hpp:38:25: note: in instantiation of function template specialization 'pybind11::bind_vector<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > >, std::shared_ptr<std::vector<std::pair<int, double>, std::allocator<std::pair<int, double> > > >>' requested here
                Class_ cl = pybind11::bind_vector<Vector, holder_type>(m, "vector_"+name);
                                      ^
chenhancc/chenhancc.cpp:619:2: note: in instantiation of member function 'binder::vector_binder<std::pair<int, double>, std::allocator<std::pair<int, double> > >::vector_binder' requested here
        binder::vector_binder<std::pair<int, double>,std::allocator<std::pair<int, double> >>(M("std"), "std_pair_int_double_t", "std_allocator_std_pair_int_double_t");
        ^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1006:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
class class_ : public detail::generic_type {
      ^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1006:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 3 were provided
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1006:7: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 3 were provided
In file included from chenhancc/chenhancc.cpp:598:
In file included from ./chenhancc/includes/pybind11/include/pybind11/pybind11.h:43:
In file included from ./chenhancc/includes/pybind11/include/pybind11/detail/../attr.h:13:
./chenhancc/includes/pybind11/include/pybind11/cast.h:1380:5: error: static_assert failed "Holder classes are only supported for custom types"
    static_assert(std::is_base_of<base, type_caster<type>>::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybind11/include/pybind11/cast.h:1454:48: note: in instantiation of template class 'pybind11::detail::copyable_holder_caster<std::vector<EdgePoint, std::allocator<EdgePoint> >, std::shared_ptr<std::vector<EdgePoint, std::allocator<EdgePoint> > > >' requested here
class type_caster<std::shared_ptr<T>> : public copyable_holder_caster<T, std::shared_ptr<T>> { };
                                               ^
/usr/lib/gcc/x86_64-linux-gnu/5.4.1/../../../../include/c++/5.4.1/type_traits:1460:66: note: in instantiation of template class 'pybind11::detail::type_caster<std::shared_ptr<std::vector<EdgePoint, std::allocator<EdgePoint> > >, void>' requested here
    : public integral_constant<bool, __is_base_of(_Base, _Derived)>
                                                                 ^
./chenhancc/includes/pybind11/include/pybind11/cast.h:1491:5: note: in instantiation of template class 'std::is_base_of<pybind11::detail::copyable_holder_caster<std::vector<EdgePoint, std::allocator<EdgePoint> >, std::shared_ptr<std::vector<EdgePoint, std::allocator<EdgePoint> > > >, pybind11::detail::type_caster<std::shared_ptr<std::vector<EdgePoint, std::allocator<EdgePoint> > >, void> >' requested here
    std::is_base_of<detail::type_caster_holder<base, holder>, detail::type_caster<holder>> {};
    ^
./chenhancc/includes/pybind11/include/pybind11/detail/common.h:563:49: note: in instantiation of template class 'pybind11::detail::is_holder_type<std::vector<EdgePoint, std::allocator<EdgePoint> >, std::shared_ptr<std::vector<EdgePoint, std::allocator<EdgePoint> > > >' requested here
    static constexpr auto found = constexpr_sum(Predicate<Ts>::value...);
                                                ^
./chenhancc/includes/pybind11/include/pybind11/detail/common.h:573:1: note: in instantiation of template class 'pybind11::detail::exactly_one<is_holder, std::unique_ptr<std::vector<EdgePoint, std::allocator<EdgePoint> >, std::default_delete<std::vector<EdgePoint, std::allocator<EdgePoint> > > >, std::shared_ptr<std::vector<EdgePoint, std::allocator<EdgePoint> > > >' requested here
using exactly_one_t = typename exactly_one<Predicate, Default, Ts...>::type;
^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1018:33: note: in instantiation of template type alias 'exactly_one_t' requested here
    using holder_type = detail::exactly_one_t<is_holder, std::unique_ptr<type>, options...>;
                                ^
./chenhancc/includes/pybinder/stl_binders.hpp:38:15: note: in instantiation of template class 'pybind11::class_<std::vector<EdgePoint, std::allocator<EdgePoint> >, std::shared_ptr<std::vector<EdgePoint, std::allocator<EdgePoint> > > >' requested here
                Class_ cl = pybind11::bind_vector<Vector, holder_type>(m, "vector_"+name);
                            ^
chenhancc/chenhancc.cpp:622:2: note: in instantiation of member function 'binder::vector_binder<EdgePoint, std::allocator<EdgePoint> >::vector_binder' requested here
        binder::vector_binder<EdgePoint,std::allocator<EdgePoint>>(M("std"), "EdgePoint", "std_allocator_EdgePoint_t");
        ^
In file included from chenhancc/chenhancc.cpp:598:
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1020:5: error: static_assert failed "Unknown/invalid class_ template parameters provided"
    static_assert(detail::all_of<is_valid_class_option<options>...>::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybinder/stl_binders.hpp:38:15: note: in instantiation of template class 'pybind11::class_<std::vector<EdgePoint, std::allocator<EdgePoint> >, std::shared_ptr<std::vector<EdgePoint, std::allocator<EdgePoint> > > >' requested here
                Class_ cl = pybind11::bind_vector<Vector, holder_type>(m, "vector_"+name);
                            ^
chenhancc/chenhancc.cpp:622:2: note: in instantiation of member function 'binder::vector_binder<EdgePoint, std::allocator<EdgePoint> >::vector_binder' requested here
        binder::vector_binder<EdgePoint,std::allocator<EdgePoint>>(M("std"), "EdgePoint", "std_allocator_EdgePoint_t");
        ^
In file included from chenhancc/chenhancc.cpp:600:
In file included from ./chenhancc/includes/pybinder/stl_binders.hpp:17:
./chenhancc/includes/pybind11/include/pybind11/stl_bind.h:383:12: error: no matching constructor for initialization of 'Class_' (aka 'class_<std::vector<EdgePoint, std::allocator<EdgePoint> >, std::shared_ptr<std::vector<EdgePoint, std::allocator<EdgePoint> > > >')
    Class_ cl(scope, name.c_str(), pybind11::module_local(local), std::forward<Args>(args)...);
           ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./chenhancc/includes/pybinder/stl_binders.hpp:38:25: note: in instantiation of function template specialization 'pybind11::bind_vector<std::vector<EdgePoint, std::allocator<EdgePoint> >, std::shared_ptr<std::vector<EdgePoint, std::allocator<EdgePoint> > >>' requested here
                Class_ cl = pybind11::bind_vector<Vector, holder_type>(m, "vector_"+name);
                                      ^
chenhancc/chenhancc.cpp:622:2: note: in instantiation of member function 'binder::vector_binder<EdgePoint, std::allocator<EdgePoint> >::vector_binder' requested here
        binder::vector_binder<EdgePoint,std::allocator<EdgePoint>>(M("std"), "EdgePoint", "std_allocator_EdgePoint_t");
        ^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1006:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
class class_ : public detail::generic_type {
      ^
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1006:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 3 were provided
./chenhancc/includes/pybind11/include/pybind11/pybind11.h:1006:7: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 3 were provided
19 warnings and 14 errors generated.
error: command 'clang++' failed with exit status 1

from binder.

aalavandhaann avatar aalavandhaann commented on May 18, 2024

I used the build-and-run-tests.py on the repository to clone everything (llvm, clang, pybind11). So I am not sure if the build scripts clone the (fa6a4241326a361fc23915f6a82c1e48667de668) signature or something else. Can you confirm if the script is cloning the latest version of pybind11?

Regards,

#0K

from binder.

aalavandhaann avatar aalavandhaann commented on May 18, 2024

chenhancc-OLD_THAT_WORKS.txt

chenhancc-NEW_NOT_WORKING.txt

I have attached both the cpp generated by the previous (working) binder and the new binder (non-buildable) files. A diff shows difference between the way lists are added, how init is called etc., I was not able to investigate further as my knowledge is quite limited :-)

Regards,

#0K

from binder.

lyskov avatar lyskov commented on May 18, 2024

Can you confirm if the script is cloning the latest version of pybind11?
You will need to cd into pybind11 cloned location and check what revision is checkout and compare it to fa6a4241326a361fc23915f6a82c1e48667de668. As far i can tell script is correct, see: https://github.com/RosettaCommons/binder/blob/master/build.py#L32

re error log: from the logs it is clear that this problem not with Binder but from the generated code. So you will need to investigate which line of generated code causes this. If a wrong code was generated then please post here and if generated code is correct then please submit as issue to pybind11 project.

from binder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.