Problem when compiling with -prof -fasm

Simon Marlow simonmar at microsoft.com
Thu Jun 12 07:19:57 EDT 2003


 
> when compiling anything with -prof -fasm, I get the following 
> response:
> 
> ghc-6.0: panic! (the `impossible' happened, GHC version 6.0):
>         AbsCStixGen.gencode
> CC_DECLARE(CGI_CAFs_cc,"CAF","CGI",CC_IS_CAF,);
> 
> Please report it as a compiler bug to 
> glasgow-haskell-bugs at haskell.org,
> or http://sourceforge.net/projects/ghc/.

Using -prof with -fasm is not supported.  The error message is clearly
bogus, though - I'll see what I can do about it.

> (without -fasm I get
> 
> Prologue junk?: .globl __stginit_CGI
>         .type   __stginit_CGI, at function
> __stginit_CGI:
>         pushl   %ebp
>         movl    %esp, %ebp
> 
> instead, which is probably caused by non-supported version of 
> gas or gcc?)

You probably have a version of gcc that isn't supported by the version
of GHC you have installed.  We usually recommend gcc 2.95, but later
versions may work depending on your version of GHC.

Cheers,
	SImon



More information about the Glasgow-haskell-bugs mailing list