[Q] Need help installing ghc on NetBSD

Simon Marlow simonmar at microsoft.com
Mon Apr 2 11:37:28 EDT 2001


> "Simon Marlow" <simonmar at microsoft.com> writes:
> 
> > Try the script in fptools/distrib/hc-build, which should be able to
> > bootstrap the compiler from .hc files automatically.  In particular,
> > it'll make sure that hslibs/lang is built before trying to build the
> > compiler.
> 
> Thanks for the prompt reply.  Now that I had the name I found it in
> the documentation again.  Sorry, I am stupid.  Anyway, now ghc fails
> to build ghc/lib/std (SIGSEGV):

oh dear.  To debug this, you need to:

	- re-compile the RTS with debugging support.  You need to
	  copy a couple of lines from mk/config.mk.in into mk/build.mk,
	  and uncomment them.  Search for 'GhcRtsHcOpts'.  Then go
        into fptools/ghc/rts and 'make clean boot && make all'.  You
	  might need to re-configure with --enable-hc-boot first,
because
        the bootstrap was in the post-hc-boot stage.

	- re-link the compiler: cd fptools/ghc/compiler && rm hsc &&
make.
	
	- Run gdb on the compiler.  In order to do this, go into 
	  fptools/ghc/lib/std, type 'make EXTRA_HC_OPTS=-v', then ^Z to
        suspend it.  Cut-n-paste the command line used to run the
compiler,
	  and run it in gdb.  

	- See where it crashes, and send us the 'where' output from gdb.
We'll
	  see where to go from there.

Cheers,
	Simon




More information about the Glasgow-haskell-bugs mailing list