csound / plugins

Repository for Csound plugins which were originally in the main repository, and for new plugins as well.
GNU Lesser General Public License v2.1
11 stars 11 forks source link

Build failed with GCC 14 #25

Open Xeonacid opened 5 months ago

Xeonacid commented 5 months ago
/build/csound-plugins/src/plugins-1.0.2/hdf5/HDF5IO.c: In function ‘HDF5IO_readStringAttribute’:
/build/csound-plugins/src/plugins-1.0.2/hdf5/HDF5IO.c:233:39: error: passing argument 2 of ‘H5Oget_info1’ from incompatible pointer type [-Wincompatible-pointer-types]
  233 |     HDF5ERROR(H5Oget_info1(dataSetID, &oinfo));
      |                                       ^~~~~~
      |                                       |
      |                                       H5O_info2_t *
/usr/include/csound/sysdep.h:345:45: note: in definition of macro ‘UNLIKELY’
  345 | #  define UNLIKELY(x)   __builtin_expect(!!(x),0)
      |                                             ^
/build/csound-plugins/src/plugins-1.0.2/hdf5/HDF5IO.c:233:5: note: in expansion of macro ‘HDF5ERROR’
  233 |     HDF5ERROR(H5Oget_info1(dataSetID, &oinfo));
      |     ^~~~~~~~~
In file included from /usr/include/H5Apublic.h:21,
                 from /usr/include/hdf5.h:22,
                 from /build/csound-plugins/src/plugins-1.0.2/hdf5/HDF5IO.h:21:
/usr/include/H5Opublic.h:1854:55: note: expected ‘H5O_info1_t *’ but argument is of type ‘H5O_info2_t *’
 1854 | H5_DLL herr_t H5Oget_info1(hid_t loc_id, H5O_info1_t *oinfo);
      |                                          ~~~~~~~~~~~~~^~~~~
ycollet commented 3 weeks ago

I had the same problem for csound 6 and hdf5. Build tried on Fedora 40.