#8736: GHCi doesn't load .dyn_o files appropriatelyPriority: high | Milestone: 7.8.3
-------------------------------------+------------------------------------
Reporter: thoughtpolice | Owner: thoughtpolice
Type: bug | Status: new
Component: Compiler | Version: 7.8.1-rc2Comment (by George):
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Replying to [comment:4 simonpj]:
> Summarising the behaviour. If you say `:load Foo` in GHCi> * `Foo` was compiled with `-dynamic`: loads `Foo.o`
> * `Foo` was compiled without any dynamic flag: does not find objectThe first case
files, so interprets.
> * `Foo` was compiled with `-dynamic-too`: fails as above.
>
> Not a release blocker.
>
> * `Foo` was compiled with `-dynamic`: loads `Foo.o`
does not seem to be the case in 7.8.2, at least on the Mac where the .o
file does not get loaded
{{{
ghc --make -O2 -DYNAMIC pfp1.hs
[1 of 1] Compiling Main ( pfp1.hs, pfp1.o )
Linking pfp1 ...
bash-3.2$ ghci -ignore-dot-ghci
GHCi, version 7.8.2: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> :load pfp1
[1 of 1] Compiling Main ( pfp1.hs, interpreted )
Ok, modules loaded: Main.
}}}
Should I file a bug?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8736#comment:9>