Olaf Chitil wrote/a ecrit/skrev:
> 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
That was it! gcc 2.8.1 is exactly what we have installed here, but
fortunately also 2.7.2. I guess, I missed the bit in the release notes:
"... Version 2.x is a must; we recommend version 2.7.2.1 for
stability (we've heard both good and bad reports of later versions)."
I made this the default by hacking the ghc driver script to read
$GHC_OPT_HILEV_ASM="gcc-2.7.2.1";
Q1: Is there a better way?
Q2: Is there a reason to prefer 2.7.2 over 2.7.2.1?
Thanks for the help,
Tommy