You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 28, 2022. It is now read-only.
When I run cabal install opencl on Mac OSX 10.7.5, I get the following error:
Resolving dependencies...
Downloading OpenCL-1.0.3.4...
Configuring OpenCL-1.0.3.4...
cabal: The program c2hs is required but it could not be found.
Failed to install OpenCL-1.0.3.4
cabal: Error: some packages failed to install:
OpenCL-1.0.3.4 failed during the configure step. The exception was:
ExitFailure 1
Running cabal install c2hs followed by cabal install opencl worked perfectly.
It looks like the .cabal file lists c2hs in build-tools but not build-depends, and for whatever reason, cabal install doesn't verify that c2hs is installed. There seems to be some documentation on these options here. I tried to figure out the right thing to do but am not sure.