Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Cabal install depends on c2hs #39

@ZephArvanitis

Description

@ZephArvanitis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions