GithubHelp home page GithubHelp logo

Comments (3)

HarryR avatar HarryR commented on August 16, 2024

Building with msys/mingw might be easier:

However, need to install the GMP and OpenSSL components via msys, or alternatively just build them separately and then link against them statically.

Come to think about it - is it better to do static builds of OpenSSL and GMP?

A very limited subset of OpenSSL / libcrypto functionality is used, and for libmiximus.(dll|dylib|so) no OpenSSL functionality is used at all - only GMP (see nm -D libmiximus.so)

Paths for Appveyor: https://www.appveyor.com/docs/build-environment/

But.. it would be nice to have a single file for build_on_windows.bat or build_on_windows.ps

from ethsnarks.

HarryR avatar HarryR commented on August 16, 2024

I've got it almost building on appveyor using MSYS, but it runs into an error:

[ 22%] Built target ethsnarks_gadgets
src/CMakeFiles/hashpreimage.dir/build.make:86: *** target pattern contains no '%'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:1086: src/CMakeFiles/hashpreimage.dir/all] Error 2
make: *** [Makefile:95: all] Error 2

See: https://ci.appveyor.com/project/harryr/ethsnarks/builds/21534551 for full log

It won't build with MSVC because there's no GMP library, but mingw/msys have one.

Most C++ tests are run via cmake now, and the appveyor.yml file should run the tests after a successful build.

from ethsnarks.

HarryR avatar HarryR commented on August 16, 2024

The previous build error has been fixed, this was due to GMP::gmp-NOTFOUND being used as a target name in a Makefile (even though it's found on OSX and Linux, so have directly referenced the ${GMP_LIBRARY} variable instead of the meta-library).

The project now builds successfully on Windows, see: https://ci.appveyor.com/project/harryr/ethsnarks

However... most if not all of the tests fail for mysterious reasons, and one hangs indefinitely. I think this is related to libff and some mysterious weirdness, e.g.:

Program: C:\projects\ethsnarks\build\src\test\test_subadd.exe
File: C:/projects/ethsnarks/depends/libsnark/libsnark/gadgetlib1/gadgets/basic_gadgets.tcc, Line 50
Expression: this->pb.lc_val(packed).as_bigint().num_bits() <= bits.size()

Additionally all zkSNARK proofs fail to verify.

It seems something to do with the finite field library using the wrong field prime.

For now, the tests have been disabled. But a full log of the failing tests is available at: https://ci.appveyor.com/project/harryr/ethsnarks/builds/21950411

from ethsnarks.

Related Issues (20)

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.