Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After installing dependencies such as flint and gmp, the ./build.sh still reports errors #5

Open
wxb1104 opened this issue Sep 7, 2022 · 0 comments

Comments

@wxb1104
Copy link

wxb1104 commented Sep 7, 2022

Please ask if it is because the version of flint I am using is too new (I am using flint2 found on Github), if so, can you please share the address you are relying on for flint? Thanks and good luck with your studies

-- Build files have been written to: /home/withinboredom/code/witness-encryption-demos/libaesrand
Consolidate compiler generated dependencies of target aesrand
[ 12%] Building C object CMakeFiles/aesrand.dir/aesrand/aesrand_buf.c.o
[ 25%] Building C object CMakeFiles/aesrand.dir/aesrand/aesrand_gmp.c.o
[ 37%] Building C object CMakeFiles/aesrand.dir/aesrand/aesrand_init.c.o
[ 50%] Building C object CMakeFiles/aesrand.dir/aesrand/aesrand_flint.c.o
/home/withinboredom/code/witness-encryption-demos/libaesrand/aesrand/aesrand_flint.c: In function ‘fmpz_mod_poly_randtest_aes’:
/home/withinboredom/code/witness-encryption-demos/libaesrand/aesrand/aesrand_flint.c:6:5: error: too few arguments to function ‘fmpz_mod_poly_fit_length’
6 | fmpz_mod_poly_fit_length(f, len);
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/withinboredom/code/witness-encryption-demos/libaesrand/aesrand/aesrand.h:51,
from /home/withinboredom/code/witness-encryption-demos/libaesrand/aesrand/aesrand_flint.c:1:
/usr/include/flint/fmpz_mod_poly.h:127:6: note: declared here
127 | void fmpz_mod_poly_fit_length(fmpz_mod_poly_t poly, slong len,
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/withinboredom/code/witness-encryption-demos/libaesrand/aesrand/aesrand_flint.c:9:53: error: ‘fmpz_mod_poly_struct’ has no member named ‘p’
9 | if (fmpz_randm_aes(f->coeffs + i, state, &(f->p)) == AESRAND_ERR)
| ^~
make[2]: *** [CMakeFiles/aesrand.dir/build.make:118: CMakeFiles/aesrand.dir/aesrand/aesrand_flint.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/aesrand.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

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

No branches or pull requests

1 participant