#4022: GHC Bindist is Broken on FreeBSD/amd64
----------------------------------+-----------------------------------------
  Reporter:  pgj                  |          Owner:                             
      Type:  bug                  |         Status:  new                        
  Priority:  normal               |      Milestone:  6.12.3                     
 Component:  libraries (other)    |        Version:  6.13                       
Resolution:                       |       Keywords:  GMP,integer-gmp, sharedlibs
Difficulty:                       |             Os:  FreeBSD                    
  Testcase:                       |   Architecture:  x86_64 (amd64)             
   Failure:  Building GHC failed  |  
----------------------------------+-----------------------------------------
Changes (by simonmar):

  * owner:  igloo =>
  * status:  patch => new


Comment:

 Replying to [comment:16 pgj]:

 > As far as I concerned, GNU MP is
 [http://sourceforge.net/projects/mingw/files/ part] of the recent MSYS
 (mingw) distribution you (theoretically) use for building GHC on Windows.

 Right, but we not only require GMP when building GHC, we also have to
 ensure it is available when the user ''installs'' GHC.  We don't currently
 ask the user to install anything in addition to GHC, we provide everything
 - including GMP.  We can't use the MSYS GMP because presumably it depends
 on other MSYS bits and we don't want to end up shipping chunks of MSYS
 with GHC (also, I'm not sure it works to use the MSYS GMP, we need a
 native version).

 > GNU MP has been also
 [http://www.sunfreeware.com/programlistsparc10.html#gmp ported] to
 Solaris, however Solaris has its own MP library (though I do not know
 whether it supports bignums).

 Sure - we know GMP works on Solaris, because we build it.  The issue here
 is just making it easier for people to build and install GHC, that's why
 we have the in-tree GMP.  Solaris doesn't have the equivalent of `apt-get
 install libgmp-dev`.

 > Even Microsoft .NET has its
 [http://www.emilstefanov.net/Projects/GnuMpDotNet/own wrapper] for GNU MP.
 GCC (4.3+) also [http://gcc.gnu.org/gcc-4.3/changes.html#mpfropts
 requires] GNU MP (transparently via MPFR) to compile.

 Again, I don't think these help - we have to think about the install
 environment as well as the build environment.

 > Simon, please do not get me wrong: I am happy with that in-tree GMP (and
 I also would be happy to fix it up), but I have the intuition that GNU MP
 can be taken available on any platform where GHC might be compiled (due to
 its UNIX-ish nature -- at least I have not seen my {{{.vcsproj}}} and
 {{{.sln}}} files appearing in the repository :P).

 We could add do that, but it would make GHC harder to build and install,
 which is why we include GMP currently.

 The patch has been pushed, so changing the ticket state back to "new", as
 the underlying problem with the in-tree GMP still needs to be fixed, it's
 perhaps not as urgent as before though.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4022#comment:18>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to