bjpop/haskell-mpi — Issue #6: c2hs error when building with OpenMPI 1.5.4
Author: acfoltzer
Created: 2011-11-01 04:11:09+00:00
State: open

`haskell-mpi` fails to install with this version of OpenMPI, which seems to be the only one available via MacPorts. The error message follows; I will update this ticket if I find other versions of OpenMPI with this issue.

```
$ cabal install --extra-include-dirs=/opt/local/include/openmpi
Resolving dependencies...
Configuring haskell-mpi-1.0.0...
Preprocessing library haskell-mpi-1.0.0...
c2hs: Errors during expansion of binding hooks:

src/Control/Parallel/MPI/Internal.chs:1070: (column 22) [ERROR] >>> Unknown member name!
The structure has no member called `_count'. The structure is defined at
("/opt/local/include/openmpi/mpi.h",335,1).
src/Control/Parallel/MPI/Internal.chs:1057: (column 43) [ERROR] >>> Unknown member name!
The structure has no member called `_count'. The structure is defined at
("/opt/local/include/openmpi/mpi.h",335,1).

cabal: Error: some packages failed to install:
haskell-mpi-1.0.0 failed during the building phase. The exception was:
ExitFailure 1
```