gmp fails to configure when I pass --host

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


Bruno Haible <bruno at clisp.org> 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
  http://gmplib.org/list-archives/gmp-bugs/2010-December/002151.html
  http://lists.gnu.org/archive/html/bug-libtool/2010-12/msg00011.html
  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
  http://lists.gnu.org/archive/html/bug-libtool/2010-12/msg00021.html
  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 https://gmplib.org/devel/tm-date.html
(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
before).

-- 
Torbjörn


More information about the gmp-bugs mailing list