Compiling HDirect

Mike Thomas miketh at brisbane.paradigmgeo.com
Tue Apr 3 01:02:50 EDT 2001


Hi Reuben et al.

I had some more time to spend on building hdirect from CVS sources using GHC
4.08.2 under NT 4:

PROBLEM 1. The timezone_dll problems reported earlier (caused by a Cygwin
GCC mingw32 compiler change to linking with msvcrt.dll instead of
crtdll.dll).

PSEUDOFIX: Push -lcrtdll in the appropriate places in the ghc driver script
(don't know yet how this will hold up in the longer run)).  The locations
are those where -lmsvcrt is pushed.  This is of course not required in a
rebuilt ghc library - a goal I have yet to achieve.


PROBLEM 2. Pointer.hi/o and PointerPrim.hi/o are not built before
HDirect.lhs is compiled during a complete rebuild.

FIX: I added the following dependency at about line 359:

    Pointer.o : PointerPrim.o

and rearranged the order of the files in:

    HS_SRCS =  PointerPrim.hs Pointer.lhs HDirect.lhs

My guess is that the second change is not necessary, I haven't tried
removing it yet.


PROBLEM 3.  Mingw32 built IHC can't handle the Cygwin file links in the
shadow build directory (built with mkshadowdir).

FIX: I guess I'll have to abandon the shadow CVS source tree and work
directly with the sources as checked out under CVS.

Thanks for the assistance so far in this voyage of discovery.

Mike Thomas.









More information about the Glasgow-haskell-bugs mailing list