Bug in GHC 5.02

Sigbjorn Finne sof at galconn.com
Tue Oct 9 15:53:54 EDT 2001


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 ----- 
  From: Monique Louise 
  To: glasgow-haskell-bugs at haskell.org 
  Cc: monique_louise at uol.com.br ; mlbm at cin.ufpe.br 
  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 glasgow-haskell-bugs at haskell.org,
  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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20011009/5f035226/attachment.htm


More information about the Glasgow-haskell-bugs mailing list