![](/img/trans.png)
[英]Stack build hangs on GHC-8.6.4/Cabal-2.4.1.0 on Windows
[英]Profiling an application on Windows with cabal/ghc
我在Windows上进行配置时遇到了一个令人讨厌的问题。 但首先,设置的上下文:
cabal sandbox init --sandbox=.
cabal sandbox init --sandbox=~/dev/foo_shared
cabal install --only-dependencies --enable-library-profiling --enable-executable-profiling
cabal configure --enable-profiling --enable-executable-profiling
cabal build
一切都正确建立,但没有链接。 然后,我用cabal build -v3
重建,这是链接器部分(最有趣的部分):
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
不兼容,因此出现错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.