relic-toolkit / relic

Code
Other
452 stars 179 forks source link

Compile failure on recent master #277

Closed dbogatov closed 9 months ago

dbogatov commented 9 months ago
[ 34%] Building C object src/CMakeFiles/relic.dir/pp/relic_pp_norm.c.o
[ 34%] Building C object src/CMakeFiles/relic.dir/pc/relic_pc_core.c.o
[ 34%] Building C object src/CMakeFiles/relic.dir/pc/relic_pc_exp.c.o
/Users/bogatov/Desktop/bu/ipfre/relic/src/pc/relic_pc_exp.c:152:2: error: call to undeclared function 'fp2_exp_cyc_gls'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        RLC_CAT(RLC_GT_LOWER, exp_cyc_gls)(c, a, b);
        ^
/Users/bogatov/Desktop/bu/ipfre/relic/include/relic_util.h:158:25: note: expanded from macro 'RLC_CAT'
#define RLC_CAT(A, B)                   _RLC_CAT(A, B)
                                        ^
/Users/bogatov/Desktop/bu/ipfre/relic/include/relic_util.h:159:26: note: expanded from macro '_RLC_CAT'
#define _RLC_CAT(A, B)                  A ## B
                                        ^
<scratch space>:160:1: note: expanded from here
fp2_exp_cyc_gls
^
1 error generated.
make[2]: *** [src/CMakeFiles/relic.dir/pc/relic_pc_exp.c.o] Error 1
make[1]: *** [src/CMakeFiles/relic.dir/all] Error 2
make: *** [all] Error 2

^^ for both arm and x86 on commit 6b905457

Preset gmp-pbc-ss1536.sh but also saw on a few other GMP presets.

dfaranha commented 9 months ago

This one is fixed, it was something silly on my part! Now trying to reproduce in other presets.

dbogatov commented 9 months ago

Oh thanks for the quick response! Let me know if there is a commit or branch I can work off, or when you post a fix!

dfaranha commented 9 months ago

It's pushed to main already, commit c5ac648f46b89eff6d24be0ddb12653c87116817

dbogatov commented 9 months ago

It fixes it, thanks!