gmp-5.0.1 - 'make check' on ABI=2.0n HP-UX 11 build problem

Torbjorn Granlund tg at gmplib.org
Thu Feb 25 15:57:35 CET 2010


Warren Gray <ve3wwg at gmail.com> writes:

  After doing a gmp-5.0.1 build and install, I tried 'make check, which fails
  to
  build (using old cc compiler):
  
  cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../tests    +uc +DA2.0N -c
  t-div.c
  cc: "t-div.c", line 244: error 1654: Expression type is too large for switch
  expression.
  cc: "t-div.c", line 246: error 1653: Case label too big for the type of the
  switch expression
  cc: "t-div.c", line 251: error 1653: Case label too big for the type of the
  switch expression
  cc: "t-div.c", line 254: error 1653: Case label too big for the type of the
  switch expression
  make[4]: *** [t-div.o] Error 1
  make[4]: Leaving directory
  `/home/proghome/wgay/work/feb24/gmp-5.0.1/tests/mpn'
  
I checked in some further changes fixing the swtch problem in two
places, as well as an assembly problem related to the 2.0n ABI.

Please follow up to the list with the results.

  The old cc compiler won't accept > 32-bit switch() expressions, nor will it
  compile constants > 32 bits.

But at least it was expensive.  :-)

-- 
Torbjörn


More information about the gmp-bugs mailing list