relic-toolkit / relic

Code
Other
452 stars 179 forks source link

Compiling on M1 Mac #278

Open dbogatov opened 9 months ago

dbogatov commented 9 months ago

Hi!

I was able to compile latest master on ARM and x86 docker images (ubuntu 23 base), but I can't compile on mac (neither clang nor gcc).

Here sym is a LABEL and preset is gmp-pbc-ss1536.

[ 45%] Linking C shared library ../lib/librelic_sym.dylib
ld: Undefined symbols:
  _sym_arch_clean, referenced from:
      _sym_core_clean in relic_core.c.o
  _sym_arch_init, referenced from:
      _sym_core_init in relic_core.c.o
  _sym_arch_lzcnt, referenced from:
      _sym_util_bits_dig in relic_util.c.o
collect2: error: ld returned 1 exit status
make[2]: *** [lib/librelic_sym.dylib] Error 1
make[1]: *** [src/CMakeFiles/relic_sym.dir/all] Error 2
make: *** [all] Error 2

Any ideas?

dfaranha commented 9 months ago

What happens if you remove the LABEL config?