FFI in GHCi 5.02

Manuel M. T. Chakravarty chak at cse.unsw.edu.au
Fri Sep 28 01:45:45 EDT 2001


Koen Claessen <koen at cs.chalmers.se> wrote,

> When I load tha Yahu package [1] in GHCi 5.02 on a SParc
> running Solaris, I get the following message:
> 
> >>>
> scooter> bin/yahu.new Resources/YahuNew/Examples/Balls.hs
>    ___         ___ _
>   / _ \ /\  /\/ __(_)
>  / /_\// /_/ / /  | |      GHC Interactive, version 5.02,
> for Haskell 98.
> / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_|      Type :? for help.
> 
> Loading package std ... linking ... done.
> Loading package lang ... linking ... done.
> Loading object (dynamic) yahu ... done
> final link ... done.
> Compiling YahuHeap         (
> /users/mdstud/afp01/Resources/YahuNew/YahuHeap.hs,
> interpreted )
> Compiling YahuTk           (
> /users/mdstud/afp01/Resources/YahuNew/YahuTk.hs, interpreted
> )
> ghc-5.02: panic! (the `impossible' happened, GHC version
> 5.02):
>         ByteCodeFFI.mkMarshalCode_wrk(sparc) C_
> 
> Please report it as a compiler bug to
> glasgow-haskell-bugs at haskell.org,
> or http://sourceforge.net/projects/ghc/.
> <<<
> 
> It seems something is wrong with the FFI!

I vaguely remember that Julian wrote that the interpreter
support for the FFI is limited to x86 for the moment.  You
still should be fine if you compile all modules including a
foreign import declaration.

Cheers,
Manuel




More information about the Glasgow-haskell-bugs mailing list