Menu

#2 -Wrong number of parameters to function H5Dcreate

closed-fixed
nobody
None
5
2014-08-14
2009-05-03
jgp hpc
No

Hi,

Compilation of IOR with hdf5/1.8.2.2 fails with the following message :
make CC=cc hdf5

cc -g -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/include -c aiori-HDF5.c

/opt/cray/xt-asyncpe/2.4/bin/cc: INFO: linux target is being used
PGC-S-0141-Wrong number of parameters to function (aiori-HDF5.c: 560)
PGC-S-0141-Wrong number of parameters to function (aiori-HDF5.c: 563)
PGC/x86-64 Linux 8.0-4: compilation completed with severe errors
make: *** [aiori-HDF5.o] Error 2

The code is :
dataSet = H5Dcreate(*(hid_t *)fd, dataSetName, H5T_NATIVE_LLONG,dataSpace, dataSetPropList);

What's wrong ?

Discussion

  • Ruth Klundt

    Ruth Klundt - 2009-07-23

    apologies for the slow response.

    Add '-D H5_USE_16_API' to the CCFLAGS setting you are using in Makefile.config. This will pull the correct interface, assuming that your HDF5 libs are built with v1.6 compatibility.

    The compatibility issues resulting from the interface change for H5Dcreate and a number of other functions is handled via macros, described at this web site:

    http://www.hdfgroup.org/HDF5/doc/RM/APICompatMacros.html#FunctionLevelSettings

    Thanks for the info

     
  • Ruth Klundt

    Ruth Klundt - 2009-07-23
    • status: open --> closed-fixed
     
  • Ruth Klundt

    Ruth Klundt - 2009-08-11

    Seems that the build flag is not sufficient to get this running over HDF5 1.8.2.

    Looking at it.

     
  • Ruth Klundt

    Ruth Klundt - 2009-08-11
    • status: closed-fixed --> closed-accepted
     
  • Ruth Klundt

    Ruth Klundt - 2009-08-11
    • status: closed-accepted --> closed-fixed
     
  • Ruth Klundt

    Ruth Klundt - 2009-08-11

    fix already in repos, working ok.

     

Log in to post a comment.