[GHC] #16145: runghc with -fobject-code and -osuf fails to find dependencies

#16145: runghc with -fobject-code and -osuf fails to find dependencies -------------------------------------+------------------------------------- Reporter: adamse | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.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: -------------------------------------+------------------------------------- F.hs: {{{#!hs module F where import G main = g }}} G.hs: {{{#!hs module G where g = print () }}} Running: {{{ $ runghc --version runghc 8.6.2 $ runghc -- -fobject-code -osuf=hs.o F *** Exception: G.hs.o: getModificationTime:getFileStatus: does not exist (No such file or directory) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16145 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16145: runghc with -fobject-code and -osuf fails to find dependencies -------------------------------------+------------------------------------- Reporter: adamse | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.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: | -------------------------------------+------------------------------------- Description changed by adamse: Old description:
F.hs: {{{#!hs module F where
import G
main = g }}}
G.hs: {{{#!hs module G where
g = print () }}}
Running: {{{ $ runghc --version runghc 8.6.2 $ runghc -- -fobject-code -osuf=hs.o F *** Exception: G.hs.o: getModificationTime:getFileStatus: does not exist (No such file or directory) }}}
New description: F.hs: {{{#!hs module F where import G main = g }}} G.hs: {{{#!hs module G where g = print () }}} Running: {{{ $ runghc --version runghc 8.6.2 $ runghc -- -fobject-code -osuf=hs.o F *** Exception: G.hs.o: getModificationTime:getFileStatus: does not exist (No such file or directory) $ ls F.hs G.hi G.hs G.hs.hs.o }}} -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16145#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16145: runghc with -fobject-code and -osuf fails to find dependencies -------------------------------------+------------------------------------- Reporter: adamse | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.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 malcolmw): Also, if you change the -osuf flag to e.g. `-osuf=hs.hs.o`, then the compiler generates instead an object file called `G.hs.hs.hs.hs.o` -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16145#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16145: runghc with -fobject-code and -osuf fails to find dependencies -------------------------------------+------------------------------------- Reporter: adamse | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.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 mnislaih): Do things work as expected if the `-osuf` flag is omitted altogether ? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16145#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16145: runghc with -fobject-code and -osuf fails to find dependencies -------------------------------------+------------------------------------- Reporter: adamse | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.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 adamse): Yes, without -osuf the example works. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16145#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16145: runghc with -fobject-code and -osuf fails to find dependencies -------------------------------------+------------------------------------- Reporter: adamse | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.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 adamse): It seems that putting {{{hs.}}} anywhere breaks: {{{ $ runghc -- -fobject-code -osuf=xxxhs.o F *** Exception: G.xxxhs.o: getModificationTime:getFileStatus: does not exist (No such file or directory) }}} But a osuf without hs. works fine: {{{ $ runghc -- -fobject-code -osuf=xxxhso F () }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16145#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC