> > > Are you using egcs as your C compiler? I'm pretty certain
> > that egcs isn't
> > > compatible with GHC on Sparcs. If not, then we'll have to
> > dig a bit deeper.
> >
> > I'd just like to say that we have the same problem with the
> > ghc-4.01 binaries.
> > We are running SunOS 5.5 Generic sun4m and use gcc version 2.8.1.
>
> Do you have an older gcc lying around? This would give us a useful data
> point.
You are right. It's a problem of gcc 2.8.1. It works perfectly using the
-pgm<phase-code><program-name> option to call an older gcc:
ghc-4.01 -pgmcgcc-2.7.2 -o Test Test.hs
gives a working program.
(Unfortunately gcc 2.7.2 is on our system administrator's `to be removed soon'
list.)
Olaf
--
OLAF CHITIL, Lehrstuhl fuer Informatik II, RWTH Aachen, 52056 Aachen, Germany
Tel: (+49/0)241/80-21212; Fax: (+49/0)241/8888-217
URL: http://www-i2.informatik.rwth-aachen.de/~chitil/