RE: Problem building GHC

On 14 July 2005 22:02, Dinko Tenev wrote:
It turns out, ar couldn't quite handle building the symbol table for the archive. I tried ar qS, then ranlib the archive, but ranlib turns out to be exactly the same kind of brittle crap...
I am currently looking for more robust binutils - I'll appreciate any siggestions.
I tried this experiment too, with the same results. As a workaround you can disable object splitting. Add the line "SplitObjs=NO" to mk/build.mk before building. Cheers, Simon

On 7/15/05, Simon Marlow
As a workaround you can disable object splitting. Add the line "SplitObjs=NO" to mk/build.mk before building.
I did that, and it got me a bit further. Now ghc-inplace dumps core compiling Language/Haskell/Syntax.hs: ------------------------------------------------------------------------ ==fptools== make way=p all; PWD = /home/shinobi/build/fptools/libraries/haskell-src ------------------------------------------------------------------------ ../../ghc/compiler/ghc-inplace -H32m -O -fasm -W -fno-warn-unused-matches -fwarn-unused-imports -ignore-package haskell-src -package base -fgenerics -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c Language/Haskell/Syntax.hs -o Language/Haskell/Syntax.p_o -ohi Language/Haskell/Syntax.p_hi Language/Haskell/Syntax.hs:68:0: Warning: Module `Data.Generics.Instances' is imported, but nothing from it is used (except perhaps instances visible in `Data.Generics.Instances') make[3]: *** [Language/Haskell/Syntax.p_o] Killed make[2]: *** [all] Error 1 make[1]: *** [all] Error 1 make[1]: Leaving directory `/home/shinobi/build/fptools/libraries' make: *** [build] Error 1 Any ideas? Cheers, D. Tenev

BTW, I tried to compile the file with the installed ghc, and I am kind of puzzled by the error message I get: ghc -O -fasm -W -fno-warn-unused-matches -fwarn-unused-imports -ignore-package haskell-src -package base -fgenerics -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c Language/Haskell/Syntax.hs -o Language/Haskell/Syntax.p_o -ohi Language/Haskell/Syntax.p_hi ghc-6.2.2: -ohi can only be used when compiling a single source file Usage: For basic information, try the `--help' option. How am I trying to compile anything other than a single source file here??? Cheers, D. 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??? ------------------------------------------------------------------------ ==fptools== make all -wr; in /home/shinobi/build/fptools/libraries/haskell-src ------------------------------------------------------------------------ ../../ghc/compiler/ghc-inplace -H32m -O0 -fasm -W -fno-warn-unused-matches -fwarn-unused-imports -ignore-package haskell-src -O -dcore-lint -W -fno-warn-unused-matches -fwarn-unused-imports -keep-hc-files -package base -fgenerics -c Language/Haskell/Syntax.hs -o Language/Haskell/Syntax.o -ohi Language/Haskell/Syntax.hi check_tc DataziTuple.Z2T{(w) tc 46} Language/Haskell/Syntax.hs:68:0: Warning: Module `Data.Generics.Instances' is imported, but nothing from it is used (except perhaps instances visible in `Data.Generics.Instances') check_tc DataziTuple.Z2T{(w) tc 46} check_tc DataziTuple.Z2T{(w) tc 46} check_tc DataziTuple.Z2T{(w) tc 46} check_tc DataziTuple.Z2T{(w) tc 46} check_tc DataziTuple.Z2T{(w) tc 46} check_tc DataziTuple.Z2T{(w) tc 46} check_tc DataziTuple.Z2T{(w) tc 46} NOTE: Simplifier still going after 4 iterations; bailing out. gcc: Internal error: Killed (program cc1) Please submit a full bug report. See URL:http://gcc.gnu.org/bugs.html for instructions. For Debian GNU/Linux specific bug reporting instructions, see URL:file:///usr/share/doc/gcc-3.3/README.Bugs. make[2]: *** [Language/Haskell/Syntax.o] Error 1 make[1]: *** [all] Error 1 make[1]: Leaving directory `/home/shinobi/build/fptools/libraries' make: *** [build] Error 1

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
<
participants (3)
-
Dinko Tenev
-
dons@cse.unsw.edu.au
-
Simon Marlow