[GHC] #10966: dirtiness checking isn't keeping track of which source file contained Main

#10966: dirtiness checking isn't keeping track of which source file contained Main -------------------------------------+------------------------------------- Reporter: gueux | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 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: -------------------------------------+------------------------------------- See https://github.com/commercialhaskell/stack/issues/1127#issuecomment-14678116... for the description of the issue and https://gist.github.com/snoyberg/aa6ce5247f9a0d1b5f95 for a minimal example. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10966 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10966: dirtiness checking isn't keeping track of which source file contained Main -------------------------------------+------------------------------------- Reporter: gueux | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 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: | -------------------------------------+------------------------------------- Changes (by thomie): * Attachment "Devel.hs" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10966 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10966: dirtiness checking isn't keeping track of which source file contained Main -------------------------------------+------------------------------------- Reporter: gueux | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 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: | -------------------------------------+------------------------------------- Changes (by thomie): * Attachment "Main.hs" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10966 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10966: dirtiness checking isn't keeping track of which source file contained Main -------------------------------------+------------------------------------- Reporter: gueux | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 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 thomie): To reproduce: {{{ $ ghc Devel.hs -o foo $ ./foo # prints: "dev". Ok. $ ghc Main.hs -o foo $ ./foo # prints: "not dev". Ok. $ ghc Devel.hs -o foo $ ./foo # prints: "not dev". Should print "dev" (this is the bug). }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10966#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10966: dirtiness checking isn't keeping track of which source file contained Main -------------------------------------+------------------------------------- Reporter: gueux | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Driver | Version: 7.10.2 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: | -------------------------------------+------------------------------------- Changes (by thomie): * component: Compiler => Driver -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10966#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10966: dirtiness checking isn't keeping track of which source file contained Main -------------------------------------+------------------------------------- Reporter: gueux | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Driver | Version: 7.10.2 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 thomie): In `compiler/main/DriverPipeline.hs`: {{{ linkingNeeded :: DynFlags -> Bool -> [Linkable] -> [UnitId] -> IO Bool linkingNeeded dflags staticLink linkables pkg_deps = do -- if the modification time on the executable is later than the -- modification times on all of the objects and libraries, then omit -- linking (unless the -fforce-recomp flag was given). ... }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10966#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10966: dirtiness checking isn't keeping track of which source file contained Main -------------------------------------+------------------------------------- Reporter: gueux | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Driver | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #10161 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * related: => #10161 Comment: See also #10161. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10966#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC