X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fbuilding%2Fbuilding.xml;h=5994d2d1b4e5cd5c53663b63b0216ca22907ec73;hb=646ca6ffb55b1a9ee4c71e8573d87629dc7a4989;hp=d0db332513abc11c8891073227db712d401f666c;hpb=c838103b0636d8209d9d910db0a0328ee1682a39;p=ghc-hetmet.git diff --git a/docs/building/building.xml b/docs/building/building.xml index d0db332..5994d2d 100644 --- a/docs/building/building.xml +++ b/docs/building/building.xml @@ -2563,7 +2563,7 @@ $ ./configure --enable-hc-boot --enable-hc-boot-unregisterised -$ cd T/ghc/includes +$ cd T/includes $ make @@ -2598,7 +2598,8 @@ GhcWithInterpreter = NO GhcStage1HcOpts = -O GhcStage2HcOpts = -O -fvia-C -keep-hc-files SRC_HC_OPTS += -H32m -GhcBootLibs = YES +GhcBootLibs = YES +GhcWithSMP = NO @@ -2625,9 +2626,9 @@ GhcBootLibs = YES Copy - T/ghc/includes/ghcautoconf.h, T/ghc/includes/DerivedConstants.h, and T/ghc/includes/GHCConstants.h + T/includes/ghcautoconf.h, T/includes/DerivedConstants.h, and T/includes/GHCConstants.h to - H/ghc/includes. + H/includes. Note that we are building on the host machine, using the target machine's configuration files. This is so that the intermediate C files generated here will @@ -2637,27 +2638,21 @@ GhcBootLibs = YES Touch the generated configuration files, just to make sure they don't get replaced during the build: -$ cd H/ghc/includes +$ cd H/includes $ touch ghcautoconf.h DerivedConstants.h GHCConstants.h mkDerivedConstants.c $ touch mkDerivedConstantsHdr mkDerivedConstants.o mkGHCConstants mkGHCConstants.o - - Note: it has been reported that these files still get - overwritten during the next stage. We have installed a fix - for this in GHC 6.4.2, but if you are building a version - before that you need to watch out for these files getting - overwritte by the Makefile in - ghc/includes. If your system supports - it, you might be able to prevent it by making them - immutable: -$ chflags uchg ghc/includes/{ghcautoconf.h,DerivedConstants.h,GHCConstants.h} Now build the compiler: -$ cd H/glafp-utils && make boot && make -$ cd H/ghc && make boot && make - Don't worry if the build falls over in the RTS, we - don't need the RTS yet. +$ cd H/utils/mkdependC && make boot && make +$ cd H/includes && make boot && make +$ cd H/compat && make boot && make +$ cd H/utils && make boot && make +$ cd H/compiler && make boot && make +$ cd H/rts && make boot && make + Don't worry if the build falls over in the RTS, we + don't need the RTS yet. @@ -2666,7 +2661,7 @@ $ make boot && make -$ cd H/ghc/compiler +$ cd H/compiler $ make boot stage=2 && make stage=2