On Jul 21, 2016, at 5:38 AM, Øyvind Sylta <[email protected]<mailto:[email protected]>> wrote:
Thanks Scot, Now I am building with my compiler from source. I downloaded 1.8.12 and did: bash cd hdf5-1.8.12 export F9X=ifort FC=ifort ./configure --enable-fortran --enable-fortran2003 make make check Now it is processing forever with the last few output lines being: make check-TESTS make[3]: Entering directory `/teradisk1/backup/Migris/4_Code/DLL/mi_dll/HDF5/hdf5-1.8.12/fortran/test' make[4]: Entering directory `/teradisk1/backup/Migris/4_Code/DLL/mi_dll/HDF5/hdf5-1.8.12/fortran/test' ===Serial tests in test begin Thu Jul 21 12:25:22 CEST 2016=== make[5]: Entering directory `/teradisk1/backup/Migris/4_Code/DLL/mi_dll/HDF5/hdf5-1.8.12/fortran/test' ============================ Fortran API: Testing fortranlib_test If you go into fortran/test and run fortranlib_test, where does it hang? I tried it first with gfortran and the make check was completed in a reasonale time. I found a reported issue with one of the source files at: https://software.intel.com/en-us/articles/resolving-problem-of-building-hdf5-with-intel-compiler-140 I modified the file and redid make and make check. But it still does not pass beyond Fortran API: Testing fortranlib_test Any suggestions? Do I need to upgrade to HDF 1.8.17 and use the most recent ifort compiler? I was hoping to minimize my efforts by staying on the same versions on Windows and Linux, but that does not seem to be a good idea? Will it help to upgrade? It can’t hurt to upgrade to 1.8.17 if you are wanting to stay with 1.8. There has been a lot of bug fixes (including the one you mentioned) and improvements since 1.8.12, so I think it would be worth the effort in the long run. Intel version 14 should be fine. It is usually best to use the same compiler vendor for C and Fortran (export CC=icc, export FC=ifort) if possible. Øyvind Fra: Hdf-forum [mailto:[email protected]] På vegne av Scot Breitenfeld Sendt: 20 July 2016 21:15 Til: HDF Users Discussion List <[email protected]<mailto:[email protected]>> Emne: Re: [Hdf-forum] Building HDF for use with gcc 4.4.7 and Oh the bane of Fortran mod files in libraries. Module files are compiler and compiler version specific, so you are better off just compiling the hdf5 library from source, using the same compiler that you plan on using. Hopefully F2008 submodules will help avoid this issue. Scot On Jul 20, 2016, at 1:22 PM, Øyvind Sylta <[email protected]<mailto:[email protected]>> wrote: Hello, As a relative newcomer to HDF I have mastered to some degree using it on Windows with Visual Studio. So now, I am trying to port the code to Linux and therefore I downloaded a version of the library that I thought might be applicable to our Linux Centos system. When I try to compile: ifort -c -O -cpp -fpic -traceback -I../HDF5/hdf5-1.8.14-linux-centos6-x86_64-gcc447-shared/include ../forhdf/migri_hdf_1.f90 , I get lots of messages, the first ones being: ../forhdf/migri_hdf_1.f90(12): error #7013: This module file was not generated by any release of this compiler. [HDF5] use hdf5 -------^ ../forhdf/migri_hdf_1.f90(36): error #7013: This module file was not generated by any release of this compiler. [HDF5] USE HDF5 -------^ ../forhdf/migri_hdf_1.f90(47): error #7013: This module file was not generated by any release of this compiler. [HDF5] USE HDF5 -------^ ../forhdf/migri_hdf_1.f90(54): error #6683: A kind type parameter must be a compile-time constant. [HID_T] INTEGER(HID_T) :: file, dset It look to me as if there is a mismatch between the compiler I am using and the compiler used to build HDF5 library. I am using the Intel 14.0.1 Fortran compiler and icc 14.0.1 is also available. Gcc 4.4.7 is also installed and I thought that both the ifort and the HDF library would be compatible with gcc 4.4.7? Could you assist me with what I am doing wrong here? Øyvind _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected]<mailto:[email protected]> http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5 _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected]<mailto:[email protected]> http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
