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

Compiling on M1 Mac #278

Open
dbogatov opened this issue Nov 16, 2023 · 1 comment
Open

Compiling on M1 Mac #278

dbogatov opened this issue Nov 16, 2023 · 1 comment

Comments

@dbogatov
Copy link

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
Copy link
Contributor

What happens if you remove the LABEL config?

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

2 participants