tmcdonell / cuda

Haskell FFI bindings to CUDA
Other
76 stars 36 forks source link

Won't compile on Arch Linux #57

Closed noahmartinwilliams closed 5 years ago

noahmartinwilliams commented 5 years ago

running cabal install cuda results in


Starting     cuda-0.10.0.0
Building     cuda-0.10.0.0
Failed to install cuda-0.10.0.0
Build log ( /home/noah/.cabal/logs/ghc-8.6.4/cuda-0.10.0.0-FwaIjM5Jwfy3feZT75Vvm4.log ):
cabal: Entering directory '/tmp/cabal-tmp-16690/cuda-0.10.0.0'
[1 of 1] Compiling Main             ( /tmp/cabal-tmp-16690/cuda-0.10.0.0/dist/setup/setup.hs, /tmp/cabal-tmp-16690/cuda-0.10.0.0/dist/setup/Main.o )
Linking /tmp/cabal-tmp-16690/cuda-0.10.0.0/dist/setup/setup ...
Configuring cuda-0.10.0.0...
Found CUDA toolkit at: /opt/cuda
Storing parameters to cuda.buildinfo.generated
Using build information from 'cuda.buildinfo.generated'.
Provide a 'cuda.buildinfo' file to override this behaviour.
Using build information from 'cuda.buildinfo.generated'.
Provide a 'cuda.buildinfo' file to override this behaviour.
Preprocessing library for cuda-0.10.0.0..
c2hs: Errors during expansion of binding hooks:

src/Foreign/CUDA/Driver/Graph/Capture.chs:72: (column 15) [ERROR]  >>> Unknown identifier!
  Cannot find a definition for `cuStreamBeginCapture' in the header file.

cabal: Leaving directory '/tmp/cabal-tmp-16690/cuda-0.10.0.0'
cabal: Error: some packages failed to install:
cuda-0.10.0.0-FwaIjM5Jwfy3feZT75Vvm4 failed during the building phase. The
exception was:
ExitFailure 1```

For Cuda version 10.1.105-6 using llvm 7.0.1 on Arch Linux.
tmcdonell commented 5 years ago

Try building from GitHub?

CUDA-10.1 had some breaking changes; these should be fixed in trunk but I haven't had a chance to update all the packages yet and cut a new release.

noahmartinwilliams commented 5 years ago

That worked. Weird, I thought that the version on github was less than 0.10 for some reason.

tmcdonell commented 5 years ago

Uploaded as cuda-0.10.1.0.