Git Product home page Git Product logo

libpolycrypto's People

Contributors

alinush avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

libpolycrypto's Issues

error: conversion to ‘long int’ from ‘size_t {aka long unsigned int}’ may change the sign of the result [-Werror=sign-conversion]

When build the project by running make.sh, there is an [-Werror=sign-conversion] error.
Please see the detail:

ubuntu@ip-172-31-5-148:~/libpolycrypto$ make.sh
Making in '/home/ubuntu/builds/polycrypto/master/release' ...

[  1%] Building CXX object libpolycrypto/src/CMakeFiles/polycrypto.dir/FFThresh.cpp.o
[  2%] Building CXX object libpolycrypto/src/CMakeFiles/polycrypto.dir/KateDkg.cpp.o
[  4%] Building CXX object libpolycrypto/src/CMakeFiles/polycrypto.dir/AmtDkg.cpp.o
[  5%] Building CXX object libpolycrypto/src/CMakeFiles/polycrypto.dir/PolyCrypto.cpp.o
/home/ubuntu/libpolycrypto/libpolycrypto/src/PolyCrypto.cpp: In function ‘std::size_t boost::hash_value(const Fr&)’:
/home/ubuntu/libpolycrypto/libpolycrypto/src/PolyCrypto.cpp:114:68: error: conversion to ‘long int’ from ‘size_t {aka long unsigned int}’ may change the sign of the result [-Werror=sign-conversion]
     auto h = boost::hash_range<unsigned char*>(buf, buf + buf.size());
                                                                    ^
cc1plus: all warnings being treated as errors
libpolycrypto/src/CMakeFiles/polycrypto.dir/build.make:75: recipe for target 'libpolycrypto/src/CMakeFiles/polycrypto.dir/PolyCrypto.cpp.o' failed
make[2]: *** [libpolycrypto/src/CMakeFiles/polycrypto.dir/PolyCrypto.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:120: recipe for target 'libpolycrypto/src/CMakeFiles/polycrypto.dir/all' failed
make[1]: *** [libpolycrypto/src/CMakeFiles/polycrypto.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

License

Thank you for this effort :) What is the code licensed under? (MIT and/or Apache 2.0 would be fantastic.)

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.