[GHC] #8736: GHCi doesn't load .dyn_o files appropriately

George Colpitts george.colpitts at gmail.com
Sat May 31 16:29:24 UTC 2014


Please ignore my previous message, I was compiling with -DYNAMIC instead of
-dynamic


On Sat, May 31, 2014 at 12:39 PM, GHC <ghc-devs at haskell.org> wrote:

> #8736: GHCi doesn't load .dyn_o files appropriately
> -------------------------------------+------------------------------------
>         Reporter:  thoughtpolice     |            Owner:  thoughtpolice
>             Type:  bug               |           Status:  new
>         Priority:  high              |        Milestone:  7.8.3
>        Component:  Compiler          |          Version:  7.8.1-rc2
>       Resolution:                    |         Keywords:
> Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
>  Type of failure:  None/Unknown      |       Difficulty:  Unknown
>        Test Case:                    |       Blocked By:
>         Blocking:                    |  Related Tickets:
> -------------------------------------+------------------------------------
>
> Comment (by George):
>
>  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 object
>  files, so interprets.
>  >  * `Foo` was compiled with `-dynamic-too`: fails as above.
>  >
>  > Not a release blocker.
>  >
>
>  The first case
>
>  >  * `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>
> GHC <http://www.haskell.org/ghc/>
> The Glasgow Haskell Compiler
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140531/926212a0/attachment.html>


More information about the ghc-devs mailing list