Skip to content

Instantly share code, notes, and snippets.

@kellymclaughlin
Last active January 26, 2019 17:33
Show Gist options
  • Save kellymclaughlin/9f96bf902d19fa83ee191de3ab190361 to your computer and use it in GitHub Desktop.
Save kellymclaughlin/9f96bf902d19fa83ee191de3ab190361 to your computer and use it in GitHub Desktop.
GHC build steps for Haskell on SmartOS

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.

  1. Clone ghc repo and check out desired branch or tag.

  2. Edit mk/build.mk to be the following:

V=1 InstallExtraPackages=YES BeConservative=YES ```

  1. ./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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment