Opened 9 years ago

Last modified 9 years ago

#45911 closed defect

py27-h5py @2.3.1_1 built against parallel HDF5 can't find mpi.h — at Version 1

Reported by: willic3@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: Cc: eborisch@…, sean@…
Port: py27-h5py, openmpi-gcc48

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi,

I am attempting to build py27-h5py on Yosemite. I have the following hdf5 installed: hdf5 @1.8.13_0+cxx+gcc48+openmpi+szip. The difficulty is that openmpi puts headers in the subdirectory /opt/local/include/openmpi-gcc48, so when I try to build py27-h5py I get:

In file included from h5py/defs.c:241:
In file included from h5py/api_compat.h:27:
In file included from /opt/local/include/hdf5.h:24:
/opt/local/include/H5public.h:61:13: fatal error: 'mpi.h' file not found
#   include <mpi.h>
            ^
1 warning and 1 error generated.

I would think the problem could be avoided by either defining CPPFLAGS appropriately or by using mpicc for compilation. My system info:

OS X 10.10
Xcode 6.1
clang: Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)

Installed openmpi:

openmpi-default @1.7.5_3+gcc48 (active)
openmpi-gcc48 @1.7.5_3+fortran (active)

Please let me know if you need any more info.

Thanks,
Charles

Change History (1)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: eborisch@… sean@… added
Description: modified (diff)
Port: py27-h5py openmpi-gcc48 added
Note: See TracTickets for help on using tickets.