Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29329 Discussions

HDF5 1.10.1 compiling error with ifort 18.0.0

Amorim__Ligia
Beginner
1,267 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 III
1,267 Views
0 Kudos
Michael_B_10
Beginner
1,267 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.

 

 

 


 

0 Kudos
Reply