haskell / c2hs

c2hs is a pre-processor for Haskell FFI bindings to C libraries
http://hackage.haskell.org/package/c2hs
Other
197 stars 50 forks source link

"The symbol _Alignas does not fit here" when compiling with nvidia cuda. #290

Open noahmartinwilliams opened 1 year ago

noahmartinwilliams commented 1 year ago

I was working on compiling This project on the latest version (saturday july 15th 2023, commit 34b9002f28032ddeb3d89a5fa373d89035ac112e), and it gave an error saying that "_Alignas did not fit on line 2930 of /opt/cuda/include/cuda.h . My OS is arch Linux (up to date as of sunday july 2nd 2023), my version of cuda is 12.2.9, my ghc version is 9.0.2, my version of stack is 2.11.1, and my version of c2hs is 0.28.8. This is the specific error I got.