GMP 6.2.1 core2 x86_64 assembler error "operands invalid for `movq'"

Torbjörn Granlund tg at gmplib.org
Wed Nov 2 00:03:58 CET 2022


Simon Sobisch <simonsobisch at gnu.org> writes:

  That is an old MacBook with the most current "developer command line
  tools" that were available (from 2013/2014 if I remember correctly).

I am afraid obsolete systems might get less developer attention...

  Sigh. Sadly I don't know enough about assembly to patch it myself :-(
  But I can test because that machine is now available to me (it was
  passed to me instead of being thrown away; I did a reset, installed
  the most current software that was supported there and now try to get
  some programs running via terminal).

I know asm well, but alas, I don't know the quirks of these old tools.

If you're really eager to get these files to work, here is a cumbersome
method:

Build things on a current system.

Use objdump -dw (or otool under macos) to see the encoding for the
trouble instructions.

Replace the movq instructions with .byte sequences.  Re-compile on the
current system to make sure the objdump output stays the same.

Go back to the obsolete system and compile happily there.

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list