Building ghc with DEBUG: ASSERTION FAILED: file Capability.h, line 297

Matthias Kilian kili at outback.escape.de
Sun Jan 11 14:21:36 EST 2009


On Tue, Jan 06, 2009 at 12:28:43PM +0000, Simon Marlow wrote:
> >i just tried to build the latest ghc-head with GhcRtsHcOpts=-optc-DDEBUG,
> >and after some time it fails when running haddock on syb:
> 
> That shouldn't be necessary, and I'm not sure what side-effects it will 
> have.  To get the debugging version of the rts (that has -DDEBUG turned 
> on), you pass the -debug option to GHC.

Oh, then I misread some of the makefiles. Anyway, I just wanted to
ensure that a patch to OSThreads.h (that I'll send in a few minutes)
doesn't break things.

> >Preprocessing library syb-0.1.0.0...
> >Running Haddock for syb-0.1.0.0...
> >Warning: The documentation for the following packages are not installed.
> >No
> >links will be generated to these packages: ffi-1.0, rts-1.0
> >haddock: internal error: ASSERTION FAILED: file Capability.h, line 297
[...]
> If you can get this just by compiling Haddock with -debug, then it could 
> be a bug.  In our nightly builds we do turn on -debug for the stage2 build 
> and hence compile all of stage 3 with the debugging-enabled stage 2, 
> though.

It still happens, with only Haddock built with -debug (added -debug
to SRC_HC_OPTS += -w in Haddock's makefile). My mk/build.mk looks
like this:

GhcLibHcOpts=-O -fgenerics -fasm
GhcStage1HcOpts=-O -fasm
GhcStage2HcOpts=-O -fasm
SplitObjs=NO
GhcLibWays=
HADDOCK_DOCS=YES
LATEX_DOCS=NO

Ciao,
	Kili



More information about the Cvs-ghc mailing list