[GHC] #15197: Apparent missing dependency in ghc-heap

GHC ghc-devs at haskell.org
Wed May 30 15:22:21 UTC 2018


#15197: Apparent missing dependency in ghc-heap
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.4.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 The problem is apparently that the import of `InfoTableProf` is guarded
 behind a `#if defined(PROFILING)`:
 {{{#!hs
 #if defined(PROFILING)
 import GHC.Exts.Heap.InfoTableProf
 #else
 import GHC.Exts.Heap.InfoTable
 #endif
 }}}

 Looking at the GHC-generated dependency file I see the following,
 {{{#!make
 libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/Closures.p_o :
 libraries/ghc-heap/dist-install/build/GHC/Exts/Heap/InfoTable.p_hi
 }}}

 It looks to me like `ghc -M` isn't correctly accounting for ways when
 generating its dependency graph.

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


More information about the ghc-tickets mailing list