hdf + openmpi configure?

Hi,

I'm trying to configure hdf5-1.8.3. for compilation with openmpi, and fail. :confused:
mpic++ and the like are available through $PATH, and my configure line is

============= *snip* =============
./configure --prefix=/opt/hdf5-1.8.3 --enable-parallel
============= *snap* =============

However, the script just stops with

============= *snip* =============
[...]
checking for MPI_Init in -lmpi... no
checking for MPI_Init in -lmpich... no
checking prefix for running on one processor...
checking prefix for running in parallel...
checking whether a simple MPI-IO program can be linked... no
configure: error: unable to link a simple MPI-IO application
============= *snap* =============

Not really sure what I'm doing wrong here. Hints, anyone?

Cheers,
Nico

take a look at release_docs/INSTALL_parallel -- it will suggest you
configure as 'CC=/path/to/mpicc ./configure --prefix=/opt/hdf5-1.8.3'

making CC your mpi compiler is the important part.

==rob

···

On Tue, Jul 28, 2009 at 09:56:03PM +0200, Nico Schlömer wrote:

Hi,

I'm trying to configure hdf5-1.8.3. for compilation with openmpi, and fail. :confused:
mpic++ and the like are available through $PATH, and my configure line is

============= *snip* =============
./configure --prefix=/opt/hdf5-1.8.3 --enable-parallel
============= *snap* =============

However, the script just stops with

============= *snip* =============
[...]
checking for MPI_Init in -lmpi... no
checking for MPI_Init in -lmpich... no
checking prefix for running on one processor...
checking prefix for running in parallel...
checking whether a simple MPI-IO program can be linked... no
configure: error: unable to link a simple MPI-IO application
============= *snap* =============

Not really sure what I'm doing wrong here. Hints, anyone?

--
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA

making CC your mpi compiler is the important part.

Works excellent, thanks!