Hi,

On 01/10/13 00:30, [email protected] wrote:
SIZEOF is a non-standard compiler intrinsic. Your compiler's version of SIZEOF can not handle derived types. Fortunately, F2008 has introduced intrinsic functions STORAGE_SIZE and C_SIZEOF, but this will probably not help you as your compiler probably does not have those. Most of the newer compilers have the SIZEOF function that can handle derived types if upgrading is an option.
there is a bug opened for that https://bugs.open64.net/show_bug.cgi?id=866 but no response since 2011. What about adding a simple check for derived types SIZEOF to the hdf5 configure check for FORTRAN_HAVE_SIZEOF?
Will that use something else instead of SIZEOF?
The point is that hdf5 requires not only a presence of SIZEOF intrinsic, but also the one that supports those derived types.

Best regards,

Marcin



On 2013-01-09 09:37, Marcin Dulak wrote:
Hi,

i'm building with (default el6 openmpi):

module load openmpi-i386
export PATH=/opt/open64/bin:${PATH}
export OMPI_CC=opencc
export OMPI_CXX=openCC
export OMPI_F77=openf90
export OMPI_FC=openf90
mpicc --version
mpif90 --version
FC=mpif90 CC=mpicc CXX=mpic++ \
./configure --prefix=${HOME}/hdf5-1.8.10-1 \
--enable-parallel \
--enable-fortran \
--enable-fortran2003 \
--enable-dependency-tracking \
--enable-shared \
--enable-static \
--enable-static-exec \
--enable-debug=all
make

resulting with:

  CALL h5tcreate_f(H5T_COMPOUND_F, INT(SIZEOF(fill_ctype),size_t),
comp_type_id, error)
^
openf95-700 openf90: ERROR TEST_CREATE, File = tH5P_F03.f90, Line =
142, Column = 40
  The intrinsic call "SIZEOF" is being made with illegal arguments.

  CALL VERIFY("h5pget_nprops_f", INT(nprops), 4, total_error)
       ^
openf95-1675 openf90: WARNING TEST_GENPROP_CLASS_CALLBACK, File =
tH5P_F03.f90, Line = 309, Column = 8
  Intrinsic "VERIFY" is a function, so this call to a subroutine will
be treated as "external"

It looks like there is a conflict between the open64 intrinsic and hdf5 names. See also http://www.democritos.it/pipermail/pw_forum/2009-August/013830.html

Best regards,

Marcin

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

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


--
***********************************
Marcin Dulak
Technical University of Denmark
Department of Physics
Building 307, Room 229
DK-2800 Kongens Lyngby
Denmark
Tel.: (+45) 4525 3157
Fax.: (+45) 4593 2399
email: [email protected]

***********************************


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

Reply via email to