#5919: Wrong error message for TH when GHCi is not enabled
-----------------------------------------------+----------------------------
Reporter: duncan | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.0.4 | Keywords:
Os: Unknown/Multiple | Architecture:
Unknown/Multiple
Failure: Incorrect warning at compile-time | Testcase:
Blockedby: | Blocking:
Related: |
-----------------------------------------------+----------------------------
A user reported this confusing error message:
{{{
Data/FileEmbed.hs:69:15:
Template Haskell bracket illegal in a stage-1 compiler
[| stringToBs |]
}}}
The compiler was not stage-1, but:
{{{
ghc --info
[("Project name","The Glorious Glasgow Haskell Compilation System")
,("Project version","7.0.4")
,("Booter version","7.0.4")
,("Stage","2")
,("Build platform","powerpc-unknown-linux")
,("Host platform","powerpc-unknown-linux")
,("Target platform","powerpc-unknown-linux")
,("Have interpreter","NO")
,("Object splitting","YES")
,("Have native code generator","YES")
,("Have llvm code generator","YES")
,("Support SMP","YES")
,("Unregisterised","NO")
...
]
}}}
So it looks like the problem is not stage-1, but the fact that ("Have
interpreter","NO").
So the error message should report that the Template Haskell extension
requires that ghc is built with ghci/interpreter support.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5919>
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