To make this panic go away, try adding the option
"-fvia-C" to your GHC
command line.
(GHC could give a better error msg here, and
indicate that you have to
use -fvia-C with code that (still) uses
_casm_.)
hth
--sigbjorn
----- Original Message -----
Sent: Tuesday, October 09, 2001
12:41
Subject: Bug in GHC 5.02
I am writing to report a bug I have found in GHC
version 5.02. The problem is that I tried to compile a .hs file
which came with Green Card's library and the following message
appeared:
"panic! (the 'impossible' happened, GHC version
5.02): Native code generator
can't handle foreign call {-_ccall-}__casm ``do {void *
arg1;
arg1 = (void
*)%0;
do {free(arg1);
} while(0);} while(0);'' arg1 Please report it as a compiler bug to
[EMAIL PROTECTED], or
http://sourceforge.net/projects/ghc/."
Other messages like the one above
appeared when I tried to compile other files which used foreign
procedures.
Monique Monteiro
|