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

ZkPoD-lib #7

Open
Mahasri01 opened this issue Apr 1, 2022 · 1 comment
Open

ZkPoD-lib #7

Mahasri01 opened this issue Apr 1, 2022 · 1 comment

Comments

@Mahasri01
Copy link

cd pod_go
export GO111MODULE=on
make test

I'm getting an error while running a make test command in pod core.

scheme_ot_complaint_test.cc:16:40: error: no matching function for call to ‘h256_t::h256_t()’
const h256_t kDummyAliceId = h256_t{{1}};
^
In file included from scheme_ot_complaint_test.h:4:0,
from scheme_ot_complaint_test.cc:1:
../public/basic_types.h:10:8: note: candidate: h256_t::h256_t()
struct h256_t : public std::array<uint8_t, 32> {
^~~~~~
../public/basic_types.h:10:8: note: candidate expects 0 arguments, 1 provided
../public/basic_types.h:10:8: note: candidate: constexpr h256_t::h256_t(const h256_t&)
../public/basic_types.h:10:8: note: no known conversion for argument 1 from ‘’ to ‘const h256_t&’
../public/basic_types.h:10:8: note: candidate: constexpr h256_t::h256_t(h256_t&&)
../public/basic_types.h:10:8: note: no known conversion for argument 1 from ‘’ to ‘h256_t&&’
scheme_ot_complaint_test.cc:17:38: error: no matching function for call to ‘h256_t::h256_t()’
const h256_t kDummyBobId = h256_t{{2}};
^
In file included from scheme_ot_complaint_test.h:4:0,
from scheme_ot_complaint_test.cc:1:
../public/basic_types.h:10:8: note: candidate: h256_t::h256_t()
struct h256_t : public std::array<uint8_t, 32> {
^~~~~~
../public/basic_types.h:10:8: note: candidate expects 0 arguments, 1 provided
../public/basic_types.h:10:8: note: candidate: constexpr h256_t::h256_t(const h256_t&)
../public/basic_types.h:10:8: note: no known conversion for argument 1 from ‘’ to ‘const h256_t&’
../public/basic_types.h:10:8: note: candidate: constexpr h256_t::h256_t(h256_t&&)
../public/basic_types.h:10:8: note: no known conversion for argument 1 from ‘’ to ‘h256_t&&’
scheme_ot_complaint_test.cc: In function ‘bool scheme::ot_complaint::Test(const string&, std::shared_ptr<_Tp1>, std::shared_ptr<_Tp2>, const std::vector&, const std::vector&, bool)’:
scheme_ot_complaint_test.cc:30:9: error: missing template arguments before ‘alice’
Alice alice(alice_data, kDummyAliceId, kDummyBobId);
^~~~~
scheme_ot_complaint_test.cc:31:7: error: missing template arguments before ‘bob’
Bob bob(bob_data, kDummyBobId, kDummyAliceId, demands, phantoms);
^~~
scheme_ot_complaint_test.cc:33:13: error: ‘alice’ was not declared in this scope
if (evil) alice.TestSetEvil();
^~~~~
scheme_ot_complaint_test.cc:36:3: error: ‘bob’ was not declared in this scope
bob.GetNegoReqeust(b_nego_request);
^~~
scheme_ot_complaint_test.cc:38:8: error: ‘alice’ was not declared in this scope
if (!alice.OnNegoRequest(b_nego_request, b_nego_response)) {
^~~~~
scheme_ot_complaint_test.cc:48:3: error: ‘alice’ was not declared in this scope
alice.GetNegoReqeust(a_nego_request);
^~~~~
scheme_ot_complaint_test.cc: In instantiation of ‘bool scheme::ot_complaint::Test(const string&, std::shared_ptr<_Tp1>, std::shared_ptr<_Tp2>, const std::vector&, const std::vector&, bool) [with AliceData = scheme::plain::AliceData; BobData = scheme::plain::BobData; std::__cxx11::string = std::__cxx11::basic_string]’:
scheme_ot_complaint_test.cc:130:67: required from here
scheme_ot_complaint_test.cc:24:36: warning: unused parameter ‘bob_data’ [-Wunused-parameter]
std::shared_ptr bob_data, std::vector const& demands,
^~~~~~~~
scheme_ot_complaint_test.cc:24:72: warning: unused parameter ‘demands’ [-Wunused-parameter]
std::shared_ptr bob_data, std::vector const& demands,
^~~~~~~
scheme_ot_complaint_test.cc:25:37: warning: unused parameter ‘phantoms’ [-Wunused-parameter]
std::vector const& phantoms, bool evil) {
^~~~~~~~
scheme_ot_complaint_test.cc: In instantiation of ‘bool scheme::ot_complaint::Test(const string&, std::shared_ptr<_Tp1>, std::shared_ptr<_Tp2>, const std::vector&, const std::vector&, bool) [with AliceData = scheme::table::AliceData; BobData = scheme::table::BobData; std::__cxx11::string = std::__cxx11::basic_string]’:
scheme_ot_complaint_test.cc:154:67: required from here
scheme_ot_complaint_test.cc:24:36: warning: unused parameter ‘bob_data’ [-Wunused-parameter]
std::shared_ptr bob_data, std::vector const& demands,
^~~~~~~~
scheme_ot_complaint_test.cc:24:72: warning: unused parameter ‘demands’ [-Wunused-parameter]
std::shared_ptr bob_data, std::vector const& demands,
^~~~~~~
scheme_ot_complaint_test.cc:25:37: warning: unused parameter ‘phantoms’ [-Wunused-parameter]
std::vector const& phantoms, bool evil) {
^~~~~~~~
scheme_ot_complaint_test.cc: At global scope:
scheme_ot_complaint_test.cc:17:14: warning: ‘{anonymous}::kDummyBobId’ defined but not used [-Wunused-variable]
const h256_t kDummyBobId = h256_t{{2}};
^~~~~~~~~~~
scheme_ot_complaint_test.cc:16:14: warning: ‘{anonymous}::kDummyAliceId’ defined but not used [-Wunused-variable]
const h256_t kDummyAliceId = h256_t{{1}};
^~~~~~~~~~~~~
Makefile:162: recipe for target 'build/self/./scheme_ot_complaint_test.o' failed
make[1]: *** [build/self/./scheme_ot_complaint_test.o] Error 1
make[1]: Leaving directory '/home/elcot/zkPoD/zkPoD-lib/pod_core'
Makefile:101: recipe for target 'pod_core' failed
make: *** [pod_core] Error 2

@daizhiwei123456
Copy link

I have the same problem. Have you solved it

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

No branches or pull requests

2 participants