cofigure error

Hi everyone.

I am totally new to HDF5 and trying to install it on my Ubuntu 12.04 with
fortran and parallel enabled. (struggling for more than 3 hours...)

And could not even go thru configuring part. This is what I typed.

export CC=/usr/bin/mpicc
export FC=/usr/bin/mpif90

./configure --prefix=/opt/hdf5-1.8.10-patch1 --enable-parallel
--enable-fortran --with-zlib=/usr/local/lib/zlib-1.2.5
--with-szlib=/usr/local/lib/szip-2.1

And keep getting this error message.

mycom@mycom:~/Downloads/hdf5-1.8.10-patch1$ ./configure
--prefix=/opt/hdf5-1.8.10-patch1 --enable-parallel
--with-zlib=/usr/local/lib/zlib-1.2.5 --with-szlib=/usr/local/lib/szip-2.1
--enable-fortran
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking shell variables initial values... done
checking if basename works... yes
checking if xargs works... yes
checking for cached host... none
checking for config x86_64-unknown-linux-gnu... no
checking for config x86_64-unknown-linux-gnu... no
checking for config unknown-linux-gnu... no
checking for config unknown-linux-gnu... no
checking for config x86_64-linux-gnu... no
checking for config x86_64-linux-gnu... no
checking for config x86_64-unknown... no
checking for config linux-gnu... found
compiler 'mpicc' is GNU gcc-4.6.3
CC_BASENAME is mpicc.
No match to get fc_version_info for /usr/bin/mpif90 (<= looks like this
part is making the problem.)
checking for config ./config/site-specific/host-deul... no
checking for gcc... mpicc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mpicc accepts -g... yes
checking for mpicc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of mpicc... gcc3
checking if unsupported combinations of configure options are allowed... no
checking if Fortran interface enabled... yes
checking if Fortran 2003 interface enabled... yes
checking whether we are using the GNU Fortran compiler... no
checking whether /usr/bin/mpif90 accepts -g... no
checking for Fortran flag to compile .f90 files... unknown
configure: error: Fortran could not compile .f90 files
mycom@mycom:~/Downloads/hdf5-1.8.10-patch1$

If I remove '--enable-fortran' part, it configures well. Coulb somebody
help me out?
Thanks in advance.

SK

And keep getting this error message.

mycom@mycom:~/Downloads/hdf5-1.8.10-patch1$ ./configure

...

checking for config linux-gnu... found
compiler 'mpicc' is GNU gcc-4.6.3
CC_BASENAME is mpicc.
No match to get fc_version_info for /usr/bin/mpif90 (<= looks like this
part is making the problem.)

Oh, you hdf5 guys!

in config/linux-gnulibc1 there's a switch statement. It's not set up
to understand 'mpif90' as a f90 compiler. There are cases for
gfortran, ifort, pgf90...

So, keep on setting CC=mpicc, but the fortran part of HDF5 doesn't
really need to be parallel-ized. It just wraps the C part.

Set FC=gfortran or whatever you have installed for serial f90
programs.

==rob

···

On Sun, Mar 24, 2013 at 11:24:57PM -0500, Seungbum Koo wrote:

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

Are you sure mpif90 is working, configure stops when trying to compile a test fortran program. You should still be able to compile the configure fortran tests with mpif90, regardless of the status of fc_version_info. Can you look in the config.log and see why configure failed to compile the program.

···

On 2013-03-24 23:24, Seungbum Koo wrote:

Hi everyone.

I am totally new to HDF5 and trying to install it on my Ubuntu 12.04
with fortran and parallel enabled. (struggling for more than 3
hours...)

And could not even go thru configuring part. This is what I typed.

export CC=/usr/bin/mpicc
export FC=/usr/bin/mpif90

./configure --prefix=/opt/hdf5-1.8.10-patch1 --enable-parallel
--enable-fortran --with-zlib=/usr/local/lib/zlib-1.2.5
--with-szlib=/usr/local/lib/szip-2.1

And keep getting this error message.

mycom@mycom:~/Downloads/hdf5-1.8.10-patch1$ ./configure
--prefix=/opt/hdf5-1.8.10-patch1 --enable-parallel
--with-zlib=/usr/local/lib/zlib-1.2.5
--with-szlib=/usr/local/lib/szip-2.1 --enable-fortran
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking shell variables initial values... done
checking if basename works... yes
checking if xargs works... yes
checking for cached host... none
checking for config x86_64-unknown-linux-gnu... no
checking for config x86_64-unknown-linux-gnu... no
checking for config unknown-linux-gnu... no
checking for config x86_64-linux-gnu... no
checking for config x86_64-unknown... no
checking for config linux-gnu... found
compiler 'mpicc' is GNU gcc-4.6.3
CC_BASENAME is mpicc.
No match to get fc_version_info for /usr/bin/mpif90 (<= looks like
this part is making the problem.)
checking for config ./config/site-specific/host-deul... no
checking for gcc... mpicc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mpicc accepts -g... yes
checking for mpicc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of mpicc... gcc3
checking if unsupported combinations of configure options are allowed... no
checking if Fortran interface enabled... yes
checking if Fortran 2003 interface enabled... yes
checking whether we are using the GNU Fortran compiler... no
checking whether /usr/bin/mpif90 accepts -g... no
checking for Fortran flag to compile .f90 files... unknown
configure: error: Fortran could not compile .f90 files
mycom@mycom:~/Downloads/hdf5-1.8.10-patch1$

If I remove '--enable-fortran' part, it configures well. Coulb
somebody help me out?
Thanks in advance.

SK

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org