Frank,
Concerning your HPPA problems with ghc-4.03:
> (hp3) /usr/local/src/t 510 $ LANG=C uname -a
> HP-UX hp3 B.11.00 A 9000/782 2001211952 two-user license
> (hp3) /usr/local/src/t 511 $ cat Main.hs
> module Main where
>
...
> C compiler:
...
> Reading specs from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/egcs-2.91.60/specs
> gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
...
> (hp3) /usr/local/src/t 513 $ main
> Segmentation fault
>
The program runs fine here:
rug106[~](5) : a.out
CalendarTime{ctYear=1999,ctMonth=2,ctDay=25,ctHour=8,ctMin=30,ctSec=31,ctPicosec=540342000000,ctWDay=Thursday,ctYDay=83,ctTZName="MET",ctTZ=(-3600),ctIsDST=False}rug106[~](6)
:
The binaries where made (here) on a HPUX-10.20 system using gcc-2.7.3.2.
I don't think the OS version gives you trouble, but that's just a guess..
The reason that I am reacting is that I often have problems using egcs on HPUX.
Specifically, when one from a collection of C-files is compiled using egcs and the
rest with gcc,
crashes regularly occur.
My advice would be that, before trying anything else, use gcc-2.7.3.x to compile your
programs.
Gcc also isn't flawless, but for regular C still much better on HPUX.
The source of the problem still could be ghc-source, note that egcs interprets the
C-language a little different
than gcc (which is where used to).
Good luck,
Sietse Achterop