[GHC] #9282: GHCi ignores .dyn_hi files
#9282: GHCi ignores .dyn_hi files ----------------------------------+------------------------------------- Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Keywords: | Operating System: Unknown/Multiple Architecture: x86_64 (amd64) | Type of failure: Other Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------------+------------------------------------- With both `.o` and `.dyn_o` object files available, GHCi 7.8.2 ignores the dynamic object files. {{{ $ cat >Foo.hs <<EOF module Foo where foo :: IO () foo = print "Foo" EOF }}} {{{ $ ghc -Wall -c -dynamic-too -o Foo.o Foo.hs }}} {{{ $ 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.
:l Foo [1 of 1] Compiling Foo ( Foo.hs, interpreted ) Ok, modules loaded: Foo.
}}} As '''rwbarton''' mentioned on IRC, the reason becomes apparent with `ghci -ddump-if-trace` {{{ FYI: cannot read old interface file: mismatched interface file ways (wanted "dyn", got "") }}} This happens both on OS X and Linux. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9282> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9282: GHCi ignores .dyn_hi files -------------------------------------+----------------------------------- Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: dynamic linking Operating System: Unknown/Multiple | Architecture: x86_64 (amd64) Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+----------------------------------- Changes (by mietek): * keywords: => dynamic linking -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9282#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9282: GHCi ignores .dyn_hi files -------------------------------------+----------------------------------- Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: dynamic linking Operating System: Unknown/Multiple | Architecture: x86_64 (amd64) Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+----------------------------------- Comment (by rwbarton): It also ignores the `.dyn_o` file even if there is no `.o` file, with no pertinent output from `-ddump-if-trace`: {{{ *** Checking old interface for main:F: [1 of 1] Compiling F ( F.hs, interpreted ) }}} (I am running 7.8.2.20140630.) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9282#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9282: GHCi ignores .dyn_o files -------------------------------------+----------------------------------- Reporter: mietek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: dynamic linking Operating System: Unknown/Multiple | Architecture: x86_64 (amd64) Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+----------------------------------- -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9282#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9282: GHCi ignores .dyn_o files -------------------------------------+----------------------------------- Reporter: mietek | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: duplicate | Keywords: dynamic linking Operating System: Unknown/Multiple | Architecture: x86_64 (amd64) Type of failure: Other | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+----------------------------------- Changes (by rwbarton): * status: new => closed * resolution: => duplicate Comment: See #8736. As a workaround you can use `-dynamic`, ''not'' `-dynamic-too`. That will create dynamic-style `.o` and `.hi` files. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9282#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC