[FLASH-USERS] compilation error with hdf5 1.10.1.1 on nersc

Yingchao Lu yingchao.lu at gmail.com
Tue Oct 16 22:01:51 EDT 2018


Hi Klaus,

It works with -DH5_USE_16_API. I just happened to remove that.

Yingchao

On Tue, Oct 16, 2018 at 11:18 AM Klaus Weide <klaus at flash.uchicago.edu>
wrote:

> On Sun, 14 Oct 2018, Yingchao Lu wrote:
>
> > Hi,
> >
> > On edison.nersc, I got the error compiling eos_tabBrowsehdf5. The error
> > message is
> >
> > cc -fopenmp   -ggdb -c -O2 -Wuninitialized -D_FORTIFY_SOURCE=2
> > -DFLASH_OPENMP=1 -DFLASH_3T -DMAXBLOCKS=130 -DNXB=16 -DNYB=16 -DNZB=16
> > -DN_DIM=3 eos_tabBrowsehdf5.c
>
> > /opt/cray/pe/hdf5-parallel/1.10.1.1/GNU/5.1/include/H5version.h:417:19:
> > error: too few arguments to function 'H5Gopen2'
> >    #define H5Gopen H5Gopen2
> >                    ^
> > eos_tabBrowsehdf5.c:50:11: note: in expansion of macro 'H5Gopen'
> >    group = H5Gopen(oppf, groupName);          //open groupName
> >            ^~~~~~~
> > In file included from /opt/cray/pe/hdf5-parallel/
> > 1.10.1.1/GNU/5.1/include/hdf5.h:29:0,
> >                  from eos_tabBrowsehdf5.c:33:
> > /opt/cray/pe/hdf5-parallel/1.10.1.1/GNU/5.1/include/H5Gpublic.h:76:14:
> > note: declared here
> >  H5_DLL hid_t H5Gopen2(hid_t loc_id, const char *name, hid_t gapl_id);
> >               ^~~~~~~~
>
> Hello Yingchao,
>
> You compiler flags should include -DH5_USE_16_API to compile FLASH with
> HDF5, apparently that is not the case in this compilation.
>
> I think you will need to adjust the Makefile.h.
>
> > The system removed 1.8.x, which worked with no error before. What should
> I
> > do?
>
> Not sure how his relates to your error - the interface to the function
> H5Gopen appears to have changed earlier, before release 1.8.0, according
> to https://support.hdfgroup.org/HDF5/doc/RM/RM_H5G.html#Group-Open .
>
> Klaus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20181016/3f5ce429/attachment-0001.htm>


More information about the flash-users mailing list