Changes between Version 12 and Version 13 of Building/Solaris
- Timestamp:
- 01/27/10 15:13:20 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Building/Solaris
v12 v13 33 33 === Selecting a good GCC version === 34 34 35 GCC version 4.1.x and 4.0.x seem to be fine. 4.1.2 is recommended. 35 GHC only works with particular GCC versions. 36 37 For compiling GHC 6.10.1, GCC versions 4.0.4 and 4.1.2 are known to work. Others in the 4.0.x and 4.1.x series may work, but haven't been tested. 38 39 GCC version 4.3.x produces assembly files that GHC's "evil mangler" does not yet deal with. 40 41 GCC version 4.2.x works but takes hours and hours to build the large `.hc` files that GHC generates. It is reported (#1293, #2906) that particular modules can take upwards of 5 hours and the overall build takes a couple days. This is due to complexity issues with respect to GCC moving to a unit-at-a-time compilation scheme instead of function-at-a-time. 42 43 GCC version 4.0.2 does not support thread local state (TLS), at least on SPARC. 36 44 37 45 GCC version 3.4.x is reported (#951) to mis-compile the runtime system leading to a runtime error `schedule: re-entered unsafely`. 38 46 But such a gcc version is sufficient for most user programs in case you just installed a ghc binary distribution. 39 47 40 GHC has not yet been updated to understand the assembly output of GCC version 4.3.x.41 42 GCC version 4.2.x works but takes hours and hours to build the large `.hc` files that GHC generates. It is reported (#1293, #2906) that particular modules can take upwards of 5 hours and the overall build takes a couple days.43 48 44 49 == Using GCC from a non-standard location ==
