Problem building GHC

Donald Bruce Stewart dons at cse.unsw.edu.au
Sat Jul 16 07:36:30 EDT 2005


dinko.tenev:
> I did a "devel" build this time, which produced some verbose output
> for the last line.
> 
> One thing that troubles me is that gcc still manages to kick-in - what
> exactly is going on???

You need to make sure the -fasm flag is the last one on the command
line, via EXTRA_HC_OPTS:

    paprika$ gmake EXTRA_HC_OPTS=-fasm       
    ../../ghc/compiler/ghc-inplace -H16m -O -L/usr/local/lib -ignore-package haskell-src -O -Rghc-timing -fgenerics  -package base -fgenerics   -fasm -c Language/Haskell/Syntax.hs -o Language/Haskell/Syntax.o  -ohi Language/Haskell/Syntax.hi

    <<ghc: 4013123044 bytes, 13284 GCs, 17945942/30444176 avg/max bytes residency (18 samples), 86M in use, 0.00 INIT (0.04 elapsed), 12.99 MUT (16.56 elapsed), 9.25 GC (11.21 elapsed) :ghc>>

Taking a peek at the C file that is normally generated -fvia-C:
    paprika$ wc -l /tmp/ghc7169_0.hc
    170898 /tmp/ghc7169_0.hc

Quite big.

-- Don


More information about the Glasgow-haskell-users mailing list