Cross compiling for ARM board

Torbjörn Granlund tg at gmplib.org
Thu Jul 5 15:27:50 UTC 2018


Simon Friedberger <simon.jul2018 at a-oben.org> writes:

  I am trying to cross compile GMP for an ARM board.

  ./configure --host=armv7l-linux-gnueabihf

  gives me this error:

  "configure: error: Oops, mp_limb_t is 64 bits, but the assembler code in
  this configuration expects 32 bits."

  Setting ABI=32 doesn't help either.

  I have also tried --host=arm-linux-gnueabihf in which case configure
  succeeds but building fails with "target CPU does not support THUMB
  instructions".

  How do I fix this?

Did you read the GMP manual's section on cross compilation?

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


More information about the gmp-discuss mailing list