Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26735 Discussions

HDF5 1.10.1 compiling error with ifort 18.0.0

Amorim__Ligia
Beginner
308 Views

Sorry to bother you.

 

I have been trying to compile HDF5 version 1.10.1 (downloaded from https://support.hdfgroup.org/HDF5/release/obtainsrc.html) with (the flags --enable-fortran --enable-shared --with-zlib) the recent intel (64 bit) compilers 18.0.0:

 

ifort (IFORT) 18.0.0 20170811

Copyright (C) 1985-2017 Intel Corporation.  All rights reserved.

 

 

I am getting this compilation error:

 

H5f90global.F90(145): error #7615: Multiple objects from the same EQUIVALENCE set may not appear in a COMMON block.   [H5T_NATIVE_INTEGER_KIND]

  EQUIVALENCE (predef_types(2), H5T_NATIVE_INTEGER_KIND(2))

--------------------------------^


The same HDF5 source files compiled without errors with the intel fortran compiler:
ifort (IFORT) 17.0.5 20170817

Copyright (C) 1985-2017 Intel Corporation.  All rights reserved.

Do you have any suggestions for me to follow to correct it?

Thanks in advance.

 

0 Kudos
2 Replies
FortranFan
Honored Contributor II
308 Views
Michael_B_10
Beginner
308 Views

For future visitors, I've attached a patch for HDF5 1.10.x

The issue is fixed in the HDF5 'develop' branch and will be in the 1.10.2 release.

 

 

 


 

Reply