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

OpenMP version #6

Open
xiaohaishuishen opened this issue Nov 4, 2021 · 1 comment
Open

OpenMP version #6

xiaohaishuishen opened this issue Nov 4, 2021 · 1 comment

Comments

@xiaohaishuishen
Copy link

OpenMP 5.3.1 or newer
But the latest version is 5.1?
When I run the sudo apt-get install libomp-dev, it shows it is the latest version(5.0.1-1).
And when I want to build the zkpod-lib, in the last step make, my original go program doesn't work. But he four files mentioned were successfully generated.
Then, I build the zkpod-node, make test doesn't work, only the last step testing failed.

@Mahasri01
Copy link

Please , help me to solve this.
I'm getting an issue while i running a make test command in cd pod_go
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

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