Changes between Version 1 and Version 2 of ArmLinuxGhc


Ignore:
Timestamp:
May 6, 2006 11:41:19 PM (9 years ago)
Author:
guest
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ArmLinuxGhc

    v1 v2  
    4949}}}
    5050
    51 That should get to the point of having a ghc-inplace built. Next I will figure out how to
    52 using the ghc-inplace to build ghc without the .hc files.
     51That should get to the point of having a ghc-inplace built.
    5352
     53NOTE: if you try to move the directory to a new location or name,
     54the inplace compiler will stop working because it has absolute paths
     55hard coded to the current location.
     56
     57== Build ghc using ghc-inplace ==
     58
     59(1) unroll the ghc source tarball into a new directory.
     60(2) ./configure --srcdir=. --with-ghc=/abs/path/to/ghc-inplace
     61(3) create a mk/build.mk with these two lines:
     62{{{
     63GhcUnregisterised = YES
     64GhcWithNativeCodeGen = NO
     65}}}
     66(4) make
     67(5) make install
     68
     69I think there may have been one other step in there somewhere...
     70
     71This should build and install ghc. Unfortunately, the floating point
     72code will be broken.
     73
     74== Run the test suite ==
     75
     76(1) get the testsuite that corresponds to your release, for example:
     77
     78http://haskell.org/ghc/dist/ghc-testsuite-6.4.2.tar.gz
     79
     80(2) untar it in the ghc-6.4.2/ghc directory.
     81(3) edit mk/test.mk and change the -e config.time_prog line to:
     82{{{
     83        -e config.timeout_prog=\"\" \
     84}}}
     85(4) cd to test/ghc-regress
     86(5) make TEST_HC=ghc fast
     87or
     88(5) make TEST_HC=ghc # for a longer test
     89
     90
     91I had to do this because the timeout program interacted badly with
     92the scratchbox shell causing all the tests to timeout and fail.