HDirect example compilation problem

Sigbjorn Finne sigbjorn_finne at hotmail.com
Tue Mar 20 03:32:28 EST 2001


Mike Thomas miketh at brisbane.paradigmgeo.com writes:
>
> After compiling the HDirect 0.17 sources using GHC 4.08.2 and the latest
> Cygwin internet distribution (some small mods made to deal with Cygwin
> B20isms in the C source code):
>
 ....
>
> dlltool --output-lib liburlmon.a --def urlmon.def  --dllname urlmon.dll -k
.> ./../src/ihc     -c HtmlDialog.idl -o HtmlDialog.hs
>  //c/ghc/ghc-4.08.2/bin/ghc -syslib com -fglasgow-exts -L. -lurlmon    -c
> HtmlDialog.hs -o HtmlDialog.o -osuf o
>
> panic! (the `impossible' happened):
>         getRegister(x86)
>     (Prim {-__stdcall-}__dyn_ccall_GC "" Temp(B0StgAddr) Temp(B1StgAddr)
> Temp(B2StgAddr) Temp(B3StgAddr) Temp(B4StgAddr) Temp(B5StgAddr))
>

Hi,

the NCG isn't quite up to handling the FFI, so you need to add -fvia-C to
HC_OPTS in the Makefile (Oh, and -static too, just to be sure.)

This and a couple of other details surrounding the examples/ directory
was something I didn't get around to doing for 0.17. Hope to have this
fixed for 0.18, but in the meantime, attached is a missing little header
file from examples/html-dialog/, which you'll need to successfully
build that example.

hth
--sigbjorn



-------------- next part --------------
A non-text attachment was scrubbed...
Name: HtmlDialog.h
Type: application/octet-stream
Size: 172 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20010320/e9d4ea17/HtmlDialog.obj


More information about the Glasgow-haskell-bugs mailing list