openfheorg / openfhe-python

Official Python wrapper for OpenFHE. Current release is v0.8.8 (released on June 25, 2024).
https://openfheorg.github.io/openfhe-python/html/index.html
BSD 2-Clause "Simplified" License
60 stars 18 forks source link

Build issues #154

Open pavan-ranganath opened 5 days ago

pavan-ranganath commented 5 days ago

cmake is successfull

OpenFHE - 1.2.0
python - 3.8.10

When I try to make the project, I met these problem,how can I solve it?


/usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2: error: delete called on non-final 'lbcrypto::CCParams<lbcrypto::CryptoContextBFVRNS>' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-abstract-non-virtual-dtor]
        delete __ptr;
        ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:292:4: note: in instantiation of member function 'std::default_delete<lbcrypto::CCParams<lbcrypto::CryptoContextBFVRNS> >::operator()' requested here
          get_deleter()(std::move(__ptr));
          ^
/home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:1880:40: note: in instantiation of member function 'std::unique_ptr<lbcrypto::CCParams<lbcrypto::CryptoContextBFVRNS>, std::default_delete<lbcrypto::CCParams<lbcrypto::CryptoContextBFVRNS> > >::~unique_ptr' requested here
            v_h.holder<holder_type>().~holder_type();
                                       ^
/home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:1542:26: note: in instantiation of member function 'pybind11::class_<lbcrypto::CCParams<lbcrypto::CryptoContextBFVRNS>>::dealloc' requested here
        record.dealloc = dealloc;
                         ^
/home/pavanr/Downloads/new-openfhe-1/openfhe-python/src/lib/bindings.cpp:28:5: note: in instantiation of function template specialization 'pybind11::class_<lbcrypto::CCParams<lbcrypto::CryptoContextBFVRNS>>::class_<>' requested here
    py::class_<CCParams<T>>(m, name.c_str())
    ^
/home/pavanr/Downloads/new-openfhe-1/openfhe-python/src/lib/bindings.cpp:1189:5: note: in instantiation of function template specialization 'bind_parameters<lbcrypto::CryptoContextBFVRNS>' requested here
    bind_parameters<CryptoContextBFVRNS>(m,"CCParamsBFVRNS");
    ^
In file included from /home/pavanr/Downloads/new-openfhe-1/openfhe-python/src/lib/bindings.cpp:1:
In file included from /home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:13:
In file included from /home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/detail/class.h:12:
In file included from /home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/attr.h:13:
In file included from /home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/detail/common.h:307:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/memory:80:
/usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2: error: delete called on non-final 'lbcrypto::CCParams<lbcrypto::CryptoContextBGVRNS>' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-abstract-non-virtual-dtor]
        delete __ptr;
        ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:292:4: note: in instantiation of member function 'std::default_delete<lbcrypto::CCParams<lbcrypto::CryptoContextBGVRNS> >::operator()' requested here
          get_deleter()(std::move(__ptr));
          ^
/home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:1880:40: note: in instantiation of member function 'std::unique_ptr<lbcrypto::CCParams<lbcrypto::CryptoContextBGVRNS>, std::default_delete<lbcrypto::CCParams<lbcrypto::CryptoContextBGVRNS> > >::~unique_ptr' requested here
            v_h.holder<holder_type>().~holder_type();
                                       ^
/home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:1542:26: note: in instantiation of member function 'pybind11::class_<lbcrypto::CCParams<lbcrypto::CryptoContextBGVRNS>>::dealloc' requested here
        record.dealloc = dealloc;
                         ^
/home/pavanr/Downloads/new-openfhe-1/openfhe-python/src/lib/bindings.cpp:28:5: note: in instantiation of function template specialization 'pybind11::class_<lbcrypto::CCParams<lbcrypto::CryptoContextBGVRNS>>::class_<>' requested here
    py::class_<CCParams<T>>(m, name.c_str())
    ^
/home/pavanr/Downloads/new-openfhe-1/openfhe-python/src/lib/bindings.cpp:1190:5: note: in instantiation of function template specialization 'bind_parameters<lbcrypto::CryptoContextBGVRNS>' requested here
    bind_parameters<CryptoContextBGVRNS>(m,"CCParamsBGVRNS");
    ^
In file included from /home/pavanr/Downloads/new-openfhe-1/openfhe-python/src/lib/bindings.cpp:1:
In file included from /home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:13:
In file included from /home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/detail/class.h:12:
In file included from /home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/attr.h:13:
In file included from /home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/detail/common.h:307:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/memory:80:
/usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2: error: delete called on non-final 'lbcrypto::CCParams<lbcrypto::CryptoContextCKKSRNS>' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-abstract-non-virtual-dtor]
        delete __ptr;
        ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:292:4: note: in instantiation of member function 'std::default_delete<lbcrypto::CCParams<lbcrypto::CryptoContextCKKSRNS> >::operator()' requested here
          get_deleter()(std::move(__ptr));
          ^
/home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:1880:40: note: in instantiation of member function 'std::unique_ptr<lbcrypto::CCParams<lbcrypto::CryptoContextCKKSRNS>, std::default_delete<lbcrypto::CCParams<lbcrypto::CryptoContextCKKSRNS> > >::~unique_ptr' requested here
            v_h.holder<holder_type>().~holder_type();
                                       ^
/home/pavanr/.local/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:1542:26: note: in instantiation of member function 'pybind11::class_<lbcrypto::CCParams<lbcrypto::CryptoContextCKKSRNS>>::dealloc' requested here
        record.dealloc = dealloc;
                         ^
/home/pavanr/Downloads/new-openfhe-1/openfhe-python/src/lib/bindings.cpp:28:5: note: in instantiation of function template specialization 'pybind11::class_<lbcrypto::CCParams<lbcrypto::CryptoContextCKKSRNS>>::class_<>' requested here
    py::class_<CCParams<T>>(m, name.c_str())
    ^
/home/pavanr/Downloads/new-openfhe-1/openfhe-python/src/lib/bindings.cpp:1191:5: note: in instantiation of function template specialization 'bind_parameters<lbcrypto::CryptoContextCKKSRNS>' requested here
    bind_parameters<CryptoContextCKKSRNS>(m,"CCParamsCKKSRNS");
    ^
3 errors generated.
make[2]: *** [CMakeFiles/openfhe.dir/build.make:63: CMakeFiles/openfhe.dir/src/lib/bindings.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/openfhe.dir/all] Error 2
make: *** [Makefile:130: all] Error 2