Giter Club home page Giter Club logo

Comments (3)

herumi avatar herumi commented on August 17, 2024

I've removed stdc++ at 79a8271 .

from bls-eth-rust.

sauliusgrigaitis avatar sauliusgrigaitis commented on August 17, 2024

Thank you. However, it still doesn't work. The problem is with bls-eth-go-binary, it is created with MinGW's g++ so it can not be linked with MSVC. You can see how to test with x86_64-pc-windows-msvc on Github Workflows here grandinetech@b499b35 .

The solution would be to either build bls-eth-go-binary on native Windows machine or build with Github Workflows on windows-latest target with MSVC.

from bls-eth-rust.

herumi avatar herumi commented on August 17, 2024

The static library in bls-eth-go-binary is for Golang and it is compiled by mingw64 and so it is for x86_64-pc-windows-gnu.
To get a static library compiled by MSVC, then run the following commands:

mkdir work
git clone [email protected]:herumi/mcl
git clone [email protected]:herumi/bls
git clone [email protected]:herumi/bls-eth-rust
cd bls
mklib eth
cd ../bls-eth-rust
set RUSTLFAGS=-L../bls/lib
cargo test --target=x86_64-pc-windows-msvc

On my env(Visual Studio 16.9.2 and cargo 1.50.0 (f04e7fab7 2021-02-04)),

>bls-eth-rust>cargo test --target=x86_64-pc-windows-msvc
   Compiling bls_eth_rust v0.0.2 (C:\prog\bls-eth-rust)
    Finished test [unoptimized + debuginfo] target(s) in 0.61s
     Running target\x86_64-pc-windows-msvc\debug\deps\bls_eth_rust-8bcb7d80d8e743bf.exe

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running target\x86_64-pc-windows-msvc\debug\deps\test-b376fc27c3a8a06f.exe

running 11 tests
test test_are_all_msg_different ... ok
test test_from_serialized_publickey ... ok
test test_eth_draft07 ... ok
test test_eth_aggregate ... ok
test test_eth_aggregate_verify_no_check1 ... ok
test test_from_serialized_signature ... ok
test test_sign_serialize ... ok
test test_fast_aggregate_verify ... ok
test test_eth_sign ... ok
test test_eth_aggregate_verify_no_check2 ... ok
test test_multi_verify ... ok

test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.76s

   Doc-tests bls_eth_rust

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

from bls-eth-rust.

Related Issues (2)

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.