Changes between Version 23 and Version 24 of Building/Solaris


Ignore:
Timestamp:
Dec 20, 2012 12:09:08 AM (16 months ago)
Author:
dterei
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/Solaris

    v23 v24  
    1  
    2 [[PageOutline]] 
    3  
    41= Building on Solaris = 
    52 
     
    85GHC versions 6.10.1 and earlier don't have a working SPARC native code generator, and have many small build issues with Solaris. Use GHC 6.12.1 or later. 
    96 
    10 == Installing GNU packages == 
     7== Get the latest development tools == 
    118 
    12 GHC relies on many GNU-isms that are not supported by the native Solaris build tools. The following environment is known to work. Later versions may work but have not been tested. Taking the time to install these tools is likely to be less painful than debugging build problems due to unsupported versions (and this is your official warning). 
     9See [wiki:Building/Preparation/Solaris Solaris Preparations]. 
    1310 
    14  || GNU binutils 2.20  || for GNU ld, maybe others || 
    15  || GNU coreutils 8.4  || for GNU tr, maybe others || 
    16  || GNU make 3.81     || make files use GNU extensions || 
    17  || GNU m4 1.4.13     || || 
    18  || GNU sed 4.2           || build scripts use GNU extensions || 
    19  || GNU tar 1.20         || Solaris tar doesn't handle large file names || 
    20  || GNU grep 2.5      || build scripts use GNU extensions || 
    21  || GNU readline 5 || || 
    22  || GNU ncurses 5.5 || || 
    23  || Python 2.6.4 || needed to run the testsuite with multiple threads || 
    24  || GCC 4.1.2       || this exact version is strongly recommended || 
     11== Building the distribution == 
    2512 
    26 Some of these can be obtained as binary versions from the  [http://www.blastwave.org/ blastwave.org] collection, others need to be downloaded as source from [http://www.gnu.org gnu.org]. 
     13See the general [wiki:Building/QuickStart build instructions]. 
    2714 
    28 The blastwave libraries are usually installed under `/opt/csw`, so you may need to manually set `LD_LIBRARY_PATH` to point to them: 
    29  
    30 {{{ 
    31 export LD_LIBRARY_PATH=/opt/csw/lib 
    32 }}} 
    33  
    34 == Using a bootstrapping GHC == 
    35  
    36 You can either get a binary distribution from the GHC download page or use some other pre-existing GHC binary. These binaries usually assume that required libraries are reachable via LD_LIBRARY_PATH, or are in `/opt/csw`. If you get errors about missing libraries or header files, then the easiest solution is to create soft links to them in, `lib/ghc-6.12.1` and `lib/ghc-6.12.1/include` of the installed binary distribution. These paths are always searched for libraries / headers. 
    37  
    38 [[br]] 
    39 = What can go wrong = 
     15== What can go wrong == 
    4016 
    4117The rest of this page discusses problems with specific tool versions. If you stick to the versions in the above list then you shouldn't have to read further. 
    4218 
    43 == Only some GCC versions work == 
     19=== Only some GCC versions work === 
    4420 
    4521 * GCC version 4.1.2 is known to work. Use this version if possible. 
     
    6440But such a gcc version is sufficient for most user programs in case you just installed a ghc binary distribution.  
    6541 
    66 == Using the wrong assembler == 
     42=== Using the wrong assembler === 
    6743If you fail to install GNU binutils then GHC will try to use the native Sun assembler, and you'll get something like this: 
    6844 
     
    8056}}} 
    8157 
    82 == Split objects == 
     58=== Split objects === 
    8359 
    8460Split objects didn't work in GHC 6.10.x, not sure about GHC 6.12.1. 
     
    9167}}} 
    9268 
    93 == Test Failures == 
     69=== Test Failures === 
    9470 
    9571The following regression tests are known to fail on SPARC/Solaris10 with GHC 6.12.1, using the 6.12.1 testsuite. Some of these are not platform specific.