gmp-4.2.2 failes to compile libmp

Torbjorn Granlund tg at swox.com
Sun Nov 4 15:01:32 CET 2007


Danny Braniss <danny at cs.huji.ac.il> writes:

  I don't know for how long this is broken, but after
  	configure ... --enable-mpbsd ...
  gcc -v
  Using built-in specs.
  Target: i386-undermydesk-freebsd
  Configured with: FreeBSD/i386 system compiler
  Thread model: posix
  gcc version 4.2.1 20070719  [FreeBSD]
  
  and make complains:
  gmpz_realloc=_mp_realloc  -I.. -I../mpz     -O3 -c -o itom.lo itom.c
   gcc -DHAVE_CONFIG_H -I. -I. -I.. -DBERKELEY_MP -D__GMP_WITHIN_GMP 
  -D__gmpz_realloc=_mp_realloc -I.. -I../mpz -O3 -c itom.c  -fPIC -DPIC -o 
  .libs/itom.o
  In file included from itom.c:20:
  ../mp.h:149: warning: conflicting types for built-in function 'pow'
  In file included from ../gmp-impl.h:102,
                   from itom.c:22:
  ../fib_table.h:4: warning: data definition has no type or storage class
  ../fib_table.h:4: error: expected '=', ',', ';', 'asm' or '__attribute__' 
  before 'data'
  *** Error code 1

Have you tried looking at fib_table.h?
If you did, perhaps the problem would be obvious?

-- 
Torbjörn


More information about the gmp-bugs mailing list