Simon (and others), the problem I had with the NotReallyType stemmed from my Mingw distribution (one of several I use...) had a version of GL.h that wouldn't compile. I didn't reflect much on that fact, since I don't care about GL functionality at this stage. BUT, it seems like the tool to determine the proper Haskell type is an generated C program, which DOES include "GL.h". The compilation of this tool will fail, and all the types will be "NotReallyAType".
The moral of this story is that even seemingly unimportant include files need to be valid, else strange results can occur. One problem I have right now is that do use OpenJade, which the configure script finds, but it cannot find the proper DocBook SGML files. Well, well. Thanks, David > -----Original Message----- > From: Simon Peyton-Jones [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 11, 2003 4:57 AM > To: David Bergman > Cc: [EMAIL PROTECTED] > Subject: RE: [Template-haskell] Building in Cygwin with Mingw gcc > > > > [autoconf experts, please help!!] > > > | Simon, belive me, I have followed the instructions ;-) > > OK, great. Sorry for doubting you! > > | After not getting it to work with the "--host" option and Mingw gcc > | 2.95, I tried other alternatives. Using the exact options of the > | instructions, and a clean tree, I get: > | > | Foreign/Storable.hs:179: > | Type constructor or class not in scope: > `NotReallyAType' > > Right. The problem is that when you run 'configure', you're > getting a setting for HTYPE_INT in fptools/mk/config.h that > is 'NotReallyAType'. > > That means that the configure script hasn't worked properly. > If you look in fptools/configure and search for HTYPE_INT > you'll see the stuff. > > Neither Simon nor I really understand exactly how all this > autoconf magic works, I regret to say. The configure script > writes a little C program, conftest.c I think, and uses that > to figure things out. It clearly has a branch that says "if > the program failed, set HTYPE_INT to NotReallyAType". So > that's what's happening to you. > > We think that config.log might contain some useful information. > > You are using the --with-gcc flag to 'configure' (as the > guide says) aren't you? > > > I hope someone else reading this list knows more than we do, > and can help you find what is going on. It works for me, but > my gcc is older than yours (could that make a difference?) > > bash-2.05$ c:/mingw/bin/gcc --version > 2.95.3-5 > > Simon > > _______________________________________________ Cvs-ghc mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/cvs-ghc
