我在一个沙盒中安装了hmatrix,它通过安装过程但随后链接器挂断...
Linking dist/dist-sandbox-34d68aef/build/wavelets/wavelets ...
/usr/bin/ld: cannot find -lHSwavelets-0.1.0_p
/usr/bin/ld: cannot find -lHSlens-4.0.7_p
/usr/bin/ld: cannot find -lHSzlib-0.5.4.1_p
/usr/bin/ld: cannot find -lHSvoid-0.6.1_p
/usr/bin/ld: cannot find -lHSutf8-string-0.3.7_p
/usr/bin/ld: cannot find -lHSsplit-0.2.2_p
/usr/bin/ld: cannot find -lHSreflection-1.4_p
/usr/bin/ld: cannot find -lHSprofunctors-4.0.2_p
/usr/bin/ld: cannot find -lHSparallel-3.2.0.4_p
/usr/bin/ld: cannot find -lHSexceptions-0.3.3_p
/usr/bin/ld: cannot find -lHSbifunctors-4.1.1_p
/usr/bin/ld: cannot find -lHSsemigroupoids-4.0_p
cabal看起来像:
Name: wavelets
Version: 0.1.0
Author: Scott Murphy
Maintainer: Scott Murphy
License: BSD3
License-File: LICENSE
Cabal-Version: >= 1.10
Build-Type: Simple
Library
Default-Language: Haskell2010
HS-Source-Dirs: src
GHC-Options: -Wall
Exposed-Modules: Data.Wavelets
Other-Modules: Data.Wavelets.Internal
Build-Depends: base >= 4 && < 5
,bytestring >= 0.9 && < 1.0
,mtl >= 2.1 && < 2.2
,lens >= 3.9
,text >= 0.11.3.1
,transformers >= 0.3.0.0
,vector >= 0.10.9.1
,unordered-containers >= 0.2.3.3
,hstatistics
Test-Suite spec
Type: exitcode-stdio-1.0
Default-Language: Haskell2010
Hs-Source-Dirs: src
, test
Ghc-Options: -Wall
Main-Is: Spec.hs
Build-Depends: base
, hspec
, wavelets
, vector
Executable wavelets
main-is: Main.hs
HS-Source-Dirs: src
build-depends: base
, wavelets
, vector
ghc-options: -threaded -O2 -rtsopts -prof -fprof-auto
Source-Repository head
Type: git
-- Location:
ghc-options: -threaded -O2 -rtsopts -prof -fprof-auto
答案 0 :(得分:1)
删除了prof -fprof-auto并且它有效!