Skip to contentSkip to conversation

hdf5: add -Wno-error to allow building native with gcc-14 on host

PATCH New Martin Jansa 1 participant 2 messages Feb 4, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 hdf5: add -Wno-error to allow building native with gcc-14 on host

---
 meta-oe/recipes-support/hdf5/hdf5_1.8.21.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-oe/recipes-support/hdf5/hdf5_1.8.21.bb +6 -0
index 4110e9cea4..669fa1c03f 100644
@@ -58,3 +58,9 @@ do_install:append() {
 BBCLASSEXTEND = "native"
 
 SRC_DISTRIBUTE_LICENSES += "HDF5"
+
+# work/x86_64-linux/hdf5-native/1.8.21-r0/hdf5-1.8.21/src/H5Eprivate.h:76:40: error: assignment to ?H5A_t *? from ?int? makes pointer from integer without a cast [-Wint-conversion]
+# work/x86_64-linux/hdf5-native/1.8.21-r0/hdf5-1.8.21/src/H5Dio.c:475:5: error: implicit declaration of function ?H5T_patch_vlen_file?; did you mean ?H5T_patch_file?? [-Wimplicit-function-declaration]
+# work/x86_64-linux/hdf5-native/1.8.21-r0/hdf5-1.8.21/test/dsets.c:9151:8: error: implicit declaration of function ?H5D__layout_compact_dirty_test? [-Wimplicit-function-declaration]
+# work/x86_64-linux/hdf5-native/1.8.21-r0/hdf5-1.8.21/test/testframe.c:616:31: error: passing argument 2 of ?H5Eset_auto2? from incompatible pointer type [-Wincompatible-pointer-types]
+BUILD_CFLAGS += "-Wno-error=int-conversion -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types"
Signature · 1 line
2.48.1
#1 lore raw

PATCH 2/2 python3-h5py: add -Wno-error to allow building native with gcc-14 on host

---
 meta-python/recipes-devtools/python/python3-h5py_3.6.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-python/recipes-devtools/python/python3-h5py_3.6.0.bb +4 -0
index 64abe73cba..df57bfd884 100644
@@ -29,3 +29,7 @@ RDEPENDS:${PN} = "python3-numpy \
                  "
 
 export HDF5_VERSION="1.8.21"
+
+# h5py/_errors.c:2115:64: error: passing argument 3 of ?H5Ewalk2? from incompatible pointer type [-Wincompatible-pointer-types]
+# h5py/_errors.c:2365:66: error: passing argument 3 of ?H5Ewalk2? from incompatible pointer type [-Wincompatible-pointer-types]
+BUILD_CFLAGS += "-Wno-error=incompatible-pointer-types"
Signature · 1 line
2.48.1