Building HP 2014.2.0.0 without a bindist?
Mark Lentczner
mark.lentczner at gmail.com
Thu Aug 28 04:52:42 BST 2014
Here's my NOTES for building the GHC bindist for Mac, in preparation for
using it to then build the platform:
Notes on build GHC
------------------
[] Need autoconf and automake installed
get from http://mirrors.kernel.org/gnu/autoconf/
get from http://mirrors.kernel.org/gnu/automake/
needn't be latest, really
untar, configure, make, make install (should put in /usr/local)
- first autoconf, then automake
[] Need lastest tools
cabal update
cabal install happy
cabal install alex
cabal install HsColour
make sure all on your PATH
[] Need DocBook XML DTD & XSL
download http://www.oasis-open.org/docbook/xml/4.5/docbook-xml-4.5.zip
download http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip
download docbook xsl package (don't run the included install script!)
put both in /usr/local/share/xml/
edit the catalog file for the dtd to have xml:base:
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer="public"
xml:base="file:///usr/local/share/xml/docbook-xml-4.5/">
set up /etc/xml/catalog file to be using some mangled magic of
xmlcatalog to:
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML
Catalog V1.0//EN" "
http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<nextCatalog
catalog="file:///usr/local/share/xml/docbook-xml-4.2/catalog.xml"/>
<nextCatalog
catalog="file:///usr/local/share/xml/docbook-xml-4.5/catalog.xml"/>
<nextCatalog
catalog="file:///usr/local/share/xml/docbook-xsl-1.78.1/catalog.xml"/>
</catalog>
[] From a GHC src tar ball:
export MACOSX_DEPLOYMENT_TARGET=10.6
./configure 2>&1 | tee ../conf.log
vi mk/build.mk
time make -j4 2>&1 | tee ../make.log
time make binary-dist 2>&1 | tee ../bd.log
[] in the vi step above, edit mk/build.mk to:
V=1
HADDOCK_DOCS=YES
LATEX_DOCS=NO
HSCOLOUR_SRCS=YES
BUILD_DOCBOOK_HTML=YES
BUILD_DOCBOOK_PDF=NO
BUILD_DOCBOOK_PS=NO
BeConservative=YES
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/haskell-platform/attachments/20140827/bf7bd91b/attachment.htm>
More information about the Haskell-platform
mailing list