make compile error - gmp 5.0.0 on SGI IRIX with SGI MIPSpro compilers

Charles Castevens pen7cmc at
Sun Jan 31 04:06:18 CET 2010

./config.guess     mips64-sgi-irix6.5
./configfsf.guess  mips-sgi-irix6.5
uname -a  IRIX iris3 6.5 07202013 IP32
cc -v     MIPSpro Compilers: Version 7.4
 (SGI IRIX 6.5.30 with MIPSpro 7.4.4m compilers and patches
  Patch SG0005075: MIPSpro 7.4 C++ Front-End #1
  Patch SG0005329: 7.4 Compiler Header Files for Unix98, C99 and ANSI C++
namespace std #2
  Patch SG0005401: Modules MIPSpro driver update 2
  Patch SG0005845: MIPSpro 7.4.1m & 7.4.2m F90 Front-End #2)

setenv PATH /usr/bin:/usr/bin/X11:/usr/sbin:/usr/bsd:/bin:/etc:/usr/etc:.
setenv CC /usr/bin/cc
setenv CXX /usr/bin/CC
./configure --enable-cxx

After about 45 minutes...

Making all in cxx
        /bin/sh ../libtool --mode=compile /usr/bin/CC -DHAVE_CONFIG_H  -I. -I.
-I.. -D__GMP_WITHIN_GMPXX -I..     -O2 -n32 -c -o isfuns.lo
mkdir .libs
 /usr/bin/CC -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMPXX -I.. -O2 -n32 -c  -DPIC -o .libs/isfuns.o
cc-1020 CC: ERROR File = ../gmp-impl.h, Line = 187
  The identifier "uint_least32_t" is undefined.
  typedef uint_least32_t      gmp_uint_least32_t;
cc-1107 CC: WARNING File = ../gmp-impl.h, Line = 3404
  A signed bit field has a length of 1 bit.

        gmp_uint_least32_t sig:1;
1 error detected in the compilation of "".

The first error is around
 /* gmp_uint_least32_t is an unsigned integer type with at least 32 bits. */
 typedef uint_least32_t      gmp_uint_least32_t;

and from the attached config.log we can see that HAVE_UINT_LEAST32_T is 1.

Get your own "800" number
Voicemail, fax, email, and a lot more
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.gz
Type: application/x-gzip
Size: 60096 bytes
Desc: not available
URL: <>

More information about the gmp-bugs mailing list