Can't build 32-bit GMP on OS X 10.5.6

Torbjorn Granlund tg at swox.com
Wed Jan 14 23:26:52 CET 2009


Wade Williams <wadesworld at mac.com> writes:

  I'm trying to build 32-bit GMP on OS X and getting the following error:
  
  Making all in mpn
  /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. - 
  D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo fib_table | sed 's/_$//'`  - 
  DNO_ASM  -O3 -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 -DNO_ASM -O3 -c fib_table.c  -fno-common -DPIC - 
  o .libs/fib_table.o
  In file included from ../gmp-impl.h:102,
                    from fib_table.c:4:
  ../fib_table.h:4: error: syntax error before 'data'
  fib_table.c:7: error: syntax error before 'data'
  
You might want to check out line 4 in fib_table.h.

I bet it says something like

  Error, error, this data is for 64 bits

meaning that you probably forgot to "make distclean" between
incompatible builds.

-- 
Torbjörn


More information about the gmp-discuss mailing list