Forum - hdf5-1.10.5 (enabling Fortran)

Jump to navigation Jump to search
Overview > Topics > Porting > hdf5-1.10.5 (enabling Fortran)
[#19]

Hello,

I confirmed that "make check" of hdf-1.10.5 was passed by NEC Fortran and C/C++ compilers version 2.3.1. Use nfort as a C compiler to pass "configure".

$ tar xzf hdf5-1.10.5.tar.gz
$ cd hdf5-1.10.5
$ export CC=nfort-2.3.1 # using nfort !!!
$ export FC=nfort-2.3.1
$ export AR=nar LD=nld NM=nnm RANLIB=nranlib
$ ./configure --enable-fortran --prefix=hdf5-install-path --with-zlib=zlib-install-path
$ make install
Posted by NEC admin (administrator) on 17 June 2022 at 00:54.

Dear all,

I tried to create C and Fortran shared libraries of hdf-1.10.5.

I confirmed that "make check" was passed by compiler version 2.5.1, 3.0.8 with the attached patch. This patch is necessary to create the shared libraries .

$ tar xzf hdf5-1.10.5.tar.gz
$ cd hdf5-1.10.5
$ patch -p0 < configure.patch
$ export CC=ncc-3.0.8
$ export FC=nfort-3.0.8
$  export VE_LD_LIBRARY_PATH="<library directory path of zlib and hdf5>"
$ ./configure --enable-fortran --prefix=<hdf5-install-path> --with-zlib=<zlib-install-path>
$ make install
$ make check
Posted by NEC admin (administrator) on 17 June 2022 at 00:57.
Edited by NEC admin (administrator) on 20 June 2022 at 08:12.