Changes between Version 3 and Version 4 of Building/KnownProblems


Ignore:
Timestamp:
Oct 27, 2006 7:00:45 PM (9 years ago)
Author:
simonmar
Comment:

bring up to date and remove old/irrelevant stuff

Legend:

Unmodified
Added
Removed
Modified
  • Building/KnownProblems

    v3 v4  
    1 [[PageOutline]]
     1
    22
    33= Known pitfalls in building Glasgow Haskell =
     
    2020    in your {{{build.mk}}} file.  Then GHC and the other
    2121    tools will use the appropriate directory in all cases.
    22  2. In compiling some support-code bits, e.g., in {{{ghc/rts/gmp}}} and even
    23     in {{{ghc/lib}}}, you may get a few C-compiler warnings.  We think these
    24     are OK.
    25  3.  When compiling via C, you'll sometimes get "warning: assignment from
    26     incompatible pointer type" out of GCC.  Harmless.
    27  4. Similarly, {{{ar}}}chiving warning messages like the following are not
     22 2. You may occasionally see a warning from the C compiler when compiling some
     23    Haskell code, eg. "warning: assignment from
     24    incompatible pointer type".  These are usually harmless, but it's a good idea to
     25    report it on the mailing list so that we can fix it.
     26 3. Similarly, {{{ar}}}chiving warning messages like the following are not
    2827    a problem:
    2928{{{
     
    3231...
    3332}}}
    34  5. In compiling the compiler proper (in {{{compiler/}}}), you ''may''
    35     get an "Out of heap space" error message.  These can vary with the
    36     vagaries of different systems, it seems.  The solution is simple:
    37     * If you're compiling with GHC 4.00 or later, then the
    38       ''maximum'' heap size must have been reached.  This
    39       is somewhat unlikely, since the maximum is set to 64M by default.
    40       Anyway, you can raise it with the
    41       {{{-optCrts-M<size>}}} flag (add this flag to
    42       {{{<module>_HC_OPTS}}}
    43       {{{make}}} variable in the appropriate
    44       {{{Makefile}}}).
    45     * For GHC > 4.00, add a suitable {{{-H}}} flag to the {{{Makefile}}}, as
    46       above.
    47     * and try again: {{{make}}}.  (see <xref linkend="sec-suffix"/> for information about
    48       {{{<module>_HC_OPTS}}}.)
    49       [[br]]
    50       Alternatively, just cut to the chase:
    51 {{{
    52 $ cd ghc/compiler
    53 $ make EXTRA_HC_OPTS=-optCrts-M128M
    54 }}}
    55  5. If you try to compile some Haskell, and you get errors from GCC about
    56     lots of things from {{{/usr/include/math.h}}}, then your GCC was
    57     mis-installed.  {{{fixincludes}}} wasn't run when it should've been.
    58     [[br]]
    59     As {{{fixincludes}}} is now automagically run as part of GCC installation,
    60     this bug also suggests that you have an old GCC.
    61  6. You ''may'' need to re-{{{ranlib}}} your libraries (on Sun4s).
    62 {{{
    63 $ cd $(libdir)/ghc-x.xx/sparc-sun-sunos4
    64 $ foreach i ( `find . -name '*.a' -print` ) # or other-shell equiv...
    65 ?    ranlib $i
    66 ?    # or, on some machines: ar s $i
    67 ? end
    68 }}}
    69     We'd be interested to know if this is still necessary.
    70  7. GHC's sources go through {{{cpp}}} before being compiled, and {{{cpp}}} varies
     33 4. GHC's sources go through {{{cpp}}} before being compiled, and {{{cpp}}} varies
    7134    a bit from one Unix to another.  One particular gotcha is macro calls
    7235    like this: