compiling hdf5 for MPB with Intel MPI and compilers

Herbert Fruchtl <[email protected]> Fri, 30 Dec 2011 18:38:44 +0000
Newsgroups gmane.comp.science.photonic-bands
Message-ID <[email protected]>
I am trying to compile MPB with Intel MPI (version 4.0.3) and compilers (12.1). 
I am still stuck at the prerequisite HDF5 compilation. Has anybody done this 
successfully and is willing to share their configuration line? I tried the 
following (HDF5 1.8.7):

./configure --enable-fortran --enable-cxx --enable-parallel --enable-unsupported 
--with-zlib=/usr/local/progs/zlib-1.2.5 
--with-szlib=/usr/local/progs/szip-2.1/szip/lib CC=mpiicc FC=mpiifort 
CXX=mpiicpc CFLAGS="-O2 -xHost" FCFLAGS="-O2 -xHost" CXXFLAGS="-O2 -xHost" 
CPPFLAGS="-DH5_USE_16_API"

The subsequent "make" spews lots of warnings about unknown compiler flags and 
eventually stops with an error in err_compat.c ("too many arguments in function 
call" at line 140).

The program apparently chooses the gnu compiler flags. How can I force it to 
pick up the settings in intel-flags and intel-fflags? Will that get rid of this 
error?

Thanks in advance,

   Herbert
-- 
Herbert Fruchtl
Senior Scientific Computing Officer
School of Chemistry, School of Mathematics and Statistics
University of St Andrews
--
The University of St Andrews is a charity registered in Scotland:
No SC013532