Changes between Version 6 and Version 7 of Building/Solaris


Ignore:
Timestamp:
Jan 21, 2009 2:43:24 PM (6 years ago)
Author:
duncan
Comment:

move a bit about, remove done TODOs

Legend:

Unmodified
Added
Removed
Modified
  • Building/Solaris

    v6 v7  
    9898As with gmp, we need to tell `./configure` about the location of `readline`. Be careful here because it may look like you are building with readline support when in fact you are not. 
    9999 
    100 Using the `--with-gmp-includes=` `--with-gmp-libraries=` flags are enough to get the top level `./configure` script to believe that using readline will work, if you happen to have gmp and readline installed under the same prefix. However it is not enough for the Haskell readline package's configure script. Unfortunately that one gets run half way through the build process (after building stage1) and if it fails it does so silently and the readline feature is simply not used. This means you end up with a useless ghci. 
     100Using the `--with-gmp-includes=` `--with-gmp-libraries=` flags are enough to get the top level `./configure` script to believe that using readline will work, if you happen to have gmp and readline installed under the same prefix. However it is not enough for the Haskell readline package's configure script. Unfortunately that one gets run half way through the build process (after building stage1) and if it fails it does so silently and the readline feature is simply not used. This means you end up with a useless ghci. See #2970. 
    101101 
    102102So it is necessary to pass these flags to `./configure`: 
     
    112112}}} 
    113113 
    114 And check that it really does link to readline. It is also worth checking at this point that ghc will run without `LD_LIBRARY_PATH` set: 
    115  
    116 {{{ 
    117 LD_LIBRARY_PATH="" ldd compiler/stage2/ghc-6.8.3 
    118 }}} 
    119  
    120 This should all libs as being found. 
     114And check that it really does link to readline. 
    121115 
    122116== Split objects == 
     
    169163If you are lucky enough to have a box with lots of CPU cores then use them! Sadly the maximum number that it can actually use effectively is around 4. Hopefully the new build system in ghc-6.11 and later will be able to use more. 
    170164 
     165It is worth checking at this point that ghc will run without `LD_LIBRARY_PATH` set: 
     166 
     167{{{ 
     168unset LD_LIBRARY_PATH 
     169ldd compiler/stage2/ghc-6.8.3 
     170}}} 
     171 
     172This should report all libs as being found. (If you expect to use readline then check it is also linked to readline.) 
     173 
     174Now to install: 
     175 
    171176{{{ 
    172177sudo gmake install 
     
    197202 
    198203 * link to expected testsuite results. 
    199  * how to make ghc use `-R/opt/csw/lib` for everything it builds (it get it into the rts pkg conifg) 
    200  * how to make sure it really does get built with readline support