[MacPorts] #45911: py27-h5py @2.3.1_1 built against parallel HDF5 can't find mpi.h

MacPorts noreply at macports.org
Sun Nov 16 18:37:48 PST 2014


#45911: py27-h5py @2.3.1_1 built against parallel HDF5 can't find mpi.h
-----------------------+--------------------------------
 Reporter:  willic3@…  |      Owner:  macports-tickets@…
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.3.2
 Keywords:             |       Port:
-----------------------+--------------------------------
 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

-- 
Ticket URL: <https://trac.macports.org/ticket/45911>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list