> I just fetched the ghc-4.01-sparc-sun-solaris2.tar.gz binary
> distribution, unpackaged, configured (./configure
> --prefix=/udd/lande), tested:
> 
>   16:31 /tmp/test; cat Main.hs
>   main = do putStrLn "Hello World\n";
>   16:31 /tmp/test; ghc -c Main.hs
>   ghc: module version changed to 1; reason: no old .hi file
>   16:31 /tmp/test; ghc -o Main Main.o
>   16:31 /tmp/test; ./Main
>   Bus error
>   16:31 /tmp/test; uname -a
>   SunOS ultra 5.6 Generic_105181-09 sun4u sparc SUNW,Ultra-1

Do you use gcc 2.8.1? Under Solaris 2 ghc doesn't work with that version.
However, it works with gcc 2.7.2. If you have that under the name gcc-2.7.2 you
can ask ghc to call this version instead of gcc by writing:

ghc -pgmcgcc-2.7.2 -o Test Test.hs


-- 
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/

Reply via email to