使用 cabal/ghc 在 Windows 上分析应用程序

Profiling an application on Windows with cabal/ghc

我在 Windows 上遇到了一个令人讨厌的分析问题。但首先,设置的上下文:

一切都建立正确,但没有 link。然后我用 cabal build -v3 重建,这是 linker 部分(最有趣的部分):

c:/program files/haskell platform/2014.2.0.0/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lHSrts_debug_p

我用谷歌搜索了那个,还有 IIRC,这是因为我缺少 GHC 的 RTS 的分析库。我从未在 Windows 找到它 :( 最后的信息,我在 Windows 10,但不确定它是否有帮助。

问题已解决。问题是由于我在 GHC 的命令行界面上使用了 -debug。我被告知 -debug-p 不兼容,因此出现错误。