#1002: ghc-6.6 sometimes hangs under Solaris
After compiling 643 modules (in 5 minutes) ghc-6.6 did not finish its
batch job.
..
I have often seen problems like this with the Solaris linker. (I
suspect it must have a super-linear algorithm for resolving symbol
references.) The solution for me was to call the linker several times,
passing fewer object files to the linker at a time, e.g. using xargs.
Maybe the ghc pipeline driver needs to be taught how to do that?
this information is probably out of date by now, but there used to
be several bug reports pending for the Solaris linker, of the kind
"order of magnitude worse than gnu". there also were repeated
attempts to fix this in patches, so perhaps this is not the same
problem anymore. but you might want to give GNU ld a try,
just in case:
http://haskell.org/haskellwiki/GHC/FAQ#Why_does_linking_take_so_long.3F
something like:
GCC_EXEC_PREFIX=<path-to-binutils> ghc <other-options>
if those Solaris linker issues have been fixed, you might want
to update the GHC Faq (I'm not using Solaris at the moment).
if those linker issues are still around, and the GNU binutils
workaround still saves the day, perhaps that FAQ entry
ought to be linked from "GHC on Solaris" section as well?
hth,
claus
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs