prysmaticlabs / pbc

DEPRECATED. Pairing-based cryptography for Go
GNU Lesser General Public License v3.0
0 stars 1 forks source link

Add GNU Multiple Precision library as bazel dep #1

Open prestonvanloon opened 6 years ago

prestonvanloon commented 6 years ago

This currently requires gmp to be installed.

If you see some error like


external/pbc/arith/fieldquadratic.c:14:10: fatal error: gmp.h: No such file or directory
--
  | #include <gmp.h>
  | ^~~~~~~

Then install gmp with apt-get install libgmp3-dev for now.

Ideally, we should not depend on this to be installed and provide this via cc_library like we have done with pbc.

prestonvanloon commented 6 years ago

I made an attempt at this but found I was blocked as some of the headers are generated from autoconf. This is not natively supported with bazel.

See these issues: https://github.com/bazelbuild/bazel/issues/2792 https://github.com/bazelbuild/bazel/issues/2814

prestonvanloon commented 5 years ago

Related: https://github.com/prysmaticlabs/go-bls/issues/2