#4899: Non-standard compile plus Template Haskell produces spurious "unknown
symbol" linker error
---------------------------------+------------------------------------------
Reporter: jepst | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.0.1 | Keywords: template link prof dynamic
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: GHC rejects valid program
---------------------------------+------------------------------------------
Programs that use Template Haskell fail to link when doing a "non-
standard" compile. Specifically, compilations with -prof and -dynamic
produce this bug, although other flags may as well; it seems that
compilations that require the two-stage -osuf flag produce this bug. The
error message is always "unknown symbol" but the specific symbol that is
allegedly missing varies. Removing the TH block from the code makes the
problem go away.
I've provided a minimal example of a program that can reproduce this bug,
in the enclosed files Bug1.hs and Main.hs. A typescript demonstrating the
error message is also included.
Tested on GHC 7.0.1 and 6.12.1, running under Ubuntu 10.04, both 64-bit
and 32-bit. Also tested with 6.12.3 under 32-bit Windows 7.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4899>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs