| For the top level configure I either set
| --host=i386-pc-mingw32 or --target=i386-pc-mingw.  I
| can't remember which, but because one defaults to the
| other.  When the top level configure ran it reported a
| build of i386-pc-cygwin and a host and target of
| i386-pc-mingw32.  However, if I didn't modify
| ghc/rts/Makefile then the configure that *it* launched
| reported a build *and* a host of i386-pc-cygwin but a
| target of i386-pc-mingw32.

OK, it should definitely *not* have a host of cygwin!  We've committed a
fix to the Makefile -- can you try it now?  I think it's the exact fix
you give below.


Simon

| 
| I modified ghc/rts/Makefile to read as follows so that
| configure would report a host i386-pc-mingw32 when
| make ran it.
| 
| ----
| # Compile GMP only if we don't have it already
| #
| # We use GMP's own configuration stuff, because it's
| all rather hairy
| # and not worth re-implementing in our Makefile
| framework.
| 
| ifneq "$(HaveLibGmp)" "YES"
| ifneq "$(HaveFrameworkHaskellSupport)" "YES"
| boot ::
|       cd gmp && ./configure --enable-shared=no \
|               --host=`echo $(HOSTPLATFORM) | sed
| 's/i[567]86/i486/g'`
| ----
| 
| What seems strange to me is that the original passed
| $(HOSTPLATFORM) to --target.
| 
| If you know of any test you want me to run that might
| help in figuring this out let me know.  I just may be
| a week before I can run them (due to fried
| motherboard).
| 
| Michael D. Adams
| [EMAIL PROTECTED]
| 
| --- Simon Peyton-Jones <[EMAIL PROTECTED]> wrote:
| > Michael
| >
| > Simon M and I can't work out exactly what that
| > Makefile stuff with
| > TARGETPLATFORM etc for Gmp is supposed to to.  It's
| > clearly deliberate,
| > but it dates back to Reuben and Julian.  It could
| > well be simply wrong.
| >
| > Inspecting the GMP configure script suggests that if
| > you don't specify
| > TARGETPLATFORM it gets set to HOSTPLATFORM.
| >
| > It's definitely important that one or the other or
| > both are set to
| > i386-unknown-mingw32.
| >
| > I wonder if you set --host=i386-unknown-cygwin when
| > you configured at
| > the top?  That would definitely mess things up.
| > That's all I can think
| > for why it fails for you but works for me.
| >
| > What changes did you make that made it work?  And
| > what are your
| > HOSTPLATFORM etc variables set to?
| >
| > Simon
| >
| > | -----Original Message-----
| > | From: [EMAIL PROTECTED]
| > [mailto:[EMAIL PROTECTED]
| > | On Behalf Of Michael Adams
| > | Sent: 29 July 2003 00:00
| > | To: [EMAIL PROTECTED]
| > | Subject: Configure GMP and Mingw32
| > |
| > | The following lines are in
| > fptools/ghc/rts/Makefile.
| > | They handle configure'ing GMP, but contrary to
| > what
| > | the comment indicates these lines *cause* problems
| > | when I'm building for mingw32 from cygwin.  I have
| > to
| > | edit the makefile so that the first branch (the
| > one
| > | that passes 'host') is taken instead of the second
| > | branch (the one that passes 'target').  Does
| > someone
| > | know of a specific situation in which these lines
| > are
| > | needed?  If not I think it might be best to just
| > use
| > | the one brance and make sure to pass through *all*
| > of
| > | build, host, and target.
| > |
| > | Michael D. Adams
| > | [EMAIL PROTECTED]
| > |
| > | #
| > |
| >
|
------------------------------------------------------------------------
| > -----
| > | # Compile GMP only if we don't have it already
| > | #
| > | # We use GMP's own configuration stuff, because
| > it's
| > | all rather hairy
| > | # and not worth re-implementing in our Makefile
| > | framework.
| > |
| > | ifneq "$(HaveLibGmp)" "YES"
| > | ifneq "$(HaveFrameworkHaskellSupport)" "YES"
| > | ifneq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
| > | boot ::
| > |   cd gmp && ./configure --enable-shared=no \
| > |           --host=`echo $(HOSTPLATFORM) | sed
| > | 's/i[567]86/i486/g'`
| > | else
| > | # Pass --target to configure of GMP, so that
| > building
| > | for mingwin under
| > | # cygwin works properly (when the host is not the
| > same
| > | as the target)
| > | boot ::
| > |   cd gmp && CC=$(WhatGccIsCalled) ./configure
| > | --enable-shared=no --target=$(HOSTPLATFORM)
| > | endif
| > |
| > | __________________________________
| > | Do you Yahoo!?
| > | Yahoo! SiteBuilder - Free, easy-to-use web site
| > design software
| > | http://sitebuilder.yahoo.com
| > | _______________________________________________
| > | Glasgow-haskell-users mailing list
| > | [EMAIL PROTECTED]
| > |
| >
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
| >
| >
| 
| 
| __________________________________
| Do you Yahoo!?
| Yahoo! SiteBuilder - Free, easy-to-use web site design software
| http://sitebuilder.yahoo.com


_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to