[GHC] #8104: By default GHC API looks for .dyn_o but only creates .o
GHC
ghc-devs at haskell.org
Tue Jul 30 16:11:33 CEST 2013
#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
More information about the ghc-tickets
mailing list