Anyone working on adding a GHC 8.8.1 port?

Gleb Popov 6yearold at gmail.com
Wed Oct 2 10:54:13 UTC 2019


On Mon, Sep 30, 2019 at 9:58 PM Viktor Dukhovni <ietf-dane at dukhovni.org>
wrote:

> On Mon, Sep 30, 2019 at 12:24:25PM +0400, Gleb Popov wrote:
>
> > > Thanks!  For GHC 8.8.1 itself, I had to apply the patch below to
> > > get it to to build.  That said, "stack" does not yet support GHC
> > > 8.8.1 on FreeBSD it seems, so my projects must wait for that shoe
> > > to drop.  Have not yet tried to do anything with cabal-install.
> > >
> > > --- a/libraries/base/System/Environment/ExecutablePath.hsc
> > > +++ b/libraries/base/System/Environment/ExecutablePath.hsc
> > > @@ -39,6 +39,7 @@ import Foreign.Marshal.Array
> > >  import Foreign.Ptr
> > >  import Foreign.Storable
> > >  import System.Posix.Internals
> > > +#include <sys/types.h>
> > >  #include <sys/sysctl.h>
> > >  #elif defined(mingw32_HOST_OS)
> > >  import Control.Exception
> > >
>
> And I also had to turn off "dtrace" support in my build.mk file:
>
>     HaveDtrace = NO
>
> Without that I got a linker error when a bunch of .o files were
> being relinked for some dtrace-related reason.
>
> > I'll try to prepare stack bindists of 8.8.1 on this week, if you need
> > those. I just thought that 8.8.1 is too bleeding-edge and most packages
> > aren't prepared for base 4.13.
>
> No rush, I can wait until stack has upstream support for GHC 8.8.1
> on FreeBSD.  Just noticed that the nightlies are now using 8.8.1,
> and thought it might be time to start getting ready.
>

I have created a pull request adding 8.8.1 bindists:
https://github.com/commercialhaskell/stackage-content/pull/69
Once this is merged, stack should support nightly snapshots on FreeBSD.


> > I also had no need in the patch you provided. Why did you have to add it?
> > Any error messages?
>
> The error was about "u_int" (used in sysctl.h) being an unknown
> type when compiling that file.  I'm using FreeBSD 12.0.
>
> --
>         Viktor.
> _______________________________________________
> freebsd-haskell at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-haskell
> To unsubscribe, send any mail to "freebsd-haskell-unsubscribe at freebsd.org"
>


More information about the freebsd-haskell mailing list