"PAP object entered" on executable with profiling
We're developing a tool that translates System Fc (GHC Core) to VHDL, and thus make use of the GHC API. When I try running my compiled executable with profiling support. I get the following error:
$ clash
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
package types is
clash: internal error: PAP object entered!
(GHC version 6.10.3 for i386_apple_darwin)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Abort trap
When I run my executable without profiling support compiled in, I do not get the above error, and the program translates a piece of Haskell to VHDL just fine.
This is the command I use to compile my executable with profiling support, it should also give some insight into which libraries we use:
ghc -package ghc -package transformers -package ForSyDe -package prettyclass
-package data-accessor -package ghc-paths -package data-accessor-template
-package tfp -package tfvec HsValueMap.hs CoreShow.hs FlattenTypes.hs
VHDLTypes.hs TranslatorTypes.hs GhcTools.hs HsTools.hs CoreTools.hs Flatten.hs
Pretty.hs VHDL.hs Translator.hs -o clash -fforce-recomp --make -osuf p_o
-hisuf p_hi -prof -auto -auto-all -dcore-lint
I have no idea what might cause this problem. If you could give some hints on how to debug this problem, I might be able to give a more useful bug report. Also, I can supply the necessary files on request so that you can reproduce this error. You can contact me on: <christiaan.baaij@gmail.com>
Trac metadata
Trac field | Value |
---|---|
Version | 6.10.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |