[GHC] #8104: By default GHC API looks for .dyn_o but only creates .o

#8104: By default GHC API looks for .dyn_o but only creates .o ------------------------------------+------------------------------------- Reporter: edsko | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- See the example program for http://ghc.haskell.org/trac/ghc/ticket/7918 . If we change {{{ dynFlags <- getSessionDynFlags void $ setSessionDynFlags (doDynamicToo dynFlags) }}} to {{{ dynFlags <- getSessionDynFlags void $ setSessionDynFlags dynFlags }}} so that we get the default `DynFlags`, the program fails. The program loads two modules A and B, and tries to typecheck B. B uses a quasi-quoter defined in A. With the default `DynFlags` it will fail with {{{ cannot find normal object file ‛./T7918A.dyn_o’ while linking an interpreted expression }}} i.e., it is looking for the `.dyn_o` file but only creates the `.o` file. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8104 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8104: By default GHC API looks for .dyn_o but only creates .o -------------------------------------+------------------------------------ Reporter: edsko | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by edsko): * version: 7.6.3 => 7.7 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8104#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8104: By default GHC API looks for .dyn_o but only creates .o -------------------------------------+------------------------------------ Reporter: edsko | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: invalid | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by igloo): * status: new => closed * resolution: => invalid Comment: Thanks for the report. However, this is behaving as expected. By default GHC (and the GHC API) will compile the 'vanilla' way, but ghci (and TH, quasi-quotes, etc) need dependencies to be compiled with the 'dynamic' way. `doDynamicToo` does happen to set the way to 'dynamic', but that's not what it's intended to be used for. I'll rename it to make it less likely to cause confusion in the future. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8104#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8104: By default GHC API looks for .dyn_o but only creates .o
-------------------------------------+------------------------------------
Reporter: edsko | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.7
Resolution: invalid | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by ian@…):
commit 1e258592c6e6688661f76608fa1645313c30f950
{{{
Author: Ian Lynagh
participants (1)
-
GHC