Closed pavan-ranganath closed 5 months ago
i am also facing same problem
make
error on macos
[ 16%] Building CXX object CMakeFiles/openfhe.dir/src/lib/bindings.cpp.o
In file included from /Users/devharsh/Downloads/openfhe-python/src/lib/bindings.cpp:1:
/usr/local/include/pybind11/pybind11.h:218:9: error: static assertion failed due to requirement 'expected_num_args<pybind11::name, pybind11::is_method, pybind11::sibling, const char *, pybind11::arg_v, pybind11::arg_v, pybind11::arg_v, pybind11::arg_v>(sizeof...(Args), argument_loader<lbcrypto::CryptoContextImpl<lbcrypto::DCRTPolyImpl<bigintdyn::mubintvec<bigintdyn::ubint<unsigned long long>>>> *, std::vector<unsigned int, std::allocator<unsigned int>>, std::vector<unsigned int, std::allocator<unsigned int>>, unsigned int, unsigned int, bool>::args_pos >= 0, argument_loader<lbcrypto::CryptoContextImpl<lbcrypto::DCRTPolyImpl<bigintdyn::mubintvec<bigintdyn::ubint<unsigned long long>>>> *, std::vector<unsigned int, std::allocator<unsigned int>>, std::vector<unsigned int, std::allocator<unsigned int>>, unsigned int, unsigned int, bool>::has_kwargs)': The number of argument annotations does not match the number of function arguments
static_assert(
^
/usr/local/include/pybind11/pybind11.h:110:9: note: in instantiation of function template specialization 'pybind11::cpp_function::initialize<(lambda at /usr/local/include/pybind11/pybind11.h:111:13), void, lbcrypto::CryptoContextImpl<lbcrypto::DCRTPolyImpl<bigintdyn::mubintvec<bigintdyn::ubint<unsigned long long>>>> *, std::vector<unsigned int>, std::vector<unsigned int>, unsigned int, unsigned int, bool, pybind11::name, pybind11::is_method, pybind11::sibling, const char *, pybind11::arg_v, pybind11::arg_v, pybind11::arg_v, pybind11::arg_v>' requested here
initialize(
^
/usr/local/include/pybind11/pybind11.h:1575:22: note: in instantiation of function template specialization 'pybind11::cpp_function::cpp_function<void, lbcrypto::CryptoContextImpl<lbcrypto::DCRTPolyImpl<bigintdyn::mubintvec<bigintdyn::ubint<unsigned long long>>>>, std::vector<unsigned int>, std::vector<unsigned int>, unsigned int, unsigned int, bool, pybind11::name, pybind11::is_method, pybind11::sibling, const char *, pybind11::arg_v, pybind11::arg_v, pybind11::arg_v, pybind11::arg_v>' requested here
cpp_function cf(method_adaptor<type>(std::forward<Func>(f)),
^
/Users/devharsh/Downloads/openfhe-python/src/lib/bindings.cpp:582:10: note: in instantiation of function template specialization 'pybind11::class_<lbcrypto::CryptoContextImpl<lbcrypto::DCRTPolyImpl<bigintdyn::mubintvec<bigintdyn::ubint<unsigned long long>>>>, std::shared_ptr<lbcrypto::CryptoContextImpl<lbcrypto::DCRTPolyImpl<bigintdyn::mubintvec<bigintdyn::ubint<unsigned long long>>>>>>::def<void (lbcrypto::CryptoContextImpl<lbcrypto::DCRTPolyImpl<bigintdyn::mubintvec<bigintdyn::ubint<unsigned long long>>>>::*)(std::vector<unsigned int>, std::vector<unsigned int>, unsigned int, unsigned int, bool), const char *, pybind11::arg_v, pybind11::arg_v, pybind11::arg_v, pybind11::arg_v>' requested here
.def("EvalBootstrapSetup", &CryptoContextImpl<DCRTPoly>::EvalBootstrapSetup,
^
1 error generated.
make[2]: *** [CMakeFiles/openfhe.dir/src/lib/bindings.cpp.o] Error 1
make[1]: *** [CMakeFiles/openfhe.dir/all] Error 2
make: *** [all] Error 2
Git checkout 4ebb28ea7bdd894a73bc5b73e59fcfbc78253308 in the openFHE lib, and build the whole openFHE lib again. They made some changes that broke this lib.
still same problem
try this: Git checkout f6f1b9c ( OpenFHE ) Git checkout 4e39933 ( OpenFHE-Python )
Thanks, its working fine now
Its working now
Thank you
So I just tested this on a new fresh build (fresh pull of openfhe-dev and openfhe-python). I ran into the same issue, but managed to fix it via #98
I've tested it locally and the build is successful. Stay tuned and I'll post an updated comment, which should allow you to now build off the updated openfhe-dev
The fix has been merged to main
(release version updated to v0.8.4)
cmake is successfull
When I try to make the project, I met these problem,how can I solve it?
Additional information