[GHC] #4172: GHC build failes when BuildFlavour = prof is used
GHC
cvs-ghc at haskell.org
Fri Aug 13 12:45:26 EDT 2010
#4172: GHC build failes when BuildFlavour = prof is used
----------------------------------+-----------------------------------------
Reporter: Phyx- | Owner: simonpj
Type: bug | Status: closed
Priority: high | Milestone: 6.14.1
Component: Compiler | Version: 6.13
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: 4237 | Architecture: Unknown/Multiple
Failure: Building GHC failed |
----------------------------------+-----------------------------------------
Changes (by simonpj):
* status: new => closed
* resolution: => fixed
Comment:
The bug here is really that DPH uses Template Haskell, and Template
Haskell doesn't work when profiling. So if you use a profiled stage-2
compiler, you can't use that compiler to compile DPH. So it's really a
build-system problem. Simon and I made this patch:
{{{
Fri Aug 13 15:00:21 BST 2010 simonpj at microsoft.com
* Do not build DPH when GhcProfiled (fixes #4172)
Reason: DPH uses Template Haskell and TH doesn't work
in a profiled compiler
}}}
While we were at it, we did this too
{{{
Fri Aug 13 15:01:52 BST 2010 simonpj at microsoft.com
* Delete GhcLibProfiled
Simon M and I looked at this, and we think GhcLibProfiled is
(a) not needed (b) confusing.
Ian should review.
Really, if GhcProfiled is on we should also
check that 'p' is in the GhcLibWays
}}}
The lint error Ian found isn't the source of the original seg-fault, but
it too is fixed by the fix to #4237.
Finally, we should do somethign better than seg-fault if you try to use TH
with a profiled compiler. I've opened #4255.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4172#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list