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

#11302: GHC HEAD uses up all memory while compiling `genprimcode` -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- When attempting to self-bootstrap GHC HEAD I discovered that `utils/genprimocode` can't be compiled with GHC HEAD. How to reproduce roughly: {{{ $ cd utils/genprimcode $ alex --ghc Lexer.x $ happy --ghc Parser.y $ ghc-7.11.20151226 --make Main [1 of 5] Compiling ParserM ( ParserM.hs, ParserM.o ) [2 of 5] Compiling Lexer ( Lexer.hs, Lexer.o ) [3 of 5] Compiling Syntax ( Syntax.hs, Syntax.o ) [4 of 5] Compiling Parser ( Parser.hs, Parser.o ) [5 of 5] Compiling Main ( Main.hs, Main.o ) ...killed by OS due to running out-of-memory after using up >10GiB ram.... }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11302 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => duplicate * related: => #11303 Comment: This is a duplicate of #11303. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11302#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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

#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 #11239 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by heisenbug): * related: #11303 => #11303 #11239 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11302#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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: | PatternMatchWarnings Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #11303 #11239 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * keywords: => PatternMatchWarnings -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11302#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC