Help Building GHC on Windows to avoid LGPL

Elliot Cameron elliot.cameron at covenanteyes.com
Wed Jul 1 22:41:04 UTC 2015


Thank you very much for the help.

So far I have been able to get a 32-bit build to finish, but it is unable to compile anything (I get incorrect register errors). I'll try option #2 that you suggested.

In the meantime, would anyone be willing to build 32-bit versions of 7.8.4 and 7.10.1 using integer-simple (for Windows, of course)? Someone has already provided 64-bit builds for both of those releases.

It will take me some time to get the hang of this. Once I do, I can start building older and newer versions, although it seems (hopefully!) that the next release might not need this special treatment to get away from integer-gmp.

Elliot Cameron


-----Original Message-----
From: Edward Z. Yang [mailto:ezyang at mit.edu] 
Sent: Wednesday, July 1, 2015 12:52 AM
To: Elliot Cameron
Cc: ghc-devs at haskell.org
Subject: Re: Help Building GHC on Windows to avoid LGPL

Excerpts from Elliot Cameron's message of 2015-06-30 20:19:40 -0700:
> "inplace/bin/ghc-cabal.exe" check libraries/bytestring
> 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing longer compile times on your users.
> libraries/bytestring/ghc.mk:4: recipe for target 
> 'libraries/bytestring/dist-install/package-data.mk' failed
> make[1]: *** [libraries/bytestring/dist-install/package-data.mk] Error 
> 1
> Makefile:71: recipe for target 'all' failed
> make: *** [all] Error 2

We fixed this error (it was ghc-cabal not being sufficiently updated to handle some new Cabal behavior) but I'm surprised your build is failing because of it, because 7.10.1's shipped Cabal should not be tickling this bug.

You have a few options:

    1. Try again with a source distribution, since I suspect your
       submodules are not in order, or
    2. Cherry pick 14652b519eca12411e92c28cd06de32612b0973a onto your
       branch, which fixes the bug.

Edward


More information about the ghc-devs mailing list