I borrowed these steps from the buildbot setup for SmartOS I found at http://haskell.inf.elte.hu/builders/. Generally the standard build steps for ghc seems to work pretty well at this point aside from a few more test failures than I observed when building on Linux.
-
Clone ghc repo and check out desired branch or tag.
-
Edit
mk/build.mk
to be the following:
V=1 InstallExtraPackages=YES BeConservative=YES ```
./boot && ./configure && gmake -j16
Building the 8.X.Y versions of GHC requires GHC 7.10.X so I used the GHC 7.6.3 version available in pkgsrc to bootstrap 7.10.3 and then using 7.10.3 could build the 8.X.Y versions.