[GHC] #10937: "ghc -no-link --make A.hs -o foo" does something silly

GHC ghc-devs at haskell.org
Wed Oct 7 00:46:25 UTC 2015


#10937: "ghc -no-link --make A.hs -o foo" does something silly
-------------------------------------+-------------------------------------
           Reporter:  ezyang         |             Owner:
               Type:  bug            |            Status:  new
           Priority:  lowest         |         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):                 |
-------------------------------------+-------------------------------------
 If I run "ghc -no-link --make A.hs -o foo" it puts the first object file
 it compiles into the `-o` location, and then fails because the object is
 not where is expected.

 {{{
 [ezyang at hs01 ghc-fat-interface]$ ghc -no-link --make B.hs -o foo
 [1 of 2] Compiling A                ( A.hs, A.o )
 ./A.o: getFileStatus: does not exist (No such file or directory)
 }}}

 Without `-no-link` I get a more reasonable warning, and object files are
 not redirected.

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


More information about the ghc-tickets mailing list