| | 5 | --- |
| | 6 | |
| | 7 | At the time of writing (2006-08-20), darcs ghc won't build out of the box using the build 20060608. Here's steps to do it: |
| | 8 | |
| | 9 | {{{ |
| | 10 | darcs get --partial http://darcs.haskell.org/ghc |
| | 11 | cd ghc |
| | 12 | chmod +x ./darcs-all |
| | 13 | ./darcs-all get --partial |
| | 14 | autoreconf |
| | 15 | ./configure |
| | 16 | darcs unpull --patch "Fix Array imports" # answer yes |
| | 17 | # edit file mk/config.mk |
| | 18 | # on line 790, change variable's value to |
| | 19 | # GhcMinVersion = 4 |
| | 20 | # that causes normal bootstrap |
| | 21 | make -j3 # Add GhcBootLibs=YES if you don't want all the libs, -j3 is cool if you got core duo |
| | 22 | # compiles stage1 and libs |
| | 23 | # it should stop on stage2, compiler/Digraph.lhs |
| | 24 | darcs pull -a # patch "Fix Array imports" |
| | 25 | make -j3 stage=2 # Add GhcBootLibs=YES if you don't want all the libs |
| | 26 | # be happy |
| | 27 | }}} |
| | 28 | |
| | 29 | If you use build after 20060814 or so, you shouldn't need to unpull and pull the patch. |