Jim Meyering wrote:
Matthew Woehlke wrote:
I got the following error (in gnulib) building coreutils 6.6 on HP-UX.
source='fts.c' object='fts.o' libtool=no \
DEPDIR=.deps depmode=hp /bin/sh ../build-aux/depcomp \
cc -I. -I/home/install/gnu/hp700_hpux/include -g -c fts.c
cc: "fts.c", line 734: error 1654: Expression type is too large for switch
expression.
cc: "fts.c", line 736: error 1653: Case label too big for the type of the
switch expression
cc: "fts.c", line 739: error 1653: Case label too big for the type of the
switch expression
I'm suggesting the following patch (formed by hand, sorry if the line
numbers are off!):
Thanks for the report and patch.
What version of HP-UX (and, if possible, the compiler) is that?
It must be rather old.
I know the existing code compiles fine with the compilers
from HP-UX 11.11 and HP-UX 11.23.
The OS is 11.00, and I can't tell about the compiler ('cc -v' is giving
some odd output but no version number). FWIW, aCC is A.03.30. My guess
would be that 'cc' hasn't been updated, though. So far I've only had the
problem on the one box, but I can't build on our HP Itanium box at the
moment (although that one is 11.22 IIRC and probably won't have this
problem).
I build on lots of "old" stuff. :-) (More accurately, I generally build
on the oldest box I can find and trust the binaries to work on a newer
box as well, and "the oldest box I can find" is usually the same one we
build our own products on; i.e. it is the oldest stuff that *we* still
support.)
--
Matthew
"Two IIRC's must make a right" -- Larry Hall (paraphrased)