gmp fails to configure when I pass --host

Torbjorn Granlund tg at
Wed Jan 18 11:02:19 CET 2012

Bruno Haible <bruno at> writes:

  checking how to define a 32-bit word... link: invalid option -- 'd'
  Try `link --help' for more information.
  link: invalid option -- 'd'
  Try `link --help' for more information.
  configure: error: cannot determine how to define a 32-bit word
  The problem was discussed in the threads at
  It appears because in the LT_PATH_NM the 'nm' program is being checked
  for only if $build = $host. In the case of gmp,
    $build = athlon64-unknown-linux-gnu
    $host = x86_64-pc-linux-gnu
  which are obviously different.
  A workaround is to pass the argument NM=nm to configure,
  so as to force the LT_PATH_NM to use the 'nm' program.
  The result of the discussion in
  was that the problem is fixed in libtool 2.4 or newer.
  I confirm this: Upgrading to libtool 2.4.2 fixes the problem.
I tried this, but it breaks building on AIX and HPUX.  I dn't have time
to debug this.  I consider 2.4.2 useless for GMP.

The exact errors can be seen at
(until they are overwritten at about 0330 UTC).

I'll try to use libtool 2.2.8 for next night's autobuilds (we had 2.2.6b


More information about the gmp-bugs mailing list