> The following Haskell program doesn't link with a ghc-4.04 on a Sparc
> running SunOS 5.6:
>
> module Main where
>
> main :: IO ()
> main = do putStrLn (show (round 2))
>
> Error message:
>
> calle@lagavulin ghc Test.hs -o test
> ghc: module version unchanged at 55
> ld: elf error: file
> /export/home/lagavulin/satnam/software/fptools/lib/sparc-sun
> -solaris2/ghc-4.04/libHS.a: elf_begin: Format error: archive fmag
> ld: fatal: library -lHS: not found
> ld: fatal: File processing errors. No output written to test
> calle@lagavulin
>
> I had similar problems when using 'floor' as well.
I won't be able to look at this one for a while - we're having trouble with
our Linux-based NFS server here, and I can't get access to my home dir on
the Solaris box, grrrr.... Can anyone else confirm the problem?
You might want to make sure that you're running the latest 4.04 patchlevel 1
build from the web site, since there were problems with the initial 4.04
solaris build I put up.
Cheers,
Simon