[GHC] #8276: Building Haddock documentation panics with perf build on x86_64 Linux

GHC ghc-devs
Wed Oct 9 15:59:09 UTC 2013


#8276: Building Haddock documentation panics with perf build on x86_64 Linux
---------------------------------------+----------------------------------
        Reporter:  jstolarek           |            Owner:  thoughtpolice
            Type:  bug                 |           Status:  new
        Priority:  highest             |        Milestone:  7.8.1
       Component:  Documentation       |          Version:  7.7
      Resolution:                      |         Keywords:
Operating System:  Unknown/Multiple    |     Architecture:  x86_64 (amd64)
 Type of failure:  Compile-time crash  |       Difficulty:  Unknown
       Test Case:                      |       Blocked By:
        Blocking:                      |  Related Tickets:
---------------------------------------+----------------------------------

Comment (by Austin Seipp <austin@?>):

 In [changeset:"16c401137a0d2aa803a5806493889056538c2de4/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="16c401137a0d2aa803a5806493889056538c2de4"
 Nuke {save,restore}StaticFlagGlobals.

 As discussed in #8276, this code was somewhat broken because while you
 could always revert the actual argument list, you can never revert the
 CAFs upon which they are based - so really this didn't buy you much.

 However, Haddock in particular expects to be able to parse GHC flags,
 including static flags, and used this code to do so. In its place, we
 instead have discardStaticFlags, which will safely remove any of the
 remaining 5 flags from a list of arguments. Haddock instead discards
 these, as they aren't related to anything it does anyway (mostly
 controlling debugging output and some basic optimizer phases.)

 This fixes #8276. In the future, we will eventually completely remove
 the remaining StaticFlags, removing the need for this fix. Unfortunately
 these changes will be quite invasive and require more time.

 Signed-off-by: Austin Seipp <austin at well-typed.com>
 }}}

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



More information about the ghc-tickets mailing list