haskell-mpi
haskell-mpi copied to clipboard
c2hs: Errors during expansion of binding hooks
I'm not sure if this belongs here or in c2hs.
$ cabal install --extra-include-dirs=/usr/lib/openmpi/include --extra-lib-dirs=/usr/lib/openmpi/lib haskell-mpi
Resolving dependencies...
Configuring haskell-mpi-1.4.0...
Building haskell-mpi-1.4.0...
Failed to install haskell-mpi-1.4.0
Build log ( /home/ghorn/.cabal/logs/haskell-mpi-1.4.0.log ):
Configuring haskell-mpi-1.4.0...
Building haskell-mpi-1.4.0...
Preprocessing library haskell-mpi-1.4.0...
c2hs: Errors during expansion of binding hooks:
/usr/lib/openmpi/include/mpi.h:329: (column 1) [ERROR] >>> Illegal use of incomplete type!
Expected a fully defined structure or union tag; instead found incomplete type.
cabal: Error: some packages failed to install:
haskell-mpi-1.4.0 failed during the building phase. The exception was:
ExitFailure 1
mpi.h line 329 is
typedef struct ompi_status_public_t MPI_Status;
I just upgraded from ubuntu 14.04 to 15.10
possibly related to #18
This was caused by c2hs https://github.com/haskell/c2hs/issues/152