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

Torbjorn Granlund tege at
Sat Apr 22 10:38:32 CEST 2006

Blai Bonet <bonet at> writes:

  I made configure as: ./configure ABI=32
  I get the following error right after 'make':
    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"
  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
    #define FIB_TABLE_LIMIT         93
    #define FIB_TABLE_LUCNUM_LIMIT  92
  So, it seems the GMP isn't 32-bit available in sparc.

Non sequitur.  :-)

  Can you help me?
Perhaps you built in the same directory for the 64-bit ABI,
and then didn't "make distclean" between the builds?  


More information about the gmp-bugs mailing list