
#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