From 41dc56c1cf4578dc296529046662e5ca32bbf3d9 Mon Sep 17 00:00:00 2001 From: Nigko Yerden Date: Sun, 20 Jul 2025 12:59:54 +0500 Subject: [PATCH] gnu: hdf5-1.8: Fix build with gcc@14. * gnu/packages/maths.scm (hdf5-1.8)[arguments]<#:make-flags>: Append '-Wno-error=...' to CFLAGS. Append '-g -O2' to CFLAGS and CXXFLAGS. Change-Id: Ib4071bcf7435d70e7f4aa9d9d3adc422e025623e Signed-off-by: Andreas Enge --- gnu/packages/maths.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 05a6e75092..7cb6f05dfb 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -1799,9 +1799,11 @@ incompatible with HDF5.") "--enable-threadsafe" "--with-pthread" "--enable-unsupported") - ;; Use -fPIC to allow the R bindings to link with the static libraries - #:make-flags (list "CFLAGS=-fPIC" - "CXXFLAGS=-fPIC") + ;; Use -fPIC to allow the R bindings to link with the static libraries. + ;; Declare warnings as non-errors to fix build with gcc@14 + #:make-flags + (list "CFLAGS=-g -O2 -fPIC -Wno-error=incompatible-pointer-types" + "CXXFLAGS=-g -O2 -fPIC") #:phases (modify-phases %standard-phases (add-before 'configure 'patch-configure