2014-03-19 46 views
3

我在64位Arch Linux上使用cabal安裝/構建haskell-cuda時遇到了問題。據我所知,我有所有的先決條件(即,CUDA運行時庫,NVC編譯器等)。無法在64位Linux上安裝Haskell CUDA

我得到的錯誤如下:

cabal install cuda 
[all tests pass] 
Building cuda-0.5.1.1... 
Preprocessing library cuda-0.5.1.1... 
[ 1 of 27] Compiling Foreign.CUDA.Driver.Error (dist/build/Foreign/CUDA/Driver/Error.hs, dist/build/Foreign/CUDA/Driver/Error.o) 
[ 2 of 27] Compiling Foreign.CUDA.Internal.Offsets (dist/build/Foreign/CUDA/Internal/Offsets.hs, dist/build/Foreign/CUDA/Internal/Offsets.o) 
[ 3 of 27] Compiling Foreign.CUDA.Internal.C2HS (Foreign/CUDA/Internal/C2HS.hs, dist/build/Foreign/CUDA/Internal/C2HS.o) 
[ 4 of 27] Compiling Foreign.CUDA.Driver.Utils (dist/build/Foreign/CUDA/Driver/Utils.hs, dist/build/Foreign/CUDA/Driver/Utils.o) 

Foreign/CUDA/Driver/Utils.chs:35:23: 
    Illegal type signature: `IO (Status, Int) cuDriverGetVersion' 
     Perhaps you intended to use -XScopedTypeVariables 
    In a pattern type-signature 
Failed to install cuda-0.5.1.1 
cabal: Error: some packages failed to install: 
cuda-0.5.1.1 failed during the building phase. The exception was: 
ExitFailure 1 

據我瞭解,這是與Hackage源的錯誤,但是我可能誤會了,這是我的機器上的錯誤。無論哪種方式,我應該如何解決它?

回答

2

好了,這樣看來(基於this),這個問題實際上與c2hs程序中的錯誤,在版本0.16.6

的解決方案是降級到0.16.5版本,並從那裏,再次嘗試安裝CUDA。

cabal install c2hs-0.16.5 
cabal install cuda 

降級後,安裝完成!

相關問題