Building ghc with DEBUG: ASSERTION FAILED: file Capability.h,
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.
> >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,
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
GhcLibHcOpts=-O -fgenerics -fasm
More information about the Cvs-ghc