Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Add GNU Multiple Precision library as bazel dep #1

Open
prestonvanloon opened this issue Oct 10, 2018 · 2 comments
Open

Add GNU Multiple Precision library as bazel dep #1

prestonvanloon opened this issue Oct 10, 2018 · 2 comments

Comments

@prestonvanloon
Copy link
Member

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
Copy link
Member Author

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:
bazelbuild/bazel#2792
bazelbuild/bazel#2814

@prestonvanloon
Copy link
Member Author

Related: prysmaticlabs/go-bls#2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant