[GHC] #11302: GHC HEAD uses up all memory while compiling `genprimcode`

GHC ghc-devs at haskell.org
Tue Dec 29 12:15:15 UTC 2015


#11302: GHC HEAD uses up all memory while compiling `genprimcode`
-------------------------------------+-------------------------------------
        Reporter:  hvr               |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  highest           |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  7.11
      Resolution:  duplicate         |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #11303            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by heisenbug):

 Taking the hint from
 https://ghc.haskell.org/trac/ghc/ticket/11239#comment:5 I added `-fno-
 warn-overlapping-patterns -fno-warn-incomplete-patterns` to the
 compilation recipe like this:
 {{{
 ghc -hisuf hi -osuf o -hcsuf hc -static -H64m -O0 -fasm -Wall -package-db
 libraries/bootstrapping.conf -hide-all-packages -i -iutils/genprimopcode/.
 -iutils/genprimopcode/dist/build -iutils/genprimopcode/dist/build/autogen
 -Iutils/genprimopcode/dist/build -Iutils/genprimopcode/dist/build/autogen
 -optP-include -optPutils/genprimopcode/dist/build/autogen/cabal_macros.h
 -package-id array-0.5.1.0 -package-id base-4.9.0.0 -XHaskell2010 -no-user-
 package-db -rtsopts -odir utils/genprimopcode/dist/build -hidir
 utils/genprimopcode/dist/build -stubdir utils/genprimopcode/dist/build -c
 utils/genprimopcode/./Main.hs -o utils/genprimopcode/dist/build/Main.o
 -fno-full-guard-reasoning -fno-warn-overlapping-patterns -fno-warn-
 incomplete-patterns
 }}}
 And it correctly built a `Main.o` and (subsequently on `make`) a
 `genprimopcode` so that I could go on bootstrapping.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11302#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list