By default GHC API looks for .dyn_o but only creates .o
See the example program for #7918 (closed) . 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.
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |