[英]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.