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

GHC ghc-devs at haskell.org
Mon Jan 7 15:50:19 UTC 2019


#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


More information about the ghc-tickets mailing list