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.

OpenCL fails to build on OSX Mavericks 10.9.1: c2hs cannot parse resource.h #40

@burtonageo

Description

@burtonageo

On my machine, I cannot seem to be able to install OpenCL, as the following error appears:

Georges-MacBook-Pro:Downloads georgeburton$ cabal install opencl
Resolving dependencies...
Configuring OpenCL-1.0.3.4...
Building OpenCL-1.0.3.4...
Preprocessing library OpenCL-1.0.3.4...
c2hs: C header contains errors:

/usr/include/sys/resource.h:349: (column 75) [ERROR]  >>> Syntax error !
The symbol `=' does not fit here.

Failed to install OpenCL-1.0.3.4
cabal: Error: some packages failed to install:
OpenCL-1.0.3.4 failed during the building phase. The exception was:
ExitFailure 1

My GHC version is:
The Glorious Glasgow Haskell Compilation System, version 7.6.3

And my cabal version is:
cabal-install version 1.18.0.2
using version 1.18.1.2 of the Cabal library

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions