Can't compile GMP 4.2 in Solaris/SPARC with ABI=32

Blai Bonet bonet at ldc.usb.ve
Wed Apr 19 19:07:45 CEST 2006


hi All,

I need some help here. I can't compile GMP 4.2 in a Sun Blade 1500
running Solaris 10 with ABI=32. The setting is the following:

  $ uname -a
  SunOS blade1500 5.10 Generic sun4u sparc SUNW,Sun-Blade-1500
  $ ./config.guess
  ultrasparc3-sun-solaris2.10
  $ gcc --version
  gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
  Copyright (C) 2004 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I made configure as: ./configure ABI=32

I get the following error right after 'make':

  /bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.. -D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo
fib_table | sed 's/_$//'`     -m32 -O2 -Wa,-xarch=v8plus -mcpu=ultrasparc3 -c -o fib_table.lo fib_table.c
  mkdir .libs
  gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_fib_table -m32 -O2 -Wa,-xarch=v8plus
-mcpu=ultrasparc3 -c fib_table.c  -fPIC -DPIC -o .libs/fib_table.o
  In file included from ../gmp-impl.h:104,
                   from fib_table.c:4:
  ../fib_table.h:4: error: syntax error before "data"
  fib_table.c:7: error: syntax error before "data"
  fib_table.c:61: warning: integer constant is too large for "long" type
  fib_table.c:62: warning: integer constant is too large for "long" type
  <more errors>

This is the contents of fib_table.h:

  /* This file generated by gen-fib.c - DO NOT EDIT. */

  #if GMP_NUMB_BITS != 64
  Error, error, this data is for 64 bits
  #endif

  #define FIB_TABLE_LIMIT         93
  #define FIB_TABLE_LUCNUM_LIMIT  92


So, it seems the GMP isn't 32-bit available in sparc.
Can you help me?

Thanks a lot and regards,

Blai Bonet


More information about the gmp-bugs mailing list