テキストライブラリにリンクするプログラムを作成しています。プロファイリングせずにビルドすると、すべて正常に機能します。
ghc -O2 buildtrie.hs -package text -package hamt -o buildtrie -auto-all -package text -package hamt -fforce-recomp
<No output>
プロファイリングを使用してビルドすると、次のエラーが発生します。
ghc -O2 buildtrie.hs -package text -package hamt -o buildtrie -auto-all -package text -package hamt -fforce-recomp -prof
ld: library not found for -lHStext-0.10.0.0_p
collect2: ld returned 1 exit status
カバールを介してtext-0.11.0.1のプロファイリングバージョンをインストールしましたが、見つからないようです。text-0.10.0.0はHaskellプラットフォームでインストールされたと思います。Aghc-pkg list text
は私に次のことを与えます:
/usr/local/Cellar/ghc/6.12.3/lib/ghc/package.conf.d
/Users/jason/.ghc/i386-darwin-6.12.3/package.conf.d
text-0.10.0.0
text-0.11.0.1
text-0.11.0.1のプロファイリングバージョンを使用してこのプログラムをコンパイルするにはどうすればよいですか?