Skip to content

Commit

Permalink
Added JHC patch and build instructions. Still need to include JHC dep…
Browse files Browse the repository at this point in the history
…endencies ie DrIFT.
  • Loading branch information
joshprice committed Aug 16, 2009
1 parent 23d12f0 commit 3381971
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ If all else fails, mail mwotton@gmail.com with tales of woe.

Don't worry too much about any warnings that you may see while this builds.

- Install [JHC][jhc] (the instructions there are slightly out of date so use the following instead). Before you start get a cup of tea, and get comfy. This may take a while...
- Install [JHC][jhc] (the instructions there are slightly out of date so use the following instead). Before you start, go get a cup of tea and get comfy. This may take a while...

<pre>
darcs get --partial http://repetae.net/repos/jhc
Expand All @@ -65,18 +65,42 @@ If all else fails, mail mwotton@gmail.com with tales of woe.
darcs get --partial http://darcs.haskell.org/packages/containers
</pre>

- Copy the jhc binary in the root jhc directory to somewhere in your $PATH
## FIXME Install DrIFT http://repetae.net/computer/haskell/DrIFT/

## Troubleshooting installation

JHC doesn't have a heap of mac users, so there were a few problems I had in installing.
Now we can start building JHC.

<pre>
autoreconf -i
./configure
</pre>

in ./src/data/rts/jhc_rts_header.h:
For Mac OSX there are a couple of patches you'll need to apply before you build.

Make the following change in ./src/data/rts/jhc_rts_header.h at line XXXX:

-#include <endian.h>
+#include <sys/types.h>
+#include <sys/param.h>

Also in the Makefile add '' before $@ at line 732:

sed -e 's/^{-# OPTIONS/{-# OPTIONS_GHC -w/' -i '' $@

Now you should be able to build it.

<pre>
make
</pre>

- Copy the jhc binary in the root jhc directory to somewhere in your $PATH


## Troubleshooting installation

JHC doesn't have a heap of mac users, so there were a few problems I had in installing.


make libs doesn't always seem to work off the bat. so long as jhc builds, it's probably ok
for the moment - copy the jhc binary in the root jhc directory to somewhere in your $PATH.

Expand Down

0 comments on commit 3381971

Please sign in to comment.