Alessandro Languasco on Fri, 16 Apr 2021 10:05:42 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Apple ARM M1 processor - gp2c


Dear All,

I am trying to install pari/gp and gp2c on a new macbook pro
which has an Apple M1 processor.

For pari/gp I can use the homebrew formula, but I am not able
to install gp2c.
First I tried to use the pari.cfg file which comes from the brew formula
(with no success) and then I compiled pari/gp and then gp2c.

The make install step for gp2c  gave me the errors listed at the 
bottom of this message.

Do you have any suggestion?
Thanks a lot.

Best regards,
Alessandro Languasco

--------------
ld: warning: ignoring file stack.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
Undefined symbols for architecture arm64:
  "_debug_stack", referenced from:
      _main in gp2c.o
  "_stack_base", referenced from:
      _gerepilelist in gerepile.o
      _varlistaff in varlist.o
      _varlist in varlist.o
  "_stack_has_int", referenced from:
      _gerepilelist in gerepile.o
      _pilelist in gerepile.o
  "_stack_init", referenced from:
      _init_compiler in gp2c.o
      _newblock in context.o
      _newuserfunc in genfunc.o
      _newcomment in node.o
  "_stack_int_merge", referenced from:
      _pileclean in gerepile.o
  "_stack_int_sort", referenced from:
      _gerepilelist in gerepile.o
  "_stack_new", referenced from:
      _newctx in context.o
      _newaff in context.o
      _newblock in context.o
      _pushvar in context.o
      _copyctx in context.o
      _newuserfunc in genfunc.o
      _getfunc in genfunc.o
      ...
  "_stack_pop_safe", referenced from:
      _genblock_label in funcspec.o
      _makesubblock_label in funcspec.o
      _genblockfunciter in funcspec.o
      _genblockfuncspec in funcspec.o
      _gencode in gencode.o
      _gencodenoarg in genfunc.o
      _genuserfunc in genfunc.o
      ...
  "_stack_push", referenced from:
      _pushctx in context.o
  "_stack_push_int", referenced from:
      _gerepilelist in gerepile.o
      _pilelist in gerepile.o
  "_stack_remove_int", referenced from:
      _gerepilelist in gerepile.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [gp2c] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1