[GHC] #8734: 7.8.1 rc1 ghci won't load compiled files
GHC
ghc-devs at haskell.org
Thu Feb 6 01:17:49 UTC 2014
#8734: 7.8.1 rc1 ghci won't load compiled files
------------------------------------------------+--------------------------
Reporter: George | Owner:
Type: bug | Status: closed
Priority: high | Milestone: 7.8.1
Component: Documentation | Version:
Resolution: invalid | 7.8.1-rc1
Operating System: MacOS X | Keywords:
Type of failure: Incorrect result at runtime | Architecture:
Test Case: | Unknown/Multiple
Blocking: | Difficulty:
| Unknown
| Blocked By:
| Related Tickets:
------------------------------------------------+--------------------------
Comment (by George):
Thanks, makes sense. Can you confirm my understanding? to load compiled
object files into ghci users must compile with the -dynamic-too option.
Once bug #8736 is fixed :load will load a compiled object file into ghci.
If so then the release note might say:
{{{
On Linux, FreeBSD and Mac OS X, GHCi now uses the system dynamic linker by
default, instead of its built in (static) object linker. This is more
robust cross-platform, and fixes many long-standing bugs (for example:
constructors and destructors, weak symbols, etc work correctly, and
several edge cases in the RTS are fixed.)
As a result of this, GHCi (and Template Haskell) must now load dynamic
object files, not static ones. To get dynamic object files, you must
compile with the new compilation flag, -dynamic-too, which causes GHC to
emit both static and dynamic object files. GHC itself still defaults to
static linking.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8734#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list