Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c2hs: Errors during expansion of binding hooks #19

Open
ghorn opened this issue Nov 3, 2015 · 1 comment
Open

c2hs: Errors during expansion of binding hooks #19

ghorn opened this issue Nov 3, 2015 · 1 comment

Comments

@ghorn
Copy link

ghorn commented Nov 3, 2015

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

@ghorn
Copy link
Author

ghorn commented Nov 6, 2015

This was caused by c2hs haskell/c2hs#152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant