John McCarten writes:
> I recently emailed you concerning the installation of GHC,
> I have now managed to install and configure to some degree the
> system, however it 'compiles' a haskell script but fails when
> trying to import the library gmp, giving the message:
>
> ld: Software Generation Utilities - Solaris/ELF (3.0)
> ld: fatal: library -lgmp: not found
> ld: fatal: File processing errors. No output written to hello
> collect2: ld returned 1 exit status
The sparc-sun-solaris2 distribution of GHC 4.04 comes with the gmp library,
so you shouldn't have a problem there. Which version of GHC is this, and
where did you get the binaries from?
> Aside from this when I try to use make with the Ebnf2ps ebnf
> syntax diagram generator source I recieve the following error:
>
> rm -f Parsers.o
> ghc -c -O -fvia-C -O2-for-C -cpp -syslib posix -fglasgow-exts
> -fhaskell-1.3 -H27M -DAFMPATH=\\\\\\\"/usr/local/tex/Adobe\\\\\\\"
> -DRGBPATH=\\\\\\\"/usr/lib/X11\\\\\\\" Parsers.hs -o Parsers.o
> ghc: unrecognised option: -fhaskell-1.3
>
> Usage: For basic information, try the `-help' option.
> *** Error code 1
> make: Fatal error: Command failed for target `Parsers.o'
>
> I could not find documentation on the option -fhaskell-1.3.
-fhaskell-1.3 is an old option (removed in GHC 2.00, I think). Just remove
this option from your Makefile and you should be ok.
Simon